Correct snapping offsets after canvas transformation when using snap-reliant tools (#1370)

* fix: pen, spline tool incorrect snap offsets
- re-render snapping offsets if canvas transformed during line draw

* [wip]feat: add CanvasTransformed global message

* [wip]fix: synchronize line tool snap offsets

* fix: update offsets for shape tools on canvas transform

* chore: remove unneeded function parameter

* [wip]fix: use line tool at canvas level

* refactor: revert line tool changes
This commit is contained in:
Dhruv
2023-08-11 12:26:19 -07:00
committed by Keavon Chambers
parent 2377240d07
commit 1c11ebcc4e
11 changed files with 53 additions and 1 deletions
@@ -6,6 +6,7 @@ use serde::{Deserialize, Serialize};
#[impl_message(Message, BroadcastMessage, TriggerEvent)]
pub enum BroadcastEvent {
DocumentIsDirty,
CanvasTransformed,
ToolAbort,
SelectionChanged,
WorkingColorChanged,