Documentation ¶
Overview ¶
Package worklets is for running scripts in stages of the rendering pipeline independent of the main javascript execution environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Union ¶
func UnionFromJS ¶
type Worklet ¶
class: Worklet
func WorkletFromJS ¶
WorkletFromJS is casting a js.Wrapper into Worklet.
func (*Worklet) AddModule ¶
func (_this *Worklet) AddModule(moduleURL string, options *WorkletOptions) (_result *javascript.PromiseVoid)
type WorkletGlobalScope ¶
type WorkletGlobalScope struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: WorkletGlobalScope
func WorkletGlobalScopeFromJS ¶
func WorkletGlobalScopeFromJS(value js.Wrapper) *WorkletGlobalScope
WorkletGlobalScopeFromJS is casting a js.Wrapper into WorkletGlobalScope.
func (*WorkletGlobalScope) JSValue ¶
func (_this *WorkletGlobalScope) JSValue() js.Value
type WorkletOptions ¶
type WorkletOptions struct {
Credentials fetch.RequestCredentials
}
dictionary: WorkletOptions
func WorkletOptionsFromJS ¶
func WorkletOptionsFromJS(value js.Wrapper) *WorkletOptions
WorkletOptionsFromJS is allocating a new WorkletOptions object and copy all values from input javascript object
func (*WorkletOptions) JSValue ¶
func (_this *WorkletOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
Click to show internal directories.
Click to hide internal directories.