Home Reference Source
import GlDragLine from './ui/glpatch/gldragline.js'
public class | source

GlDragLine

simple line e.g. when dragging a port

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

color: *

public get

glPort: *

public get
Private Members
private

_button: *

private

_color: number[]

private
private

_glPort: *

private
private

_log: *

private

_rect: *

private
private
private
private
private
private

_x: number

private

_y: number

private

_z: *

Method Summary

Public Methods
public

setColor(rgba: *)

public

setPort(glp: *)

public

setPosition(x: *, y: *)

public

stop()

Private Methods
private
private

Public Constructors

public constructor() source

Public Members

public color: * source

public get glPort: * source

public get isActive: * source

Private Members

private _button: * source

private _color: number[] source

private _glPatch: * source

private _glPort: * source

private _lineIndices: *[] source

private _log: * source

private _rect: * source

private _splineDrawer: * source

private _splineIdx: * source

private _startGlPorts: *[] source

private _startPortId: * source

private _startPortOpId: * source

private _x: number source

private _y: number source

private _z: * source

Public Methods

public setColor(rgba: *) source

Params:

NameTypeAttributeDescription
rgba *

public setPort(glp: *) source

Params:

NameTypeAttributeDescription
glp *

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

Params:

NameTypeAttributeDescription
x *
y *

public stop() source

Private Methods

private _clearSpline() source

private _update() source