Skip to main content

Wire

Wire

Overview needed


Constructor

public Wire

new Wire(p1, p2)

*Description needed*

Parameters

  •  p1: PortDescription needed

  •  p2: PortDescription needed


Properties

No publicly accessible properties on Wire

protected p1: Port

Description needed

protected p2: Port

Description needed

protected shape: BezierCurve

Description needed

protected straight: false | true

Description needed

protected dirtyShape: false | true

Description needed


Methods

private checkStraight

checkStraight() => void

Description needed

private calculateShape

calculateShape(port) => [Vector, Vector]<Vector, Vector>

Description needed

Parameters

  •  port: PortDescription needed

Returns

  •   [Vector, Vector]<Vector, Vector>Description needed

protected updateCurve

updateCurve() => void

Description needed

public onTransformChange

onTransformChange() => void

Description needed

public canConnectTo

canConnectTo(port) => false | true

Description needed

Parameters

  •  port: PortDescription needed

Returns

  •   false | trueDescription needed

public split

split() => Node

Description needed

Returns

  •   NodeDescription needed

public isWithinSelectBounds

isWithinSelectBounds(v) => false | true

Description needed

Parameters

  •  v: VectorDescription needed

Returns

  •   false | trueDescription needed

public setIsStraight

setIsStraight(straight) => void

Description needed

Parameters

  •  straight: false | trueDescription needed

public getPropInfo

getPropInfo(key) => BasePropInfo & { type: "boolean"; } | BasePropInfo & { type: "button"; getText: (states: any[]) => string; getNewState: (states: any[]) => any; } | BasePropInfo & UnitInfo | BasePropInfo & { type: "string"; constraint?: RegExp; } | BasePropInfo & { type: "color"; } | BasePropInfo & { type: "string[]"; options: [string, string][]; } | BasePropInfo & { type: "number[]"; options: [string, number][]; } | BasePropInfo & { type: "veci" | "vecf"; min?: Vector; max?: Vector; step?: Vector; }

Description needed

Parameters

  •  key: stringDescription needed

Returns

public getDisplayColor

getDisplayColor() => string

Description needed

Returns

  •   stringDescription needed

public getP1

getP1() => Port

Description needed

Returns

  •   PortDescription needed

public getP1Component

getP1Component() => Component

Description needed

Returns

public getP2

getP2() => Port

Description needed

Returns

  •   PortDescription needed

public getP2Component

getP2Component() => Component

Description needed

Returns

public getShape

getShape() => BezierCurve

Description needed

Returns

  •   BezierCurveDescription needed

public isStraight

isStraight() => false | true

Description needed

Returns

  •   false | trueDescription needed

public getMinPos

getMinPos() => Vector

Description needed

Returns

  •   VectorDescription needed

public getMaxPos

getMaxPos() => Vector

Description needed

Returns

  •   VectorDescription needed

public getDisplayName

getDisplayName() => string

Description needed

Returns

  •   stringDescription needed

Static Methods

No static methods for Wire