-
Notifications
You must be signed in to change notification settings - Fork 0
3.3 Line
AdrianSolberg edited this page Jul 3, 2024
·
6 revisions
-
start: InputPositionStart position of the line -
end: InputPositionEnd position of the line
-
color: numberColor of the line in hex. lineWidth?: number-
arrowhead?: booleanWhether the line should have an arrowhead. -
dashed?: booleanWhether the line should be dashed. -
opacity?: numberOpacity of the line. -
transparent?: booleanWhether the line should be transparent. -
draggable?: DraggableWhether the line should be draggable. -
curve?: numberAmount of curvature of the line. -
label?: stringLabel for the line.
color: 0x080007,
lineWidth: 4,
arrowhead: false,
dashed: false,
opacity: 1,
transparent: false,
curve: 0,
label: "",
collidesWith(other: Object3D): booleandistanceTo(other: Object3D<Event>): number
-
setPosition(start: InputPosition, end: InputPosition)Sets the Line position to specified values. -
setStart(start: InputPosition)Sets the start position of the Line to specified value. -
setEnd(end: InputPosition)Sets the end position of the Line to specified value. -
setZIndex(z: number)Sets the z-index of the Line. -
setCurve(curve: number)Sets the amount of curve for the Line. -
public setLabel(label: string)Sets the label for the Line.