ShapeMixin

A mixin to provide common shape properties and methods.

ShapeMixin interface

A mixin to provide common shape properties and methods.

Signature:

interface ShapeMixin extends BaseNodeMixin

Extends: BaseNodeMixin

Properties

Property

Modifiers

Type

Description

parent?

readonly

Parent<Shape> | undefined

(Optional) The parent of this shape

Methods

Method

Description

toPathData(frame)

Returns a path data representation of this shape.

moveBefore(sibling)

Moves this shape immediately before the given sibling in render order. May reparent the shape if the sibling has a different parent.

moveAfter(sibling)

Moves this shape immediately after the given sibling in render order. May reparent the shape if the sibling has a different parent.

bringToFront()

Moves this shape to the top of its parent's render stack.

sendToBack()

Moves this shape to the bottom of its parent's render stack.

Last updated: August 5, 2026 at 11:47 AMEdit this page