Skip to content

v1.2.1

Latest

Choose a tag to compare

@retrotheft retrotheft released this 22 May 01:17
· 2 commits to main since this release

1.2.0 update: introduces Attachments for setting up HTML Canvas. Hook up your draw function, run an init function and even keep the canvas scaled to its container, all with {@Attach ... } call.

Refer to the below Svelte Playground for instructions on how to use.

Svelte Playground

[1.2.1] - 2025-05-22

Fixed

  • fixed context-specific function type declarations

Removed

  • removed unused canvas/index.ts file and exports

[1.2.0] - 2025-05-22

Added

  • added Attachments as introduced in Svelte 5.29

Changed

  • rebuilt project as a SvelteKit library (was previously manually set up with svelte-package)
  • exported Loop class
  • cleaned up JSDoc and switched to typescript