@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.
- package/package.json +1 -1
- package/src/index.js +6 -0
package/package.json
CHANGED
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',
|