You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Read `docs/dev/PROJECT_INSTRUCTIONS.md` before implementation.
5
+
- Used `tmp/PR_26133_102-object-vector-scale-anchor-fix_delta.zip` as the prior reference.
6
+
- Kept changes limited to Object Vector Studio V2 snap/drag coordinate correction and focused Workspace V2 coverage.
7
+
8
+
## Implementation
9
+
- Fixed geometry point drag snapping so handle movement is target-based instead of `original point + snapped pointer delta`.
10
+
- Geometry point and line endpoint drags now:
11
+
- preserve the pointer grab offset from the transformed handle point,
12
+
- snap the intended handle target through Snap Grid / Snap Point / Snap None,
13
+
- convert the snapped world/object point back through the original shape transform with `localPointFromTransformedPoint`,
14
+
- update the underlying local geometry so the visible grabbed point lands on the exact snap target.
15
+
- This corrects off-grid start overshoot and transformed shape scale/zoom mapping drift.
16
+
- Point coordinate UI rows now render fixed three-decimal values such as `47.000` for snapped whole-number coordinates while stored geometry remains numeric.
17
+
18
+
## Playwright Impact
19
+
Playwright impacted: Yes.
20
+
21
+
Validated behavior:
22
+
- Snap Grid point drag from an off-grid polygon point lands exactly on whole-number coordinates.
23
+
- Dragged polygon point row displays snapped coordinates as fixed three-decimal values.
24
+
- Scaled line endpoint drag converts cursor movement through the shape transform so the rendered endpoint lands exactly on the snapped target.
25
+
- Existing preview coordinate grid mapping, mouse editing, and dirty-state flows continue to pass.
26
+
27
+
Expected pass behavior:
28
+
- The dragged point tracks the cursor target and snaps without overshoot.
29
+
- Transformed/scaled endpoints visually land on the snapped grid coordinate.
30
+
- Workspace V2 suite remains green.
31
+
32
+
Expected fail behavior:
33
+
- A regression would leave polygon point values offset from the snap point, or a scaled line endpoint rendered away from the snapped target.
-`npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=list -g "edits Object Vector Studio V2 preview shapes with mouse actions and tile delete controls|maps Object Vector Studio V2 preview coordinates directly to visible grid lines"`
40
+
- Result: 2 passed.
41
+
- PASS: targeted dirty-state validation:
42
+
-`npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=list -g "tracks Object Vector Studio V2 dirty state through persisted edits and save outcomes"`
0 commit comments