Commit Graph

5472 Commits

Author SHA1 Message Date
c03ee5760d Implement utility to extract terrain grid resize side from object hierarchy 2026-05-13 14:45:34 +02:00
1568d7254e Sync terrain grid resize overlay when brush is inactive or tool is not 'select' 2026-05-13 14:45:34 +02:00
ff5dc86645 Sync terrain grid resize overlay when updating document 2026-05-13 14:44:14 +02:00
bf93704f5c Sync terrain grid resize overlay after drag cancellation or completion 2026-05-13 14:44:14 +02:00
1dfee22b31 Refactor terrain grid resize visualization and edge handling 2026-05-13 14:43:33 +02:00
a0cd88a5bb auto-git:
[change] src/viewport-three/viewport-host.ts
2026-05-13 14:42:10 +02:00
2abebea105 Refactor resource disposal for terrain grid resize arrow visuals 2026-05-13 14:41:26 +02:00
3c16d779c0 Adjust render order for terrain grid resize edge line 2026-05-13 14:41:26 +02:00
8c04469839 Implement terrain grid resize arrow visualization 2026-05-13 14:40:49 +02:00
ad63d899a0 Refactor terrain grid resize gizmo: Update edge components and implement dynamic arrow generation 2026-05-13 14:40:26 +02:00
6b2cb1d6a8 Refactor terrain grid resize arrow visualization by replacing meshes with placeholder arrays 2026-05-13 14:40:04 +02:00
01ab9ab16c Add constants for terrain grid resize arrow geometry and sides 2026-05-13 14:40:04 +02:00
3026b9fe6d Add interface for terrain grid resize arrow visualization components 2026-05-13 14:39:24 +02:00
f4b0b0b8e5 Update terrain grid resize visualization constants 2026-05-13 14:38:32 +02:00
e463f7f477 Refactor and improve geometry for terrain resize indicators, including edge outlines, arrow shafts, and arrow heads. 2026-05-13 14:36:31 +02:00
14f8f0feac Dispose resources for terrain grid resizing components 2026-05-13 14:35:51 +02:00
e3bdc61e77 auto-git:
[change] src/viewport-three/viewport-host.ts
2026-05-13 14:35:34 +02:00
a8752a626a Update constants for terrain grid resize visualization 2026-05-13 14:35:17 +02:00
2393fb2d53 Add CatmullRomCurve3 and TubeGeometry imports 2026-05-13 14:35:16 +02:00
c54e29b3ee Add constants for terrain grid resizing visualization 2026-05-13 14:29:15 +02:00
610f325196 Refactor edge distance calculation for terrain grid resizing 2026-05-13 14:27:03 +02:00
2ce6723c6d Make onTerrainGridResizeCommit optional in ViewportPanel 2026-05-13 14:27:03 +02:00
81a470e72e Add terrain grid resize commit handler to ViewportCanvas and App 2026-05-13 14:27:03 +02:00
50a76f800e Implement logic to handle and commit terrain grid resizing 2026-05-13 14:26:30 +02:00
26d8ea434c auto-git:
[change] src/viewport-three/viewport-host.ts
2026-05-13 14:26:02 +02:00
32df27beb0 Implement and add terrain grid resize gizmo visualization 2026-05-13 14:25:13 +02:00
ad252c7d71 Add state and handlers for terrain grid resizing in ViewportHost 2026-05-13 14:25:13 +02:00
64d058566c Add terrain grid resize visualization components 2026-05-13 14:24:50 +02:00
685a3e46d9 Add handler for terrain grid resize commits in ViewportPanel 2026-05-13 14:24:34 +02:00
81693069e6 Implement terrain grid resize commit handling in ViewportCanvas 2026-05-13 14:24:34 +02:00
00a5ec76ff Implement and refine terrain grid resize drag handling across pointer events 2026-05-13 14:23:23 +02:00
c3466517d9 Prioritize active terrain grid resize preview when retrieving terrain by ID 2026-05-13 14:23:23 +02:00
93cd4da396 Initialize and sync terrain grid resize state in ViewportHost 2026-05-13 14:22:08 +02:00
402754433d auto-git:
[change] src/viewport-three/viewport-host.ts
2026-05-13 14:21:01 +02:00
88c1e9f7a0 Add setter for terrain grid resize commit handler 2026-05-13 14:21:01 +02:00
b21614864f Dispose terrain grid resize components on cleanup 2026-05-13 14:21:01 +02:00
f88905eeaa auto-git:
[change] src/viewport-three/viewport-host.ts
2026-05-13 14:20:46 +02:00
79e7a1968b auto-git:
[change] src/viewport-three/viewport-host.ts
2026-05-13 14:20:46 +02:00
7e0e78b511 auto-git:
[add] tests/unit/terrain-grid-resize-controls.test.ts
2026-05-13 14:20:46 +02:00
4d7694e1f5 auto-git:
[add] src/viewport-three/terrain-grid-resize-controls.ts
2026-05-13 14:20:46 +02:00
c1270a9842 Improve formatting and readability in terrain calculation functions 2026-05-13 14:14:16 +02:00
2aae3dff27 feat(tests): Add comprehensive test coverage for terrain resizing logic 2026-05-13 14:13:04 +02:00
f96cd18ecc Implement directional control for terrain resizing (X and Z axes) 2026-05-13 14:12:07 +02:00
3e2808f18a Support terrain grid resize directions for terrain manipulation functions 2026-05-13 14:11:21 +02:00
215569cf96 Refactor terrain resampling to calculate source coordinates based on target position 2026-05-13 14:10:25 +02:00
419e125ca0 Add types, constants, and normalization functions for terrain grid resize directions 2026-05-13 14:09:52 +02:00
d702cdfdf9 Refactor App component and update terrain-related tests 2026-05-13 13:59:25 +02:00
6f64954ee0 auto-git:
[change] src/app/App.tsx
 [change] tests/domain/terrains.test.ts
 [change] tests/unit/terrain-foundation.integration.test.tsx
2026-05-13 13:59:02 +02:00
17f64bd424 Refactor: Improve code readability and formatting across terrain utility functions 2026-05-13 13:58:16 +02:00
511286307d Fix expected sampleCountZ value in terrain foundation integration test 2026-05-13 13:57:08 +02:00