erste Funktionierende Fassung

This commit is contained in:
mistangl
2026-04-16 16:31:23 +02:00
parent f75eaa724c
commit 36e2d81843
9 changed files with 5214 additions and 20 deletions

View File

@@ -1,10 +1,18 @@
import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'
import './shapes/shape-types' // Type-Augmentation für Custom Shapes
import { PufferShapeUtil } from './shapes/PufferShapeUtil'
import { KreiselShapeUtil } from './shapes/KreiselShapeUtil'
import { ShapePanel } from './components/ShapePanel'
const customShapeUtils = [PufferShapeUtil, KreiselShapeUtil]
export default function App() {
return (
<div style={{ position: 'fixed', inset: 0 }}>
<Tldraw />
<Tldraw shapeUtils={customShapeUtils}>
<ShapePanel />
</Tldraw>
</div>
)
}