GroupShape

Hierarchy

Constructors

constructor

Properties

anchor

anchor: Property = new Property(this, PropertyType.ANCHOR)

Mapped field: p

blendMode

blendMode: BlendMode = BlendMode.NORMAL

Optional classNames

classNames: undefined | string

Optional contentPropertyIndex

contentPropertyIndex: undefined | number

Optional id

id: undefined | string

isHidden

isHidden: boolean = false

Optional itemIndex

itemIndex: undefined | number

Optional matchName

matchName: undefined | string

Optional name

name: undefined | string

numProperties

numProperties: number = 0

opacity

opacity: Property = new Property(this, PropertyType.OPACITY)

parent

parent: any

position

position: Property = new Property(this, PropertyType.POSITION)

Optional propertyIndex

propertyIndex: undefined | number

rotation

rotation: Property = new Property(this, PropertyType.ROTATION)

scale

scale: Property = new Property(this, PropertyType.SCALE)

Optional shapeIndex

shapeIndex: undefined | number

shapes

skew

skew: Property = new Property(this, PropertyType.SKEW)

skewAxis

skewAxis: Property = new Property(this, PropertyType.SKEW_AXIS)

Readonly type

type: GROUP = ShapeType.GROUP

Mapped field: ty

Mapped field value: gr

Methods

createShape

fromJSON

  • fromJSON(json: Record<string, any>): GroupShape

  • Parameters

    • json: Record<string, any>

    Returns GroupShape

    GroupShape instance

toJSON

  • toJSON(): Record<string, any>

  • Returns Record<string, any>

    JSON object

Last updated