@widgetic/canvas
v0.5.14
Published
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
Readme
This is a regular Widgetic Frontend project created with SvelteKit.
Everything you need to build a Svelte project, powered by sv.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create my-appDeveloping
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openBuilding
To create a production version of your app:
npm run buildYou can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
Text Tool Improvements (2025-10-29)
- Configure
fabric.Textboxwith TLdraw-like border and selection colours using native Fabric properties (borderColor,editingBorderColor,selectionColor, etc.) without introducing extra overlay objects. - Simplified the edit lifecycle: Fabric now handles hover/edit visuals, while we ensure placeholders restore after
editing:exitedand outside clicks callexitEditing(). - Kept textbox focusing logic lightweight—just focus the hidden textarea and rely on Fabric’s built-in selection/caret behaviour.
- Resolved previous lint warnings in
src/lib/canvas/tools/ToolController.tsby tightening event typings and removing unused overlay helpers.
