Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
|
|
public set |
|
|
public |
blueprint: boolean |
|
public |
|
|
public |
cacheOIRops: * |
|
public |
cacheOIRxa: number |
|
public |
cacheOIRxb: number |
|
public |
cacheOIRya: number |
|
public |
cacheOIRyb: number |
|
public |
cutLineActive: boolean |
|
public |
debugData: {} |
|
public get |
dragLine: * |
|
public |
frameCount: number |
|
public |
greyOut: boolean |
|
public |
hasFocus: * |
|
public |
isAnimated: boolean |
|
public get |
|
|
public get |
lineDrawer: * |
|
public |
linkStartedDragging: boolean |
|
public |
links: {} |
|
public |
mouseState: * |
|
public get |
name: string |
|
public |
needsRedraw: boolean |
|
public |
|
|
public set |
|
|
public get |
patchAPI: * |
|
public |
pauseTimeOut: * |
|
public |
paused: boolean |
|
public |
|
|
public get |
rectDrawer: * |
|
public get |
|
|
public |
snap: * |
|
public get |
spacePressed: * |
|
public |
|
|
public get |
subPatch: * |
|
public |
|
|
public get |
time: * |
|
public |
viewBox: * |
|
public |
vizFlowMode: * |
|
public |
vizLayer: * |
Private Members | ||
private |
|
|
private |
_cachedNumSelectedOps: number |
|
private |
_canvasMouseDown: boolean |
|
private |
|
|
private |
_cgl: * |
|
private |
_currentSubpatch: number |
|
private |
_cursor: * |
|
private |
_cutLine: *[] |
|
private |
_cutLineIdx: * |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
_eleDropOp: * |
|
private |
_fadeOutRect: * |
|
private |
|
|
private |
_focusRect: * |
|
private |
|
|
private |
_focusRectOp: * |
|
private |
_fpsStartTime: number |
|
private |
_glCursors: {} |
|
private |
_glOpz: {} |
|
private |
|
|
private |
_greyOutRect: * |
|
private |
_hoverDragOp: * |
|
private |
_hoverLink: * |
|
private |
_hoverOpLongStartTime: number |
|
private |
_hoverOps: *[] |
|
private |
_ignoreNonExistError: *[] |
|
private |
_lastButton: number |
|
private |
_lastMouseX: * |
|
private |
_lastMouseY: * |
|
private |
_lines: * |
|
private |
|
|
private |
_log: * |
|
private |
_mouseLeaveButtons: number |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
_patchAPI: * |
|
private |
_pauseMouseUntilButtonUp: boolean |
|
private |
|
|
private |
_pressedCtrlKey: boolean |
|
private |
_pressedShiftKey: boolean |
|
private |
|
|
private |
_redrawFlash: * |
|
private |
_selectedGlOps: {} |
|
private |
|
|
private |
_showRedrawFlash: number |
|
private |
_showingOpCursor: boolean |
|
private |
_spacePressed: boolean |
|
private |
_splineDrawers: {"0": *} |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
_textWriter: * |
|
private |
|
|
private |
_time: number |
|
private |
_timeStart: * |
|
private |
_ttTImeout: * |
|
private |
_viewZoom: number |
Method Summary
Public Methods | ||
public |
addLink(l: *) |
|
public |
addOp(op: *, fromDeserialize: *) |
|
public |
center(x: *, y: *) |
|
public |
copy(e: *) |
|
public |
cursorNavOps(x: *, y: *) |
|
public |
cut(e: *) |
|
public |
deleteLink(linkId: *) |
|
public |
deleteOp(opid: *) |
|
public |
dispose() |
|
public |
focus() |
|
public |
focusOp(opid: *) |
|
public |
focusOpAnim(opid: *) |
|
public |
getConnectedGlPorts(opid: *, portname: *): * |
|
public |
getCurrentSubPatch(): * |
|
public |
getGlOp(op: *): * |
|
public |
getNumSelectedOps(): * |
|
public |
getOnlySelectedOp(): * |
|
public |
getOp(opid: *): * |
|
public |
getOpBounds(ops: *): * |
|
public |
getSplineDrawer(subpatchId: *): * |
|
public |
getZoomForAllOps(): number |
|
public |
isDraggingOps(): boolean |
|
public |
isDraggingPort(): * |
|
public |
isFocused(): * |
|
public |
isMouseOverOp(): * |
|
public |
mouseMove(x: *, y: *) |
|
public |
paste(e: *) |
|
public |
pause() |
|
public |
|
|
public |
render(resX: *, resY: *) |
|
public |
reset() |
|
public |
restoreSubPatchViewBox(sub: *, next: *) |
|
public |
resume() |
|
public |
|
|
public |
screenToPatchCoord(x: *, y: *): * |
|
public |
selectOpId(id: *) |
|
public |
serialize(dataUi: *) |
|
public |
setCurrentSubPatch(sub: *, next: *) |
|
public |
setCursor(c: *) |
|
public |
setDrawableColorByType(e: *, t: *, diff: *) |
|
public |
setHoverLink(e: *, link: *) |
|
public |
setProject(proj: *) |
|
public |
setSelectedOpById(id: *) |
|
public |
setSize(x: *, y: *, w: *, h: *) |
|
public |
showOpCursor(show: *) |
|
public |
|
|
public |
subPatchOpAnimEnd(opid: *) |
|
public |
subPatchOpAnimStart(bounds: *, next: *) |
|
public |
|
|
public |
unSelectOpId(id: *) |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
zIndex(): * |
|
public |
zoomStep(s: *) |
Private Methods | ||
private |
|
|
private |
|
|
private |
_getGlOpsInRect(xa: *, ya: *, xb: *, yb: *): * |
|
private |
_onCanvasDblClick(e: *) |
|
private |
_onCanvasMouseDown(e: *) |
|
private |
_onCanvasMouseEnter(e: *) |
|
private |
_onCanvasMouseLeave(e: *) |
|
private |
_onCanvasMouseMove(e: *) |
|
private |
_onCanvasMouseUp(e: *) |
|
private |
_onKeyDelete(e: *) |
|
private |
|
|
private |
_selectOpsInRect(xa: *, ya: *, xb: *, yb: *) |
|
private |
|
|
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 get allowDragging: * source
public set allowDragging source
public blueprint: boolean source
public cablesHoverText: * source
public cacheOIRops: * source
public cacheOIRxa: number source
public cacheOIRxb: number source
public cacheOIRya: number source
public cacheOIRyb: number source
public cutLineActive: boolean source
public debugData: {} source
public get dragLine: * source
public frameCount: number source
public greyOut: boolean source
public hasFocus: * source
public isAnimated: boolean source
public get isAreaSelecting: * source
public get lineDrawer: * source
public linkStartedDragging: boolean source
public links: {} source
public mouseState: * source
public get name: string source
public needsRedraw: boolean source
public opShakeDetector: * source
public set patchAPI source
public get patchAPI: * source
public pauseTimeOut: * source
public paused: boolean source
public profileMouseEvents: * source
public get rectDrawer: * source
public get selectedGlOps: * source
public snap: * source
public get spacePressed: * source
public startLinkButtonDrag: * source
public get subPatch: * source
public subpatchAreaSpline: * source
public get time: * source
public viewBox: * source
public vizFlowMode: * source
public vizLayer: * source
Private Members
private _cachedFirstSelectedOp: * source
private _cachedNumSelectedOps: number source
private _canvasMouseDown: boolean source
private _canvasMouseDownSelecting: * source
private _cgl: * source
private _currentSubpatch: number source
private _cursor: * source
private _cutLine: *[] source
private _cutLineIdx: * source
private _debugRenderStyle: * source
private _dropInCircleLink: * source
private _dropInCircleRect: * source
private _dropInOpBorder: * source
private _eleDropOp: * source
private _fadeOutRect: * source
private _fadeOutRectAnim: * source
private _focusRect: * source
private _focusRectAnim: * source
private _focusRectOp: * source
private _fpsStartTime: number source
private _glCursors: {} source
private _glOpz: {} source
private _glSelectionAreas: {} source
private _greyOutRect: * source
private _hoverDragOp: * source
private _hoverLink: * source
private _hoverOpLongStartTime: number source
private _hoverOps: *[] source
private _ignoreNonExistError: *[] source
private _lastButton: number source
private _lastMouseX: * source
private _lastMouseY: * source
private _lines: * source
private _localGlCursor: * source
private _mouseLeaveButtons: number source
private _numSelOpsTimeout: * source
private _numSelectedGlOps: * source
private _oldMouseMoveX: * source
private _oldMouseMoveY: * source
private _overLayRects: * source
private _overlaySplines: * source
private _patchAPI: * source
private _pauseMouseUntilButtonUp: boolean source
private _portDragLine: * source
private _pressedCtrlKey: boolean source
private _pressedShiftKey: boolean source
private _rectInstancer: * source
private _redrawFlash: * source
private _selectedGlOps: {} source
private _selectionArea: * source
private _showRedrawFlash: number source
private _showingOpCursor: boolean source
private _spacePressed: boolean source
private _splineDrawers: {"0": *} source
private _subpatchAnimFade: * source
private _subpatchAnimOutH: * source
private _subpatchAnimOutW: * source
private _subpatchAnimOutX: * source
private _subpatchAnimOutY: * source
private _subpatchoprect: * source
private _textWriter: * source
private _textWriterOverlay: * source
private _time: number source
private _timeStart: * source
private _ttTImeout: * source
private _viewZoom: number source
Public Methods
public addLink(l: *) source
Params:
Name | Type | Attribute | Description |
l | * |
public addOp(op: *, fromDeserialize: *) source
Params:
Name | Type | Attribute | Description |
op | * | ||
fromDeserialize | * |
public center(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public copy(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
public cursorNavOps(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public cut(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
public deleteLink(linkId: *) source
Params:
Name | Type | Attribute | Description |
linkId | * |
public deleteOp(opid: *) source
Params:
Name | Type | Attribute | Description |
opid | * |
public dispose() source
public focus() source
public focusOp(opid: *) source
Params:
Name | Type | Attribute | Description |
opid | * |
public focusOpAnim(opid: *) source
Params:
Name | Type | Attribute | Description |
opid | * |
public getConnectedGlPorts(opid: *, portname: *): * source
Params:
Name | Type | Attribute | Description |
opid | * | ||
portname | * |
Return:
* |
public getSplineDrawer(subpatchId: *): * source
Params:
Name | Type | Attribute | Description |
subpatchId | * |
Return:
* |
public mouseMove(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public paste(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
public pause() source
public pauseInteraction() source
public render(resX: *, resY: *) source
Params:
Name | Type | Attribute | Description |
resX | * | ||
resY | * |
public reset() source
public restoreSubPatchViewBox(sub: *, next: *) source
Params:
Name | Type | Attribute | Description |
sub | * | ||
next | * |
public resume() source
public resumeInteraction() source
public screenToPatchCoord(x: *, y: *): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
Return:
* |
public selectOpId(id: *) source
Params:
Name | Type | Attribute | Description |
id | * |
public serialize(dataUi: *) source
Params:
Name | Type | Attribute | Description |
dataUi | * |
public setCurrentSubPatch(sub: *, next: *) source
Params:
Name | Type | Attribute | Description |
sub | * | ||
next | * |
public setCursor(c: *) source
Params:
Name | Type | Attribute | Description |
c | * |
public setDrawableColorByType(e: *, t: *, diff: *) source
Params:
Name | Type | Attribute | Description |
e | * | ||
t | * | ||
diff | * |
public setHoverLink(e: *, link: *) source
Params:
Name | Type | Attribute | Description |
e | * | ||
link | * |
public setProject(proj: *) source
Params:
Name | Type | Attribute | Description |
proj | * |
public setSelectedOpById(id: *) source
Params:
Name | Type | Attribute | Description |
id | * |
public setSize(x: *, y: *, w: *, h: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
w | * | ||
h | * |
public showOpCursor(show: *) source
Params:
Name | Type | Attribute | Description |
show | * |
public storeSubPatchViewBox() source
public subPatchOpAnimEnd(opid: *) source
Params:
Name | Type | Attribute | Description |
opid | * |
public subPatchOpAnimStart(bounds: *, next: *) source
Params:
Name | Type | Attribute | Description |
bounds | * | ||
next | * |
public toggleOpsEnable() source
public unSelectOpId(id: *) source
Params:
Name | Type | Attribute | Description |
id | * |
public unselectAll() source
public updateCursor() source
public updateSubPatchOpAnim() source
public updateTheme() source
public updateTime() source
public updateVizFlowMode() source
public zoomStep(s: *) source
Params:
Name | Type | Attribute | Description |
s | * |
Private Methods
private _cycleDebug() source
private _drawCursor() source
private _getGlOpsInRect(xa: *, ya: *, xb: *, yb: *): * source
Params:
Name | Type | Attribute | Description |
xa | * | ||
ya | * | ||
xb | * | ||
yb | * |
Return:
* |
private _onCanvasDblClick(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseDown(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseEnter(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseLeave(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseMove(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onCanvasMouseUp(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _onKeyDelete(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
private _removeDropInRect() source
private _selectOpsInRect(xa: *, ya: *, xb: *, yb: *) source
Params:
Name | Type | Attribute | Description |
xa | * | ||
ya | * | ||
xb | * | ||
yb | * |