worklets

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 3

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

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

type Worklet

type Worklet struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Worklet

func WorkletFromJS

func WorkletFromJS(value js.Value) *Worklet

WorkletFromJS is casting a js.Value into Worklet.

func WorkletFromWrapper

func WorkletFromWrapper(input core.Wrapper) *Worklet

WorkletFromJS is casting from something that holds a js.Value into Worklet.

func (*Worklet) AddModule

func (_this *Worklet) AddModule(moduleURL string, options *WorkletOptions) (_result *javascript.PromiseVoid)

func (*Worklet) JSValue

func (_this *Worklet) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

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.Value) *WorkletGlobalScope

WorkletGlobalScopeFromJS is casting a js.Value into WorkletGlobalScope.

func WorkletGlobalScopeFromWrapper

func WorkletGlobalScopeFromWrapper(input core.Wrapper) *WorkletGlobalScope

WorkletGlobalScopeFromJS is casting from something that holds a js.Value into WorkletGlobalScope.

func (*WorkletGlobalScope) JSValue

func (_this *WorkletGlobalScope) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type WorkletOptions

type WorkletOptions struct {
	Credentials fetch.RequestCredentials
}

dictionary: WorkletOptions

func WorkletOptionsFromJS

func WorkletOptionsFromJS(value js.Value) *WorkletOptions

WorkletOptionsFromJS is allocating a new WorkletOptions object and copy all values in the value javascript object.

func (*WorkletOptions) JSValue

func (_this *WorkletOptions) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL