@elixpo/lixsketch 5.4.4 → 5.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elixpo/lixsketch",
3
- "version": "5.4.4",
3
+ "version": "5.4.5",
4
4
  "description": "Open-source SVG whiteboard engine with hand-drawn aesthetics — the core of LixSketch",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -43,6 +43,12 @@ export function createSketchEngine(svgElement, options = {}) {
43
43
  return new SketchEngine(svgElement, options);
44
44
  }
45
45
 
46
+ // Scene serialization helpers — for embedded consumers (e.g. blogs.elixpo) that
47
+ // need to round-trip a scene through their own storage. saveScene reads from
48
+ // window.shapes (populated by an active engine); loadScene rebuilds shapes onto
49
+ // the active engine's SVG. Both must be called after engine.init() completes.
50
+ export { saveScene, loadScene } from './core/SceneSerializer.js';
51
+
46
52
  // Tool name constants
47
53
  export const TOOLS = {
48
54
  SELECT: 'select',