From e03335be67b190d87158d1a11b2e7f2f7ae41bfd Mon Sep 17 00:00:00 2001 From: Pau Costa Date: Sat, 28 Mar 2026 17:47:32 +0100 Subject: [PATCH] Add rotation support for spaces in floorplan editor - Extend `Space` model and Prisma schema to include `rotation` property. - Update API services and DTOs to handle rotation data. - Add UI controls in `FloorplanEditor.svelte` for rotating spaces. - Refactor space rendering logic in both editor and viewer to support rotation. --- .idea/workspace.xml | 24 +++++-- apps/api/prisma/schema.prisma | 1 + apps/api/src/spaces/dto/update-space.dto.ts | 4 ++ apps/api/src/spaces/spaces.service.ts | 2 + .../src/lib/components/FloorplanViewer.svelte | 13 +++- .../components/admin/FloorplanEditor.svelte | 65 ++++++++++++++++--- 6 files changed, 92 insertions(+), 17 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b152a8f..9adc0b8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,14 @@