Hide menu
Loading...
Searching...
No Matches
HatchDefinitionLine

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.

Extends

Constructors

new HatchDefinitionLine()

new HatchDefinitionLine(): HatchDefinitionLine

Returns

HatchDefinitionLine

Inherited from

BaseObject.constructor

Properties

angle

angle: number = 0

Angle of the hatch definition line.


basePoint

basePoint: Point2d

Base point of the hatch definition line.


dashes

readonly dashes: number[] = []

Collection of dashes.


offset

offset: Vector2d

Offset for the hatch definition line.

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

BaseObject.id


numberOfDashes

Get Signature

get numberOfDashes(): number

Returns the number of dashes.

Deprecated

Use dashes.length instead.

Returns

number

Methods

addDash()

addDash(dash): void

Adds the dash.

Parameters

dash

number

Added dash.

Returns

void

Deprecated

Use dashes.push(dash) instead.


dash()

dash(index): number

Returns the dash.

Throws exception if index is not in range [0, numberOfDashes()-1].

Parameters

index

number

Dash index.

Returns

number

Warning

index must be in the range [0, numberOfDashes()-1].

Deprecated

Use dashes[index] instead.