@linkdlab/funcnodes_react_flow 0.1.2 → 0.1.3

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.
Files changed (187) hide show
  1. package/module/dist/css/style.css +43 -0
  2. package/module/dist/frontend/datarenderer/images.d.ts +12 -0
  3. package/module/dist/frontend/datarenderer/images.d.ts.map +1 -0
  4. package/{dist → module/dist}/frontend/datarenderer/index.d.ts +17 -16
  5. package/module/dist/frontend/datarenderer/index.d.ts.map +1 -0
  6. package/module/dist/frontend/datarenderer/plotly.d.ts +15 -0
  7. package/module/dist/frontend/datarenderer/plotly.d.ts.map +1 -0
  8. package/{dist → module/dist}/frontend/dialog.d.ts +18 -17
  9. package/module/dist/frontend/dialog.d.ts.map +1 -0
  10. package/{dist → module/dist}/frontend/edge.d.ts +6 -5
  11. package/module/dist/frontend/edge.d.ts.map +1 -0
  12. package/{dist → module/dist}/frontend/funcnodesreactflow/index.d.ts +7 -6
  13. package/module/dist/frontend/funcnodesreactflow/index.d.ts.map +1 -0
  14. package/module/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts +6 -0
  15. package/module/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts.map +1 -0
  16. package/{dist → module/dist}/frontend/header/index.d.ts +5 -4
  17. package/module/dist/frontend/header/index.d.ts.map +1 -0
  18. package/{dist → module/dist}/frontend/index.d.ts +4 -3
  19. package/module/dist/frontend/index.d.ts.map +1 -0
  20. package/{dist → module/dist}/frontend/lib.d.ts +11 -10
  21. package/module/dist/frontend/lib.d.ts.map +1 -0
  22. package/{dist → module/dist}/frontend/node/index.d.ts +3 -2
  23. package/module/dist/frontend/node/index.d.ts.map +1 -0
  24. package/{dist → module/dist}/frontend/node/io/default_input_renderer.d.ts +12 -11
  25. package/module/dist/frontend/node/io/default_input_renderer.d.ts.map +1 -0
  26. package/module/dist/frontend/node/io/default_output_render.d.ts +7 -0
  27. package/module/dist/frontend/node/io/default_output_render.d.ts.map +1 -0
  28. package/{dist → module/dist}/frontend/node/io/handle_renderer.d.ts +6 -6
  29. package/module/dist/frontend/node/io/handle_renderer.d.ts.map +1 -0
  30. package/{dist → module/dist}/frontend/node/io/index.d.ts +4 -3
  31. package/module/dist/frontend/node/io/index.d.ts.map +1 -0
  32. package/{dist → module/dist}/frontend/node/io/io.d.ts +17 -16
  33. package/module/dist/frontend/node/io/io.d.ts.map +1 -0
  34. package/module/dist/frontend/node/io/nodeinput.d.ts +7 -0
  35. package/module/dist/frontend/node/io/nodeinput.d.ts.map +1 -0
  36. package/module/dist/frontend/node/io/nodeoutput.d.ts +7 -0
  37. package/module/dist/frontend/node/io/nodeoutput.d.ts.map +1 -0
  38. package/{dist → module/dist}/frontend/node/node.d.ts +21 -20
  39. package/module/dist/frontend/node/node.d.ts.map +1 -0
  40. package/{dist → module/dist}/frontend/utils/colorpicker.d.ts +20 -19
  41. package/module/dist/frontend/utils/colorpicker.d.ts.map +1 -0
  42. package/module/dist/frontend/utils/jsondata.d.ts +7 -0
  43. package/module/dist/frontend/utils/jsondata.d.ts.map +1 -0
  44. package/{dist → module/dist}/frontend/utils/table.d.ts +12 -11
  45. package/module/dist/frontend/utils/table.d.ts.map +1 -0
  46. package/{dist → module/dist}/funcnodes/funcnodesworker.d.ts +73 -72
  47. package/module/dist/funcnodes/funcnodesworker.d.ts.map +1 -0
  48. package/{dist → module/dist}/funcnodes/index.d.ts +5 -4
  49. package/module/dist/funcnodes/index.d.ts.map +1 -0
  50. package/{dist → module/dist}/funcnodes/websocketworker.d.ts +28 -27
  51. package/module/dist/funcnodes/websocketworker.d.ts.map +1 -0
  52. package/{dist → module/dist}/funcnodes/workermanager.d.ts +33 -32
  53. package/module/dist/funcnodes/workermanager.d.ts.map +1 -0
  54. package/{dist → module/dist}/index.d.ts +3 -2
  55. package/module/dist/index.d.ts.map +1 -0
  56. package/module/dist/index.js +4673 -0
  57. package/{dist → module/dist}/states/edge.d.ts +8 -7
  58. package/module/dist/states/edge.d.ts.map +1 -0
  59. package/{dist → module/dist}/states/edge.t.d.ts +17 -16
  60. package/module/dist/states/edge.t.d.ts.map +1 -0
  61. package/{dist → module/dist}/states/fnrfzst.d.ts +11 -10
  62. package/module/dist/states/fnrfzst.d.ts.map +1 -0
  63. package/{dist → module/dist}/states/fnrfzst.t.d.ts +101 -100
  64. package/module/dist/states/fnrfzst.t.d.ts.map +1 -0
  65. package/{dist → module/dist}/states/index.d.ts +8 -7
  66. package/module/dist/states/index.d.ts.map +1 -0
  67. package/{dist → module/dist}/states/lib.d.ts +4 -3
  68. package/module/dist/states/lib.d.ts.map +1 -0
  69. package/{dist → module/dist}/states/lib.t.d.ts +25 -24
  70. package/module/dist/states/lib.t.d.ts.map +1 -0
  71. package/{dist → module/dist}/states/node.d.ts +5 -4
  72. package/module/dist/states/node.d.ts.map +1 -0
  73. package/{dist → module/dist}/states/node.t.d.ts +74 -73
  74. package/module/dist/states/node.t.d.ts.map +1 -0
  75. package/{dist → module/dist}/states/nodeio.t.d.ts +68 -67
  76. package/module/dist/states/nodeio.t.d.ts.map +1 -0
  77. package/{dist → module/dist}/states/nodespace.d.ts +4 -3
  78. package/module/dist/states/nodespace.d.ts.map +1 -0
  79. package/{dist → module/dist}/states/nodespace.t.d.ts +17 -16
  80. package/module/dist/states/nodespace.t.d.ts.map +1 -0
  81. package/module/dist/states/reactflow.d.ts +9 -0
  82. package/module/dist/states/reactflow.d.ts.map +1 -0
  83. package/{dist → module/dist}/states/reactflow.t.d.ts +12 -11
  84. package/module/dist/states/reactflow.t.d.ts.map +1 -0
  85. package/{dist → module/dist}/types/rendering.t.d.ts +11 -10
  86. package/module/dist/types/rendering.t.d.ts.map +1 -0
  87. package/{dist → module/dist}/utils/index.d.ts +4 -3
  88. package/module/dist/utils/index.d.ts.map +1 -0
  89. package/{dist → module/dist}/utils/objects.d.ts +20 -19
  90. package/module/dist/utils/objects.d.ts.map +1 -0
  91. package/package.json +3 -3
  92. package/dist/frontend/datarenderer/images.d.ts +0 -11
  93. package/dist/frontend/datarenderer/images.js +0 -13
  94. package/dist/frontend/datarenderer/images.js.map +0 -1
  95. package/dist/frontend/datarenderer/index.js +0 -26
  96. package/dist/frontend/datarenderer/index.js.map +0 -1
  97. package/dist/frontend/datarenderer/plotly.d.ts +0 -14
  98. package/dist/frontend/datarenderer/plotly.js +0 -53
  99. package/dist/frontend/datarenderer/plotly.js.map +0 -1
  100. package/dist/frontend/dialog.js +0 -26
  101. package/dist/frontend/dialog.js.map +0 -1
  102. package/dist/frontend/edge.js +0 -40
  103. package/dist/frontend/edge.js.map +0 -1
  104. package/dist/frontend/funcnodesreactflow/index.js +0 -94
  105. package/dist/frontend/funcnodesreactflow/index.js.map +0 -1
  106. package/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts +0 -5
  107. package/dist/frontend/funcnodesreactflow/react_flow_layer.js +0 -149
  108. package/dist/frontend/funcnodesreactflow/react_flow_layer.js.map +0 -1
  109. package/dist/frontend/header/index.js +0 -227
  110. package/dist/frontend/header/index.js.map +0 -1
  111. package/dist/frontend/index.js +0 -4
  112. package/dist/frontend/index.js.map +0 -1
  113. package/dist/frontend/lib.js +0 -107
  114. package/dist/frontend/lib.js.map +0 -1
  115. package/dist/frontend/node/index.js +0 -3
  116. package/dist/frontend/node/index.js.map +0 -1
  117. package/dist/frontend/node/io/default_input_renderer.js +0 -235
  118. package/dist/frontend/node/io/default_input_renderer.js.map +0 -1
  119. package/dist/frontend/node/io/default_output_render.d.ts +0 -6
  120. package/dist/frontend/node/io/default_output_render.js +0 -23
  121. package/dist/frontend/node/io/default_output_render.js.map +0 -1
  122. package/dist/frontend/node/io/handle_renderer.js +0 -70
  123. package/dist/frontend/node/io/handle_renderer.js.map +0 -1
  124. package/dist/frontend/node/io/index.js +0 -4
  125. package/dist/frontend/node/io/index.js.map +0 -1
  126. package/dist/frontend/node/io/io.js +0 -98
  127. package/dist/frontend/node/io/io.js.map +0 -1
  128. package/dist/frontend/node/io/nodeinput.d.ts +0 -6
  129. package/dist/frontend/node/io/nodeinput.js +0 -74
  130. package/dist/frontend/node/io/nodeinput.js.map +0 -1
  131. package/dist/frontend/node/io/nodeoutput.d.ts +0 -6
  132. package/dist/frontend/node/io/nodeoutput.js +0 -19
  133. package/dist/frontend/node/io/nodeoutput.js.map +0 -1
  134. package/dist/frontend/node/node.js +0 -118
  135. package/dist/frontend/node/node.js.map +0 -1
  136. package/dist/frontend/utils/colorpicker.js +0 -209
  137. package/dist/frontend/utils/colorpicker.js.map +0 -1
  138. package/dist/frontend/utils/jsondata.d.ts +0 -6
  139. package/dist/frontend/utils/jsondata.js +0 -8
  140. package/dist/frontend/utils/jsondata.js.map +0 -1
  141. package/dist/frontend/utils/table.js +0 -108
  142. package/dist/frontend/utils/table.js.map +0 -1
  143. package/dist/funcnodes/funcnodesworker.js +0 -532
  144. package/dist/funcnodes/funcnodesworker.js.map +0 -1
  145. package/dist/funcnodes/index.js +0 -5
  146. package/dist/funcnodes/index.js.map +0 -1
  147. package/dist/funcnodes/websocketworker.js +0 -224
  148. package/dist/funcnodes/websocketworker.js.map +0 -1
  149. package/dist/funcnodes/workermanager.js +0 -241
  150. package/dist/funcnodes/workermanager.js.map +0 -1
  151. package/dist/index.js +0 -3
  152. package/dist/index.js.map +0 -1
  153. package/dist/states/edge.js +0 -6
  154. package/dist/states/edge.js.map +0 -1
  155. package/dist/states/edge.t.js +0 -2
  156. package/dist/states/edge.t.js.map +0 -1
  157. package/dist/states/fnrfzst.js +0 -378
  158. package/dist/states/fnrfzst.js.map +0 -1
  159. package/dist/states/fnrfzst.t.js +0 -2
  160. package/dist/states/fnrfzst.t.js.map +0 -1
  161. package/dist/states/index.js +0 -6
  162. package/dist/states/index.js.map +0 -1
  163. package/dist/states/lib.js +0 -14
  164. package/dist/states/lib.js.map +0 -1
  165. package/dist/states/lib.t.js +0 -2
  166. package/dist/states/lib.t.js.map +0 -1
  167. package/dist/states/node.js +0 -43
  168. package/dist/states/node.js.map +0 -1
  169. package/dist/states/node.t.js +0 -2
  170. package/dist/states/node.t.js.map +0 -1
  171. package/dist/states/nodeio.t.js +0 -2
  172. package/dist/states/nodeio.t.js.map +0 -1
  173. package/dist/states/nodespace.js +0 -77
  174. package/dist/states/nodespace.js.map +0 -1
  175. package/dist/states/nodespace.t.js +0 -2
  176. package/dist/states/nodespace.t.js.map +0 -1
  177. package/dist/states/reactflow.d.ts +0 -8
  178. package/dist/states/reactflow.js +0 -33
  179. package/dist/states/reactflow.js.map +0 -1
  180. package/dist/states/reactflow.t.js +0 -2
  181. package/dist/states/reactflow.t.js.map +0 -1
  182. package/dist/types/rendering.t.js +0 -2
  183. package/dist/types/rendering.t.js.map +0 -1
  184. package/dist/utils/index.js +0 -3
  185. package/dist/utils/index.js.map +0 -1
  186. package/dist/utils/objects.js +0 -118
  187. package/dist/utils/objects.js.map +0 -1
@@ -1,67 +1,68 @@
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: () => void;
57
- }
58
- type OutputRendererType = ({ io }: {
59
- io: IOType;
60
- }) => JSX.Element;
61
- interface InputRendererProps {
62
- io: IOType;
63
- inputconverter: (v: any) => any;
64
- }
65
- type InputRendererType = ({ io, inputconverter, }: InputRendererProps) => JSX.Element;
66
- type PartialIOType = DeepPartial<IOType>;
67
- export type { AllOf, AnyOf, ArrayOf, DictOf, EnumOf, TypeOf, SerializedType, IORenderOptions, IOValueOptions, IOType, OutputRendererType, InputRendererProps, InputRendererType, PartialIOType, };
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: () => void;
57
+ }
58
+ type OutputRendererType = ({ io }: {
59
+ io: IOType;
60
+ }) => JSX.Element;
61
+ interface InputRendererProps {
62
+ io: IOType;
63
+ inputconverter: (v: any) => any;
64
+ }
65
+ type InputRendererType = ({ io, inputconverter, }: InputRendererProps) => JSX.Element;
66
+ type PartialIOType = DeepPartial<IOType>;
67
+ export type { AllOf, AnyOf, ArrayOf, DictOf, EnumOf, TypeOf, SerializedType, IORenderOptions, IOValueOptions, IOType, OutputRendererType, InputRendererProps, InputRendererType, PartialIOType, };
68
+ //# sourceMappingURL=nodeio.t.d.ts.map
@@ -0,0 +1 @@
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,UAAU,MAAM;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;IAC7C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,MAAM;IACd,IA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AK,iBAAiB,GAAG,CAAC,EACxB,EAAE,EACF,cAAc,GACf,EAAE,kBAAkB,KAAK,GAAG,CAAC,OAAO,CAAC;AAEtC,KAAK,aAAa,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAEzC,YAAY,EACV,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,MAAM,EACN,cAAc,EACd,eAAe,EACf,cAAc,EACd,MAAM,EACN,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,GACd,CAAC"}
@@ -1,3 +1,4 @@
1
- import { NodeSpaceZustandInterface, NodeSpaceZustandProps } from "./nodespace.t";
2
- declare const NodeSpaceZustand: ({}: NodeSpaceZustandProps) => NodeSpaceZustandInterface;
3
- export default NodeSpaceZustand;
1
+ import { NodeSpaceZustandInterface, NodeSpaceZustandProps } from "./nodespace.t";
2
+ declare const NodeSpaceZustand: ({}: NodeSpaceZustandProps) => NodeSpaceZustandInterface;
3
+ export default NodeSpaceZustand;
4
+ //# sourceMappingURL=nodespace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodespace.d.ts","sourceRoot":"","sources":["../../src/states/nodespace.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,eAAe,CAAC;AACvB,QAAA,MAAM,gBAAgB,OACf,qBAAqB,KAAG,yBAiF5B,CAAC;AAEJ,eAAe,gBAAgB,CAAC"}
@@ -1,16 +1,17 @@
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 };
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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) | undefined;
5
+ on_edge_change?: ((changes: EdgeChange[]) => void) | undefined;
6
+ on_connect?: ((connection: Connection) => void) | undefined;
7
+ }) => RFStore;
8
+ export default reactflowstore;
9
+ //# sourceMappingURL=reactflow.d.ts.map
@@ -0,0 +1 @@
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,CAAA;AAClB,OAAO,EAAW,OAAO,EAAE,MAAM,eAAe,CAAA;AAEhD,QAAA,MAAM,cAAc;gCAKS,UAAU,EAAE,KAAK,IAAI;gCACrB,UAAU,EAAE,KAAK,IAAI;+BACtB,UAAU,KAAK,IAAI;MAC3C,OA4BH,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,11 +1,12 @@
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 };
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
@@ -0,0 +1 @@
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,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE/E,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,aAAa,EAAE,aAAa,CAAA;IAC5B,aAAa,EAAE,aAAa,CAAA;IAC5B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;AAGD,KAAK,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAA;AAE/C,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,10 +1,11 @@
1
- type RenderType = "string" | "number" | "boolean" | "image";
2
- interface BaseRenderOptions {
3
- type?: RenderType;
4
- }
5
- interface DataRenderOptions extends BaseRenderOptions {
6
- src?: string;
7
- type?: RenderType;
8
- preview_type?: string;
9
- }
10
- export type { DataRenderOptions, RenderType, BaseRenderOptions };
1
+ type RenderType = "string" | "number" | "boolean" | "image";
2
+ interface BaseRenderOptions {
3
+ type?: RenderType;
4
+ }
5
+ interface DataRenderOptions extends BaseRenderOptions {
6
+ src?: string;
7
+ type?: RenderType;
8
+ preview_type?: string;
9
+ }
10
+ export type { DataRenderOptions, RenderType, BaseRenderOptions };
11
+ //# sourceMappingURL=rendering.t.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rendering.t.d.ts","sourceRoot":"","sources":["../../src/types/rendering.t.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE5D,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,UAAU,iBAAkB,SAAQ,iBAAiB;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
- import { deep_merge, deep_compare_objects, DeepPartial } from "./objects";
2
- export { deep_merge, deep_compare_objects };
3
- export type { DeepPartial };
1
+ import { deep_merge, deep_compare_objects, DeepPartial } from "./objects";
2
+ export { deep_merge, deep_compare_objects };
3
+ export type { DeepPartial };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,CAAC"}
@@ -1,19 +1,20 @@
1
- type DeepPartial<T> = T extends object ? {
2
- [P in keyof T]?: DeepPartial<T[P]>;
3
- } : T;
4
- declare function deep_compare_objects(a: any, b: any): boolean;
5
- /**
6
- *
7
- * function to deeply merge two objects of type T.
8
- *
9
- * @param {T} target - The target object to be merged.
10
- * @param {DeepPartial<T>} source - The source object to merge into the target. All properties of this object are optional.
11
- *
12
- * @returns {T} An object containing the merged object (new_obj) and a boolean indicating if there was a change (change).
13
- */
14
- declare const deep_merge: <T extends {}>(target: T, source: DeepPartial<T>) => {
15
- new_obj: T;
16
- change: boolean;
17
- };
18
- export { deep_merge, deep_compare_objects };
19
- export type { DeepPartial };
1
+ type DeepPartial<T> = T extends object ? {
2
+ [P in keyof T]?: DeepPartial<T[P]>;
3
+ } : T;
4
+ declare function deep_compare_objects(a: any, b: any): boolean;
5
+ /**
6
+ *
7
+ * function to deeply merge two objects of type T.
8
+ *
9
+ * @param {T} target - The target object to be merged.
10
+ * @param {DeepPartial<T>} source - The source object to merge into the target. All properties of this object are optional.
11
+ *
12
+ * @returns {T} An object containing the merged object (new_obj) and a boolean indicating if there was a change (change).
13
+ */
14
+ declare const deep_merge: <T extends {}>(target: T, source: DeepPartial<T>) => {
15
+ new_obj: T;
16
+ change: boolean;
17
+ };
18
+ export { deep_merge, deep_compare_objects };
19
+ export type { DeepPartial };
20
+ //# sourceMappingURL=objects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/utils/objects.ts"],"names":[],"mappings":"AACA,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAClC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC;AAWN,iBAAS,oBAAoB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,OAAO,CAoCrD;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU;;YAKN,OAAO;CA4DhB,CAAC;AACF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdlab/funcnodes_react_flow",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "url": "https://github.com/Linkdlab/FuncNodesReact/issues"
13
13
  },
14
14
  "homepage": "https://github.com/Linkdlab/FuncNodesReact#readme",
15
- "main": "dist/index.js",
15
+ "main": "module/dist/index.js",
16
16
  "source": "src/index.tsx",
17
17
  "engines": {
18
18
  "node": ">=10"
@@ -61,7 +61,7 @@
61
61
  "zustand": "^4.5.0"
62
62
  },
63
63
  "files": [
64
- "dist"
64
+ "module/dist"
65
65
  ],
66
66
  "eslintConfig": {
67
67
  "extends": [
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseRenderOptions } from ".";
3
- interface ImageRenderOptions extends BaseRenderOptions {
4
- format?: "png" | "jpeg";
5
- }
6
- declare const Base64ImageRenderer: ({ value, renderoptions, }: {
7
- value: string;
8
- renderoptions?: ImageRenderOptions;
9
- }) => import("react").JSX.Element;
10
- export { Base64ImageRenderer };
11
- export type { ImageRenderOptions };
@@ -1,13 +0,0 @@
1
- var Base64ImageRenderer = function (_a) {
2
- var value = _a.value, renderoptions = _a.renderoptions;
3
- if (renderoptions === undefined)
4
- renderoptions = {};
5
- if (renderoptions.format === undefined)
6
- renderoptions.format = "jpeg";
7
- return (React.createElement("img", { src: "data:image/" + renderoptions.format + ";base64," + value, style: {
8
- maxWidth: "100%",
9
- maxHeight: "100%",
10
- } }));
11
- };
12
- export { Base64ImageRenderer };
13
- //# sourceMappingURL=images.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"images.js","sourceRoot":"","sources":["../../../src/frontend/datarenderer/images.tsx"],"names":[],"mappings":"AAKA,IAAM,mBAAmB,GAAG,UAAC,EAM5B;QALC,KAAK,WAAA,EACL,aAAa,mBAAA;IAKb,IAAI,aAAa,KAAK,SAAS;QAAE,aAAa,GAAG,EAAE,CAAC;IACpD,IAAI,aAAa,CAAC,MAAM,KAAK,SAAS;QAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC;IAEtE,OAAO,CACL,6BACE,GAAG,EAAE,aAAa,GAAC,aAAa,CAAC,MAAM,GAAC,UAAU,GAAG,KAAK,EAC1D,KAAK,EAAE;YACL,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,MAAM;SAClB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,26 +0,0 @@
1
- import { Base64ImageRenderer } from "./images";
2
- import AnyPlot from "./plotly";
3
- var StringRenderer = function (_a) {
4
- var value = _a.value, renderoptions = _a.renderoptions;
5
- var string = JSON.stringify(value, null, 2);
6
- var max_length = (renderoptions === null || renderoptions === void 0 ? void 0 : renderoptions.max_length) || 1000;
7
- // shorten string if too long
8
- if (string.length > max_length) {
9
- string = string.substring(0, max_length) + "...";
10
- }
11
- return React.createElement(React.Fragment, null, string);
12
- };
13
- var RENDERTYPES = {
14
- image: Base64ImageRenderer,
15
- string: StringRenderer,
16
- str: StringRenderer,
17
- plot: AnyPlot,
18
- };
19
- var get_rendertype = function (rendertype) {
20
- var rt = RENDERTYPES[rendertype];
21
- if (rt === undefined)
22
- return RENDERTYPES["string"];
23
- return rt;
24
- };
25
- export default get_rendertype;
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/frontend/datarenderer/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAsB,MAAM,UAAU,CAAC;AACnE,OAAO,OAAO,MAAM,UAAU,CAAC;AAc/B,IAAM,cAAc,GAAG,UAAC,EAMvB;QALC,KAAK,WAAA,EACL,aAAa,mBAAA;IAKb,IAAI,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC5C,IAAM,UAAU,GAAG,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,UAAU,KAAI,IAAI,CAAC;IACrD,6BAA6B;IAC7B,IAAI,MAAM,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;QAC/B,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC;IACnD,CAAC;IAED,OAAO,0CAAG,MAAM,CAAI,CAAC;AACvB,CAAC,CAAC;AACF,IAAM,WAAW,GAQb;IACF,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,cAAc;IACtB,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,OAAO;CACd,CAAC;AACF,IAAM,cAAc,GAAG,UAAC,UAAkB;IACxC,IAAM,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,EAAE,KAAK,SAAS;QAAE,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;IACnD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseRenderOptions } from ".";
3
- interface PlotlyRenderOptions extends BaseRenderOptions {
4
- plottype?: "line" | "scatter" | "imshow";
5
- layout?: any;
6
- colorscale?: string;
7
- }
8
- declare const AnyPlot: ({ value, renderoptions, }: {
9
- value: any;
10
- renderoptions?: PlotlyRenderOptions;
11
- }) => import("react").JSX.Element;
12
- export {};
13
- export default AnyPlot;
14
- export type { PlotlyRenderOptions };
@@ -1,53 +0,0 @@
1
- import Plot from "react-plotly.js";
2
- var AnyPlot = function (_a) {
3
- var value = _a.value, renderoptions = _a.renderoptions;
4
- if (renderoptions === undefined) {
5
- renderoptions = {};
6
- }
7
- if (value === undefined) {
8
- return React.createElement(React.Fragment, null);
9
- }
10
- renderoptions.plottype = renderoptions.plottype || "line";
11
- var data = [];
12
- var layout = renderoptions.layout || {};
13
- // tight layout
14
- layout.margin = { t: 50, r: 50, l: 50, b: 50 };
15
- if (renderoptions.plottype === "imshow") {
16
- // check if value is a 2D array
17
- if (!Array.isArray(value) || !Array.isArray(value[0])) {
18
- console.error("imshow plottype requires a 2D array");
19
- return React.createElement(React.Fragment, null);
20
- }
21
- // if is 3data, aassume rgb
22
- if (Array.isArray(value[0][0])) {
23
- //check image colorchannel
24
- if ((renderoptions === null || renderoptions === void 0 ? void 0 : renderoptions.colorscale) === "bgr") {
25
- value = value.map(function (row) {
26
- return row.map(function (pixel) { return [pixel[2], pixel[1], pixel[0]]; });
27
- });
28
- }
29
- data.push({
30
- z: value,
31
- type: "image",
32
- colorscale: "rgb",
33
- });
34
- // disable axis
35
- layout.xaxis = { visible: false };
36
- layout.yaxis = { visible: false };
37
- layout.margin = { t: 0, r: 0, l: 0, b: 0 };
38
- }
39
- else {
40
- data.push({
41
- z: value,
42
- type: "heatmap",
43
- colorscale: (renderoptions === null || renderoptions === void 0 ? void 0 : renderoptions.colorscale) || "Viridis",
44
- });
45
- }
46
- }
47
- // auto resize
48
- layout.autosize = true;
49
- return (React.createElement("div", { style: { minWidth: 300, maxHeight: 300, maxWidth: 300, minHeight: 300 } },
50
- React.createElement(Plot, { data: data, layout: layout, useResizeHandler: true, style: { width: "100%", height: "100%" } })));
51
- };
52
- export default AnyPlot;
53
- //# sourceMappingURL=plotly.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plotly.js","sourceRoot":"","sources":["../../../src/frontend/datarenderer/plotly.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAQnC,IAAM,OAAO,GAAG,UAAC,EAMhB;QALC,KAAK,WAAA,EACL,aAAa,mBAAA;IAKb,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,aAAa,GAAG,EAAE,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,yCAAK,CAAC;IACf,CAAC;IAED,aAAa,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,MAAM,CAAC;IAE1D,IAAM,IAAI,GAAkB,EAAE,CAAC;IAC/B,IAAM,MAAM,GAA2B,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC;IAElE,eAAe;IACf,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAE/C,IAAI,aAAa,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACxC,+BAA+B;QAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACtD,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;YACrD,OAAO,yCAAK,CAAC;QACf,CAAC;QACD,2BAA2B;QAC3B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,C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EAAE;QAEvE,oBAAC,IAAI,IACH,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,IAAI,EACtB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GACxC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAGF,eAAe,OAAO,CAAC"}
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- import * as Dialog from "@radix-ui/react-dialog";
3
- import CloseIcon from "@mui/icons-material/Close";
4
- import "./dialog.scss";
5
- var CustomDialog = function (_a) {
6
- var trigger = _a.trigger, title = _a.title, description = _a.description, children = _a.children, _b = _a.closebutton, closebutton = _b === void 0 ? true : _b, onOpenChange = _a.onOpenChange, _c = _a.buttons, buttons = _c === void 0 ? [] : _c;
7
- return (React.createElement(Dialog.Root, { onOpenChange: onOpenChange },
8
- trigger && React.createElement(Dialog.Trigger, { asChild: true }, trigger),
9
- React.createElement(Dialog.Portal, null,
10
- React.createElement(Dialog.Overlay, { className: "dialogoverlay" }),
11
- React.createElement(Dialog.Content, { className: "dialogconent" },
12
- title && (React.createElement(Dialog.Title, { className: "dialogtitle" }, title)),
13
- description && (React.createElement(Dialog.Description, { className: "dialogdescription" }, description)),
14
- React.createElement("div", { className: "dialogchildren" }, children),
15
- React.createElement("div", { style: {
16
- display: "flex",
17
- marginTop: 25,
18
- justifyContent: "flex-end",
19
- } }, (buttons || []).map(function (button, index) { return (React.createElement(Dialog.Close, { asChild: true, key: index },
20
- React.createElement("button", { className: "dialogsendbutton", onClick: button.onClick }, button.text))); })),
21
- closebutton && (React.createElement(Dialog.Close, { asChild: true },
22
- React.createElement("button", { className: "dialogclosebutton", "aria-label": "Close" },
23
- React.createElement(CloseIcon, null))))))));
24
- };
25
- export default CustomDialog;
26
- //# sourceMappingURL=dialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/frontend/dialog.tsx"],"names":[],"mappings":"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AC,OAAO,IACzD,MAAM,CAAC,IAAI,CACL,CACI,CAChB,EANuC,CAMvC,CAAC,CACE;gBACL,WAAW,IAAI,CACd,oBAAC,MAAM,CAAC,KAAK,IAAC,OAAO;oBACnB,gCAAQ,SAAS,EAAC,mBAAmB,gBAAY,OAAO;wBACtD,oBAAC,SAAS,OAAG,CACN,CACI,CAChB,CACc,CACH,CACJ,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,40 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { getBezierPath, BaseEdge } from "reactflow";
24
- import "./edge.scss";
25
- import React from "react";
26
- var DefaultEdge = function (_a) {
27
- var id = _a.id, sourceX = _a.sourceX, sourceY = _a.sourceY, targetX = _a.targetX, targetY = _a.targetY, sourcePosition = _a.sourcePosition, targetPosition = _a.targetPosition, data = _a.data, props = __rest(_a, ["id", "sourceX", "sourceY", "targetX", "targetY", "sourcePosition", "targetPosition", "data"]);
28
- var _b = getBezierPath({
29
- sourceX: sourceX,
30
- sourceY: sourceY,
31
- sourcePosition: sourcePosition,
32
- targetX: targetX,
33
- targetY: targetY,
34
- targetPosition: targetPosition,
35
- }), edgePath = _b[0], labelX = _b[1], labelY = _b[2];
36
- return (React.createElement(React.Fragment, null,
37
- React.createElement(BaseEdge, __assign({ id: id, path: edgePath }, props))));
38
- };
39
- export default DefaultEdge;
40
- //# sourceMappingURL=edge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edge.js","sourceRoot":"","sources":["../../src/frontend/edge.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAa,aAAa,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,IAAM,WAAW,GAAG,UAAC,EAUT;IATV,IAAA,EAAE,QAAA,EACF,OAAO,aAAA,EACP,OAAO,aAAA,EACP,OAAO,aAAA,EACP,OAAO,aAAA,EACP,cAAc,oBAAA,EACd,cAAc,oBAAA,EACd,IAAI,UAAA,EACD,KAAK,cATW,8FAUpB,CADS;IAEF,IAAA,KAA6B,aAAa,CAAC;QAC/C,OAAO,SAAA;QACP,OAAO,SAAA;QACP,cAAc,gBAAA;QACd,OAAO,SAAA;QACP,OAAO,SAAA;QACP,cAAc,gBAAA;KACf,CAAC,EAPK,QAAQ,QAAA,EAAE,MAAM,QAAA,EAAE,MAAM,QAO7B,CAAC;IAEH,OAAO,CACL;QACE,oBAAC,QAAQ,aAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,IAAM,KAAK,EAAI,CAC9C,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}