@industry-theme/file-city-panel 0.2.26 → 0.2.27
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAuBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAuBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAstCD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -16604,6 +16604,18 @@ const CodeCityPanelContent = ({
|
|
|
16604
16604
|
cleanupSelect == null ? void 0 : cleanupSelect();
|
|
16605
16605
|
};
|
|
16606
16606
|
}, [events]);
|
|
16607
|
+
useEffect(() => {
|
|
16608
|
+
if (selectedPackagePath && !isZoomAnimating) {
|
|
16609
|
+
setIsZoomAnimating(true);
|
|
16610
|
+
setZoomToPath(selectedPackagePath);
|
|
16611
|
+
} else if (!selectedPackagePath && zoomToPath !== null) {
|
|
16612
|
+
setIsZoomAnimating(true);
|
|
16613
|
+
setZoomToPath(null);
|
|
16614
|
+
}
|
|
16615
|
+
}, [selectedPackagePath]);
|
|
16616
|
+
const handleZoomComplete = useCallback(() => {
|
|
16617
|
+
setIsZoomAnimating(false);
|
|
16618
|
+
}, []);
|
|
16607
16619
|
const currentColorModeConfig = useMemo(() => {
|
|
16608
16620
|
return COLOR_MODES.find((m) => m.id === colorMode) || COLOR_MODES[0];
|
|
16609
16621
|
}, [colorMode]);
|
|
@@ -17276,7 +17288,11 @@ const CodeCityPanelContent = ({
|
|
|
17276
17288
|
showFileTypeIcons: true,
|
|
17277
17289
|
className: "w-full h-full",
|
|
17278
17290
|
showDirectoryLabels: true,
|
|
17279
|
-
onHover: handleHover
|
|
17291
|
+
onHover: handleHover,
|
|
17292
|
+
enableZoom: true,
|
|
17293
|
+
zoomToPath,
|
|
17294
|
+
onZoomComplete: handleZoomComplete,
|
|
17295
|
+
zoomAnimationSpeed: 0.12
|
|
17280
17296
|
}
|
|
17281
17297
|
) }),
|
|
17282
17298
|
/* @__PURE__ */ jsx(
|