A high-performance vector artboard data model and operation kernel for Web/WASM built in MoonBit.
moon fmt
moon info
moon check --deny-warn
moon test --deny-warn
moon run src/main# Integration showcase
moon run src/main
# Deterministic query → render → Canvas → JSON benchmark
moon run cmd/bench --target wasm-gcArtboardDocument
│
├── traversal + validation + world bounds
│ │
│ ├── GridSpatialIndex / hit testing
│ └── Viewport culling
│
└── RenderPlan
├── Canvas 2D command stream
├── SVG exporter
└── host-specific renderer| Sample nodes | Iterations | Total (µs) | Average (µs) | Checksum |
|---|---|---|---|---|
| 32 | 64 | 31,236.4 | 488.06875 | 1069760 |
| 256 | 24 | 557,916.9 | 23246.537500000002 | 3192672 |
| 1024 | 8 | 4,725,333.6 | 590666.7 | 4264920 |
moon fmt --check
moon check --deny-warn
moon test --deny-warnpwsh -NoProfile -File scripts/count-moonbit-lines.ps1A high-performance vector artboard data model and operation kernel for Web/WASM built in MoonBit.