ws.shapes
WorksheetShapeCollection
4 methods
get
→ Promise<ShapeHandle | null>get(id: string): Promise<ShapeHandle | null>;| Parameter | Type | Required |
|---|---|---|
| id | string | required |
add
→ Promise<ShapeHandle>add(config: ShapeConfig): Promise<ShapeHandle>;| Parameter | Type | Required |
|---|---|---|
| config | ShapeConfig | required |
getItemAt
→ Promise<ShapeHandle | null>getItemAt(index: number): Promise<ShapeHandle | null>;| Parameter | Type | Required |
|---|---|---|
| index | number | required |
Get a shape by zero-based index. Returns null if index is out of range.