@industry-theme/principal-view-panels 0.1.22 → 0.1.23
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,11 +1,12 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
/**
|
|
3
4
|
* PrincipalViewGraphPanel visualizes .canvas files as interactive graphs.
|
|
4
5
|
* It demonstrates graph rendering with ReactFlow and ExtendedCanvas format.
|
|
5
6
|
*/
|
|
6
7
|
declare const meta: {
|
|
7
8
|
title: string;
|
|
8
|
-
component:
|
|
9
|
+
component: React.FC<import("@principal-ade/panel-framework-core").PanelComponentProps>;
|
|
9
10
|
parameters: {
|
|
10
11
|
layout: string;
|
|
11
12
|
docs: {
|
|
@@ -79,4 +80,5 @@ export declare const MultipleConfigurations: Story;
|
|
|
79
80
|
* Empty project with workspace scope only
|
|
80
81
|
*/
|
|
81
82
|
export declare const WorkspaceScope: Story;
|
|
83
|
+
export declare const ResizablePanelLayout: Story;
|
|
82
84
|
//# sourceMappingURL=PrincipalViewGraphPanel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrincipalViewGraphPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/PrincipalViewGraphPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PrincipalViewGraphPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/PrincipalViewGraphPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAsBsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAuDjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAmDlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAmDvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KA4BrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KA4BxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KA8DzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAgE9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAmD5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAmD/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAmDpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KA0D5B,CAAC;AAqGF,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -48880,6 +48880,10 @@ function requireGraphRenderer() {
|
|
|
48880
48880
|
const handleNodesChange = (0, react_1.useCallback)((changes) => {
|
|
48881
48881
|
if (!editable)
|
|
48882
48882
|
return;
|
|
48883
|
+
const interesting = changes.filter((c2) => c2.type !== "select");
|
|
48884
|
+
if (interesting.length > 0) {
|
|
48885
|
+
console.log("[GraphRenderer DEBUG] Node changes:", interesting.map((c2) => ({ type: c2.type, id: c2.id, ...c2.type === "dimensions" ? { dimensions: c2.dimensions, resizing: c2.resizing } : {}, ...c2.type === "position" ? { dragging: c2.dragging } : {} })));
|
|
48886
|
+
}
|
|
48883
48887
|
setXyflowLocalNodes((nds) => (0, react_2.applyNodeChanges)(changes, nds));
|
|
48884
48888
|
const positionChanges = changes.filter((change) => change.type === "position" && "position" in change && change.position !== void 0 && "dragging" in change && change.dragging === false);
|
|
48885
48889
|
const dimensionChanges = changes.filter((change) => change.type === "dimensions" && "dimensions" in change && change.dimensions !== void 0 && "resizing" in change && change.resizing === false);
|