VizLayer
Extends:
managing data vizualizations on the patchfield (e.g. viztexture/vizgraph/vizString ops)
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
paused: * |
|
public |
renderMs: * |
Private Members | ||
private |
_canvasCtx: * |
|
private |
_eleCanvas: * |
|
private |
_fallBackrendererDisabled: boolean |
|
private |
_glPatch: * |
|
private |
_items: *[] |
|
private |
_itemsLookup: {} |
|
private |
_log: * |
|
private |
_usingGl: boolean |
Method Summary
Public Methods | ||
public |
clear(ctx: *, layer: *) |
|
public |
|
|
public |
render() |
|
public |
renderText(ctx: *, layer: *, lines: *, options: *) |
|
public |
renderVizLayer(gl: *) |
|
public |
|
Private Methods | ||
private |
_removeOpItem(op: *) |
|
private |
_textWrap(str: *, max: *): {"linesIdx": *, "lines": *} |
|
private |
|
Inherited Summary
From class Events | ||
public |
off: * |
|
public |
on: * |
|
private |
_eventCallbacks: {} |
|
private |
_listeners: {} |
|
private |
_log: * |
|
private |
_logEvents: boolean |
|
private |
_logName: string |
|
public |
addEventListener(which: *, cb: *, idPrefix: string): string add event listener |
|
public |
emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *) emit event |
|
public |
hasEventListener(id: *, cb: *): boolean check event listener registration |
|
public |
hasListenerForEventName(eventName: *): boolean check event listener by name |
|
public |
logEvents(enabled: boolean, logName: string) enable/disable logging of events for the class |
|
public |
removeEventListener(id: *, cb: *) rempve event listener registration |
Public Constructors
Public Members
public lastGlRendering: * source
public paused: * source
public renderMs: * source
Private Members
private _canvasCtx: * source
private _eleCanvas: * source
private _fallBackrendererDisabled: boolean source
private _glPatch: * source
private _items: *[] source
private _itemsLookup: {} source
private _usingGl: boolean source
Public Methods
public clear(ctx: *, layer: *) source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
layer | * |
public pauseInteraction() source
public render() source
public renderText(ctx: *, layer: *, lines: *, options: *) source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
layer | * | ||
lines | * | ||
options | * |
public renderVizLayer(gl: *) source
Params:
Name | Type | Attribute | Description |
gl | * |
public resumeInteraction() source
Private Methods
private _removeOpItem(op: *) source
Params:
Name | Type | Attribute | Description |
op | * |
private _textWrap(str: *, max: *): {"linesIdx": *, "lines": *} source
Params:
Name | Type | Attribute | Description |
str | * | ||
max | * |
Return:
{"linesIdx": *, "lines": *} |