@grida/svg-editor 1.0.0-alpha.1
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/LICENSE +201 -0
- package/README.md +831 -0
- package/dist/dom-CfP_ZURh.js +963 -0
- package/dist/dom-kA8NDuVh.mjs +929 -0
- package/dist/dom.d.mts +16 -0
- package/dist/dom.d.ts +16 -0
- package/dist/dom.js +3 -0
- package/dist/dom.mjs +2 -0
- package/dist/editor-B5z-gTML.mjs +1821 -0
- package/dist/editor-CTtU2gu4.d.ts +607 -0
- package/dist/editor-DQWUWrVZ.js +1833 -0
- package/dist/editor-JY7AQrR1.d.mts +607 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +2 -0
- package/dist/paint-DHq_3iwU.js +509 -0
- package/dist/paint-DuCg6Y-K.mjs +461 -0
- package/dist/react.d.mts +49 -0
- package/dist/react.d.ts +49 -0
- package/dist/react.js +97 -0
- package/dist/react.mjs +92 -0
- package/package.json +66 -0
package/dist/dom.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as SurfaceHandle, o as SvgEditor } from "./editor-JY7AQrR1.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/dom.d.ts
|
|
4
|
+
type DomSurfaceOptions = {
|
|
5
|
+
/** Mount the SVG inside this container. */container: HTMLElement;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Attach a DOM surface to a headless editor. Returns a `SurfaceHandle` whose
|
|
9
|
+
* `detach()` is the inverse — DOM cleared, listeners removed.
|
|
10
|
+
*
|
|
11
|
+
* Usage is one-shot per container: the surface owns the container's children
|
|
12
|
+
* for its lifetime, and `detach()` restores it to empty.
|
|
13
|
+
*/
|
|
14
|
+
declare function attach_dom_surface(editor: SvgEditor, options: DomSurfaceOptions): SurfaceHandle;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DomSurfaceOptions, attach_dom_surface };
|
package/dist/dom.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as SurfaceHandle, o as SvgEditor } from "./editor-CTtU2gu4.js";
|
|
2
|
+
|
|
3
|
+
//#region src/dom.d.ts
|
|
4
|
+
type DomSurfaceOptions = {
|
|
5
|
+
/** Mount the SVG inside this container. */container: HTMLElement;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Attach a DOM surface to a headless editor. Returns a `SurfaceHandle` whose
|
|
9
|
+
* `detach()` is the inverse — DOM cleared, listeners removed.
|
|
10
|
+
*
|
|
11
|
+
* Usage is one-shot per container: the surface owns the container's children
|
|
12
|
+
* for its lifetime, and `detach()` restores it to empty.
|
|
13
|
+
*/
|
|
14
|
+
declare function attach_dom_surface(editor: SvgEditor, options: DomSurfaceOptions): SurfaceHandle;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DomSurfaceOptions, attach_dom_surface };
|
package/dist/dom.js
ADDED
package/dist/dom.mjs
ADDED