@awesome-flow/noise 0.9.2 → 0.9.4

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 (196) hide show
  1. package/dist/abstract/index.cjs +16 -29
  2. package/dist/abstract/index.d.cts +131 -121
  3. package/dist/abstract/index.d.cts.map +1 -0
  4. package/dist/abstract/index.d.ts +131 -121
  5. package/dist/abstract/index.d.ts.map +1 -0
  6. package/dist/abstract/index.js +8 -29
  7. package/dist/abstract-Db8fFoLp.cjs +1423 -0
  8. package/dist/abstract-Db8fFoLp.cjs.map +1 -0
  9. package/dist/abstract-Dhf_tSuO.js +1177 -0
  10. package/dist/abstract-Dhf_tSuO.js.map +1 -0
  11. package/dist/chunk-CUT6urMc.cjs +30 -0
  12. package/dist/generators-BzkwG_6g.js +353 -0
  13. package/dist/generators-BzkwG_6g.js.map +1 -0
  14. package/dist/generators-D3RjZdMN.cjs +413 -0
  15. package/dist/generators-D3RjZdMN.cjs.map +1 -0
  16. package/dist/groups-BIS2AF5M.cjs +32 -0
  17. package/dist/groups-BIS2AF5M.cjs.map +1 -0
  18. package/dist/groups-CH_lk8Aw.js +26 -0
  19. package/dist/groups-CH_lk8Aw.js.map +1 -0
  20. package/dist/index-B5F3AfVc.d.ts +1 -0
  21. package/dist/index-B9liqMk7.d.cts +106 -0
  22. package/dist/index-B9liqMk7.d.cts.map +1 -0
  23. package/dist/index-BLREDRDJ.d.cts +1 -0
  24. package/dist/index-BQGb02a-.d.cts +1 -0
  25. package/dist/index-Be7jjS77.d.ts +1 -0
  26. package/dist/index-C2UIRuQU.d.ts +56 -0
  27. package/dist/index-C2UIRuQU.d.ts.map +1 -0
  28. package/dist/index-C7p7kRl6.d.ts +106 -0
  29. package/dist/index-C7p7kRl6.d.ts.map +1 -0
  30. package/dist/index-CLcwj8U0.d.ts +1 -0
  31. package/dist/index-CUPkUUOR.d.ts +1 -0
  32. package/dist/index-CdUm_2Oy.d.cts +45 -0
  33. package/dist/index-CdUm_2Oy.d.cts.map +1 -0
  34. package/dist/index-CnGot0Ls.d.ts +26 -0
  35. package/dist/index-CnGot0Ls.d.ts.map +1 -0
  36. package/dist/index-CtCMUyZA.d.cts +1 -0
  37. package/dist/index-DAwMsCZ3.d.ts +1 -0
  38. package/dist/index-DHPGVj1Q.d.cts +56 -0
  39. package/dist/index-DHPGVj1Q.d.cts.map +1 -0
  40. package/dist/index-DOvrmvAP.d.cts +1 -0
  41. package/dist/index-Dh6J9gb5.d.cts +1 -0
  42. package/dist/index-Dpmi5zcN.d.cts +1 -0
  43. package/dist/index-DsrVbQfJ.d.cts +26 -0
  44. package/dist/index-DsrVbQfJ.d.cts.map +1 -0
  45. package/dist/index-Dun4VhYj.d.ts +10 -0
  46. package/dist/index-Dun4VhYj.d.ts.map +1 -0
  47. package/dist/index-Dyw_KDIi.d.ts +45 -0
  48. package/dist/index-Dyw_KDIi.d.ts.map +1 -0
  49. package/dist/index-I2m6W13H.d.ts +1 -0
  50. package/dist/index-QAtBiMxG.d.cts +1 -0
  51. package/dist/index-XpRnF8C9.d.cts +98 -0
  52. package/dist/index-XpRnF8C9.d.cts.map +1 -0
  53. package/dist/index-b3KxQSTX.d.ts +98 -0
  54. package/dist/index-b3KxQSTX.d.ts.map +1 -0
  55. package/dist/index-kr8Wk7v5.d.ts +1 -0
  56. package/dist/index-uyclP-_e.d.cts +10 -0
  57. package/dist/index-uyclP-_e.d.cts.map +1 -0
  58. package/dist/modifiers-DU7AkD-K.cjs +545 -0
  59. package/dist/modifiers-DU7AkD-K.cjs.map +1 -0
  60. package/dist/modifiers-MSA4z6Gq.js +479 -0
  61. package/dist/modifiers-MSA4z6Gq.js.map +1 -0
  62. package/dist/module-group-template-evi7UU-G.d.ts +12 -0
  63. package/dist/module-group-template-evi7UU-G.d.ts.map +1 -0
  64. package/dist/module-group-template-hN1W1MZD.d.cts +12 -0
  65. package/dist/module-group-template-hN1W1MZD.d.cts.map +1 -0
  66. package/dist/modules/index.cjs +2 -5
  67. package/dist/modules/index.d.cts +10 -5
  68. package/dist/modules/index.d.cts.map +1 -0
  69. package/dist/modules/index.d.ts +10 -5
  70. package/dist/modules/index.d.ts.map +1 -0
  71. package/dist/modules/index.js +3 -6
  72. package/dist/node-props-76LXd76e.d.ts +141 -0
  73. package/dist/node-props-76LXd76e.d.ts.map +1 -0
  74. package/dist/node-props-D-fSg180.d.cts +141 -0
  75. package/dist/node-props-D-fSg180.d.cts.map +1 -0
  76. package/dist/nodes/generators/index.cjs +12 -24
  77. package/dist/nodes/generators/index.d.cts +3 -27
  78. package/dist/nodes/generators/index.d.ts +3 -27
  79. package/dist/nodes/generators/index.js +3 -24
  80. package/dist/nodes/groups/index.cjs +2 -5
  81. package/dist/nodes/groups/index.d.cts +2 -7
  82. package/dist/nodes/groups/index.d.ts +2 -7
  83. package/dist/nodes/groups/index.js +3 -6
  84. package/dist/nodes/index.cjs +38 -75
  85. package/dist/nodes/index.d.cts +9 -13
  86. package/dist/nodes/index.d.ts +9 -13
  87. package/dist/nodes/index.js +8 -75
  88. package/dist/nodes/modifiers/index.cjs +12 -23
  89. package/dist/nodes/modifiers/index.d.cts +3 -12
  90. package/dist/nodes/modifiers/index.d.ts +3 -12
  91. package/dist/nodes/modifiers/index.js +4 -23
  92. package/dist/nodes/output/index.cjs +11 -17
  93. package/dist/nodes/output/index.d.cts +2 -13
  94. package/dist/nodes/output/index.d.ts +2 -13
  95. package/dist/nodes/output/index.js +8 -17
  96. package/dist/nodes/selectors/index.cjs +9 -13
  97. package/dist/nodes/selectors/index.d.cts +3 -11
  98. package/dist/nodes/selectors/index.d.ts +3 -11
  99. package/dist/nodes/selectors/index.js +8 -13
  100. package/dist/nodes/transformers/index.cjs +6 -13
  101. package/dist/nodes/transformers/index.d.cts +3 -17
  102. package/dist/nodes/transformers/index.d.ts +3 -17
  103. package/dist/nodes/transformers/index.js +3 -14
  104. package/dist/noise-select-template-BIc5lJ3B.d.ts +20 -0
  105. package/dist/noise-select-template-BIc5lJ3B.d.ts.map +1 -0
  106. package/dist/noise-select-template-DCaVwZ3-.d.cts +20 -0
  107. package/dist/noise-select-template-DCaVwZ3-.d.cts.map +1 -0
  108. package/dist/noise-terrace-template-0WFJalF_.d.cts +69 -0
  109. package/dist/noise-terrace-template-0WFJalF_.d.cts.map +1 -0
  110. package/dist/noise-terrace-template-li40jZuF.d.ts +69 -0
  111. package/dist/noise-terrace-template-li40jZuF.d.ts.map +1 -0
  112. package/dist/noise-turbulence-template-BhxPzE9y.d.ts +68 -0
  113. package/dist/noise-turbulence-template-BhxPzE9y.d.ts.map +1 -0
  114. package/dist/noise-turbulence-template-D1wvZo6-.d.cts +68 -0
  115. package/dist/noise-turbulence-template-D1wvZo6-.d.cts.map +1 -0
  116. package/dist/normalize-noise-module-CTxqByn9.js +20 -0
  117. package/dist/normalize-noise-module-CTxqByn9.js.map +1 -0
  118. package/dist/normalize-noise-module-U3fMmZRj.cjs +26 -0
  119. package/dist/normalize-noise-module-U3fMmZRj.cjs.map +1 -0
  120. package/dist/output-CsgQ-PfN.js +0 -0
  121. package/dist/output-DhHW36T8.cjs +0 -0
  122. package/dist/position-grid-template-B7YMhe83.d.cts +76 -0
  123. package/dist/position-grid-template-B7YMhe83.d.cts.map +1 -0
  124. package/dist/position-grid-template-QuIcXmat.d.ts +76 -0
  125. package/dist/position-grid-template-QuIcXmat.d.ts.map +1 -0
  126. package/dist/position-logger-template-Bj6c2m8v.d.ts +33 -0
  127. package/dist/position-logger-template-Bj6c2m8v.d.ts.map +1 -0
  128. package/dist/position-logger-template-DmcBLwwL.d.cts +33 -0
  129. package/dist/position-logger-template-DmcBLwwL.d.cts.map +1 -0
  130. package/dist/selectors-DOtoPc8O.cjs +0 -0
  131. package/dist/selectors-DPitHA56.js +0 -0
  132. package/dist/templates/generators/index.cjs +18 -30
  133. package/dist/templates/generators/index.d.cts +4 -45
  134. package/dist/templates/generators/index.d.ts +4 -45
  135. package/dist/templates/generators/index.js +9 -30
  136. package/dist/templates/groups/index.cjs +9 -12
  137. package/dist/templates/groups/index.d.cts +3 -7
  138. package/dist/templates/groups/index.d.ts +3 -7
  139. package/dist/templates/groups/index.js +9 -12
  140. package/dist/templates/index.cjs +44 -77
  141. package/dist/templates/index.d.cts +14 -9
  142. package/dist/templates/index.d.ts +14 -9
  143. package/dist/templates/index.js +14 -77
  144. package/dist/templates/modifiers/index.cjs +17 -28
  145. package/dist/templates/modifiers/index.d.cts +4 -41
  146. package/dist/templates/modifiers/index.d.ts +4 -41
  147. package/dist/templates/modifiers/index.js +9 -28
  148. package/dist/templates/output/index.cjs +12 -18
  149. package/dist/templates/output/index.d.cts +3 -19
  150. package/dist/templates/output/index.d.ts +3 -19
  151. package/dist/templates/output/index.js +9 -18
  152. package/dist/templates/selectors/index.cjs +10 -14
  153. package/dist/templates/selectors/index.d.cts +4 -13
  154. package/dist/templates/selectors/index.d.ts +4 -13
  155. package/dist/templates/selectors/index.js +9 -14
  156. package/dist/templates/transformers/index.cjs +13 -20
  157. package/dist/templates/transformers/index.d.cts +4 -4
  158. package/dist/templates/transformers/index.d.ts +4 -4
  159. package/dist/templates/transformers/index.js +9 -20
  160. package/dist/transformers-C-NV_u9j.cjs +324 -0
  161. package/dist/transformers-C-NV_u9j.cjs.map +1 -0
  162. package/dist/transformers-CbfR4wDy.js +0 -0
  163. package/dist/transformers-Cpxm1ER8.js +276 -0
  164. package/dist/transformers-Cpxm1ER8.js.map +1 -0
  165. package/dist/transformers-iRDXBonP.cjs +0 -0
  166. package/package.json +14 -15
  167. package/dist/chunk-36USJJC4.cjs +0 -576
  168. package/dist/chunk-4PQ4USYV.cjs +0 -1
  169. package/dist/chunk-DQE5NXY7.cjs +0 -911
  170. package/dist/chunk-FFQRP23R.cjs +0 -1
  171. package/dist/chunk-FMJZTXJQ.js +0 -576
  172. package/dist/chunk-JACBT4MS.cjs +0 -1
  173. package/dist/chunk-LKDSXT7I.cjs +0 -896
  174. package/dist/chunk-M26CSOHC.js +0 -911
  175. package/dist/chunk-N6YNJKLS.cjs +0 -1
  176. package/dist/chunk-NUA3VGOA.js +0 -896
  177. package/dist/chunk-OLJKWO2H.cjs +0 -1591
  178. package/dist/chunk-Q5FVGKKM.cjs +0 -1
  179. package/dist/chunk-R6TU3SBX.js +0 -49
  180. package/dist/chunk-SGHEOOLW.js +0 -19
  181. package/dist/chunk-UNMRBZ5X.cjs +0 -19
  182. package/dist/chunk-W4T6Q7A5.js +0 -1591
  183. package/dist/chunk-WOJTKQKO.cjs +0 -1
  184. package/dist/chunk-XC7VF5YC.cjs +0 -49
  185. package/dist/index-BZr1EROK.d.cts +0 -49
  186. package/dist/index-DzD3jbPF.d.ts +0 -49
  187. package/dist/node-props-D8SnrgWa.d.cts +0 -137
  188. package/dist/node-props-D8SnrgWa.d.ts +0 -137
  189. package/dist/noise-terrace-node-D2ezdTnC.d.cts +0 -22
  190. package/dist/noise-terrace-node-DW81ZQk6.d.ts +0 -22
  191. /package/dist/{chunk-2Y22M2Y4.js → generators-CEKtVh81.cjs} +0 -0
  192. /package/dist/{chunk-5ELMFIRV.js → generators-DUbGjGwn.js} +0 -0
  193. /package/dist/{chunk-RVWCBH7K.js → groups-7QhtZ7S3.js} +0 -0
  194. /package/dist/{chunk-SD3T3LFY.js → groups-_x04PMtP.cjs} +0 -0
  195. /package/dist/{chunk-TOYKGWYO.js → modifiers-BFuezug6.js} +0 -0
  196. /package/dist/{chunk-XZQQ6N3L.js → modifiers-BPTSn-15.cjs} +0 -0
@@ -1,911 +0,0 @@
1
- import {
2
- NormalizeNoiseModule
3
- } from "./chunk-SGHEOOLW.js";
4
-
5
- // src/nodes/modifiers/noise-abs-node.tsx
6
- import { c as _c } from "react/compiler-runtime";
7
- import { useIncomingComputedData, useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
8
- import { NodeContainer } from "@awesome-flow/core/layout";
9
- import { Abs } from "libnoise-simplex-ts";
10
- import { useEffect } from "react";
11
- import { jsx } from "react/jsx-runtime";
12
- function NoiseAbsNode(t0) {
13
- const $ = _c(10);
14
- const {
15
- id,
16
- selected,
17
- data,
18
- type
19
- } = t0;
20
- const incoming = useIncomingComputedData(id);
21
- const updateComputedData = useUpdateNodeComputedData();
22
- let t1;
23
- let t2;
24
- if ($[0] !== id || $[1] !== incoming || $[2] !== updateComputedData) {
25
- t1 = () => {
26
- if (incoming?.length > 0) {
27
- const module = new Abs(incoming[0].module);
28
- updateComputedData(id, {
29
- module
30
- });
31
- }
32
- };
33
- t2 = [incoming, id, updateComputedData];
34
- $[0] = id;
35
- $[1] = incoming;
36
- $[2] = updateComputedData;
37
- $[3] = t1;
38
- $[4] = t2;
39
- } else {
40
- t1 = $[3];
41
- t2 = $[4];
42
- }
43
- useEffect(t1, t2);
44
- let t3;
45
- if ($[5] !== data || $[6] !== id || $[7] !== selected || $[8] !== type) {
46
- t3 = /* @__PURE__ */ jsx(NodeContainer, { id, selected, data, type });
47
- $[5] = data;
48
- $[6] = id;
49
- $[7] = selected;
50
- $[8] = type;
51
- $[9] = t3;
52
- } else {
53
- t3 = $[9];
54
- }
55
- return t3;
56
- }
57
- var noise_abs_node_default = NoiseAbsNode;
58
-
59
- // src/nodes/modifiers/noise-clamp-node.tsx
60
- import { c as _c2 } from "react/compiler-runtime";
61
- import { useIncomingComputedData as useIncomingComputedData2, useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData } from "@awesome-flow/core/hooks";
62
- import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
63
- import { Group, NumberInput, Stack } from "@mantine/core";
64
- import { Clamp } from "libnoise-simplex-ts";
65
- import { useEffect as useEffect2, useState } from "react";
66
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
67
- function NoiseClampNode(t0) {
68
- const $ = _c2(23);
69
- const {
70
- id,
71
- selected,
72
- data,
73
- type
74
- } = t0;
75
- const [lowerBound, setLowerBound] = useState(data.lowerBound);
76
- const [upperBound, setUpperBound] = useState(data.upperBound);
77
- const incoming = useIncomingComputedData2(id);
78
- const updateNodeData = useUpdateNodeData();
79
- const updateComputedData = useUpdateNodeComputedData2();
80
- let t1;
81
- let t2;
82
- if ($[0] !== id || $[1] !== incoming || $[2] !== lowerBound || $[3] !== updateComputedData || $[4] !== updateNodeData || $[5] !== upperBound) {
83
- t1 = () => {
84
- if (incoming?.length) {
85
- const module = new Clamp(incoming[0].module, lowerBound, upperBound);
86
- updateComputedData(id, {
87
- module
88
- });
89
- }
90
- updateNodeData(id, {
91
- lowerBound,
92
- upperBound
93
- });
94
- };
95
- t2 = [incoming, lowerBound, upperBound, id, updateComputedData, updateNodeData];
96
- $[0] = id;
97
- $[1] = incoming;
98
- $[2] = lowerBound;
99
- $[3] = updateComputedData;
100
- $[4] = updateNodeData;
101
- $[5] = upperBound;
102
- $[6] = t1;
103
- $[7] = t2;
104
- } else {
105
- t1 = $[6];
106
- t2 = $[7];
107
- }
108
- useEffect2(t1, t2);
109
- let t3;
110
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
111
- t3 = (e) => setLowerBound(Number(e));
112
- $[8] = t3;
113
- } else {
114
- t3 = $[8];
115
- }
116
- let t4;
117
- if ($[9] !== lowerBound) {
118
- t4 = /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: lowerBound, onChange: t3, step: 0.1 });
119
- $[9] = lowerBound;
120
- $[10] = t4;
121
- } else {
122
- t4 = $[10];
123
- }
124
- let t5;
125
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
126
- t5 = (e_0) => setUpperBound(Number(e_0));
127
- $[11] = t5;
128
- } else {
129
- t5 = $[11];
130
- }
131
- let t6;
132
- if ($[12] !== upperBound) {
133
- t6 = /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: upperBound, onChange: t5, step: 0.1 });
134
- $[12] = upperBound;
135
- $[13] = t6;
136
- } else {
137
- t6 = $[13];
138
- }
139
- let t7;
140
- if ($[14] !== t4 || $[15] !== t6) {
141
- t7 = /* @__PURE__ */ jsx2(Stack, { children: /* @__PURE__ */ jsxs(Group, { children: [
142
- t4,
143
- t6
144
- ] }) });
145
- $[14] = t4;
146
- $[15] = t6;
147
- $[16] = t7;
148
- } else {
149
- t7 = $[16];
150
- }
151
- let t8;
152
- if ($[17] !== data || $[18] !== id || $[19] !== selected || $[20] !== t7 || $[21] !== type) {
153
- t8 = /* @__PURE__ */ jsx2(NodeContainer2, { id, selected, data, type, children: t7 });
154
- $[17] = data;
155
- $[18] = id;
156
- $[19] = selected;
157
- $[20] = t7;
158
- $[21] = type;
159
- $[22] = t8;
160
- } else {
161
- t8 = $[22];
162
- }
163
- return t8;
164
- }
165
- var noise_clamp_node_default = NoiseClampNode;
166
-
167
- // src/nodes/modifiers/noise-combine-node.tsx
168
- import { c as _c3 } from "react/compiler-runtime";
169
- import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData3, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
170
- import { NodeCombobox, NodeContainer as NodeContainer3 } from "@awesome-flow/core/layout";
171
- import { IconAsterisk, IconChevronLeft, IconChevronRight, IconChevronUp, IconPlus } from "@tabler/icons-react";
172
- import { useEffect as useEffect3 } from "react";
173
-
174
- // src/abstract/operations.ts
175
- import { Add, Max, Min, Multiply, Power } from "libnoise-simplex-ts";
176
- var NoiseCombineType = /* @__PURE__ */ ((NoiseCombineType3) => {
177
- NoiseCombineType3["add"] = "add";
178
- NoiseCombineType3["max"] = "max";
179
- NoiseCombineType3["min"] = "min";
180
- NoiseCombineType3["multiply"] = "multiply";
181
- NoiseCombineType3["power"] = "power";
182
- return NoiseCombineType3;
183
- })(NoiseCombineType || {});
184
- var noiseCombineModuleMap = {
185
- ["add" /* add */]: Add,
186
- ["max" /* max */]: Max,
187
- ["min" /* min */]: Min,
188
- ["multiply" /* multiply */]: Multiply,
189
- ["power" /* power */]: Power
190
- };
191
-
192
- // src/nodes/modifiers/noise-combine-node.tsx
193
- import { jsx as jsx3 } from "react/jsx-runtime";
194
- var options = {
195
- add: /* @__PURE__ */ jsx3(IconPlus, {}),
196
- min: /* @__PURE__ */ jsx3(IconChevronLeft, {}),
197
- max: /* @__PURE__ */ jsx3(IconChevronRight, {}),
198
- multiply: /* @__PURE__ */ jsx3(IconAsterisk, {}),
199
- power: /* @__PURE__ */ jsx3(IconChevronUp, {})
200
- };
201
- function NoiseCombineNode(t0) {
202
- const $ = _c3(18);
203
- const {
204
- id,
205
- selected,
206
- data,
207
- type
208
- } = t0;
209
- const updateNodeData = useUpdateNodeData2();
210
- const updateComputedData = useUpdateNodeComputedData3();
211
- const incoming = useIncomingComputedData3(id);
212
- let t1;
213
- let t2;
214
- if ($[0] !== data.operation || $[1] !== id || $[2] !== incoming || $[3] !== updateComputedData) {
215
- t1 = () => {
216
- const ModuleFactory = noiseCombineModuleMap[data.operation];
217
- if (incoming?.length > 1) {
218
- const module = new ModuleFactory(incoming[0].module, incoming[1].module);
219
- updateComputedData(id, {
220
- module
221
- });
222
- }
223
- };
224
- t2 = [data.operation, incoming, id, updateComputedData];
225
- $[0] = data.operation;
226
- $[1] = id;
227
- $[2] = incoming;
228
- $[3] = updateComputedData;
229
- $[4] = t1;
230
- $[5] = t2;
231
- } else {
232
- t1 = $[4];
233
- t2 = $[5];
234
- }
235
- useEffect3(t1, t2);
236
- let t3;
237
- if ($[6] !== id || $[7] !== updateNodeData) {
238
- t3 = (operation) => {
239
- updateNodeData(id, {
240
- operation
241
- });
242
- };
243
- $[6] = id;
244
- $[7] = updateNodeData;
245
- $[8] = t3;
246
- } else {
247
- t3 = $[8];
248
- }
249
- const onChange = t3;
250
- let t4;
251
- if ($[9] !== data.operation || $[10] !== onChange) {
252
- t4 = /* @__PURE__ */ jsx3(NodeCombobox, { options, selected: data.operation, onChange, width: 150 });
253
- $[9] = data.operation;
254
- $[10] = onChange;
255
- $[11] = t4;
256
- } else {
257
- t4 = $[11];
258
- }
259
- let t5;
260
- if ($[12] !== data || $[13] !== id || $[14] !== selected || $[15] !== t4 || $[16] !== type) {
261
- t5 = /* @__PURE__ */ jsx3(NodeContainer3, { id, selected, data, type, children: t4 });
262
- $[12] = data;
263
- $[13] = id;
264
- $[14] = selected;
265
- $[15] = t4;
266
- $[16] = type;
267
- $[17] = t5;
268
- } else {
269
- t5 = $[17];
270
- }
271
- return t5;
272
- }
273
- var noise_combine_node_default = NoiseCombineNode;
274
-
275
- // src/nodes/modifiers/noise-curve-node.tsx
276
- import { NodeState } from "@awesome-flow/core/abstract";
277
- import { useIncomingComputedData as useIncomingComputedData4, useUpdateNodeComputedData as useUpdateNodeComputedData4, useUpdateNodeData as useUpdateNodeData3 } from "@awesome-flow/core/hooks";
278
- import { NodeContainer as NodeContainer4 } from "@awesome-flow/core/layout";
279
- import { ActionIcon, Button, Group as Group2, NumberInput as NumberInput2, Space } from "@mantine/core";
280
- import { FORM_INDEX, useForm } from "@mantine/form";
281
- import { randomId } from "@mantine/hooks";
282
- import { IconX } from "@tabler/icons-react";
283
- import { Curve, Tuple } from "libnoise-simplex-ts";
284
- import { useCallback as useCallback2, useEffect as useEffect4, useMemo, useState as useState2 } from "react";
285
- import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
286
- function NoiseCurveNode({
287
- id,
288
- selected,
289
- data,
290
- type
291
- }) {
292
- const incoming = useIncomingComputedData4(id);
293
- const updateNodeData = useUpdateNodeData3();
294
- const updateComputedData = useUpdateNodeComputedData4();
295
- const [values, setValues] = useState2([]);
296
- const initialValues = useMemo(() => {
297
- return data.points?.length ? data.points.map((v) => ({
298
- input: v.input,
299
- output: v.output,
300
- key: randomId()
301
- })) : [1, 2, 3, 4].map(() => ({
302
- input: 0,
303
- output: 0,
304
- key: randomId()
305
- }));
306
- }, [data.points]);
307
- const form = useForm({
308
- mode: "uncontrolled",
309
- initialValues: {
310
- points: initialValues
311
- },
312
- validateInputOnChange: [`points.${FORM_INDEX}.input`],
313
- clearInputErrorOnChange: true,
314
- validate: {
315
- points: {
316
- input: (value, values2) => {
317
- const counts = {};
318
- values2.points.forEach((x) => {
319
- counts[x.input] = (counts[x.input] || 0) + 1;
320
- });
321
- return counts[value] > 1;
322
- }
323
- }
324
- },
325
- onValuesChange: useCallback2(
326
- (values2) => {
327
- form.validate();
328
- if (form.isValid()) {
329
- const points = values2.points.map((v) => ({
330
- input: v.input,
331
- output: v.output
332
- }));
333
- setValues(points);
334
- updateNodeData(id, {
335
- points
336
- });
337
- }
338
- },
339
- // eslint-disable-next-line react-compiler/react-compiler
340
- // eslint-disable-next-line react-hooks/exhaustive-deps
341
- [id, updateNodeData]
342
- )
343
- });
344
- useEffect4(() => {
345
- if (incoming?.length && values?.length >= 4) {
346
- const module = new Curve(incoming[0].module, values.map((p) => new Tuple(p.input, p.output)));
347
- updateComputedData(id, {
348
- module
349
- });
350
- }
351
- }, [id, values, incoming, updateComputedData]);
352
- const fields = useMemo(() => values.map((item, index) => /* @__PURE__ */ jsxs2(Group2, { mt: "xs", children: [
353
- /* @__PURE__ */ jsx4(NumberInput2, { size: "xs", w: 100, placeholder: "Input Value", ...form.getInputProps(`points.${index}.input`), step: 0.1 }, form.key(`points.${index}.input`)),
354
- /* @__PURE__ */ jsx4(NumberInput2, { size: "xs", w: 100, placeholder: "Output Value", ...form.getInputProps(`points.${index}.output`), step: 0.1 }, form.key(`points.${index}.output`)),
355
- data.state === NodeState.edit && values.length > 4 && /* @__PURE__ */ jsx4(ActionIcon, { color: "red", variant: "outline", size: "sm", onClick: () => form.removeListItem("points", index), children: /* @__PURE__ */ jsx4(IconX, { size: "1rem" }) })
356
- ] }, item.key)), [data.state, values, form]);
357
- return /* @__PURE__ */ jsxs2(NodeContainer4, { id, selected, type, data, children: [
358
- fields,
359
- data.state === NodeState.edit && /* @__PURE__ */ jsxs2(Fragment, { children: [
360
- /* @__PURE__ */ jsx4(Space, { h: 10 }),
361
- /* @__PURE__ */ jsx4(Button, { variant: "outline", size: "xs", fullWidth: true, onClick: () => form.insertListItem("points", {
362
- input: 0,
363
- output: 0,
364
- key: randomId()
365
- }), children: "Add control point" })
366
- ] })
367
- ] });
368
- }
369
- var noise_curve_node_default = NoiseCurveNode;
370
-
371
- // src/nodes/modifiers/noise-exponent-node.tsx
372
- import { c as _c4 } from "react/compiler-runtime";
373
- import { useIncomingComputedData as useIncomingComputedData5, useUpdateNodeComputedData as useUpdateNodeComputedData5, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
374
- import { NodeContainer as NodeContainer5 } from "@awesome-flow/core/layout";
375
- import { Group as Group3, NumberInput as NumberInput3, Stack as Stack2 } from "@mantine/core";
376
- import { Exponent } from "libnoise-simplex-ts";
377
- import { useEffect as useEffect5, useState as useState3 } from "react";
378
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
379
- function NoiseExponentNode(t0) {
380
- const $ = _c4(16);
381
- const {
382
- id,
383
- selected,
384
- data,
385
- type
386
- } = t0;
387
- const [exponent, setExponent] = useState3(data.exponent);
388
- const incoming = useIncomingComputedData5(id);
389
- const updateNodeData = useUpdateNodeData4();
390
- const updateComputedData = useUpdateNodeComputedData5();
391
- let t1;
392
- let t2;
393
- if ($[0] !== exponent || $[1] !== id || $[2] !== incoming || $[3] !== updateComputedData || $[4] !== updateNodeData) {
394
- t1 = () => {
395
- if (incoming?.length > 0) {
396
- const module = new Exponent(incoming[0].module, exponent);
397
- updateComputedData(id, {
398
- module
399
- });
400
- }
401
- updateNodeData(id, {
402
- exponent
403
- });
404
- };
405
- t2 = [id, incoming, exponent, updateComputedData, updateNodeData];
406
- $[0] = exponent;
407
- $[1] = id;
408
- $[2] = incoming;
409
- $[3] = updateComputedData;
410
- $[4] = updateNodeData;
411
- $[5] = t1;
412
- $[6] = t2;
413
- } else {
414
- t1 = $[5];
415
- t2 = $[6];
416
- }
417
- useEffect5(t1, t2);
418
- let t3;
419
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
420
- t3 = (e) => setExponent(Number(e));
421
- $[7] = t3;
422
- } else {
423
- t3 = $[7];
424
- }
425
- let t4;
426
- if ($[8] !== exponent) {
427
- t4 = /* @__PURE__ */ jsx5(Stack2, { children: /* @__PURE__ */ jsxs3(Group3, { children: [
428
- "Exponent:",
429
- /* @__PURE__ */ jsx5(NumberInput3, { size: "xs", value: exponent, onChange: t3, step: 0.1 })
430
- ] }) });
431
- $[8] = exponent;
432
- $[9] = t4;
433
- } else {
434
- t4 = $[9];
435
- }
436
- let t5;
437
- if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t4 || $[14] !== type) {
438
- t5 = /* @__PURE__ */ jsx5(NodeContainer5, { id, selected, data, type, children: t4 });
439
- $[10] = data;
440
- $[11] = id;
441
- $[12] = selected;
442
- $[13] = t4;
443
- $[14] = type;
444
- $[15] = t5;
445
- } else {
446
- t5 = $[15];
447
- }
448
- return t5;
449
- }
450
- var noise_exponent_node_default = NoiseExponentNode;
451
-
452
- // src/nodes/modifiers/noise-invert-node.tsx
453
- import { c as _c5 } from "react/compiler-runtime";
454
- import { useIncomingComputedData as useIncomingComputedData6, useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
455
- import { NodeContainer as NodeContainer6 } from "@awesome-flow/core/layout";
456
- import { Invert } from "libnoise-simplex-ts";
457
- import { useEffect as useEffect6 } from "react";
458
- import { jsx as jsx6 } from "react/jsx-runtime";
459
- function NoiseInvertNode(t0) {
460
- const $ = _c5(10);
461
- const {
462
- id,
463
- selected,
464
- data,
465
- type
466
- } = t0;
467
- const incoming = useIncomingComputedData6(id);
468
- const updateComputedData = useUpdateNodeComputedData6();
469
- let t1;
470
- let t2;
471
- if ($[0] !== id || $[1] !== incoming || $[2] !== updateComputedData) {
472
- t1 = () => {
473
- if (incoming?.length > 0) {
474
- const module = new Invert(incoming[0].module);
475
- updateComputedData(id, {
476
- module
477
- });
478
- }
479
- };
480
- t2 = [id, incoming, updateComputedData];
481
- $[0] = id;
482
- $[1] = incoming;
483
- $[2] = updateComputedData;
484
- $[3] = t1;
485
- $[4] = t2;
486
- } else {
487
- t1 = $[3];
488
- t2 = $[4];
489
- }
490
- useEffect6(t1, t2);
491
- let t3;
492
- if ($[5] !== data || $[6] !== id || $[7] !== selected || $[8] !== type) {
493
- t3 = /* @__PURE__ */ jsx6(NodeContainer6, { id, selected, data, type });
494
- $[5] = data;
495
- $[6] = id;
496
- $[7] = selected;
497
- $[8] = type;
498
- $[9] = t3;
499
- } else {
500
- t3 = $[9];
501
- }
502
- return t3;
503
- }
504
- var noise_invert_node_default = NoiseInvertNode;
505
-
506
- // src/nodes/modifiers/noise-normalize-node.tsx
507
- import { c as _c6 } from "react/compiler-runtime";
508
- import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData7, useUpdateNodeData as useUpdateNodeData5 } from "@awesome-flow/core/hooks";
509
- import { NodeContainer as NodeContainer7 } from "@awesome-flow/core/layout";
510
- import { Group as Group4, NumberInput as NumberInput4, Stack as Stack3 } from "@mantine/core";
511
- import { useEffect as useEffect7, useState as useState4 } from "react";
512
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
513
- function NoiseNormalizeNode(t0) {
514
- const $ = _c6(23);
515
- const {
516
- id,
517
- selected,
518
- data,
519
- type
520
- } = t0;
521
- const [intervalStart, setIntervalStart] = useState4(data.intervalStart);
522
- const [intervalEnd, setIntervalEnd] = useState4(data.intervalEnd);
523
- const incoming = useIncomingComputedData7(id);
524
- const updateNodeData = useUpdateNodeData5();
525
- const updateComputedData = useUpdateNodeComputedData7();
526
- let t1;
527
- let t2;
528
- if ($[0] !== id || $[1] !== incoming || $[2] !== intervalEnd || $[3] !== intervalStart || $[4] !== updateComputedData || $[5] !== updateNodeData) {
529
- t1 = () => {
530
- if (incoming?.length) {
531
- const source = incoming[0].module;
532
- const module = new NormalizeNoiseModule(source, intervalStart, intervalEnd);
533
- updateComputedData(id, {
534
- module
535
- });
536
- }
537
- updateNodeData(id, {
538
- intervalStart,
539
- intervalEnd
540
- });
541
- };
542
- t2 = [id, incoming, intervalStart, intervalEnd, updateComputedData, updateNodeData];
543
- $[0] = id;
544
- $[1] = incoming;
545
- $[2] = intervalEnd;
546
- $[3] = intervalStart;
547
- $[4] = updateComputedData;
548
- $[5] = updateNodeData;
549
- $[6] = t1;
550
- $[7] = t2;
551
- } else {
552
- t1 = $[6];
553
- t2 = $[7];
554
- }
555
- useEffect7(t1, t2);
556
- let t3;
557
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
558
- t3 = (e) => setIntervalStart(Number(e));
559
- $[8] = t3;
560
- } else {
561
- t3 = $[8];
562
- }
563
- let t4;
564
- if ($[9] !== intervalStart) {
565
- t4 = /* @__PURE__ */ jsx7(NumberInput4, { size: "xs", w: 100, value: intervalStart, onChange: t3 });
566
- $[9] = intervalStart;
567
- $[10] = t4;
568
- } else {
569
- t4 = $[10];
570
- }
571
- let t5;
572
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
573
- t5 = (e_0) => setIntervalEnd(Number(e_0));
574
- $[11] = t5;
575
- } else {
576
- t5 = $[11];
577
- }
578
- let t6;
579
- if ($[12] !== intervalEnd) {
580
- t6 = /* @__PURE__ */ jsx7(NumberInput4, { size: "xs", w: 100, value: intervalEnd, onChange: t5 });
581
- $[12] = intervalEnd;
582
- $[13] = t6;
583
- } else {
584
- t6 = $[13];
585
- }
586
- let t7;
587
- if ($[14] !== t4 || $[15] !== t6) {
588
- t7 = /* @__PURE__ */ jsx7(Stack3, { children: /* @__PURE__ */ jsxs4(Group4, { children: [
589
- t4,
590
- t6
591
- ] }) });
592
- $[14] = t4;
593
- $[15] = t6;
594
- $[16] = t7;
595
- } else {
596
- t7 = $[16];
597
- }
598
- let t8;
599
- if ($[17] !== data || $[18] !== id || $[19] !== selected || $[20] !== t7 || $[21] !== type) {
600
- t8 = /* @__PURE__ */ jsx7(NodeContainer7, { id, selected, data, type, children: t7 });
601
- $[17] = data;
602
- $[18] = id;
603
- $[19] = selected;
604
- $[20] = t7;
605
- $[21] = type;
606
- $[22] = t8;
607
- } else {
608
- t8 = $[22];
609
- }
610
- return t8;
611
- }
612
- var noise_normalize_node_default = NoiseNormalizeNode;
613
-
614
- // src/nodes/modifiers/noise-scale-bias-node.tsx
615
- import { c as _c7 } from "react/compiler-runtime";
616
- import { useIncomingComputedData as useIncomingComputedData8, useUpdateNodeComputedData as useUpdateNodeComputedData8, useUpdateNodeData as useUpdateNodeData6 } from "@awesome-flow/core/hooks";
617
- import { NodeContainer as NodeContainer8 } from "@awesome-flow/core/layout";
618
- import { Group as Group5, NumberInput as NumberInput5, Stack as Stack4 } from "@mantine/core";
619
- import { ScaleBias } from "libnoise-simplex-ts";
620
- import { memo, useEffect as useEffect8, useState as useState5 } from "react";
621
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
622
- function NoiseScaleBiasNode(t0) {
623
- const $ = _c7(23);
624
- const {
625
- id,
626
- selected,
627
- data,
628
- type
629
- } = t0;
630
- const [scale, setScale] = useState5(data.scale);
631
- const [bias, setBias] = useState5(data.bias);
632
- const incoming = useIncomingComputedData8(id);
633
- const updateNodeData = useUpdateNodeData6();
634
- const updateComputedData = useUpdateNodeComputedData8();
635
- let t1;
636
- let t2;
637
- if ($[0] !== bias || $[1] !== id || $[2] !== incoming || $[3] !== scale || $[4] !== updateComputedData || $[5] !== updateNodeData) {
638
- t1 = () => {
639
- if (incoming?.length > 0) {
640
- const module = new ScaleBias(incoming[0].module, scale, bias);
641
- updateComputedData(id, {
642
- module
643
- });
644
- }
645
- updateNodeData(id, {
646
- scale,
647
- bias
648
- });
649
- };
650
- t2 = [id, incoming, scale, bias, updateComputedData, updateNodeData];
651
- $[0] = bias;
652
- $[1] = id;
653
- $[2] = incoming;
654
- $[3] = scale;
655
- $[4] = updateComputedData;
656
- $[5] = updateNodeData;
657
- $[6] = t1;
658
- $[7] = t2;
659
- } else {
660
- t1 = $[6];
661
- t2 = $[7];
662
- }
663
- useEffect8(t1, t2);
664
- let t3;
665
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
666
- t3 = (e) => setScale(Number(e));
667
- $[8] = t3;
668
- } else {
669
- t3 = $[8];
670
- }
671
- let t4;
672
- if ($[9] !== scale) {
673
- t4 = /* @__PURE__ */ jsxs5(Group5, { children: [
674
- "Scale:",
675
- /* @__PURE__ */ jsx8(NumberInput5, { size: "xs", w: 100, value: scale, onChange: t3, step: 0.1 })
676
- ] });
677
- $[9] = scale;
678
- $[10] = t4;
679
- } else {
680
- t4 = $[10];
681
- }
682
- let t5;
683
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
684
- t5 = (e_0) => setBias(Number(e_0));
685
- $[11] = t5;
686
- } else {
687
- t5 = $[11];
688
- }
689
- let t6;
690
- if ($[12] !== bias) {
691
- t6 = /* @__PURE__ */ jsxs5(Group5, { children: [
692
- "Bias:",
693
- /* @__PURE__ */ jsx8(NumberInput5, { size: "xs", w: 100, value: bias, onChange: t5, step: 0.1 })
694
- ] });
695
- $[12] = bias;
696
- $[13] = t6;
697
- } else {
698
- t6 = $[13];
699
- }
700
- let t7;
701
- if ($[14] !== t4 || $[15] !== t6) {
702
- t7 = /* @__PURE__ */ jsxs5(Stack4, { children: [
703
- t4,
704
- t6
705
- ] });
706
- $[14] = t4;
707
- $[15] = t6;
708
- $[16] = t7;
709
- } else {
710
- t7 = $[16];
711
- }
712
- let t8;
713
- if ($[17] !== data || $[18] !== id || $[19] !== selected || $[20] !== t7 || $[21] !== type) {
714
- t8 = /* @__PURE__ */ jsx8(NodeContainer8, { id, selected, data, type, children: t7 });
715
- $[17] = data;
716
- $[18] = id;
717
- $[19] = selected;
718
- $[20] = t7;
719
- $[21] = type;
720
- $[22] = t8;
721
- } else {
722
- t8 = $[22];
723
- }
724
- return t8;
725
- }
726
- var noise_scale_bias_node_default = memo(NoiseScaleBiasNode);
727
-
728
- // src/nodes/modifiers/noise-terrace-node.tsx
729
- import { c as _c8 } from "react/compiler-runtime";
730
- import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
731
- import { useIncomingComputedData as useIncomingComputedData9, useUpdateNodeComputedData as useUpdateNodeComputedData9, useUpdateNodeData as useUpdateNodeData7 } from "@awesome-flow/core/hooks";
732
- import { NodeContainer as NodeContainer9 } from "@awesome-flow/core/layout";
733
- import { ActionIcon as ActionIcon2, Button as Button2, Group as Group6, NumberInput as NumberInput6, Space as Space2 } from "@mantine/core";
734
- import { FORM_INDEX as FORM_INDEX2, useForm as useForm2 } from "@mantine/form";
735
- import { randomId as randomId2 } from "@mantine/hooks";
736
- import { IconX as IconX2 } from "@tabler/icons-react";
737
- import { Terrace } from "libnoise-simplex-ts";
738
- import { useEffect as useEffect9, useState as useState6 } from "react";
739
- import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
740
- function NoiseTerraceNode(t0) {
741
- const $ = _c8(27);
742
- const {
743
- id,
744
- selected,
745
- data,
746
- type
747
- } = t0;
748
- const incoming = useIncomingComputedData9(id);
749
- const updateNodeData = useUpdateNodeData7();
750
- const updateComputedData = useUpdateNodeComputedData9();
751
- let t1;
752
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
753
- t1 = [];
754
- $[0] = t1;
755
- } else {
756
- t1 = $[0];
757
- }
758
- const [values, setValues] = useState6(t1);
759
- let t2;
760
- let t3;
761
- if ($[1] !== data.points) {
762
- t3 = data.points?.length ? data.points.map(_temp) : [1, 2].map(_temp2);
763
- $[1] = data.points;
764
- $[2] = t3;
765
- } else {
766
- t3 = $[2];
767
- }
768
- t2 = t3;
769
- const initialValues = t2;
770
- let t4;
771
- if ($[3] !== initialValues) {
772
- t4 = {
773
- points: initialValues
774
- };
775
- $[3] = initialValues;
776
- $[4] = t4;
777
- } else {
778
- t4 = $[4];
779
- }
780
- let t5;
781
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
782
- t5 = [`points.${FORM_INDEX2}.input`];
783
- $[5] = t5;
784
- } else {
785
- t5 = $[5];
786
- }
787
- let t6;
788
- if ($[6] !== t4) {
789
- t6 = {
790
- mode: "uncontrolled",
791
- initialValues: t4,
792
- validateInputOnChange: t5,
793
- clearInputErrorOnChange: true
794
- };
795
- $[6] = t4;
796
- $[7] = t6;
797
- } else {
798
- t6 = $[7];
799
- }
800
- const form = useForm2(t6);
801
- form.watch("points", (values_0) => {
802
- if (form.isValid()) {
803
- const points = values_0.value.map(_temp3);
804
- setValues(points);
805
- updateNodeData(id, {
806
- points
807
- });
808
- }
809
- form.validate();
810
- });
811
- let t7;
812
- let t8;
813
- if ($[8] !== id || $[9] !== incoming || $[10] !== updateComputedData || $[11] !== values) {
814
- t7 = () => {
815
- if (incoming?.length && values?.length >= 2) {
816
- const module = new Terrace(incoming[0].module, values);
817
- updateComputedData(id, {
818
- module
819
- });
820
- }
821
- };
822
- t8 = [id, values, incoming, updateComputedData];
823
- $[8] = id;
824
- $[9] = incoming;
825
- $[10] = updateComputedData;
826
- $[11] = values;
827
- $[12] = t7;
828
- $[13] = t8;
829
- } else {
830
- t7 = $[12];
831
- t8 = $[13];
832
- }
833
- useEffect9(t7, t8);
834
- let t9;
835
- let t10;
836
- if ($[14] !== data.state || $[15] !== form) {
837
- t10 = form.values.points.map((_, index) => /* @__PURE__ */ jsxs6(Group6, { mt: "xs", children: [
838
- /* @__PURE__ */ jsx9(NumberInput6, { size: "xs", placeholder: "Input Value", ...form.getInputProps(`points.${index}.value`), step: 0.1 }, form.key(`points.${index}.value`)),
839
- data.state === NodeState2.edit && form.values.points.length > 2 && /* @__PURE__ */ jsx9(ActionIcon2, { color: "red", variant: "outline", size: "sm", onClick: () => form.removeListItem("points", index), children: /* @__PURE__ */ jsx9(IconX2, { size: "1rem" }) })
840
- ] }, index));
841
- $[14] = data.state;
842
- $[15] = form;
843
- $[16] = t10;
844
- } else {
845
- t10 = $[16];
846
- }
847
- t9 = t10;
848
- const fields = t9;
849
- let t11;
850
- if ($[17] !== data.state || $[18] !== form) {
851
- t11 = data.state === NodeState2.edit && /* @__PURE__ */ jsxs6(Fragment2, { children: [
852
- /* @__PURE__ */ jsx9(Space2, { h: 10 }),
853
- /* @__PURE__ */ jsx9(Button2, { variant: "outline", size: "xs", fullWidth: true, onClick: () => form.insertListItem("points", {
854
- value: 0,
855
- key: randomId2()
856
- }), children: "Add control point" })
857
- ] });
858
- $[17] = data.state;
859
- $[18] = form;
860
- $[19] = t11;
861
- } else {
862
- t11 = $[19];
863
- }
864
- let t12;
865
- if ($[20] !== data || $[21] !== fields || $[22] !== id || $[23] !== selected || $[24] !== t11 || $[25] !== type) {
866
- t12 = /* @__PURE__ */ jsx9(Fragment2, { children: /* @__PURE__ */ jsxs6(NodeContainer9, { id, selected, type, data, children: [
867
- fields,
868
- t11
869
- ] }) });
870
- $[20] = data;
871
- $[21] = fields;
872
- $[22] = id;
873
- $[23] = selected;
874
- $[24] = t11;
875
- $[25] = type;
876
- $[26] = t12;
877
- } else {
878
- t12 = $[26];
879
- }
880
- return t12;
881
- }
882
- function _temp3(v_0) {
883
- return v_0.value;
884
- }
885
- function _temp2() {
886
- return {
887
- value: 0,
888
- key: randomId2()
889
- };
890
- }
891
- function _temp(v) {
892
- return {
893
- value: v,
894
- key: randomId2()
895
- };
896
- }
897
- var noise_terrace_node_default = NoiseTerraceNode;
898
-
899
- export {
900
- noise_abs_node_default,
901
- noise_clamp_node_default,
902
- NoiseCombineType,
903
- noiseCombineModuleMap,
904
- noise_combine_node_default,
905
- noise_curve_node_default,
906
- noise_exponent_node_default,
907
- noise_invert_node_default,
908
- noise_normalize_node_default,
909
- noise_scale_bias_node_default,
910
- noise_terrace_node_default
911
- };