Leopoldadmin 7ad0e11873 fix: element creation fails with empty layer_id (FOREIGN KEY constraint)
Three fixes:
1. interaction/index.ts: Add layerId to created element in confirmDraw()
2. CanvasArea.tsx: Sync layers to LayerManager via layerManagerRef
3. App.tsx: Fallback to activeLayerId in handleElementCreated if layerId missing

Root cause: LayerManager.activeLayerId was empty because layers were never
synced from React state to the interaction layer LayerManager. New elements
got layer_id="" which failed SQLite FOREIGN KEY constraint.

Also includes Yjs sync race condition fix from previous commit.
2026-06-26 20:31:50 +02:00

Web CAD Neu

Web-basiertes 2D-CAD für Event-Bestuhlungspläne.

Stack

  • Frontend: React + TypeScript + Vite + HTML Canvas
  • Backend: Node.js + TypeScript + Fastify + SQLite
  • Collaboration: Yjs CRDT

Entwicklung

npm install
npm run dev

Docker

docker-compose up --build
S
Description
Web-basiertes 2D-CAD für Event-Bestuhlungspläne
Readme 3.6 MiB
Languages
TypeScript 80.1%
CSS 10.4%
HTML 8.1%
JavaScript 1.1%
Python 0.2%