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 the currently integrated PR_26133_101 state as the prior reference. The prior delta ZIP `tmp/PR_26133_101-object-vector-zoom-and-layout-fixes_delta.zip` was not present locally.
6
+
- Limited changes to the Object Vector Studio V2 scale-anchor correction and focused Playwright coverage.
7
+
8
+
## Implementation
9
+
- Removed the prior zoom-anchoring/preview-state workaround from `ToolStarterApp.js`:
10
+
-`objectScalePreviewValues`
11
+
-`currentObjectScalePreviewValue`
12
+
-`transformWithRelativeScaleAroundPivot`
13
+
- Replaced it with object scale math based on current per-shape transforms:
14
+
- Object Scale input derives from the selected object shape transforms.
15
+
- Applying Object Scale computes each shape's current scale ratio against the requested scale.
16
+
- Each shape origin is moved around the object pivot by that ratio, then `scaleX`/`scaleY` are set to the requested uniform scale.
17
+
- Kept PR_26133_101 zoom/layout behavior intact, including `MAX_ZOOM = 1.0`.
- Only CRLF warning for the existing Playwright test file.
29
+
30
+
## Scale / Zoom Notes
31
+
- The object preview zoom contract from PR_26133_101 was not reworked.
32
+
- The anchoring fix is now in Object Scale behavior: repeated object scale changes derive from each shape's actual current transform instead of a separate preview tracking map.
33
+
- The focused Playwright assertions verify the prior preview-state helper is gone and that object scale offsets follow the requested scale rather than compounding from stale preview state.
34
+
35
+
## Manual Verification Guidance
36
+
- Open Object Vector Studio V2 with the Asteroids ship object selected.
37
+
- Use Object Transform scale repeatedly, for example `1.10` then `1.09`.
38
+
- Verify flame/inner line shapes remain anchored to the bottom hull lines instead of drifting upward.
39
+
- Verify preview zoom still reaches the PR_26133_101 max zoom behavior and Tools/fullscreen layout remains usable.
},okMessage||`OK Object scale preview set to ${this.formatScaleInputValue(scale)} for ${object?.name||"selected object"}.`,"Object Transform scale failed schema validation");
0 commit comments