Wire
Wire
Overview needed
Constructor
public Wire
Properties
No publicly accessible properties on Wire
protected shape: BezierCurve
Description needed
protected straight: false | true
Description needed
protected dirtyShape: false | true
Description needed
Methods
private calculateShape
calculateShape(port) => [Vector, Vector]<Vector, Vector>
Description needed
Parameters
-
port: Port
– Description needed
Returns
-
[Vector, Vector]<Vector, Vector>
– Description needed
public canConnectTo
canConnectTo(port) => false | true
Description needed
Parameters
-
port: Port
– Description needed
Returns
-
false | true
– Description needed
public isWithinSelectBounds
isWithinSelectBounds(v) => false | true
Description needed
Parameters
-
v: Vector
– Description needed
Returns
-
false | true
– Description needed
public setIsStraight
setIsStraight(straight) => void
Description needed
Parameters
-
straight: false | true
– Description 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: string
– Description needed
Returns
-
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
public getDisplayColor
getDisplayColor() => string
Description needed
Returns
-
string
– Description needed
public getP1Component
getP1Component() => Component
Description needed
Returns
-
Component
– Description needed
public getP2Component
getP2Component() => Component
Description needed
Returns
-
Component
– Description needed
public isStraight
isStraight() => false | true
Description needed
Returns
-
false | true
– Description needed
public getDisplayName
getDisplayName() => string
Description needed
Returns
-
string
– Description needed
Static Methods
No static methods for Wire