Hide menu
Loading...
Searching...
No Matches
Hatch

Represents an area filled with a pattern.

The hatch pattern can be composed of solid, dashed or dash-doted lines. The pattern can be mirrored or composed with its mirror image to create double hatch. It follows the scheme used by AutoCAD to represent the set of ANSI-standard hatch patterns.

Extends

Constructors

new Hatch()

new Hatch(): Hatch

Returns

Hatch

Inherited from

Element.constructor

Properties

angle

angle: number = 0

Angle of the hatch.


definitionLines

readonly definitionLines: HatchDefinitionLine[] = []

Collection of definition lines.


pattern

pattern: PatternType = PatternType.SOLID

Hatch pattern.


scale

scale: number = 1

Scale of the hatch.


style

style: StyleType = StyleType.STANDARD

Style of the hatch pattern.

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

Element.id


numberOfContours

Get Signature

get numberOfContours(): number

Returns the number of hatch contours.

Returns

number


numberOfDefinitionLines

Get Signature

get numberOfDefinitionLines(): number

Returns the number of definition lines.

Deprecated

Use definitionLines.length instead.

Returns

number


uuid

Get Signature

get uuid(): null | `$string