Home Reference Source
import GlOp from './ui/glpatch/glop.js'
public class | source

GlOp

Extends:

Events → GlOp

rendering of ops on the patchfield GlPatch

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

DISPLAY_COMMENT: number

public

DISPLAY_DEFAULT: number

public
public
public

DISPLAY_UI_AREA: number

public
public

displayType: number

public get

glPatch: *

public get

h: *

public get

id: *

public get

isDragging: boolean

public

minWidth: number

public
public get

objName: *

public get

op: *

public
public get
public set
public get

title: *

public get
public set
public get

visible: *

public get

w: *

public get

x: number

public get

y: number

Private Members
private
private

_disposed: boolean

private
private
private
private
private
private
private
private
private
private

_glPorts: *[]

private
private
private
private
private
private
private
private

_height: *

private

_hideBgRect: boolean

private

_hidePorts: boolean

private

_id: *

private
private
private

_links: {}

private

_log: *

private

_needsUpdate: boolean

private
private
private
private

_op: *

private
private
private
private

_rectBorder: number

private
private
private
private
private
private
private
private
private
private

_transparent: boolean

private
private

_visible: boolean

private
private

_wasInited: boolean

private

_width: *

Method Summary

Public Methods
public

addLink(l: *)

public
public
public

getGlPort(name: *): *

public

getGlPortsLinkedToPort(opid: *, portname: *): *

public

getPortPos(id: *, center: boolean): *

public

getPosZ(): *

public
public
public

isHovering(): *

public
public
public

mouseMove(x: *, y: *)

public
public

removeLink(linkId: *)

public
public

setHover(h: *)

public

setPassiveDragOffset(x: *, y: *)

public

setTitle(title: *, textWriter: *)

public

setUiAttribs(newAttribs: *, attr: *)

public
public

update(): *

public
public
public
public
public
public
Private Methods
private
private
private
private
private
private
private
private
private

_onBgRectDragEnd(rect: *)

private

_onMouseDown(e: *)

private

_onMouseUp(e: *)

private

_setPortIndexAttribs(ports: *): *

private

_setVisible(v: *)

private

_setupPort(i: *, p: *)

private

_setupPorts(ports: *)

private

_shortenExtTitle(str: *): *

private
private
private
private
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 DISPLAY_COMMENT: number source

public DISPLAY_DEFAULT: number source

public DISPLAY_REROUTE_DOT: number source

public DISPLAY_SUBPATCH: number source

public DISPLAY_UI_AREA: number source

public DISPLAY_UI_AREA_INSTANCER: number source

public displayType: number source

public get glPatch: * source

public get h: * source

public get id: * source

public get isDragging: boolean source

public minWidth: number source

public mouseButtonWheelDown: boolean source

public get objName: * source

public get op: * source

public opUiAttribs: {} source

public get selected: * source

public set selected source

public get title: * source

public get uiAttribs: * source

public set visible source

public get visible: * source

public get w: * source

public get x: number source

public get y: number source

Private Members

private _OpNameSpaceColor: * source

private _disposed: boolean source

private _dragOldUiAttribs: * source

private _glColorIndicator: * source

private _glComment: * source

private _glDotError: * source

private _glDotHint: * source

private _glDotWarning: * source

private _glLoadingIndicator: * source

private _glNotWorkingCross: * source

private _glPatch: * source

private _glPorts: *[] source

private _glRectArea: * source

private _glRectBg: * source

private _glRectContent: * source

private _glRectNames: *[] source

private _glRectSelected: * source

private _glRerouteDot: * source

private _glTitle: * source

private _height: * source

private _hideBgRect: boolean source

private _hidePorts: boolean source

private _id: * source

private _instancer: * source

private _isHovering: * source

private _log: * source

Override:

Events#_log

private _needsUpdate: boolean source

private _objName: * source

private _oldPosx: * source

private _oldPosy: * source

private _op: * source

private _origPosZ: * source

private _passiveDragStartX: * source

private _passiveDragStartY: * source

private _rectBorder: number source

private _rectResize: * source

private _resizableArea: * source

private _textWriter: * source

private _titleExt: * source

private _titleExtPort: * source

private _titleExtPortLastTime: * source

private _titleExtPortListener: * source

private _titleExtPortTimeout: * source

private _titleExtPortlister: * source

private _transparent: boolean source

private _visPort: * source

private _visible: boolean source

private _wasInCurrentSubpatch: boolean source

private _wasInited: boolean source

private _width: * source

Public Methods

Params:

NameTypeAttributeDescription
l *

public dispose() source

public endPassiveDrag() source

public getGlPort(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public getGlPortsLinkedToPort(opid: *, portname: *): * source

Params:

NameTypeAttributeDescription
opid *
portname *

Return:

*

public getPortPos(id: *, center: boolean): * source

Params:

NameTypeAttributeDescription
id *
center boolean
  • optional
  • default: true

Return:

*

public getPosZ(): * source

Return:

*

public getSubPatch(): * source

Return:

*

public getUiAttribs(): * source

Return:

*

public isHovering(): * source

Return:

*

public isInCurrentSubPatch(): * source

Return:

*

public isPassiveDrag(): * source

Return:

*

public mouseMove(x: *, y: *) source

Params:

NameTypeAttributeDescription
x *
y *

public refreshPorts() source

Params:

NameTypeAttributeDescription
linkId *

public sendNetPos() source

public setHover(h: *) source

Params:

NameTypeAttributeDescription
h *

public setPassiveDragOffset(x: *, y: *) source

Params:

NameTypeAttributeDescription
x *
y *

public setTitle(title: *, textWriter: *) source

Params:

NameTypeAttributeDescription
title *
textWriter *

public setUiAttribs(newAttribs: *, attr: *) source

Params:

NameTypeAttributeDescription
newAttribs *
attr *

public startPassiveDrag() source

public update(): * source

Return:

*

public updateIfNeeded() source

public updatePosition() source

public updateSize() source

public updateTheme() source

public updateVisible() source

public updateVizFlowMode(m: *) source

Params:

NameTypeAttributeDescription
m *

Private Methods

private _disposeDots() source

private _getTitleExtPosition(): * source

Return:

*

private _getTitlePosition(): * source

Return:

*

private _getTitleWidth(): * source

Return:

*

private _initColorIndicators() source

private _initGl() source

private _initWhenFirstInCurrentSubpatch() source

private _onBgRectDrag(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onBgRectDragEnd(rect: *) source

Params:

NameTypeAttributeDescription
rect *

private _onMouseDown(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onMouseUp(e: *) source

Params:

NameTypeAttributeDescription
e *

private _setPortIndexAttribs(ports: *): * source

Params:

NameTypeAttributeDescription
ports *

Return:

*

private _setVisible(v: *) source

Params:

NameTypeAttributeDescription
v *

private _setupPort(i: *, p: *) source

Params:

NameTypeAttributeDescription
i *
p *

private _setupPorts(ports: *) source

Params:

NameTypeAttributeDescription
ports *

private _shortenExtTitle(str: *): * source

Params:

NameTypeAttributeDescription
str *

Return:

*

private _storageChanged() source

private _updateColors() source

private _updateCommentPosition() source

private _updateIndicators() source

private _updateSelectedRect() source