Commit Graph

7 Commits

Author SHA1 Message Date
Doruk Kavcioglu 42794345ad Preserve Unicode text slots during Lottie saves
CanvasKit's getTextSlot mangles non-ASCII text (mojibake on save), so
read text slot values from the source JSON plus an in-memory overrides
map instead of off the animation. Edits now write to both the slot
document and its bound layer fallback.

- canvas.tsx: track text edits in a textOverrides signal, derive slots
  from sourceDoc + overrides, reset overrides when the scene reloads,
  and bail out of save on a failed HTTP response
- lottie.ts: add readTextSlotValue/writeTextSlotValue and export
  LottieDoc; cover slot document and bound-layer shapes
- add scripts/text-slot-unicode.test.mjs and a check:text-slots script
2026-06-30 23:30:17 +03:00
konstantin-paulus 10a306550e Update package version to 1.0.0 2026-06-15 16:25:26 +02:00
konstantin-paulus b3c620a081 Add fflate dependency and enhance Lottie JSON handling in SidebarRight
- Introduced "fflate" dependency for improved compression handling.
- Updated SidebarRight to utilize new commitSource function for saving Lottie JSON edits.
- Refactored Lottie JSON structure for better readability and maintainability.
- Implemented server middleware to handle Lottie JSON updates, ensuring the source of truth is maintained.
2026-06-14 15:04:01 +02:00
konstantin-paulus 44f6b416fa Refactor project structure and update dependencies
- Updated .gitignore to include new build and environment files.
- Upgraded dependencies in package.json and bun.lock, including major updates for canvaskit-wasm and tailwind-merge.
- Removed outdated package-lock.json and tsconfig files.
- Replaced React with Solid.js for improved performance and reactivity.
- Introduced new components and updated the app structure for better organization.
- Added new SVG icons and fonts for enhanced UI.
- Updated index.html and CSS for improved styling and layout consistency.
2026-06-13 18:34:02 +02:00
konstantin-paulus ce3d2a0d18 Add LICENSE file and update project metadata
- Introduced a LICENSE file with MIT licensing terms.
- Renamed project from "lottie-experiments" to "text-to-lottie" in package.json.
- Added license information to package.json.
- Updated README.md to reflect project name change and improved usage instructions.
- Revised SKILL.md to clarify the authoring process for Lottie files.
2026-06-08 16:48:24 +02:00
konstantin-paulus d4ed519058 Update PropertiesPanel to replace Slider with Scrubber for enhanced value control and add motion library dependency in package.json. 2026-06-03 19:16:59 +02:00
konstantin-paulus 9b5f21bbab Initialize lottie-experiments project with Vite, React, and TypeScript setup. Add essential files including package.json, tsconfig, and README. Implement Lottie animation player using CanvasKit, along with UI components for playback controls. Include styles with Tailwind CSS and setup build configurations. 2026-06-03 16:01:43 +02:00