Home Reference Source
import VizLayer from './ui/glpatch/vizlayer.js'
public class | source

VizLayer

Extends:

Events → VizLayer

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
Private Members
private
private
private
private
private

_items: *[]

private
private

_log: *

private

_usingGl: boolean

Method Summary

Public Methods
public

clear(ctx: *, layer: *)

public
public

render()

public

renderText(ctx: *, layer: *, lines: *, options: *)

public
public
Private Methods
private

_removeOpItem(op: *)

private

_textWrap(str: *, max: *): {"linesIdx": *, "lines": *}

private

Inherited Summary

From class Events
public

off: *

public

on: *

private
private
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 constructor() source

Override:

Events#constructor

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 _log: * source

Override:

Events#_log

private _usingGl: boolean source

Public Methods

public clear(ctx: *, layer: *) source

Params:

NameTypeAttributeDescription
ctx *
layer *

public pauseInteraction() source

public render() source

public renderText(ctx: *, layer: *, lines: *, options: *) source

Params:

NameTypeAttributeDescription
ctx *
layer *
lines *
options *

public renderVizLayer(gl: *) source

Params:

NameTypeAttributeDescription
gl *

public resumeInteraction() source

Private Methods

private _removeOpItem(op: *) source

Params:

NameTypeAttributeDescription
op *

private _textWrap(str: *, max: *): {"linesIdx": *, "lines": *} source

Params:

NameTypeAttributeDescription
str *
max *

Return:

{"linesIdx": *, "lines": *}

private _updateSize() source