# DrawingAction

DrawingAction 타입 선언과 관련 타입입니다. 선택 필드는 ?로 표시됩니다.

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

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

## 타입 선언

```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>

## 관련 타입

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