Skip to main content

PatternLayerInstance

Typeobject
Backlinks1

Use a layer as the content of the pattern.

PropertyTypeRequired
classstringRequired
refLayerNamestringRequired
offsetPointRequired
scalePointRequired
anglenumberRequired
reflectionbooleanRequired
rnumberRequired
shearnumberRequired
shearAxisnumberRequired
matrixMatrixRequired

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"patternLayer"

refLayerName​

Required

Description

The name (UTF-8) of the referenced pattern layer. Note that this is the name of the pattern layer, not its ID. The pattern layer name is unique.

Type

string

offset​

Required

Description

Specify the offset from the ruler origin to be used for tiling the pattern. Each distance is specified in points.

Type

Point

scale​

Required

Description

Specify the scale factors to be applied to the x and y dimensions, respectively, of the pattern.

Type

Point

angle​

Required

Description

Specifies the angle in counterclockwise degrees to rotate the pattern.

Type

number

reflection​

Required

Description

Whether to apply a reflection to the pattern.

Type

boolean

r​

Required

Description

Specifies the angle of the line about which the pattern is reflected, measured in degrees counterclockwise from the origin. This is used if the reflection operand is true.

Type

number

shear​

Required

Description

Specifies the shear angle.

Type

number

shearAxis​

Required

Description

Specifies the shear axis.

Type

number

matrix​

Required

Description

Specifies the initial matrix to which all other pattern transformations are to be applied. This matrix describes transformations that are not otherwise expressible as the single combination of the other transformations.

Type

Matrix