Documentation / @finchart/tools / DrawingSelectionChange
Interface: DrawingSelectionChange
Defined in: tools/src/tools.ts:135
선택이 바뀌었다. changes와 따로 있는 이유는 계약이다 — 선택은 목록이 아니라 세션의 상태이고 직렬화에 안 실린다. DrawingsChange.reason에 얹으면 if (reason !== "move") saveDrawings() 같은 저장 레시피가 선택 클릭마다 저장하게 된다.
Properties
handle
handle:
DrawingHandle|null
Defined in: tools/src/tools.ts:145
그 드로잉의 손잡이 — remove()·select()에 그대로 쓴다. 해제면 null.
selection()은 복사본이라 값으로만 손잡이를 되찾을 수 있는데, 같은 값 도형이 둘이면 위치 판정(gripAt, 뒤엣것)과 값 비교(앞엣것)가 어긋나 가리킨 적 없는 도형이 지워질 수 있다 — 알림에 신원을 함께 실어 막는다.
selection
selection:
Drawing|null
Defined in: tools/src/tools.ts:137
지금 선택된 것의 복사본. 없으면 null.