@node-edit-utils/core 2.1.8 → 2.2.0
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/dist/lib/node-tools/highlight/clearHighlightFrame.d.ts +1 -1
- package/dist/lib/node-tools/highlight/createCornerHandles.d.ts +1 -0
- package/dist/lib/node-tools/highlight/createHighlightFrame.d.ts +1 -1
- package/dist/lib/node-tools/highlight/createToolsContainer.d.ts +1 -1
- package/dist/lib/node-tools/highlight/helpers/getHighlightFrameElement.d.ts +1 -1
- package/dist/lib/node-tools/highlight/helpers/getScreenBounds.d.ts +6 -0
- package/dist/lib/node-tools/highlight/highlightNode.d.ts +1 -1
- package/dist/lib/node-tools/highlight/updateHighlightFrameVisibility.d.ts +1 -1
- package/dist/lib/node-tools/select/helpers/isComponentInstance.d.ts +1 -0
- package/dist/lib/node-tools/select/helpers/isInsideComponent.d.ts +1 -0
- package/dist/node-edit-utils.cjs.js +300 -159
- package/dist/node-edit-utils.esm.js +300 -159
- package/dist/node-edit-utils.umd.js +300 -159
- package/dist/node-edit-utils.umd.min.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/lib/canvas/createCanvasObserver.ts +8 -6
- package/src/lib/node-tools/createNodeTools.ts +27 -24
- package/src/lib/node-tools/events/click/handleNodeClick.ts +1 -1
- package/src/lib/node-tools/highlight/clearHighlightFrame.ts +7 -8
- package/src/lib/node-tools/highlight/createCornerHandles.ts +31 -0
- package/src/lib/node-tools/highlight/createHighlightFrame.ts +45 -24
- package/src/lib/node-tools/highlight/createToolsContainer.ts +4 -1
- package/src/lib/node-tools/highlight/helpers/getHighlightFrameElement.ts +2 -4
- package/src/lib/node-tools/highlight/helpers/getScreenBounds.ts +16 -0
- package/src/lib/node-tools/highlight/highlightNode.ts +28 -5
- package/src/lib/node-tools/highlight/refreshHighlightFrame.ts +114 -11
- package/src/lib/node-tools/highlight/updateHighlightFrameVisibility.ts +5 -5
- package/src/lib/node-tools/select/helpers/isComponentInstance.ts +3 -0
- package/src/lib/node-tools/select/helpers/isInsideComponent.ts +18 -0
- package/src/lib/node-tools/select/selectNode.ts +5 -1
- package/src/lib/post-message/processPostMessage.ts +0 -6
- package/src/lib/styles/styles.css +57 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const clearHighlightFrame: (
|
|
1
|
+
export declare const clearHighlightFrame: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createCornerHandles: (group: SVGGElement, width: number, height: number, isInstance?: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createHighlightFrame: (node: HTMLElement,
|
|
1
|
+
export declare const createHighlightFrame: (node: HTMLElement, isInstance?: boolean) => SVGSVGElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createToolsContainer: (node: HTMLElement, highlightFrame: HTMLElement) => void;
|
|
1
|
+
export declare const createToolsContainer: (node: HTMLElement, highlightFrame: HTMLElement, isInstance?: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getHighlightFrameElement(
|
|
1
|
+
export declare function getHighlightFrameElement(): SVGSVGElement | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const highlightNode: (node: HTMLElement | null
|
|
1
|
+
export declare const highlightNode: (node: HTMLElement | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const updateHighlightFrameVisibility: (node: HTMLElement
|
|
1
|
+
export declare const updateHighlightFrameVisibility: (node: HTMLElement) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isComponentInstance: (element: Element) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isInsideComponent: (element: Element) => boolean;
|