Running the example
cd svelte-demo npm install npm run dev
Using the example Svelte component is a simple as:
<script> import GCodePreview from './lib/GCodePreview.svelte'; </script> <GCodePreview src={'benchy.gcode'} />