worklets

package
v0.0.0-...-f312d10 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

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.Wrapper) *Worklet

WorkletFromJS is casting a js.Wrapper 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

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

Jump to

Keyboard shortcuts

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