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

bringToFront()

Moves this shape to the top of the render stack within its parent (i.e. foreground).

moveAfter(sibling)

Moves this shape immediately after (i.e. visually below) the given sibling in render order.

moveBefore(sibling)

Moves this shape immediately before (i.e. visually above) the given sibling in render order.

sendToBack()

Moves this shape to the bottom of the render stack within its parent (i.e. background).

Last updated: October 8, 2026 at 10:45 AMEdit this page