ShapeContainerMixin.createEllipse

Creates a new ellipse shape in this container

ShapeContainerMixin.createEllipse() method

Creates a new ellipse shape in this container

Signature:

createEllipse(opts?: EllipseOptions): Ellipse;

Parameters

Parameter

Type

Description

opts

EllipseOptions

(Optional) Optional configuration for the ellipse

Returns:

Ellipse

The newly created ellipse

Example

// Create an ellipse shape
const ellipse = await layer.createEllipse({
  position: { x: 100, y: 100 },
  size: { width: 200, height: 100 },
});
Last updated: August 5, 2026 at 11:47 AMEdit this page