@bimetal/whiteboard-data
v0.39.0
Published
Whiteboard-domain event-sourcing: Canvas-as-Aggregate (free-placed shapes are ONE aggregate with hard invariants — finite coordinates, width/height > 0, a z-order that is a permutation of the shape pool, a prototype-safe shape pool). Commands/events, whit
Maintainers
Readme
@bimetal/whiteboard-data
Whiteboard-domain event sourcing — the data layer (aggregate + projection + store)
of the @bimetal/whiteboard component family. This package has no UI;
the UI lives in @bimetal/whiteboard-*-components.
Canvas-as-Aggregate: freely placed shapes are ONE aggregate with hard invariants — finite coordinates, width/height > 0, and a z-order that is a genuine permutation of the shape pool (never a stale index list).
Installation
npm install @bimetal/whiteboard-dataWhat's Inside
Commands and domain events, whiteboardAggregate,
whiteboardProjection and createWhiteboardStore — built on
@bimetal/event-sourcing.
