ShapeContainerMixin.createStar
Creates a new star shape in this container
ShapeContainerMixin.createStar() method
Creates a new star shape in this container
Signature:
createStar(opts?: StarOptions): Star;Parameters
Parameter | Type | Description |
|---|---|---|
opts | (Optional) Optional configuration for the star |
Returns:
The newly created star
Example
// Create a star shape
const star = await layer.createStar({
position: { x: 100, y: 100 },
points: 5,
outerRadius: 50,
innerRadius: 25,
});Last updated: August 5, 2026 at 11:47 AMEdit this page