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
angle:
number=0
Angle of the hatch definition line.
basePoint:
Point2d
Base point of the hatch definition line.
readonlydashes:number[] =[]
Collection of dashes.
offset:
Vector2d
Offset for the hatch definition line.
get id():
bigint
Returns object id.
bigint
get numberOfDashes():
number
Returns the number of dashes.
Use dashes.length instead.
number
addDash(
dash):void
Adds the dash.
number
Added dash.
void
Use dashes.push(dash) instead.
dash(
index):number
Returns the dash.
Throws exception if index is not in range [0, numberOfDashes()-1].
number
Dash index.
number
index must be in the range [0, numberOfDashes()-1].
Use dashes[index] instead.