@visualli/react 0.1.5 → 0.1.7
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/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/VisualliCanvas.tsx +3 -1
package/dist/index.cjs
CHANGED
|
@@ -2115,7 +2115,7 @@ function getRootLayerId(doc) {
|
|
|
2115
2115
|
return doc.layers.keys().next().value ?? null;
|
|
2116
2116
|
}
|
|
2117
2117
|
function VisualliCanvas(props) {
|
|
2118
|
-
const { isDark = false, chromaticImmersion = false, onNodeClick, onLayerChange, renderOverlay, renderNodeContent, navigationStackTop = "16px", navigationStackLeft = "16px", className = "", style } = props;
|
|
2118
|
+
const { isDark = false, chromaticImmersion = false, onNodeClick, onLayerChange, onNodeHover, renderOverlay, renderNodeContent, navigationStackTop = "16px", navigationStackLeft = "16px", className = "", style } = props;
|
|
2119
2119
|
const [fileText, setFileText] = (0, import_react14.useState)(void 0);
|
|
2120
2120
|
(0, import_react14.useEffect)(() => {
|
|
2121
2121
|
if (!props.visualliFile) {
|
|
@@ -2674,6 +2674,7 @@ function VisualliCanvas(props) {
|
|
|
2674
2674
|
if (hovered !== pointerNodeIdRef.current) {
|
|
2675
2675
|
pointerNodeIdRef.current = hovered;
|
|
2676
2676
|
setPointerNodeId(hovered);
|
|
2677
|
+
onNodeHover?.(hovered);
|
|
2677
2678
|
}
|
|
2678
2679
|
if (hovered) {
|
|
2679
2680
|
stage.container().style.cursor = "pointer";
|