ShapeContainerMixin

Mixin for nodes that can contain shapes and have styling properties.

ShapeContainerMixin interface

Mixin for nodes that can contain shapes and have styling properties.

Signature:

interface ShapeContainerMixin

Properties

Property

Modifiers

Type

Description

fills

readonly

ReadonlyArray<Paint>

Fill paints applied to shapes in this container

shapes

readonly

ReadonlyArray<Shape>

Child shapes contained in this container

strokes

readonly

ReadonlyArray<Stroke>

Strokes applied to shapes in this container

trimPaths

readonly

ReadonlyArray<TrimPath>

Trim paths applied to shapes in this container

Methods

Method

Description

createEllipse(opts)

Creates a new ellipse shape in this container

createFill(opts)

Adds a fill paint to this container

createGroup(opts)

Creates a new group containing the specified shapes

createPath(opts)

Creates a new path shape in this container

createPolygon(opts)

Creates a new polygon shape in this container

createRectangle(opts)

Creates a new rectangle shape in this container

createStar(opts)

Creates a new star shape in this container

createStroke(opts)

Adds a stroke to this container

createTrimPath(opts)

Creates a trim path in this container

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