@linkdlab/funcnodes_react_flow 0.3.10 → 0.3.12
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.js +144 -8081
- package/dist/esm/index.esm.js.map +1 -0
- package/dist/esm/style.css +1726 -0
- package/dist/index.d.ts +722 -0
- package/dist/style.css +1726 -0
- package/dist/umd/index.umd.js +144 -8944
- package/dist/umd/index.umd.js.map +1 -0
- package/dist/umd/style.css +1726 -0
- package/package.json +34 -15
- package/dist/css/style.css +0 -52
- package/dist/types/frontend/datarenderer/data_renderer_overlay.d.ts +0 -7
- package/dist/types/frontend/datarenderer/data_renderer_overlay.d.ts.map +0 -1
- package/dist/types/frontend/datarenderer/data_renderer_preview.d.ts +0 -7
- package/dist/types/frontend/datarenderer/data_renderer_preview.d.ts.map +0 -1
- package/dist/types/frontend/datarenderer/default_preview_renderer.d.ts +0 -25
- package/dist/types/frontend/datarenderer/default_preview_renderer.d.ts.map +0 -1
- package/dist/types/frontend/datarenderer/images.d.ts +0 -15
- package/dist/types/frontend/datarenderer/images.d.ts.map +0 -1
- package/dist/types/frontend/datarenderer/index.d.ts +0 -17
- package/dist/types/frontend/datarenderer/index.d.ts.map +0 -1
- package/dist/types/frontend/datarenderer/rendermappings.d.ts +0 -183
- package/dist/types/frontend/datarenderer/rendermappings.d.ts.map +0 -1
- package/dist/types/frontend/dialog.d.ts +0 -22
- package/dist/types/frontend/dialog.d.ts.map +0 -1
- package/dist/types/frontend/edge.d.ts +0 -6
- package/dist/types/frontend/edge.d.ts.map +0 -1
- package/dist/types/frontend/funcnodesreactflow/index.d.ts +0 -7
- package/dist/types/frontend/funcnodesreactflow/index.d.ts.map +0 -1
- package/dist/types/frontend/funcnodesreactflow/react_flow_layer.d.ts +0 -10
- package/dist/types/frontend/funcnodesreactflow/react_flow_layer.d.ts.map +0 -1
- package/dist/types/frontend/header/index.d.ts +0 -6
- package/dist/types/frontend/header/index.d.ts.map +0 -1
- package/dist/types/frontend/index.d.ts +0 -4
- package/dist/types/frontend/index.d.ts.map +0 -1
- package/dist/types/frontend/lib.d.ts +0 -11
- package/dist/types/frontend/lib.d.ts.map +0 -1
- package/dist/types/frontend/node/body_data_renderer.d.ts +0 -12
- package/dist/types/frontend/node/body_data_renderer.d.ts.map +0 -1
- package/dist/types/frontend/node/index.d.ts +0 -5
- package/dist/types/frontend/node/index.d.ts.map +0 -1
- package/dist/types/frontend/node/io/default_input_renderer.d.ts +0 -12
- package/dist/types/frontend/node/io/default_input_renderer.d.ts.map +0 -1
- package/dist/types/frontend/node/io/default_output_render.d.ts +0 -8
- package/dist/types/frontend/node/io/default_output_render.d.ts.map +0 -1
- package/dist/types/frontend/node/io/handle_renderer.d.ts +0 -12
- package/dist/types/frontend/node/io/handle_renderer.d.ts.map +0 -1
- package/dist/types/frontend/node/io/index.d.ts +0 -4
- package/dist/types/frontend/node/io/index.d.ts.map +0 -1
- package/dist/types/frontend/node/io/io.d.ts +0 -17
- package/dist/types/frontend/node/io/io.d.ts.map +0 -1
- package/dist/types/frontend/node/io/nodeinput.d.ts +0 -11
- package/dist/types/frontend/node/io/nodeinput.d.ts.map +0 -1
- package/dist/types/frontend/node/io/nodeoutput.d.ts +0 -7
- package/dist/types/frontend/node/io/nodeoutput.d.ts.map +0 -1
- package/dist/types/frontend/node/node.d.ts +0 -24
- package/dist/types/frontend/node/node.d.ts.map +0 -1
- package/dist/types/frontend/node/nodesettings.d.ts +0 -5
- package/dist/types/frontend/node/nodesettings.d.ts.map +0 -1
- package/dist/types/frontend/utils/colorpicker.d.ts +0 -22
- package/dist/types/frontend/utils/colorpicker.d.ts.map +0 -1
- package/dist/types/frontend/utils/jsondata.d.ts +0 -7
- package/dist/types/frontend/utils/jsondata.d.ts.map +0 -1
- package/dist/types/frontend/utils/progressbar.d.ts +0 -48
- package/dist/types/frontend/utils/progressbar.d.ts.map +0 -1
- package/dist/types/frontend/utils/select.d.ts +0 -15
- package/dist/types/frontend/utils/select.d.ts.map +0 -1
- package/dist/types/frontend/utils/table.d.ts +0 -12
- package/dist/types/frontend/utils/table.d.ts.map +0 -1
- package/dist/types/funcnodes/funcnodesworker.d.ts +0 -123
- package/dist/types/funcnodes/funcnodesworker.d.ts.map +0 -1
- package/dist/types/funcnodes/index.d.ts +0 -5
- package/dist/types/funcnodes/index.d.ts.map +0 -1
- package/dist/types/funcnodes/websocketworker.d.ts +0 -40
- package/dist/types/funcnodes/websocketworker.d.ts.map +0 -1
- package/dist/types/funcnodes/workermanager.d.ts +0 -33
- package/dist/types/funcnodes/workermanager.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -25
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/plugin/index.d.ts +0 -19
- package/dist/types/plugin/index.d.ts.map +0 -1
- package/dist/types/plugin/rendenderer.d.ts +0 -24
- package/dist/types/plugin/rendenderer.d.ts.map +0 -1
- package/dist/types/plugin/renderer.d.ts +0 -24
- package/dist/types/plugin/renderer.d.ts.map +0 -1
- package/dist/types/states/edge.d.ts +0 -8
- package/dist/types/states/edge.d.ts.map +0 -1
- package/dist/types/states/edge.t.d.ts +0 -17
- package/dist/types/states/edge.t.d.ts.map +0 -1
- package/dist/types/states/fnrfzst.d.ts +0 -11
- package/dist/types/states/fnrfzst.d.ts.map +0 -1
- package/dist/types/states/fnrfzst.t.d.ts +0 -159
- package/dist/types/states/fnrfzst.t.d.ts.map +0 -1
- package/dist/types/states/index.d.ts +0 -8
- package/dist/types/states/index.d.ts.map +0 -1
- package/dist/types/states/lib.d.ts +0 -4
- package/dist/types/states/lib.d.ts.map +0 -1
- package/dist/types/states/lib.t.d.ts +0 -46
- package/dist/types/states/lib.t.d.ts.map +0 -1
- package/dist/types/states/node.d.ts +0 -6
- package/dist/types/states/node.d.ts.map +0 -1
- package/dist/types/states/node.t.d.ts +0 -77
- package/dist/types/states/node.t.d.ts.map +0 -1
- package/dist/types/states/nodeio.t.d.ts +0 -75
- package/dist/types/states/nodeio.t.d.ts.map +0 -1
- package/dist/types/states/nodespace.d.ts +0 -4
- package/dist/types/states/nodespace.d.ts.map +0 -1
- package/dist/types/states/nodespace.t.d.ts +0 -17
- package/dist/types/states/nodespace.t.d.ts.map +0 -1
- package/dist/types/states/reactflow.d.ts +0 -9
- package/dist/types/states/reactflow.d.ts.map +0 -1
- package/dist/types/states/reactflow.t.d.ts +0 -12
- package/dist/types/states/reactflow.t.d.ts.map +0 -1
- package/dist/types/types/rendering.t.d.ts +0 -11
- package/dist/types/types/rendering.t.d.ts.map +0 -1
- package/dist/types/utils/autolayout/force.d.ts +0 -3
- package/dist/types/utils/autolayout/force.d.ts.map +0 -1
- package/dist/types/utils/autolayout/index.d.ts +0 -3
- package/dist/types/utils/autolayout/index.d.ts.map +0 -1
- package/dist/types/utils/autolayout/txt.d.ts +0 -16
- package/dist/types/utils/autolayout/txt.d.ts.map +0 -1
- package/dist/types/utils/data.d.ts +0 -13
- package/dist/types/utils/data.d.ts.map +0 -1
- package/dist/types/utils/debugger.d.ts +0 -5
- package/dist/types/utils/debugger.d.ts.map +0 -1
- package/dist/types/utils/helperfunctions.d.ts +0 -17
- package/dist/types/utils/helperfunctions.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -4
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/logger.d.ts +0 -25
- package/dist/types/utils/logger.d.ts.map +0 -1
- package/dist/types/utils/objects.d.ts +0 -30
- package/dist/types/utils/objects.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rendenderer.d.ts","sourceRoot":"","sources":["../../../src/plugin/rendenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG3E,UAAU,cAAc;IACtB,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;KAAE,CAAC;IACvD,gBAAgB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAC;IACzD,wBAAwB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,CAAC;IACxE,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;KAAE,CAAC;IACpE,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAA;KAAE,CAAC;IACxE,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;CAC/D;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HandlePreviewRendererType, DataOverlayRendererType, DataPreviewViewRendererType, DataViewRendererType } from "../frontend/datarenderer/rendermappings";
|
|
2
|
-
import { InputRendererType, OutputRendererType } from "../states/nodeio.t";
|
|
3
|
-
interface RendererPlugin {
|
|
4
|
-
input_renderers?: {
|
|
5
|
-
[key: string]: InputRendererType;
|
|
6
|
-
};
|
|
7
|
-
output_renderers?: {
|
|
8
|
-
[key: string]: OutputRendererType;
|
|
9
|
-
};
|
|
10
|
-
handle_preview_renderers?: {
|
|
11
|
-
[key: string]: HandlePreviewRendererType;
|
|
12
|
-
};
|
|
13
|
-
data_overlay_renderers?: {
|
|
14
|
-
[key: string]: DataOverlayRendererType;
|
|
15
|
-
};
|
|
16
|
-
data_preview_renderers?: {
|
|
17
|
-
[key: string]: DataPreviewViewRendererType;
|
|
18
|
-
};
|
|
19
|
-
data_view_renderers?: {
|
|
20
|
-
[key: string]: DataViewRendererType;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export default RendererPlugin;
|
|
24
|
-
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/plugin/renderer.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG3E,UAAU,cAAc;IACtB,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;KAAE,CAAC;IACvD,gBAAgB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAC;IACzD,wBAAwB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,CAAC;IACxE,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;KAAE,CAAC;IACpE,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAA;KAAE,CAAC;IACxE,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;CAC/D;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/states/edge.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,gBAAgB,8CAKnB;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,WAEA,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface BaseEdgeAction {
|
|
2
|
-
type: string;
|
|
3
|
-
src_nid: string;
|
|
4
|
-
src_ioid: string;
|
|
5
|
-
trg_nid: string;
|
|
6
|
-
trg_ioid: string;
|
|
7
|
-
from_remote: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface EdgeActionAdd extends BaseEdgeAction {
|
|
10
|
-
type: "add";
|
|
11
|
-
}
|
|
12
|
-
interface EdgeActionDelete extends BaseEdgeAction {
|
|
13
|
-
type: "delete";
|
|
14
|
-
}
|
|
15
|
-
type EdgeAction = EdgeActionAdd | EdgeActionDelete;
|
|
16
|
-
export type { EdgeAction, EdgeActionAdd, EdgeActionDelete };
|
|
17
|
-
//# sourceMappingURL=edge.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.t.d.ts","sourceRoot":"","sources":["../../../src/states/edge.t.ts"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,aAAc,SAAQ,cAAc;IAC5C,IAAI,EAAE,KAAK,CAAC;CACb;AAED,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,KAAK,UAAU,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEnD,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import LibZustand from "./lib";
|
|
2
|
-
import NodeSpaceZustand from "./nodespace";
|
|
3
|
-
import { Node as RFNode } from "reactflow";
|
|
4
|
-
import { NodeStore } from "./node.t";
|
|
5
|
-
import type { FuncNodesReactFlowZustandInterface, FuncnodesReactFlowProps } from "./fnrfzst.t";
|
|
6
|
-
import type { NodeType } from "./node.t";
|
|
7
|
-
declare const assert_reactflow_node: (node: NodeType, store: NodeStore, fnrf_instance?: FuncNodesReactFlowZustandInterface) => NodeType & RFNode;
|
|
8
|
-
declare const FuncNodesReactFlowZustand: ({ useWorkerManager, default_worker, on_sync_complete, }: FuncnodesReactFlowProps) => FuncNodesReactFlowZustandInterface;
|
|
9
|
-
export default FuncNodesReactFlowZustand;
|
|
10
|
-
export { LibZustand, NodeSpaceZustand, assert_reactflow_node };
|
|
11
|
-
//# sourceMappingURL=fnrfzst.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fnrfzst.d.ts","sourceRoot":"","sources":["../../../src/states/fnrfzst.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAI3C,OAAO,EACL,IAAI,IAAI,MAAM,EAKf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAc,SAAS,EAAE,MAAM,UAAU,CAAC;AAMjD,OAAO,KAAK,EACV,kCAAkC,EAIlC,uBAAuB,EAIxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAMV,QAAQ,EACT,MAAM,UAAU,CAAC;AAgGlB,QAAA,MAAM,qBAAqB,SACnB,QAAQ,SACP,SAAS,kBACA,kCAAkC,KACjD,QAAQ,GAAG,MA0Bb,CAAC;AAEF,QAAA,MAAM,yBAAyB,4DAI5B,uBAAuB,KAAG,kCA2Z5B,CAAC;AAEF,eAAe,yBAAyB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { StoreApi, UseBoundStore } from "zustand";
|
|
2
|
-
import { FuncNodesWorker, WorkerManager } from "../funcnodes";
|
|
3
|
-
import { ExternalWorkerDependencies, LibType, LibZustandInterface } from "./lib.t";
|
|
4
|
-
import { NodeSpaceZustandInterface } from "./nodespace.t";
|
|
5
|
-
import { NodeAction, NodeType } from "./node.t";
|
|
6
|
-
import { RFStore } from "./reactflow.t";
|
|
7
|
-
import { EdgeAction } from "./edge.t";
|
|
8
|
-
import { useReactFlow } from "reactflow";
|
|
9
|
-
import FuncNodesReactPlugin from "../plugin";
|
|
10
|
-
import { Logger } from "../utils/logger";
|
|
11
|
-
import { FuncNodesWorkerState } from "../funcnodes/funcnodesworker";
|
|
12
|
-
interface RenderOptions {
|
|
13
|
-
typemap?: {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
16
|
-
inputconverter?: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
interface NodeViewState {
|
|
21
|
-
pos: [number, number];
|
|
22
|
-
size: [number, number];
|
|
23
|
-
collapsed: boolean;
|
|
24
|
-
}
|
|
25
|
-
interface ViewState {
|
|
26
|
-
nodes: {
|
|
27
|
-
[key: string]: NodeViewState;
|
|
28
|
-
};
|
|
29
|
-
renderoptions?: RenderOptions;
|
|
30
|
-
}
|
|
31
|
-
interface FullNodeSpaceJSON {
|
|
32
|
-
nodes: NodeType[];
|
|
33
|
-
edges: [string, string, string, string][];
|
|
34
|
-
prop: {
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
};
|
|
37
|
-
lib: LibType;
|
|
38
|
-
}
|
|
39
|
-
interface FullState {
|
|
40
|
-
backend: FullNodeSpaceJSON;
|
|
41
|
-
view: ViewState;
|
|
42
|
-
worker: {
|
|
43
|
-
[key: string]: string[];
|
|
44
|
-
};
|
|
45
|
-
worker_dependencies: ExternalWorkerDependencies[];
|
|
46
|
-
}
|
|
47
|
-
interface ProgressState {
|
|
48
|
-
message: string;
|
|
49
|
-
status: string;
|
|
50
|
-
progress: number;
|
|
51
|
-
blocking: boolean;
|
|
52
|
-
}
|
|
53
|
-
interface ProgressStateMessage extends ProgressState {
|
|
54
|
-
type: "progress";
|
|
55
|
-
}
|
|
56
|
-
interface ResultMessage {
|
|
57
|
-
type: "result";
|
|
58
|
-
id?: string;
|
|
59
|
-
result: any;
|
|
60
|
-
}
|
|
61
|
-
interface ErrorMessage {
|
|
62
|
-
type: "error";
|
|
63
|
-
error: string;
|
|
64
|
-
tb: string[];
|
|
65
|
-
id?: string;
|
|
66
|
-
}
|
|
67
|
-
interface NodeSpaceEvent {
|
|
68
|
-
type: "nsevent";
|
|
69
|
-
event: string;
|
|
70
|
-
data: {
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
interface WorkerEvent {
|
|
75
|
-
type: "workerevent";
|
|
76
|
-
event: string;
|
|
77
|
-
data: {
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
interface LargeMessageHint {
|
|
82
|
-
type: "large_message";
|
|
83
|
-
msg_id: string;
|
|
84
|
-
}
|
|
85
|
-
type JSONMessage = ProgressStateMessage | ResultMessage | ErrorMessage | NodeSpaceEvent | WorkerEvent | LargeMessageHint;
|
|
86
|
-
interface WorkerRepresentation {
|
|
87
|
-
uuid: string;
|
|
88
|
-
host: string;
|
|
89
|
-
port: number;
|
|
90
|
-
ssl: boolean;
|
|
91
|
-
active: boolean;
|
|
92
|
-
open: boolean;
|
|
93
|
-
name: string | null;
|
|
94
|
-
}
|
|
95
|
-
interface WorkersState {
|
|
96
|
-
[key: string]: WorkerRepresentation;
|
|
97
|
-
}
|
|
98
|
-
interface FuncnodesReactHeaderProps {
|
|
99
|
-
}
|
|
100
|
-
interface ReactFlowLayerProps {
|
|
101
|
-
minimap?: boolean;
|
|
102
|
-
static?: boolean;
|
|
103
|
-
minZoom?: number;
|
|
104
|
-
maxZoom?: number;
|
|
105
|
-
}
|
|
106
|
-
interface FuncnodesReactFlowProps {
|
|
107
|
-
useWorkerManager?: boolean;
|
|
108
|
-
default_worker?: FuncNodesWorker;
|
|
109
|
-
header?: FuncnodesReactHeaderProps;
|
|
110
|
-
flow?: ReactFlowLayerProps;
|
|
111
|
-
id?: string;
|
|
112
|
-
on_sync_complete?: (worker: FuncNodesWorker) => Promise<void>;
|
|
113
|
-
}
|
|
114
|
-
interface DevSettings {
|
|
115
|
-
debug: boolean;
|
|
116
|
-
}
|
|
117
|
-
interface FuncnodesReactFlowViewSettings {
|
|
118
|
-
expand_node_props: boolean;
|
|
119
|
-
}
|
|
120
|
-
interface FuncnodesReactFlowLocalSettings {
|
|
121
|
-
view_settings: FuncnodesReactFlowViewSettings;
|
|
122
|
-
update_view_settings: (settings: FuncnodesReactFlowViewSettings) => void;
|
|
123
|
-
}
|
|
124
|
-
interface FuncnodesReactFlowLocalState {
|
|
125
|
-
selected_nodes: string[];
|
|
126
|
-
selected_edges: string[];
|
|
127
|
-
}
|
|
128
|
-
interface FuncNodesReactFlowZustandInterface {
|
|
129
|
-
options: FuncnodesReactFlowProps;
|
|
130
|
-
local_settings: UseBoundStore<StoreApi<FuncnodesReactFlowLocalSettings>>;
|
|
131
|
-
local_state: UseBoundStore<StoreApi<FuncnodesReactFlowLocalState>>;
|
|
132
|
-
lib: LibZustandInterface;
|
|
133
|
-
workermanager: WorkerManager | undefined;
|
|
134
|
-
workers: UseBoundStore<StoreApi<WorkersState>>;
|
|
135
|
-
workerstate: UseBoundStore<StoreApi<FuncNodesWorkerState>>;
|
|
136
|
-
worker: FuncNodesWorker | undefined;
|
|
137
|
-
set_worker: (worker: FuncNodesWorker | undefined) => void;
|
|
138
|
-
_unsubscribeFromWorker: (() => void) | undefined;
|
|
139
|
-
nodespace: NodeSpaceZustandInterface;
|
|
140
|
-
useReactFlowStore: RFStore;
|
|
141
|
-
render_options: UseBoundStore<StoreApi<RenderOptions>>;
|
|
142
|
-
progress_state: UseBoundStore<StoreApi<ProgressState>>;
|
|
143
|
-
update_render_options: (options: RenderOptions) => void;
|
|
144
|
-
rf_instance?: ReturnType<typeof useReactFlow>;
|
|
145
|
-
on_node_action: (action: NodeAction) => void;
|
|
146
|
-
on_edge_action: (edge: EdgeAction) => void;
|
|
147
|
-
set_progress: (progress: ProgressState) => void;
|
|
148
|
-
auto_progress: () => void;
|
|
149
|
-
plugins: UseBoundStore<StoreApi<{
|
|
150
|
-
[key: string]: FuncNodesReactPlugin;
|
|
151
|
-
}>>;
|
|
152
|
-
add_plugin: (name: string, plugin: FuncNodesReactPlugin) => void;
|
|
153
|
-
reactflowRef: HTMLDivElement | null;
|
|
154
|
-
clear_all: () => void;
|
|
155
|
-
dev_settings: DevSettings;
|
|
156
|
-
logger: Logger;
|
|
157
|
-
}
|
|
158
|
-
export type { FuncNodesReactFlowZustandInterface, WorkersState, WorkerRepresentation, JSONMessage, FullState, FullNodeSpaceJSON, ViewState, RenderOptions, ProgressState, ProgressStateMessage, ResultMessage, ErrorMessage, NodeSpaceEvent, WorkerEvent, LargeMessageHint, NodeViewState, FuncnodesReactFlowProps, FuncnodesReactHeaderProps, ReactFlowLayerProps, FuncnodesReactFlowLocalSettings, FuncnodesReactFlowLocalState, FuncnodesReactFlowViewSettings, };
|
|
159
|
-
//# sourceMappingURL=fnrfzst.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fnrfzst.t.d.ts","sourceRoot":"","sources":["../../../src/states/fnrfzst.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,0BAA0B,EAC1B,OAAO,EACP,mBAAmB,EACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,M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ACX,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,+BAA+B,EAC/B,4BAA4B,EAC5B,8BAA8B,GAC/B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import LibZustand from "./lib";
|
|
2
|
-
import NodeSpaceZustand from "./nodespace";
|
|
3
|
-
import { FuncNodesReactFlowZustandInterface, WorkersState } from "./fnrfzst.t";
|
|
4
|
-
import FuncNodesReactFlowZustand from "./fnrfzst";
|
|
5
|
-
export default FuncNodesReactFlowZustand;
|
|
6
|
-
export { LibZustand, NodeSpaceZustand };
|
|
7
|
-
export type { FuncNodesReactFlowZustandInterface, WorkersState };
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/states/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kCAAkC,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,yBAAyB,MAAM,WAAW,CAAC;AAClD,eAAe,yBAAyB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC;AACxC,YAAY,EAAE,kCAAkC,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../src/states/lib.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAY,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,UAAU,QAAO,mBAYtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { UseBoundStore, StoreApi } from "zustand";
|
|
2
|
-
type LibNode = {
|
|
3
|
-
node_id: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
node_name?: string;
|
|
6
|
-
};
|
|
7
|
-
type Shelf = {
|
|
8
|
-
name: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
nodes: LibNode[];
|
|
11
|
-
subshelves: Shelf[];
|
|
12
|
-
};
|
|
13
|
-
type LibType = {
|
|
14
|
-
shelves: Shelf[];
|
|
15
|
-
};
|
|
16
|
-
interface ExternalWorkerInstance {
|
|
17
|
-
uuid: string;
|
|
18
|
-
nodeclassid: string;
|
|
19
|
-
running: boolean;
|
|
20
|
-
name: string;
|
|
21
|
-
}
|
|
22
|
-
interface ExternalWorkerClassDep {
|
|
23
|
-
module: string;
|
|
24
|
-
class_name: string;
|
|
25
|
-
name: string;
|
|
26
|
-
instances: ExternalWorkerInstance[];
|
|
27
|
-
}
|
|
28
|
-
interface ExternalWorkerDependencies {
|
|
29
|
-
module: string;
|
|
30
|
-
worker_classes: ExternalWorkerClassDep[];
|
|
31
|
-
}
|
|
32
|
-
interface LibState {
|
|
33
|
-
lib: LibType;
|
|
34
|
-
external_worker?: ExternalWorkerDependencies[];
|
|
35
|
-
set: (state: {
|
|
36
|
-
lib?: LibType;
|
|
37
|
-
external_worker?: ExternalWorkerDependencies[];
|
|
38
|
-
}) => void;
|
|
39
|
-
get_lib: () => LibType;
|
|
40
|
-
get_external_worker: () => ExternalWorkerDependencies[] | undefined;
|
|
41
|
-
}
|
|
42
|
-
interface LibZustandInterface {
|
|
43
|
-
libstate: UseBoundStore<StoreApi<LibState>>;
|
|
44
|
-
}
|
|
45
|
-
export type { LibZustandInterface, LibState, LibType, Shelf, LibNode, ExternalWorkerClassDep, ExternalWorkerDependencies, ExternalWorkerInstance, };
|
|
46
|
-
//# sourceMappingURL=lib.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lib.t.d.ts","sourceRoot":"","sources":["../../../src/states/lib.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SA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B,EACnB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,GACvB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { NodeType, PartialNodeType, NodeStore } from "./node.t";
|
|
2
|
-
declare const assert_full_node: (node: PartialNodeType) => NodeType;
|
|
3
|
-
declare const normalize_node: (node: PartialNodeType) => PartialNodeType;
|
|
4
|
-
declare const createNodeStore: (node: NodeType) => NodeStore;
|
|
5
|
-
export { createNodeStore, assert_full_node, normalize_node };
|
|
6
|
-
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/states/node.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAqEhE,QAAA,MAAM,gBAAgB,SAAU,eAAe,KAAG,QAcjD,CAAC;AAEF,QAAA,MAAM,cAAc,SAAU,eAAe,KAAG,eAmC/C,CAAC;AAEF,QAAA,MAAM,eAAe,SAAU,QAAQ,KAAG,SAMzC,CAAC;AACF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { UseBoundStore, StoreApi } from "zustand";
|
|
2
|
-
import { DeepPartial } from "../utils";
|
|
3
|
-
import { IOType } from "./nodeio.t";
|
|
4
|
-
import { DataRenderOptions } from "../types/rendering.t";
|
|
5
|
-
import { TqdmState } from "../frontend/utils/progressbar";
|
|
6
|
-
/**
|
|
7
|
-
* Interface for the NodeActionAdd.
|
|
8
|
-
* This interface is used when a new node is being added.
|
|
9
|
-
* It has a type property set to "add" and a node property of NodeType.
|
|
10
|
-
*/
|
|
11
|
-
interface BaseNodeAction {
|
|
12
|
-
type: string;
|
|
13
|
-
from_remote: boolean;
|
|
14
|
-
id: string;
|
|
15
|
-
immediate?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface NodeActionAdd extends BaseNodeAction {
|
|
18
|
-
type: "add";
|
|
19
|
-
node: NodeType;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Interface for the NodeActionUpdate.
|
|
23
|
-
* This interface is used when an existing node is being updated.
|
|
24
|
-
* It has a type property set to "update", an id property for the node to be updated,
|
|
25
|
-
* and a node property of PartialNodeType which contains the properties to be updated.
|
|
26
|
-
*/
|
|
27
|
-
interface NodeActionUpdate extends BaseNodeAction {
|
|
28
|
-
type: "update";
|
|
29
|
-
node: PartialNodeType;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Interface for the NodeActionDelete.
|
|
33
|
-
* This interface is used when a node is being deleted.
|
|
34
|
-
* It has a type property set to "delete" and an id property for the node to be deleted.
|
|
35
|
-
*/
|
|
36
|
-
interface NodeActionDelete extends BaseNodeAction {
|
|
37
|
-
type: "delete";
|
|
38
|
-
}
|
|
39
|
-
interface NodeActionError extends BaseNodeAction {
|
|
40
|
-
type: "error";
|
|
41
|
-
errortype: string;
|
|
42
|
-
error: string;
|
|
43
|
-
}
|
|
44
|
-
interface NodeActionTrigger extends BaseNodeAction {
|
|
45
|
-
type: "trigger";
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Type alias for NodeAction.
|
|
49
|
-
* A NodeAction can be either a NodeActionAdd, NodeActionUpdate, or NodeActionDelete.
|
|
50
|
-
*/
|
|
51
|
-
type NodeAction = NodeActionAdd | NodeActionUpdate | NodeActionDelete | NodeActionError | NodeActionTrigger;
|
|
52
|
-
type NodeStore = UseBoundStore<StoreApi<NodeType>>;
|
|
53
|
-
interface NodeRenderOptions {
|
|
54
|
-
data?: DataRenderOptions;
|
|
55
|
-
}
|
|
56
|
-
interface NodeType {
|
|
57
|
-
id: string;
|
|
58
|
-
node_name: string;
|
|
59
|
-
io: {
|
|
60
|
-
[key: string]: IOType;
|
|
61
|
-
};
|
|
62
|
-
frontend: {
|
|
63
|
-
pos: [number, number];
|
|
64
|
-
size: [number, number];
|
|
65
|
-
collapsed: boolean;
|
|
66
|
-
};
|
|
67
|
-
name: string;
|
|
68
|
-
in_trigger: boolean;
|
|
69
|
-
error?: string;
|
|
70
|
-
render_options?: NodeRenderOptions;
|
|
71
|
-
io_order: string[];
|
|
72
|
-
progress: TqdmState;
|
|
73
|
-
description?: string;
|
|
74
|
-
}
|
|
75
|
-
type PartialNodeType = DeepPartial<NodeType>;
|
|
76
|
-
export type { NodeStore, NodeAction, NodeActionUpdate, NodeActionDelete, NodeActionAdd, NodeActionError, PartialNodeType, NodeActionTrigger, NodeType, };
|
|
77
|
-
//# sourceMappingURL=node.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.t.d.ts","sourceRoot":"","sources":["../../../src/states/node.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D;;;;GAIG;AAEH,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,aAAc,SAAQ,cAAc;IAC5C,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;;;;GAKG;AACH,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;GAIG;AACH,UAAU,gBA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AAQ,GACT,CAAC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseRenderOptions } from "../types/rendering.t";
|
|
3
|
-
import { DeepPartial } from "../utils";
|
|
4
|
-
interface AllOf {
|
|
5
|
-
allOf: SerializedType[];
|
|
6
|
-
}
|
|
7
|
-
interface AnyOf {
|
|
8
|
-
anyOf: SerializedType[];
|
|
9
|
-
}
|
|
10
|
-
interface ArrayOf {
|
|
11
|
-
type: "array";
|
|
12
|
-
items: SerializedType;
|
|
13
|
-
uniqueItems: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface DictOf {
|
|
16
|
-
type: "object";
|
|
17
|
-
keys: SerializedType;
|
|
18
|
-
values: SerializedType;
|
|
19
|
-
}
|
|
20
|
-
interface EnumOf {
|
|
21
|
-
type: "enum";
|
|
22
|
-
values: (number | string | boolean | null)[];
|
|
23
|
-
keys: string[];
|
|
24
|
-
nullable: boolean;
|
|
25
|
-
}
|
|
26
|
-
interface TypeOf {
|
|
27
|
-
type: "type";
|
|
28
|
-
value: SerializedType;
|
|
29
|
-
}
|
|
30
|
-
type SerializedType = string | AllOf | AnyOf | ArrayOf | DictOf | EnumOf | TypeOf;
|
|
31
|
-
interface IORenderOptions extends BaseRenderOptions {
|
|
32
|
-
step?: number;
|
|
33
|
-
set_default: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface IOValueOptions {
|
|
36
|
-
min?: number;
|
|
37
|
-
max?: number;
|
|
38
|
-
step?: number;
|
|
39
|
-
options?: (string | number)[] | EnumOf;
|
|
40
|
-
colorspace?: string;
|
|
41
|
-
}
|
|
42
|
-
interface IOType {
|
|
43
|
-
connected: boolean;
|
|
44
|
-
does_trigger: boolean;
|
|
45
|
-
full_id: string;
|
|
46
|
-
id: string;
|
|
47
|
-
is_input: boolean;
|
|
48
|
-
name: string;
|
|
49
|
-
node: string;
|
|
50
|
-
type: SerializedType;
|
|
51
|
-
value: any;
|
|
52
|
-
fullvalue?: any;
|
|
53
|
-
render_options: IORenderOptions;
|
|
54
|
-
value_options?: IOValueOptions;
|
|
55
|
-
valuepreview_type?: string;
|
|
56
|
-
try_get_full_value: undefined | (() => void);
|
|
57
|
-
hidden: boolean;
|
|
58
|
-
set_hidden: undefined | ((v: boolean) => void);
|
|
59
|
-
}
|
|
60
|
-
interface UpdateableIOOptions {
|
|
61
|
-
name?: string;
|
|
62
|
-
hidden?: boolean;
|
|
63
|
-
}
|
|
64
|
-
type OutputRendererProps = {
|
|
65
|
-
io: IOType;
|
|
66
|
-
};
|
|
67
|
-
type OutputRendererType = ({ io }: OutputRendererProps) => JSX.Element;
|
|
68
|
-
interface InputRendererProps {
|
|
69
|
-
io: IOType;
|
|
70
|
-
inputconverter: [(v: any) => any, (v: any) => any];
|
|
71
|
-
}
|
|
72
|
-
type InputRendererType = ({ io, inputconverter, }: InputRendererProps) => JSX.Element;
|
|
73
|
-
type PartialIOType = DeepPartial<IOType>;
|
|
74
|
-
export type { AllOf, AnyOf, ArrayOf, DictOf, EnumOf, TypeOf, SerializedType, IORenderOptions, IOValueOptions, IOType, OutputRendererProps, OutputRendererType, InputRendererProps, InputRendererType, PartialIOType, UpdateableIOOptions, };
|
|
75
|
-
//# sourceMappingURL=nodeio.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeio.t.d.ts","sourceRoot":"","sources":["../../../src/states/nodeio.t.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,UAAU,KAAK;IACb,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,UAAU,KAAK;IACb,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,UAAU,OAAO;IACf,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,cAAc,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED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AqB,KAAG,yBAiF5B,CAAC;AAEJ,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NodeStore } from "./node.t";
|
|
2
|
-
/**
|
|
3
|
-
* Interface for the NodeSpaceZustand state management.
|
|
4
|
-
* This interface is used to define the shape of the state and the actions that can be performed on it.
|
|
5
|
-
*/
|
|
6
|
-
interface NodeSpaceZustandInterface {
|
|
7
|
-
nodesstates: Map<string, NodeStore>;
|
|
8
|
-
get_node: (nid: string, raise?: boolean) => NodeStore | undefined;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Interface for the NodeSpaceZustandProps.
|
|
12
|
-
* This interface is used to define the properties that can be passed to the NodeSpaceZustand component.
|
|
13
|
-
*/
|
|
14
|
-
interface NodeSpaceZustandProps {
|
|
15
|
-
}
|
|
16
|
-
export type { NodeSpaceZustandProps, NodeSpaceZustandInterface };
|
|
17
|
-
//# sourceMappingURL=nodespace.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodespace.t.d.ts","sourceRoot":"","sources":["../../../src/states/nodespace.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC;;;GAGG;AACH,UAAU,yBAAyB;IAEjC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAEpC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,SAAS,GAAG,SAAS,CAAC;CAkCnE;AAED;;;GAGG;AACH,UAAU,qBAAqB;CAI9B;AAED,YAAY,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Connection, EdgeChange, NodeChange } from "reactflow";
|
|
2
|
-
import { RFStore } from "./reactflow.t";
|
|
3
|
-
declare const reactflowstore: ({ on_node_change, on_edge_change, on_connect, }: {
|
|
4
|
-
on_node_change?: (changes: NodeChange[]) => void;
|
|
5
|
-
on_edge_change?: (changes: EdgeChange[]) => void;
|
|
6
|
-
on_connect?: (connection: Connection) => void;
|
|
7
|
-
}) => RFStore;
|
|
8
|
-
export default reactflowstore;
|
|
9
|
-
//# sourceMappingURL=reactflow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactflow.d.ts","sourceRoot":"","sources":["../../../src/states/reactflow.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EAGX,MAAM,WAAW,CAAC;AACnB,OAAO,EAAW,OAAO,EAAE,MAAM,eAAe,CAAC;AAEjD,QAAA,MAAM,cAAc,oDAIjB;IACD,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IACjD,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC/C,KAAG,OA4BH,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { UseBoundStore, StoreApi } from "zustand";
|
|
2
|
-
import { Edge, Node, OnNodesChange, OnEdgesChange, OnConnect } from "reactflow";
|
|
3
|
-
type RFState = {
|
|
4
|
-
nodes: Node[];
|
|
5
|
-
edges: Edge[];
|
|
6
|
-
onNodesChange: OnNodesChange;
|
|
7
|
-
onEdgesChange: OnEdgesChange;
|
|
8
|
-
onConnect: OnConnect;
|
|
9
|
-
};
|
|
10
|
-
type RFStore = UseBoundStore<StoreApi<RFState>>;
|
|
11
|
-
export type { RFState, RFStore };
|
|
12
|
-
//# sourceMappingURL=reactflow.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactflow.t.d.ts","sourceRoot":"","sources":["../../../src/states/reactflow.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEhF,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAGF,KAAK,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AAEhD,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SerializedType } from "../states/nodeio.t";
|
|
2
|
-
type RenderType = "string" | "number" | "boolean" | "image" | SerializedType;
|
|
3
|
-
interface BaseRenderOptions {
|
|
4
|
-
type: RenderType;
|
|
5
|
-
}
|
|
6
|
-
interface DataRenderOptions extends BaseRenderOptions {
|
|
7
|
-
src?: string;
|
|
8
|
-
preview_type?: string;
|
|
9
|
-
}
|
|
10
|
-
export type { DataRenderOptions, RenderType, BaseRenderOptions };
|
|
11
|
-
//# sourceMappingURL=rendering.t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rendering.t.d.ts","sourceRoot":"","sources":["../../../src/types/rendering.t.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,cAAc,CAAC;AAE7E,UAAU,iBAAiB;IACzB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,UAAU,iBAAkB,SAAQ,iBAAiB;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"force.d.ts","sourceRoot":"","sources":["../../../../src/utils/autolayout/force.ts"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa,YA8ClB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/autolayout/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface ResizeTextOptions {
|
|
2
|
-
maxFontSize?: number;
|
|
3
|
-
minFontSize?: number;
|
|
4
|
-
decrementFactor?: number;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Dynamically adjusts the font size of a text element so that it fits within its container.
|
|
8
|
-
*
|
|
9
|
-
* @param container - The container element that defines the maximum space.
|
|
10
|
-
* @param textElement - The element whose text needs to be resized.
|
|
11
|
-
* @param options - Optional configuration (maxFontSize, minFontSize, decrementFactor).
|
|
12
|
-
*/
|
|
13
|
-
declare function fitTextToContainer(container: HTMLElement, textElement: HTMLElement, options?: ResizeTextOptions): void;
|
|
14
|
-
export { fitTextToContainer };
|
|
15
|
-
export type { ResizeTextOptions };
|
|
16
|
-
//# sourceMappingURL=txt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"txt.d.ts","sourceRoot":"","sources":["../../../../src/utils/autolayout/txt.ts"],"names":[],"mappings":"AAAA,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,iBAAS,kBAAkB,CACzB,SAAS,EAAE,WAAW,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,iBAAsB,GAC9B,IAAI,CA2CN;AAiBD,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|