@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.
Files changed (33) hide show
  1. package/dist/lib/node-tools/highlight/clearHighlightFrame.d.ts +1 -1
  2. package/dist/lib/node-tools/highlight/createCornerHandles.d.ts +1 -0
  3. package/dist/lib/node-tools/highlight/createHighlightFrame.d.ts +1 -1
  4. package/dist/lib/node-tools/highlight/createToolsContainer.d.ts +1 -1
  5. package/dist/lib/node-tools/highlight/helpers/getHighlightFrameElement.d.ts +1 -1
  6. package/dist/lib/node-tools/highlight/helpers/getScreenBounds.d.ts +6 -0
  7. package/dist/lib/node-tools/highlight/highlightNode.d.ts +1 -1
  8. package/dist/lib/node-tools/highlight/updateHighlightFrameVisibility.d.ts +1 -1
  9. package/dist/lib/node-tools/select/helpers/isComponentInstance.d.ts +1 -0
  10. package/dist/lib/node-tools/select/helpers/isInsideComponent.d.ts +1 -0
  11. package/dist/node-edit-utils.cjs.js +300 -159
  12. package/dist/node-edit-utils.esm.js +300 -159
  13. package/dist/node-edit-utils.umd.js +300 -159
  14. package/dist/node-edit-utils.umd.min.js +1 -1
  15. package/dist/styles.css +1 -1
  16. package/package.json +1 -1
  17. package/src/lib/canvas/createCanvasObserver.ts +8 -6
  18. package/src/lib/node-tools/createNodeTools.ts +27 -24
  19. package/src/lib/node-tools/events/click/handleNodeClick.ts +1 -1
  20. package/src/lib/node-tools/highlight/clearHighlightFrame.ts +7 -8
  21. package/src/lib/node-tools/highlight/createCornerHandles.ts +31 -0
  22. package/src/lib/node-tools/highlight/createHighlightFrame.ts +45 -24
  23. package/src/lib/node-tools/highlight/createToolsContainer.ts +4 -1
  24. package/src/lib/node-tools/highlight/helpers/getHighlightFrameElement.ts +2 -4
  25. package/src/lib/node-tools/highlight/helpers/getScreenBounds.ts +16 -0
  26. package/src/lib/node-tools/highlight/highlightNode.ts +28 -5
  27. package/src/lib/node-tools/highlight/refreshHighlightFrame.ts +114 -11
  28. package/src/lib/node-tools/highlight/updateHighlightFrameVisibility.ts +5 -5
  29. package/src/lib/node-tools/select/helpers/isComponentInstance.ts +3 -0
  30. package/src/lib/node-tools/select/helpers/isInsideComponent.ts +18 -0
  31. package/src/lib/node-tools/select/selectNode.ts +5 -1
  32. package/src/lib/post-message/processPostMessage.ts +0 -6
  33. package/src/lib/styles/styles.css +57 -21
@@ -1 +1 @@
1
- export declare const clearHighlightFrame: (nodeProvider: HTMLElement | null) => void;
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, nodeProvider: HTMLElement) => 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(nodeProvider: HTMLElement): HTMLElement | null;
1
+ export declare function getHighlightFrameElement(): SVGSVGElement | null;
@@ -0,0 +1,6 @@
1
+ export declare function getScreenBounds(element: HTMLElement): {
2
+ top: number;
3
+ left: number;
4
+ width: number;
5
+ height: number;
6
+ };
@@ -1 +1 @@
1
- export declare const highlightNode: (node: HTMLElement | null, nodeProvider: HTMLElement) => void;
1
+ export declare const highlightNode: (node: HTMLElement | null) => void;
@@ -1 +1 @@
1
- export declare const updateHighlightFrameVisibility: (node: HTMLElement, nodeProvider: HTMLElement) => void;
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;