CanvasNode
Extends:
Constructor Summary
Public Constructor | ||
public |
Initialise an instance of a CanvasNode. |
Member Summary
Private Members | ||
private |
|
|
private |
_preloadTime: * |
|
private |
|
Inherited Summary
From class GraphNode | ||
public get |
Get whether the node has been destroyed or not. |
|
public get |
displayName: *: * Get a string representation of the class name. |
|
public get |
inputNames: String[]: * Get the names of the inputs to this node. |
|
public get |
Get an array of all the nodes which connect to this node. |
|
public get |
The maximum number of connections that can be made to this node. |
|
public get |
Get an array of all the nodes which this node outputs to. |
|
private |
|
|
private |
|
|
private |
_gl: * |
|
private |
_inputNames: * |
|
private |
|
|
private |
_renderGraph: * |
|
private |
|
|
public |
Connect this node to the targetNode |
|
public |
destroy() Destory this node, removing it from the graph. |
|
public |
disconnect(targetNode: GraphNode): * Disconnect this node from the targetNode. |
From class SourceNode | ||
public get |
Returns the duration of the node on a timeline. |
|
public get |
element: Element: * Returns the underlying DOM element which represents this source node. |
|
public get |
startTime: * |
|
public get |
state: * Returns the state of the node. |
|
public get |
stopTime: * |
|
public get |
|
|
public set |
|
|
private |
_callbacks: *[] |
|
private |
_currentTime: * |
|
private |
|
|
private |
_element: * |
|
private |
_elementURL: * |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
_startTime: * |
|
private |
_state: * |
|
private |
_stopTime: * |
|
private |
|
|
private |
_texture: * |
|
public |
Clear any timeline state the node currently has, this puts the node in the "waiting" state, as if neither start nor stop had been called. |
|
public |
destroy() Destroy and clean-up the node. |
|
public |
registerCallback(type: String, func: function) Register callbacks against one of these events: "load", "destroy", "seek", "pause", "play", "ended", "durationchange", "loaded", "error" |
|
public |
Start playback at VideoContext.currentTime plus passed time. |
|
public |
Start playback at an absolute time ont the VideoContext's timeline. |
|
public |
Stop playback at VideoContext.currentTime plus passed time. |
|
public |
Stop playback at an absolute time ont the VideoContext's timeline. |
|
public |
unregisterCallback(func: function) Remove callback. |
|
private |
|
|
private |
_load() |
|
private |
_pause() |
|
private |
_play() |
|
private |
_seek(time: *) |
|
private |
_triggerCallbacks(type: *, data: *) |
|
private |
_unload() |
|
private |
|
Public Constructors
public constructor() source
Initialise an instance of a CanvasNode. This should not be called directly, but created through a call to videoContext.createCanvasNode();
Override:
SourceNode#constructorPrivate Members
private _preloadTime: * source
Private Methods
private _update(currentTime: *): boolean source
Override:
SourceNode#_updateParams:
Name | Type | Attribute | Description |
currentTime | * |