Home Reference Source
import GlLink from './ui/glpatch/gllink.js'
public class | source

GlLink

drawing gl links GlCable

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

crossSubpatch: boolean

public get
public get

id: *

public get

link: *

public get
public get
public get
public get
public get

opIn: *

public get

opOut: *

public get
public get
public get
public get

type: *

public set
Private Members
private
private
private

_buttonDownTime: number

private
private

_cable: *

private
private

_debugColor: boolean

private

_glOpIn: *

private
private
private

_id: *

private

_link: *

private

_log: *

private
private
private

_offsetXInput: number

private

_offsetXOutput: number

private
private
private
private
private
private
private
private
private
private
private
private
private

_type: *

private

Method Summary

Public Methods
public
public

collideLine(x1: *, y1: *, x2: *, y2: *): *

public
public

highlight(b: *)

public

isAOpSelected(): boolean

public

isAPortHovering(): boolean

public

isInCurrentSubPatch(): boolean

public

setFlowModeActivity(act: *, v: *)

public
public

unlink()

public

update()

public
public
public
public
Private Methods
private
private
private

Public Constructors

public constructor() source

Public Members

public addedOrderListeners: boolean source

public crossSubpatch: boolean source

public get hovering: * source

public get id: * source

public get nameInput: * source

public get nameOutput: * source

public get opIdInput: * source

public get opIdOutput: * source

public get opIn: * source

public get opOut: * source

public get portIdIn: * source

public get portIdOut: * source

public get subPatch: * source

public get type: * source

public set visible source

Private Members

private _activity: * source

private _buttonDown: * source

private _buttonDownTime: number source

private _buttonRect: * source

private _cable: * source

private _cableSub: * source

private _debugColor: boolean source

private _glOpIn: * source

private _glOpOut: * source

private _glPatch: * source

private _id: * source

private _log: * source

private _mouseDownX: * source

private _mouseDownY: * source

private _offsetXInput: number source

private _offsetXOutput: number source

private _oldHighlight: * source

private _opIdInput: * source

private _opIdOutput: * source

private _portIdInput: * source

private _portIdOutput: * source

private _portNameInput: * source

private _portNameOutput: * source

private _startDragEvent: * source

private _subPatch: * source

private _subPatchInputOp: * source

private _subPatchOp: * source

private _subPatchOutputOp: * source

private _type: * source

private _visible: * source

Public Methods

public cableHoverChanged() source

public collideLine(x1: *, y1: *, x2: *, y2: *): * source

Params:

NameTypeAttributeDescription
x1 *
y1 *
x2 *
y2 *

Return:

*

public dispose() source

public highlight(b: *) source

Params:

NameTypeAttributeDescription
b *

public isAOpSelected(): boolean source

Return:

boolean

public isAPortHovering(): boolean source

Return:

boolean

public isInCurrentSubPatch(): boolean source

Return:

boolean

public setFlowModeActivity(act: *, v: *) source

Params:

NameTypeAttributeDescription
act *
v *

public startDragging(e: *) source

Params:

NameTypeAttributeDescription
e *

public update() source

public updateColor() source

public updateLineStyle() source

public updateTheme() source

public updateVisible() source

Private Methods

private _initSubCables() source

private _singleValueToString(v: *): * source

Params:

NameTypeAttributeDescription
v *

Return:

*

private _updatePosition() source