# DrawingAction

The DrawingAction type declaration and related types. Optional fields are marked with ?.

Canonical: https://chart.syidax.com/docs/types/DrawingAction/

<a id="declaration"></a>

## Type declaration

```typescript
export type DrawingAction =
  | { type: 'add'; drawing: StockDrawingInput }
  | { type: 'update'; id: string; patch: Partial<Omit<StockDrawing, 'id'>> }
  | { type: 'move'; id: string; deltaTime: number; deltaPrice: number }
  | { type: 'remove'; id: string }
  | { type: 'clear' }
  | { type: 'set'; drawings: ReadonlyArray<StockDrawingInput> };
```

<a id="related"></a>

## Related types

- [StockDrawingInput](https://chart.syidax.com/docs/types/StockDrawingInput.md)
- [StockDrawing](https://chart.syidax.com/docs/types/StockDrawing.md)
