| 1 | export interface Input { |
| 2 | script: string; |
| 3 | } |
| 4 | export const meta = { title: "canvas" }; |
| 5 | |
| 6 | <const/{ script }=input> |
| 7 | |
| 8 | <canvas |
| 9 | id="canvas" |
| 10 | data-canvas=script |
| 11 | data-standalone="true" |
| 12 | style="position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;" |
| 13 | /> |
| 14 | <AddScript="file-viewer/scripts/canvas_" + script + ".client.ts"/> |
| 15 | |
| 16 | client import "./canvas.client.ts"; |
| 17 | |
| 18 | import { CloverScriptInclude as AddScript } from "#sitegen"; |