VizLayer
Extends:
Draws data visualizations on the patchfield (e.g. VizTexture, VizGraph, VizString ops).
Constructor Summary
| Public Constructor | ||
| public |
constructor(glPatch: GlPatch) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
paused: * |
|
| public |
renderMs: * |
|
| Private Members | ||
| private |
_canvasCtx: * |
|
| private |
_eleCanvas: * |
|
| private |
_fallBackrendererDisabled: boolean |
|
| private |
_glPatch: * |
|
| private |
|
|
| private |
_itemsLookup: {} |
|
| private |
_log: * |
|
| private |
_usingGl: boolean |
|
Method Summary
| Public Methods | ||
| public |
clear(ctx: *, layer: *) |
|
| public |
getItemByPos(x: number, y: number): * |
|
| public |
|
|
| public |
render() |
|
| public |
renderText(ctx: CanvasRenderingContext2D, layer: VizLayerOptions, lines: string[], options: VizTextOptions) |
|
| public |
renderVizLayer(gl: boolean) |
|
| public |
renderWebGpuPreviews(cgp: CgpContext) |
|
| public |
|
|
| Private Methods | ||
| private |
_removeOpItem(op: Op) |
|
| private |
_textWrap(str: *, max: *): {"linesIdx": *, "lines": *} |
|
| private |
|
|
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: VizLayerItem[] source
private _itemsLookup: {} source
private _log: * source
private _usingGl: boolean source
Public Methods
public clear(ctx: *, layer: *) source
Params:
| Name | Type | Attribute | Description |
| ctx | * | ||
| layer | * |
public getItemByPos(x: number, y: number): * source
Params:
| Name | Type | Attribute | Description |
| x | number | ||
| y | number |
Return:
| * |
public pauseInteraction() source
public render() source
public renderText(ctx: CanvasRenderingContext2D, layer: VizLayerOptions, lines: string[], options: VizTextOptions) source
Params:
| Name | Type | Attribute | Description |
| ctx | CanvasRenderingContext2D | ||
| layer | VizLayerOptions | ||
| lines | string[] | ||
| options | VizTextOptions |
public renderVizLayer(gl: boolean) source
Params:
| Name | Type | Attribute | Description |
| gl | boolean |
public renderWebGpuPreviews(cgp: CgpContext) source
Params:
| Name | Type | Attribute | Description |
| cgp | CgpContext |
public resumeInteraction() source
Private Methods
private _removeOpItem(op: Op) source
Params:
| Name | Type | Attribute | Description |
| op | Op |
private _textWrap(str: *, max: *): {"linesIdx": *, "lines": *} source
Params:
| Name | Type | Attribute | Description |
| str | * | ||
| max | * |
Return:
| {"linesIdx": *, "lines": *} |