Represents a line definition used in creating a hatch pattern.
This class defines parameters such as angle, base point, offset, and dashes for the definition lines in hatch patterns. It follows the scheme used by AutoCAD.
new HatchDefinitionLine():
HatchDefinitionLine
HatchDefinitionLine
angle:
number=0
Angle of the hatch definition line.
readonlydashes:number[] =[]
Dash and gap values of the hatch definition line.
get basePoint():
Point2d
Base point of the hatch definition line.
set basePoint(
basePoint):void
Sets the base point of the hatch definition line.
The coordinates are copied from the provided point.
Base point.
void
get id():
bigint
Returns the unique identifier of the object.
bigint
get numberOfDashes():
number
Returns the number of dashes.
Use HatchDefinitionLine.dashes and dashes.length instead.
number
get offset():
Vector2d
Offset of the hatch definition line.
set offset(
offset):void
Sets the offset of the hatch definition line.
The components are copied from the provided vector.
Offset vector.
void
addDash(
dash):void
Adds the dash.
Positive values define dash lengths, while negative values define gaps. The order is determined by the sequence of additions.
number
Dash or gap value to add.
void
Use HatchDefinitionLine.dashes and dashes.push(dash) instead.
dash(
index):number
Returns the dash.
Throws a RangeError if index is not in the range [0, numberOfDashes - 1].
number
Dash index.
number
Use HatchDefinitionLine.dashes and dashes[index] instead.