Component
Component
Overview needed
Constructor
protected Component
new Component(size, initialProps)
*Description needed*Parameters
size: Vector
– Description neededinitialProps: Record
– Description needed
Properties
No publicly accessible properties on Component
protected transform: Transform
Description needed
protected dirtyTransform: false | true
Description needed
Methods
public setProp
setProp(key, val) => void
Description needed
Parameters
key: string
– Description neededval: any
– Description needed
public setRotationAbout
setRotationAbout(a, c) => void
Description needed
Parameters
a: number
– Description neededc: Vector
– Description needed
public isWithinSelectBounds
isWithinSelectBounds(v) => false | true
Determines whether or not a point is within this component's "selectable" bounds.
Parameters
-
v: Vector
– The point.
Returns
-
false | true
– True if the point is within this component, false otherwise.
public getConnections
getConnections() => Wire[]
Description needed
Returns
-
Wire[]
– Description needed
public getTransform
getTransform() => Transform
Description needed
Returns
-
Transform
– 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
Static Methods
No static methods for Component