75 Commits

Author SHA1 Message Date
wass08
49c4794ecb fix item scale surface 2026-02-23 12:41:55 +09:00
wass08
6581e25e9f handle better item scales 2026-02-23 11:11:22 +09:00
wass08
d15f601107 item scale 2026-02-23 10:59:42 +09:00
wass08
4555325389 fix wall items wrong level + elevation 2026-02-23 08:43:38 +09:00
wass08
d819249d07 fix level window tools 2026-02-20 18:34:49 +09:00
wass08
ce41228e58 fix level move / create item 2026-02-20 18:30:20 +09:00
wass08
33c81045bb duplicate item 2026-02-20 18:06:59 +09:00
wass08
96865a8ce7 window move tool + duplicate 2026-02-20 17:24:52 +09:00
wass08
e8fcc840d5 surface placement 2026-02-18 16:26:17 +09:00
wass08
c0676f684e item surfaces 2026-02-18 16:06:23 +09:00
wass08
5d61e60f95 free mode for slabs and ceiling 2026-02-18 14:00:28 +09:00
wass08
be013d26e5 window panel 2026-02-18 13:14:55 +09:00
wass08
dd5f63df64 wall tool draft 2026-02-17 16:22:45 +09:00
wass08
101db7b34d free placement 2026-02-17 13:22:17 +09:00
wass08
d833245fbf esc key cancel tool 2026-02-17 12:29:00 +09:00
wass08
e6442ad473 adding missing sounds 2026-02-16 09:31:34 +09:00
wass08
052efea2cb polished placements 2026-02-16 09:12:04 +09:00
wass08
13070a5630 ceiling holes 2026-02-16 08:59:28 +09:00
wass08
29e7fa09ef slab holes 2026-02-12 10:41:37 +09:00
wass08
ae3af4318e better placing tools 2026-02-12 10:17:22 +09:00
wass08
be7e86975e radio & sfx 2026-02-12 08:57:37 +09:00
wass08
80cb039f86 fix elevation for item creation 2026-02-10 13:48:58 +09:00
wass08
6ec6a55b05 fix elevation issue 2026-02-10 10:04:14 +09:00
wass08
9a838ae3c4 fix build 2026-02-09 16:14:39 +09:00
wass08
cba709cb81 bring back site edition + zindex fix 2026-02-09 16:11:50 +09:00
wass08
bfe685b011 fix polygon editor edition + events propagation 2026-02-09 13:38:12 +09:00
wass08
f2c1da1655 simplify poligon editor / boundaries editor 2026-02-09 12:48:35 +09:00
wass08
81f132611e remove custom raycasters 2026-02-09 12:23:38 +09:00
Aymeric Rabot
7a871be792 Add slab polygon editing with drag, add, and delete vertices
Reuse the shared PolygonEditor for slab boundary editing with levelY
and surfaceHeight support. Handles render as 3D cylinders that adapt
to slab thickness. Prevent deselection after drag by suppressing
grid:click propagation, and reset preview state on undo/redo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:49:53 -05:00
Aymeric Rabot
31a560e2c5 Use raycast cursor & level Y fallback
Ceiling and slab tools: switch cursor tracking to per-frame raycasting onto a level plane (useFrame) instead of relying on grid:move events, and memoize Raycaster/Plane to reduce allocations. Update line geometry updates to be performed imperatively from the frame loop, ensure previews only trigger React updates when the snapped display position changes, and keep cursor/preview snapping consistent with user-visible pointer. Add sceneRegistry-based fallback to resolve a level's Y position (used by Grid, CeilingTool and SlabTool) when the level mesh isn't registered yet, computing Y from level node data and viewer levelMode. Misc: import/add necessary three.js types and small refactors to visibility/reset logic.
2026-02-07 11:58:17 -05:00
wass08
74b70b7877 wall snapping to 45° 2026-02-05 15:20:21 +09:00
wass08
40e3ce8d84 site boundary editor 2026-02-05 15:07:49 +09:00
wass08
73dfac795a fix placement 2026-02-02 11:39:38 +09:00
wass08
72a0e3952a slab panel 2026-02-02 11:17:47 +09:00
Aymeric Rabot
6c99851006 Refactor asset types and improve UI primitives
Replaces usage of the Asset type with AssetInput across editor components and hooks for consistency with core types. Adds default dimensions fallback for asset placement logic. Refactors UI primitives (button, sidebar, opacity control) to support forwarding refs and asChild prop, and updates imports for primitives. Updates Radix UI dependencies in package.json and bun.lock.
2026-01-30 22:01:25 -05:00
wass08
fe4ca47193 fix furnish node 2026-01-30 10:13:14 +09:00
wass08
9501971c80 fix drag zone issue 2026-01-29 13:25:16 +09:00
wass08
f1a61350c7 roof 2026-01-29 12:52:35 +09:00
wass08
f4125db6a8 control bar 2026-01-29 10:14:40 +09:00
wass08
247180ebf9 push item when placing 2026-01-29 07:27:07 +09:00
wass08
10ef50f186 fix attach items 2026-01-29 07:17:25 +09:00
wass08
3b690038d7 move tool undo stack 2026-01-28 11:43:35 +09:00
wass08
82a18de88c move + item corrections 2026-01-28 10:54:12 +09:00
wass08
f50f7d105b fix undo / redo for item tool 2026-01-28 09:21:08 +09:00
wass08
dee61700b9 fix mechanism 2026-01-28 08:47:36 +09:00
wass08
8646cc8748 refacto item-tool 2026-01-28 07:47:47 +09:00
wass08
e27028a29a working ceiling items 2026-01-28 06:55:56 +09:00
wass08
6bd34762e5 draft attach item to ceiling 2026-01-28 06:46:03 +09:00
wass08
150a0a4ca1 ceiling rendering + tools fix 2026-01-27 09:36:11 +09:00
wass08
e3e3602d91 ceiling 2026-01-27 09:25:40 +09:00