moon_excalidraw
A MoonBit renderer for Excalidraw files. Left: this library, compiled to JavaScript.
Right: the official exportToSvg from @excalidraw/excalidraw 0.18.1.
The page checks whether the two SVGs are the same, byte for byte.
Source on GitHub.
or drop a .excalidraw file here
Loading…
moon_excalidraw (MoonBit, compiled to JS)
SVG source
Excalidraw (official exportToSvg 0.18.1)
SVG source
- The left side only calls the compiled MoonBit module (
moon_excalidraw.js). The official package is loaded separately and only draws the right side. - Both sides are asked for SVG without embedded fonts, because the official export inlines fonts as base64, which this library does not copy. Text in the previews uses your browser's fallback font.
- Both sides measure text with the same fixed width (7 px per character, the metric the test suite uses). It only matters for frame titles, the one thing the export measures itself.
- Everything runs in your browser. Files you choose are not uploaded.