@linkdlab/funcnodes_react_flow 0.3.17 → 0.3.19
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/esm/index.esm.mjs +41 -30
- package/dist/esm/index.esm.mjs.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/style.css +1 -1755
- package/dist/umd/index.umd.js +40 -29
- package/dist/umd/index.umd.js.map +1 -1
- package/package.json +6 -2
- package/dist/esm/style.css +0 -1755
- package/dist/iife/index.js +0 -106
- package/dist/iife/index.js.map +0 -1
- package/dist/iife/style.css +0 -1726
- package/dist/umd/style.css +0 -1755
package/dist/index.d.ts
CHANGED
|
@@ -292,13 +292,19 @@ type NodeStore = UseBoundStore<StoreApi<NodeType>>;
|
|
|
292
292
|
interface NodeRenderOptions {
|
|
293
293
|
data?: DataRenderOptions;
|
|
294
294
|
}
|
|
295
|
+
interface NodeProperties {
|
|
296
|
+
"frontend:size": [number, number];
|
|
297
|
+
"frontend:pos": [number, number];
|
|
298
|
+
"frontend:collapsed": boolean;
|
|
299
|
+
[key: string]: any;
|
|
300
|
+
}
|
|
295
301
|
interface NodeType {
|
|
296
302
|
id: string;
|
|
297
303
|
node_name: string;
|
|
298
304
|
io: {
|
|
299
305
|
[key: string]: IOType;
|
|
300
306
|
};
|
|
301
|
-
frontend
|
|
307
|
+
frontend?: {
|
|
302
308
|
pos: [number, number];
|
|
303
309
|
size: [number, number];
|
|
304
310
|
collapsed: boolean;
|
|
@@ -310,6 +316,7 @@ interface NodeType {
|
|
|
310
316
|
io_order: string[];
|
|
311
317
|
progress: TqdmState;
|
|
312
318
|
description?: string;
|
|
319
|
+
properties: NodeProperties;
|
|
313
320
|
}
|
|
314
321
|
type PartialNodeType = DeepPartial<NodeType>;
|
|
315
322
|
|
|
@@ -773,7 +780,8 @@ interface DevSettings {
|
|
|
773
780
|
debug: boolean;
|
|
774
781
|
}
|
|
775
782
|
interface FuncnodesReactFlowViewSettings {
|
|
776
|
-
expand_node_props
|
|
783
|
+
expand_node_props?: boolean;
|
|
784
|
+
expand_lib?: boolean;
|
|
777
785
|
}
|
|
778
786
|
interface FuncnodesReactFlowLocalSettings {
|
|
779
787
|
view_settings: FuncnodesReactFlowViewSettings;
|
|
@@ -782,6 +790,7 @@ interface FuncnodesReactFlowLocalSettings {
|
|
|
782
790
|
interface FuncnodesReactFlowLocalState {
|
|
783
791
|
selected_nodes: string[];
|
|
784
792
|
selected_edges: string[];
|
|
793
|
+
funcnodescontainerRef: HTMLDivElement | null;
|
|
785
794
|
}
|
|
786
795
|
interface FuncNodesReactFlowZustandInterface {
|
|
787
796
|
options: FuncnodesReactFlowProps;
|