@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,1591 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31;
2
-
3
-
4
-
5
-
6
-
7
- var _chunk36USJJC4cjs = require('./chunk-36USJJC4.cjs');
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
- var _chunkLKDSXT7Icjs = require('./chunk-LKDSXT7I.cjs');
20
-
21
-
22
- var _chunkXC7VF5YCcjs = require('./chunk-XC7VF5YC.cjs');
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
- var _chunkDQE5NXY7cjs = require('./chunk-DQE5NXY7.cjs');
34
-
35
- // src/nodes/output/noise-logger-node.tsx
36
- var _hooks = require('@awesome-flow/core/hooks');
37
- var _layout = require('@awesome-flow/core/layout');
38
- var _core = require('@mantine/core');
39
- var _react = require('react');
40
- var _jsxruntime = require('react/jsx-runtime');
41
- function NoiseLoggerNode({
42
- id,
43
- selected,
44
- data,
45
- type
46
- }) {
47
- const incoming = _hooks.useIncomingComputedData.call(void 0, id);
48
- const noise = _react.useMemo.call(void 0, () => _optionalChain([incoming, 'optionalAccess', _ => _.map, 'call', _2 => _2((p) => p.noise), 'access', _3 => _3.flat, 'call', _4 => _4()]), [incoming]);
49
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
50
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Text, { children: [
51
- "Size: ",
52
- _optionalChain([noise, 'optionalAccess', _5 => _5.length]) || 0
53
- ] }),
54
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Divider, { h: 5 }),
55
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Stack, { children: _optionalChain([noise, 'optionalAccess', _6 => _6.map, 'call', _7 => _7((v, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Text, { children: [
56
- _optionalChain([v, 'access', _8 => _8.position, 'optionalAccess', _9 => _9.x]),
57
- ":",
58
- _optionalChain([v, 'access', _10 => _10.position, 'optionalAccess', _11 => _11.y]),
59
- ":",
60
- _optionalChain([v, 'access', _12 => _12.position, 'optionalAccess', _13 => _13.z]),
61
- ": ",
62
- v.value
63
- ] }, i))]) })
64
- ] });
65
- }
66
- var noise_logger_node_default = NoiseLoggerNode;
67
-
68
- // src/nodes/output/noise-output-node.tsx
69
- var _compilerruntime = require('react/compiler-runtime');
70
- var _components = require('@awesome-flow/core/components');
71
-
72
-
73
-
74
-
75
-
76
- // src/nodes/selectors/noise-blend-node.tsx
77
-
78
-
79
-
80
-
81
- var _libnoisesimplexts = require('libnoise-simplex-ts');
82
-
83
- function NoiseBlendNode(t0) {
84
- const $ = _compilerruntime.c.call(void 0, 13);
85
- const {
86
- id,
87
- selected,
88
- data,
89
- type
90
- } = t0;
91
- const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
92
- let t1;
93
- if ($[0] !== id || $[1] !== updateComputedData) {
94
- t1 = (incomingData) => {
95
- const incomingSources = incomingData["source" /* source */];
96
- const incomingControl = incomingData["control" /* control */];
97
- if (_optionalChain([incomingSources, 'optionalAccess', _14 => _14.length]) >= 2 && _optionalChain([incomingControl, 'optionalAccess', _15 => _15.length])) {
98
- const module = new (0, _libnoisesimplexts.Blend)(incomingSources[0].module, incomingSources[1].module, incomingControl[0].module);
99
- updateComputedData(id, {
100
- module
101
- });
102
- }
103
- };
104
- $[0] = id;
105
- $[1] = updateComputedData;
106
- $[2] = t1;
107
- } else {
108
- t1 = $[2];
109
- }
110
- const onDataUpdated = t1;
111
- let t2;
112
- if ($[3] !== data.handles || $[4] !== id || $[5] !== onDataUpdated) {
113
- t2 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _components.HandlesIncomingDataStatus, { nodeId: id, handles: data.handles, groupBy: "dataId", onDataUpdated, type: "target", resetComputedData: true });
114
- $[3] = data.handles;
115
- $[4] = id;
116
- $[5] = onDataUpdated;
117
- $[6] = t2;
118
- } else {
119
- t2 = $[6];
120
- }
121
- let t3;
122
- if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
123
- t3 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: t2 });
124
- $[7] = data;
125
- $[8] = id;
126
- $[9] = selected;
127
- $[10] = t2;
128
- $[11] = type;
129
- $[12] = t3;
130
- } else {
131
- t3 = $[12];
132
- }
133
- return t3;
134
- }
135
- var noise_blend_node_default = NoiseBlendNode;
136
-
137
- // src/nodes/selectors/noise-select-node.tsx
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
- function NoiseSelectNode(t0) {
147
- const $ = _compilerruntime.c.call(void 0, 37);
148
- const {
149
- id,
150
- selected,
151
- data,
152
- type
153
- } = t0;
154
- const [edgeFalloff, setEdgeFalloff] = _react.useState.call(void 0, data.edgeFalloff);
155
- const [lowerBound, setLowerBound] = _react.useState.call(void 0, data.lowerBound);
156
- const [upperBound, setUpperBound] = _react.useState.call(void 0, data.upperBound);
157
- const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
158
- const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
159
- let t1;
160
- let t2;
161
- if ($[0] !== edgeFalloff || $[1] !== id || $[2] !== lowerBound || $[3] !== updateNodeData || $[4] !== upperBound) {
162
- t1 = () => {
163
- updateNodeData(id, {
164
- edgeFalloff,
165
- lowerBound,
166
- upperBound
167
- });
168
- };
169
- t2 = [edgeFalloff, lowerBound, upperBound, id, updateNodeData];
170
- $[0] = edgeFalloff;
171
- $[1] = id;
172
- $[2] = lowerBound;
173
- $[3] = updateNodeData;
174
- $[4] = upperBound;
175
- $[5] = t1;
176
- $[6] = t2;
177
- } else {
178
- t1 = $[5];
179
- t2 = $[6];
180
- }
181
- _react.useEffect.call(void 0, t1, t2);
182
- let t3;
183
- if ($[7] !== edgeFalloff || $[8] !== id || $[9] !== lowerBound || $[10] !== updateComputedData || $[11] !== upperBound) {
184
- t3 = (incomingData) => {
185
- const incomingSources = incomingData["source" /* source */];
186
- const incomingControl = incomingData["control" /* control */];
187
- if (_optionalChain([incomingSources, 'optionalAccess', _16 => _16.length]) >= 2 && _optionalChain([incomingControl, 'optionalAccess', _17 => _17.length])) {
188
- const module = new (0, _libnoisesimplexts.Select)(incomingSources[0].module, incomingSources[1].module, incomingControl[0].module, edgeFalloff, lowerBound, upperBound);
189
- updateComputedData(id, {
190
- module
191
- });
192
- }
193
- };
194
- $[7] = edgeFalloff;
195
- $[8] = id;
196
- $[9] = lowerBound;
197
- $[10] = updateComputedData;
198
- $[11] = upperBound;
199
- $[12] = t3;
200
- } else {
201
- t3 = $[12];
202
- }
203
- const onDataUpdated = t3;
204
- let t4;
205
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
206
- t4 = (e) => setEdgeFalloff(Number(e));
207
- $[13] = t4;
208
- } else {
209
- t4 = $[13];
210
- }
211
- let t5;
212
- if ($[14] !== edgeFalloff) {
213
- t5 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
214
- "Edge Falloff:",
215
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: edgeFalloff, onChange: t4, step: 0.1 })
216
- ] });
217
- $[14] = edgeFalloff;
218
- $[15] = t5;
219
- } else {
220
- t5 = $[15];
221
- }
222
- let t6;
223
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
224
- t6 = (e_0) => setLowerBound(Number(e_0));
225
- $[16] = t6;
226
- } else {
227
- t6 = $[16];
228
- }
229
- let t7;
230
- if ($[17] !== lowerBound) {
231
- t7 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
232
- "Lower Bound:",
233
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: lowerBound, onChange: t6, step: 0.1 })
234
- ] });
235
- $[17] = lowerBound;
236
- $[18] = t7;
237
- } else {
238
- t7 = $[18];
239
- }
240
- let t8;
241
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
242
- t8 = (e_1) => setUpperBound(Number(e_1));
243
- $[19] = t8;
244
- } else {
245
- t8 = $[19];
246
- }
247
- let t9;
248
- if ($[20] !== upperBound) {
249
- t9 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
250
- "Upper Bound:",
251
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: upperBound, onChange: t8, step: 0.1 })
252
- ] });
253
- $[20] = upperBound;
254
- $[21] = t9;
255
- } else {
256
- t9 = $[21];
257
- }
258
- let t10;
259
- if ($[22] !== data.handles || $[23] !== id || $[24] !== onDataUpdated) {
260
- t10 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _components.HandlesIncomingDataStatus, { nodeId: id, handles: data.handles, groupBy: "dataId", onDataUpdated, type: "target", resetComputedData: true });
261
- $[22] = data.handles;
262
- $[23] = id;
263
- $[24] = onDataUpdated;
264
- $[25] = t10;
265
- } else {
266
- t10 = $[25];
267
- }
268
- let t11;
269
- if ($[26] !== t10 || $[27] !== t5 || $[28] !== t7 || $[29] !== t9) {
270
- t11 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Stack, { children: [
271
- t5,
272
- t7,
273
- t9,
274
- t10
275
- ] });
276
- $[26] = t10;
277
- $[27] = t5;
278
- $[28] = t7;
279
- $[29] = t9;
280
- $[30] = t11;
281
- } else {
282
- t11 = $[30];
283
- }
284
- let t12;
285
- if ($[31] !== data || $[32] !== id || $[33] !== selected || $[34] !== t11 || $[35] !== type) {
286
- t12 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: t11 });
287
- $[31] = data;
288
- $[32] = id;
289
- $[33] = selected;
290
- $[34] = t11;
291
- $[35] = type;
292
- $[36] = t12;
293
- } else {
294
- t12 = $[36];
295
- }
296
- return t12;
297
- }
298
- var noise_select_node_default = NoiseSelectNode;
299
-
300
- // src/nodes/output/noise-raw-texture-node.tsx
301
-
302
-
303
-
304
-
305
-
306
-
307
- function NoiseRawTextureNode(t0) {
308
- const $ = _compilerruntime.c.call(void 0, 24);
309
- const {
310
- id,
311
- selected,
312
- data,
313
- type
314
- } = t0;
315
- const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
316
- const [dataLength, setDataLength] = _react.useState.call(void 0, 0);
317
- const [resolution, setResolution] = _react.useState.call(void 0, 0);
318
- const incoming = _hooks.useIncomingComputedData.call(void 0, id);
319
- let t1;
320
- let t2;
321
- if ($[0] !== incoming) {
322
- t2 = _optionalChain([incoming, 'optionalAccess', _18 => _18.map, 'call', _19 => _19(_temp), 'access', _20 => _20.flat, 'call', _21 => _21()]);
323
- $[0] = incoming;
324
- $[1] = t2;
325
- } else {
326
- t2 = $[1];
327
- }
328
- t1 = t2;
329
- const noise = t1;
330
- let t3;
331
- let t4;
332
- if ($[2] !== id || $[3] !== noise || $[4] !== updateComputedData) {
333
- t3 = () => {
334
- if (_optionalChain([noise, 'optionalAccess', _22 => _22.length])) {
335
- const size = Math.ceil(Math.sqrt(noise.length));
336
- const colors = noise.map(_temp2).flat();
337
- const dataArray = new Uint8Array(size * size * 4);
338
- dataArray.set(colors);
339
- setResolution(size);
340
- setDataLength(dataArray.length);
341
- updateComputedData(id, {
342
- textureData: dataArray,
343
- textureResolutionX: size,
344
- textureResolutionY: size
345
- });
346
- }
347
- };
348
- t4 = [noise, updateComputedData, id];
349
- $[2] = id;
350
- $[3] = noise;
351
- $[4] = updateComputedData;
352
- $[5] = t3;
353
- $[6] = t4;
354
- } else {
355
- t3 = $[5];
356
- t4 = $[6];
357
- }
358
- _react.useEffect.call(void 0, t3, t4);
359
- let t5;
360
- if ($[7] !== resolution) {
361
- t5 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
362
- "Resolution: ",
363
- resolution,
364
- "x",
365
- resolution
366
- ] });
367
- $[7] = resolution;
368
- $[8] = t5;
369
- } else {
370
- t5 = $[8];
371
- }
372
- const t6 = _optionalChain([noise, 'optionalAccess', _23 => _23.length]) || 0;
373
- let t7;
374
- if ($[9] !== t6) {
375
- t7 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
376
- "Input Length: ",
377
- t6
378
- ] });
379
- $[9] = t6;
380
- $[10] = t7;
381
- } else {
382
- t7 = $[10];
383
- }
384
- let t8;
385
- if ($[11] !== dataLength || $[12] !== resolution) {
386
- t8 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
387
- "Output Length (",
388
- resolution,
389
- "*",
390
- resolution,
391
- "*4): ",
392
- dataLength
393
- ] });
394
- $[11] = dataLength;
395
- $[12] = resolution;
396
- $[13] = t8;
397
- } else {
398
- t8 = $[13];
399
- }
400
- let t9;
401
- if ($[14] !== t5 || $[15] !== t7 || $[16] !== t8) {
402
- t9 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Stack, { children: [
403
- t5,
404
- t7,
405
- t8
406
- ] });
407
- $[14] = t5;
408
- $[15] = t7;
409
- $[16] = t8;
410
- $[17] = t9;
411
- } else {
412
- t9 = $[17];
413
- }
414
- let t10;
415
- if ($[18] !== data || $[19] !== id || $[20] !== selected || $[21] !== t9 || $[22] !== type) {
416
- t10 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: t9 });
417
- $[18] = data;
418
- $[19] = id;
419
- $[20] = selected;
420
- $[21] = t9;
421
- $[22] = type;
422
- $[23] = t10;
423
- } else {
424
- t10 = $[23];
425
- }
426
- return t10;
427
- }
428
- function _temp2(n) {
429
- return [n.value * 255, n.value * 255, n.value * 255, 255];
430
- }
431
- function _temp(p) {
432
- return p.noise;
433
- }
434
- var noise_raw_texture_node_default = NoiseRawTextureNode;
435
-
436
- // src/nodes/output/positions-logger-node.tsx
437
-
438
-
439
-
440
-
441
-
442
- function PositionsLoggerNode({
443
- id,
444
- selected,
445
- data,
446
- type
447
- }) {
448
- const incoming = _hooks.useIncomingComputedData.call(void 0, id);
449
- const positions = _react.useMemo.call(void 0, () => {
450
- return _optionalChain([incoming, 'optionalAccess', _24 => _24.map, 'call', _25 => _25((p) => p.positions), 'access', _26 => _26.flat, 'call', _27 => _27()]);
451
- }, [incoming]);
452
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
453
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Text, { children: [
454
- "Size: ",
455
- _optionalChain([positions, 'optionalAccess', _28 => _28.length]) || 0
456
- ] }),
457
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Divider, { h: 5 }),
458
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Stack, { children: _optionalChain([positions, 'optionalAccess', _29 => _29.map, 'call', _30 => _30((v, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Text, { children: [
459
- v.x,
460
- ":",
461
- v.y,
462
- ":",
463
- v.z
464
- ] }, i))]) })
465
- ] });
466
- }
467
- var positions_logger_node_default = PositionsLoggerNode;
468
-
469
- // src/templates/generators/noise-billow-template.ts
470
- var _abstract = require('@awesome-flow/core/abstract');
471
- var _utils = require('@awesome-flow/core/utils');
472
- var _system = require('@xyflow/system');
473
-
474
- // src/abstract/templates.ts
475
- var NoiseTemplateGroup = /* @__PURE__ */ ((NoiseTemplateGroup2) => {
476
- NoiseTemplateGroup2["positions"] = "Positions";
477
- NoiseTemplateGroup2["output"] = "Output";
478
- NoiseTemplateGroup2["noiseGenerators"] = "Noise Generators";
479
- NoiseTemplateGroup2["noiseModifiers"] = "Noise Modifiers";
480
- NoiseTemplateGroup2["noiseSelectors"] = "Noise Selectors";
481
- NoiseTemplateGroup2["noiseTransformers"] = "Noise Transformers";
482
- return NoiseTemplateGroup2;
483
- })(NoiseTemplateGroup || {});
484
-
485
- // src/templates/generators/noise-billow-template.ts
486
- var NoiseBillowNodeTemplateFactory = (_class = class {constructor() { _class.prototype.__init.call(this); }
487
- __init() {this.template = {
488
- id: _utils.IDGenerator.template(),
489
- type: "noise-billow" /* noiseBillow */,
490
- group: "Noise Generators" /* noiseGenerators */,
491
- data: {
492
- title: "Billow Noise",
493
- frequency: 0.1,
494
- lacunarity: 2,
495
- octaves: 5,
496
- persistence: 0.5,
497
- seed: 0
498
- },
499
- handles: [
500
- {
501
- position: _system.Position.Left,
502
- dataType: _abstract.CoreHandleType.variableProperty,
503
- connection: "target"
504
- },
505
- {
506
- position: _system.Position.Right,
507
- dataType: "module" /* module */,
508
- connection: "source"
509
- }
510
- ]
511
- }}
512
- }, _class);
513
-
514
- // src/templates/generators/noise-checkerboard-template.ts
515
-
516
- var NoiseCheckerboardNodeTemplateFactory = (_class2 = class {constructor() { _class2.prototype.__init2.call(this); }
517
- __init2() {this.template = {
518
- type: "noise-checkerboard" /* noiseCheckerboard */,
519
- group: "Noise Generators" /* noiseGenerators */,
520
- data: {
521
- title: "Checkerboard Noise"
522
- },
523
- handles: [
524
- {
525
- position: _system.Position.Right,
526
- dataType: "module" /* module */,
527
- connection: "source"
528
- }
529
- ]
530
- }}
531
- }, _class2);
532
-
533
- // src/templates/generators/noise-const-template.ts
534
-
535
- var NoiseConstNodeTemplateFactory = (_class3 = class {constructor() { _class3.prototype.__init3.call(this); }
536
- __init3() {this.template = {
537
- type: "noise-constant" /* noiseConst */,
538
- group: "Noise Generators" /* noiseGenerators */,
539
- data: {
540
- title: "Const Value Noise",
541
- noise: 0,
542
- min: -1,
543
- max: 1
544
- },
545
- handles: [
546
- {
547
- position: _system.Position.Right,
548
- dataType: "module" /* module */,
549
- connection: "source"
550
- }
551
- ]
552
- }}
553
- }, _class3);
554
-
555
- // src/templates/generators/noise-cylinders-template.ts
556
-
557
-
558
- var NoiseCylindersNodeTemplateFactory = (_class4 = class {constructor() { _class4.prototype.__init4.call(this); }
559
- __init4() {this.template = {
560
- type: "noise-cylinders" /* noiseCylinders */,
561
- group: "Noise Generators" /* noiseGenerators */,
562
- data: {
563
- title: "Cylinders Noise",
564
- frequency: 0.1
565
- },
566
- handles: [
567
- {
568
- position: _system.Position.Left,
569
- dataType: _abstract.CoreHandleType.variableProperty,
570
- connection: "target"
571
- },
572
- {
573
- position: _system.Position.Right,
574
- dataType: "module" /* module */,
575
- connection: "source"
576
- }
577
- ]
578
- }}
579
- }, _class4);
580
-
581
- // src/templates/generators/noise-perlin-template.ts
582
-
583
-
584
- var NoisePerlinNodeTemplateFactory = (_class5 = class {constructor() { _class5.prototype.__init5.call(this); }
585
- __init5() {this.template = {
586
- type: "noise-perlin" /* noisePerlin */,
587
- group: "Noise Generators" /* noiseGenerators */,
588
- data: {
589
- title: "Perlin Noise",
590
- frequency: 0.1,
591
- lacunarity: 2,
592
- octaves: 5,
593
- persistence: 0.5,
594
- seed: 0
595
- },
596
- handles: [
597
- {
598
- position: _system.Position.Left,
599
- dataType: _abstract.CoreHandleType.variableProperty,
600
- connection: "target"
601
- },
602
- {
603
- position: _system.Position.Right,
604
- dataType: "module" /* module */,
605
- connection: "source"
606
- }
607
- ]
608
- }}
609
- }, _class5);
610
-
611
- // src/templates/generators/noise-ridgedmulti-template.ts
612
-
613
-
614
- var NoiseRidgedMultiNodeTemplateFactory = (_class6 = class {constructor() { _class6.prototype.__init6.call(this); }
615
- __init6() {this.template = {
616
- type: "noise-ridged-multi" /* noiseRidgedMulti */,
617
- group: "Noise Generators" /* noiseGenerators */,
618
- data: {
619
- title: "Ridged Multi Noise",
620
- frequency: 0.1,
621
- lacunarity: 2,
622
- octaves: 6,
623
- offset: 1,
624
- gain: 2,
625
- seed: 0
626
- },
627
- handles: [
628
- {
629
- position: _system.Position.Left,
630
- dataType: _abstract.CoreHandleType.variableProperty,
631
- connection: "target"
632
- },
633
- {
634
- position: _system.Position.Right,
635
- dataType: "module" /* module */,
636
- connection: "source"
637
- }
638
- ]
639
- }}
640
- }, _class6);
641
-
642
- // src/templates/generators/noise-spheres-template.ts
643
-
644
-
645
- var NoiseSpheresNodeTemplateFactory = (_class7 = class {constructor() { _class7.prototype.__init7.call(this); }
646
- __init7() {this.template = {
647
- type: "noise-spheres" /* noiseSpheres */,
648
- group: "Noise Generators" /* noiseGenerators */,
649
- data: {
650
- title: "Spheres Noise",
651
- frequency: 0.1
652
- },
653
- handles: [
654
- {
655
- position: _system.Position.Left,
656
- dataType: _abstract.CoreHandleType.variableProperty,
657
- connection: "target"
658
- },
659
- {
660
- position: _system.Position.Right,
661
- dataType: "module" /* module */,
662
- connection: "source"
663
- }
664
- ]
665
- }}
666
- }, _class7);
667
-
668
- // src/templates/generators/noise-voronoi-template.ts
669
-
670
-
671
- var NoiseVoronoiNodeTemplateFactory = (_class8 = class {constructor() { _class8.prototype.__init8.call(this); }
672
- __init8() {this.template = {
673
- type: "noise-voronoi" /* noiseVoronoi */,
674
- group: "Noise Generators" /* noiseGenerators */,
675
- data: {
676
- title: "Voronoi Noise",
677
- frequency: 0.1,
678
- displacement: 1,
679
- distance: true,
680
- seed: 0
681
- },
682
- handles: [
683
- {
684
- position: _system.Position.Left,
685
- dataType: _abstract.CoreHandleType.variableProperty,
686
- connection: "target"
687
- },
688
- {
689
- position: _system.Position.Right,
690
- dataType: "module" /* module */,
691
- connection: "source"
692
- }
693
- ]
694
- }}
695
- }, _class8);
696
-
697
- // src/templates/generators/position-const-template.ts
698
-
699
- var PositionConstNodeTemplateFactory = (_class9 = class {constructor() { _class9.prototype.__init9.call(this); }
700
- __init9() {this.template = {
701
- type: "position" /* position */,
702
- group: "Positions" /* positions */,
703
- data: {
704
- title: "Position Output",
705
- position: { x: 0, y: 0, z: 0 }
706
- },
707
- handles: [
708
- {
709
- position: _system.Position.Right,
710
- dataType: "position" /* position */,
711
- connection: "source"
712
- }
713
- ]
714
- }}
715
- }, _class9);
716
-
717
- // src/templates/generators/position-grid-template.ts
718
-
719
- var PositionGridNodeTemplateFactory = (_class10 = class {constructor() { _class10.prototype.__init10.call(this); }
720
- __init10() {this.template = {
721
- type: "grid" /* grid */,
722
- group: "Positions" /* positions */,
723
- data: {
724
- title: "Grid Output",
725
- center: { x: 0, y: 0, z: 0 },
726
- radius: 1
727
- },
728
- handles: [
729
- {
730
- position: _system.Position.Right,
731
- dataType: "position" /* position */,
732
- connection: "source"
733
- }
734
- ]
735
- }}
736
- }, _class10);
737
-
738
- // src/templates/groups/module-group-template.ts
739
-
740
-
741
-
742
-
743
-
744
- var ModuleGroupNodeTemplateFactory = (_class11 = class {constructor() { _class11.prototype.__init11.call(this); }
745
- __init11() {this.template = {
746
- id: _utils.IDGenerator.template(),
747
- type: "group-module" /* groupModule */,
748
- group: _abstract.CoreTemplateGroup.groups,
749
- data: {
750
- title: "Modules Group",
751
- isGroup: true,
752
- initialSize: {
753
- width: 300,
754
- height: 200
755
- },
756
- collapsedSize: {
757
- width: 300,
758
- height: 80
759
- }
760
- },
761
- handles: [
762
- {
763
- position: _system.Position.Bottom,
764
- dataType: "module" /* module */,
765
- connection: "target",
766
- maxConnections: 1,
767
- hideOnCollapse: true
768
- },
769
- {
770
- position: _system.Position.Right,
771
- dataType: "module" /* module */,
772
- connection: "source"
773
- }
774
- ]
775
- }}
776
- }, _class11);
777
-
778
- // src/templates/modifiers/noise-abs-template.ts
779
-
780
- var NoiseAbsNodeTemplateFactory = (_class12 = class {constructor() { _class12.prototype.__init12.call(this); }
781
- __init12() {this.template = {
782
- type: "noise-abs" /* noiseAbs */,
783
- group: "Noise Modifiers" /* noiseModifiers */,
784
- data: {
785
- title: "Abs Noise"
786
- },
787
- handles: [
788
- {
789
- position: _system.Position.Left,
790
- dataType: "module" /* module */,
791
- connection: "target",
792
- maxConnections: 1
793
- },
794
- {
795
- position: _system.Position.Right,
796
- dataType: "module" /* module */,
797
- connection: "source"
798
- }
799
- ]
800
- }}
801
- }, _class12);
802
-
803
- // src/templates/modifiers/noise-clamp-template.ts
804
-
805
- var NoiseClampNodeTemplateFactory = (_class13 = class {constructor() { _class13.prototype.__init13.call(this); }
806
- __init13() {this.template = {
807
- type: "noise-clamp" /* noiseClamp */,
808
- group: "Noise Modifiers" /* noiseModifiers */,
809
- data: {
810
- title: "Clamp Noise",
811
- lowerBound: -1,
812
- upperBound: 1
813
- },
814
- handles: [
815
- {
816
- position: _system.Position.Left,
817
- dataType: "module" /* module */,
818
- connection: "target",
819
- maxConnections: 1
820
- },
821
- {
822
- position: _system.Position.Right,
823
- dataType: "module" /* module */,
824
- connection: "source"
825
- }
826
- ]
827
- }}
828
- }, _class13);
829
-
830
- // src/templates/modifiers/noise-combine-template.ts
831
-
832
- var NoiseCombineNodeTemplateFactory = (_class14 = class {constructor() { _class14.prototype.__init14.call(this); }
833
- __init14() {this.template = {
834
- type: "noise-combiner" /* noiseCombine */,
835
- group: "Noise Modifiers" /* noiseModifiers */,
836
- data: {
837
- title: "Combine Noise",
838
- operation: "add" /* add */
839
- },
840
- handles: [
841
- {
842
- position: _system.Position.Left,
843
- dataType: "module" /* module */,
844
- connection: "target",
845
- maxConnections: 2
846
- },
847
- {
848
- position: _system.Position.Right,
849
- dataType: "module" /* module */,
850
- connection: "source"
851
- }
852
- ]
853
- }}
854
- }, _class14);
855
-
856
- // src/templates/modifiers/noise-curve-template.ts
857
-
858
- var NoiseCurveNodeTemplateFactory = (_class15 = class {constructor() { _class15.prototype.__init15.call(this); }
859
- __init15() {this.template = {
860
- type: "noise-curve" /* noiseCurve */,
861
- group: "Noise Modifiers" /* noiseModifiers */,
862
- data: {
863
- title: "Noise Curve",
864
- points: []
865
- },
866
- handles: [
867
- {
868
- position: _system.Position.Left,
869
- dataType: "module" /* module */,
870
- connection: "target",
871
- maxConnections: 1
872
- },
873
- {
874
- position: _system.Position.Right,
875
- dataType: "module" /* module */,
876
- connection: "source"
877
- }
878
- ]
879
- }}
880
- }, _class15);
881
-
882
- // src/templates/modifiers/noise-exponent-template.ts
883
-
884
- var NoiseExponentNodeTemplateFactory = (_class16 = class {constructor() { _class16.prototype.__init16.call(this); }
885
- __init16() {this.template = {
886
- type: "noise-exponent" /* noiseExponent */,
887
- group: "Noise Modifiers" /* noiseModifiers */,
888
- data: {
889
- title: "Noise Exponent",
890
- exponent: 1
891
- },
892
- handles: [
893
- {
894
- position: _system.Position.Left,
895
- dataType: "module" /* module */,
896
- connection: "target",
897
- maxConnections: 1
898
- },
899
- {
900
- position: _system.Position.Right,
901
- dataType: "module" /* module */,
902
- connection: "source"
903
- }
904
- ]
905
- }}
906
- }, _class16);
907
-
908
- // src/templates/modifiers/noise-invert-template.ts
909
-
910
- var NoiseInvertNodeTemplateFactory = (_class17 = class {constructor() { _class17.prototype.__init17.call(this); }
911
- __init17() {this.template = {
912
- type: "noise-invert" /* noiseInvert */,
913
- group: "Noise Modifiers" /* noiseModifiers */,
914
- data: {
915
- title: "Invert Noise"
916
- },
917
- handles: [
918
- {
919
- position: _system.Position.Left,
920
- dataType: "module" /* module */,
921
- connection: "target",
922
- maxConnections: 1
923
- },
924
- {
925
- position: _system.Position.Right,
926
- dataType: "module" /* module */,
927
- connection: "source"
928
- }
929
- ]
930
- }}
931
- }, _class17);
932
-
933
- // src/templates/modifiers/noise-normalize-template.ts
934
-
935
-
936
- var NoiseNormalizeNodeTemplateFactory = (_class18 = class {constructor() { _class18.prototype.__init18.call(this); }
937
- __init18() {this.template = {
938
- id: _utils.IDGenerator.template(),
939
- type: "noise-normalize" /* noiseNormalize */,
940
- group: "Noise Modifiers" /* noiseModifiers */,
941
- data: {
942
- title: "Normalize Noise",
943
- intervalStart: -1,
944
- intervalEnd: 1
945
- },
946
- handles: [
947
- {
948
- position: _system.Position.Left,
949
- dataType: "module" /* module */,
950
- connection: "target",
951
- maxConnections: 1
952
- },
953
- {
954
- position: _system.Position.Right,
955
- dataType: "module" /* module */,
956
- connection: "source"
957
- }
958
- ]
959
- }}
960
- }, _class18);
961
-
962
- // src/templates/modifiers/noise-scalebias-template.ts
963
-
964
- var NoiseScaleBiasNodeTemplateFactory = (_class19 = class {constructor() { _class19.prototype.__init19.call(this); }
965
- __init19() {this.template = {
966
- type: "noise-scale-bias" /* noiseScaleBias */,
967
- group: "Noise Modifiers" /* noiseModifiers */,
968
- data: {
969
- title: "Scale/Bias Noise",
970
- scale: 1,
971
- bias: 0
972
- },
973
- handles: [
974
- {
975
- position: _system.Position.Left,
976
- dataType: "module" /* module */,
977
- connection: "target",
978
- maxConnections: 1
979
- },
980
- {
981
- position: _system.Position.Right,
982
- dataType: "module" /* module */,
983
- connection: "source"
984
- }
985
- ]
986
- }}
987
- }, _class19);
988
-
989
- // src/templates/modifiers/noise-terrace-template.ts
990
-
991
- var NoiseTerraceNodeTemplateFactory = (_class20 = class {constructor() { _class20.prototype.__init20.call(this); }
992
- __init20() {this.template = {
993
- type: "noise-terrace" /* noiseTerrace */,
994
- group: "Noise Modifiers" /* noiseModifiers */,
995
- data: {
996
- title: "Noise Terrace",
997
- points: []
998
- },
999
- handles: [
1000
- {
1001
- position: _system.Position.Left,
1002
- dataType: "module" /* module */,
1003
- connection: "target",
1004
- maxConnections: 1
1005
- },
1006
- {
1007
- position: _system.Position.Right,
1008
- dataType: "module" /* module */,
1009
- connection: "source"
1010
- }
1011
- ]
1012
- }}
1013
- }, _class20);
1014
-
1015
- // src/templates/output/noise-logger-template.ts
1016
-
1017
- var NoiseLoggerNodeTemplateFactory = (_class21 = class {constructor() { _class21.prototype.__init21.call(this); }
1018
- __init21() {this.template = {
1019
- type: "noise-logger" /* noiseLogger */,
1020
- group: "Output" /* output */,
1021
- data: {
1022
- title: "Noise Logger"
1023
- },
1024
- handles: [
1025
- {
1026
- position: _system.Position.Left,
1027
- dataType: "noise" /* noise */,
1028
- connection: "target"
1029
- }
1030
- ]
1031
- }}
1032
- }, _class21);
1033
-
1034
- // src/templates/output/noise-output-template.ts
1035
-
1036
- var NoiseOutputNodeTemplateFactory = (_class22 = class {constructor() { _class22.prototype.__init22.call(this); }
1037
- __init22() {this.template = {
1038
- type: "noise-output" /* noiseOutput */,
1039
- group: "Output" /* output */,
1040
- data: {
1041
- title: "Noise Output"
1042
- },
1043
- handles: [
1044
- {
1045
- position: _system.Position.Left,
1046
- dataType: "position" /* position */,
1047
- connection: "target"
1048
- },
1049
- {
1050
- position: _system.Position.Left,
1051
- dataType: "module" /* module */,
1052
- connection: "target",
1053
- maxConnections: 1
1054
- },
1055
- {
1056
- position: _system.Position.Right,
1057
- dataType: "noise" /* noise */,
1058
- connection: "source"
1059
- }
1060
- ]
1061
- }}
1062
- }, _class22);
1063
-
1064
- // src/templates/output/noise-raw-texture-template.ts
1065
-
1066
- var NoiseRawTextureTemplateFactory = (_class23 = class {constructor() { _class23.prototype.__init23.call(this); }
1067
- __init23() {this.template = {
1068
- type: "texture-data" /* textureData */,
1069
- group: "Output" /* output */,
1070
- data: {
1071
- title: "Texture Data"
1072
- },
1073
- handles: [
1074
- {
1075
- position: _system.Position.Left,
1076
- dataType: "noise" /* noise */,
1077
- connection: "target",
1078
- maxConnections: 1
1079
- },
1080
- {
1081
- position: _system.Position.Right,
1082
- dataType: "texture" /* texture */,
1083
- connection: "source"
1084
- }
1085
- ]
1086
- }}
1087
- }, _class23);
1088
-
1089
- // src/templates/output/position-logger-template.ts
1090
-
1091
- var PositionLoggerNodeTemplateFactory = (_class24 = class {constructor() { _class24.prototype.__init24.call(this); }
1092
- __init24() {this.template = {
1093
- type: "position-logger" /* positionLogger */,
1094
- group: "Positions" /* positions */,
1095
- data: {
1096
- title: "Position Logger"
1097
- },
1098
- handles: [
1099
- {
1100
- position: _system.Position.Left,
1101
- dataType: "position" /* position */,
1102
- connection: "target"
1103
- }
1104
- ]
1105
- }}
1106
- }, _class24);
1107
-
1108
- // src/templates/selectors/noise-blend-template.ts
1109
-
1110
- var NoiseBlendNodeTemplateFactory = (_class25 = class {constructor() { _class25.prototype.__init25.call(this); }
1111
- __init25() {this.template = {
1112
- type: "noise-blend" /* noiseBlend */,
1113
- group: "Noise Selectors" /* noiseSelectors */,
1114
- data: {
1115
- title: "Noise Blend"
1116
- },
1117
- handles: [
1118
- {
1119
- position: _system.Position.Left,
1120
- dataType: "module" /* module */,
1121
- connection: "target",
1122
- label: "Source Modules",
1123
- dataId: "source" /* source */,
1124
- maxConnections: 2,
1125
- minConnections: 2
1126
- },
1127
- {
1128
- position: _system.Position.Left,
1129
- dataType: "module" /* module */,
1130
- dataId: "control" /* control */,
1131
- connection: "target",
1132
- label: "Control Module",
1133
- maxConnections: 1
1134
- },
1135
- {
1136
- position: _system.Position.Right,
1137
- dataType: "module" /* module */,
1138
- dataId: "output" /* output */,
1139
- connection: "source"
1140
- }
1141
- ]
1142
- }}
1143
- }, _class25);
1144
-
1145
- // src/templates/selectors/noise-select-template.ts
1146
-
1147
- var NoiseSelectNodeTemplateFactory = (_class26 = class {constructor() { _class26.prototype.__init26.call(this); }
1148
- __init26() {this.template = {
1149
- type: "noise-select" /* noiseSelect */,
1150
- group: "Noise Selectors" /* noiseSelectors */,
1151
- data: {
1152
- title: "Noise Select",
1153
- edgeFalloff: 0,
1154
- lowerBound: -1,
1155
- upperBound: 1
1156
- },
1157
- handles: [
1158
- {
1159
- position: _system.Position.Left,
1160
- dataType: "module" /* module */,
1161
- dataId: "source" /* source */,
1162
- connection: "target",
1163
- label: "Source Modules",
1164
- maxConnections: 2,
1165
- minConnections: 2
1166
- },
1167
- {
1168
- position: _system.Position.Left,
1169
- dataType: "module" /* module */,
1170
- dataId: "control" /* control */,
1171
- connection: "target",
1172
- label: "Control Module",
1173
- maxConnections: 1
1174
- },
1175
- {
1176
- position: _system.Position.Right,
1177
- dataType: "module" /* module */,
1178
- dataId: "output" /* output */,
1179
- connection: "source"
1180
- }
1181
- ]
1182
- }}
1183
- }, _class26);
1184
-
1185
- // src/templates/transformers/noise-displace-template.ts
1186
-
1187
- var NoiseDisplaceNodeTemplateFactory = (_class27 = class {constructor() { _class27.prototype.__init27.call(this); }
1188
- __init27() {this.template = {
1189
- type: "noise-displace" /* noiseDisplace */,
1190
- group: "Noise Transformers" /* noiseTransformers */,
1191
- data: {
1192
- title: "Noise Displace"
1193
- },
1194
- handles: [
1195
- {
1196
- position: _system.Position.Left,
1197
- connection: "target",
1198
- label: "Source Module",
1199
- dataType: "module" /* module */,
1200
- dataId: "source" /* sourceModule */,
1201
- maxConnections: 1
1202
- },
1203
- {
1204
- position: _system.Position.Left,
1205
- connection: "target",
1206
- label: "X Module",
1207
- dataType: "module" /* module */,
1208
- dataId: "x-module" /* xModule */,
1209
- maxConnections: 1
1210
- },
1211
- {
1212
- position: _system.Position.Left,
1213
- connection: "target",
1214
- label: "Y Module",
1215
- dataType: "module" /* module */,
1216
- dataId: "y-module" /* yModule */,
1217
- maxConnections: 1
1218
- },
1219
- {
1220
- position: _system.Position.Left,
1221
- connection: "target",
1222
- label: "Z Module",
1223
- dataType: "module" /* module */,
1224
- dataId: "z-module" /* zModule */,
1225
- maxConnections: 1
1226
- },
1227
- {
1228
- position: _system.Position.Right,
1229
- dataType: "module" /* module */,
1230
- dataId: "output" /* output */,
1231
- connection: "source"
1232
- }
1233
- ]
1234
- }}
1235
- }, _class27);
1236
-
1237
- // src/templates/transformers/noise-rotate-point-template.ts
1238
-
1239
- var NoiseRotatePointNodeTemplateFactory = (_class28 = class {constructor() { _class28.prototype.__init28.call(this); }
1240
- __init28() {this.template = {
1241
- type: "noise-rotate-point" /* noiseRotatePoint */,
1242
- group: "Noise Transformers" /* noiseTransformers */,
1243
- data: {
1244
- title: "Noise Rotate Point",
1245
- xAngle: 0,
1246
- yAngle: 0,
1247
- zAngle: 0
1248
- },
1249
- handles: [
1250
- {
1251
- position: _system.Position.Left,
1252
- dataType: "module" /* module */,
1253
- connection: "target",
1254
- label: "Source Module",
1255
- maxConnections: 1
1256
- },
1257
- {
1258
- position: _system.Position.Right,
1259
- dataType: "module" /* module */,
1260
- connection: "source"
1261
- }
1262
- ]
1263
- }}
1264
- }, _class28);
1265
-
1266
- // src/templates/transformers/noise-scale-point-template.ts
1267
-
1268
- var NoiseScalePointNodeTemplateFactory = (_class29 = class {constructor() { _class29.prototype.__init29.call(this); }
1269
- __init29() {this.template = {
1270
- type: "noise-scale-point" /* noiseScalePoint */,
1271
- group: "Noise Transformers" /* noiseTransformers */,
1272
- data: {
1273
- title: "Noise Scale Point",
1274
- xScale: 1,
1275
- yScale: 1,
1276
- zScale: 1
1277
- },
1278
- handles: [
1279
- {
1280
- position: _system.Position.Left,
1281
- dataType: "module" /* module */,
1282
- connection: "target",
1283
- label: "Source Module",
1284
- maxConnections: 1
1285
- },
1286
- {
1287
- position: _system.Position.Right,
1288
- dataType: "module" /* module */,
1289
- connection: "source"
1290
- }
1291
- ]
1292
- }}
1293
- }, _class29);
1294
-
1295
- // src/templates/transformers/noise-translate-point-template.ts
1296
-
1297
- var NoiseTranslatePointNodeTemplateFactory = (_class30 = class {constructor() { _class30.prototype.__init30.call(this); }
1298
- __init30() {this.template = {
1299
- type: "noise-translate-point" /* noiseTranslatePoint */,
1300
- group: "Noise Transformers" /* noiseTransformers */,
1301
- data: {
1302
- title: "Noise Translate Point",
1303
- translateX: 0,
1304
- translateY: 0,
1305
- translateZ: 0
1306
- },
1307
- handles: [
1308
- {
1309
- position: _system.Position.Left,
1310
- dataType: "module" /* module */,
1311
- connection: "target",
1312
- label: "Source Module",
1313
- maxConnections: 1
1314
- },
1315
- {
1316
- position: _system.Position.Right,
1317
- dataType: "module" /* module */,
1318
- connection: "source"
1319
- }
1320
- ]
1321
- }}
1322
- }, _class30);
1323
-
1324
- // src/templates/transformers/noise-turbulence-template.ts
1325
-
1326
-
1327
- var NoiseTurbulenceNodeTemplateFactory = (_class31 = class {constructor() { _class31.prototype.__init31.call(this); }
1328
- __init31() {this.template = {
1329
- type: "noise-turbulence" /* noiseTurbulence */,
1330
- group: "Noise Transformers" /* noiseTransformers */,
1331
- data: {
1332
- title: "Noise Turbulence",
1333
- frequency: 1,
1334
- power: 1,
1335
- roughness: 1,
1336
- seed: 0
1337
- },
1338
- handles: [
1339
- {
1340
- position: _system.Position.Left,
1341
- dataType: "module" /* module */,
1342
- connection: "target",
1343
- label: "Source Module",
1344
- maxConnections: 1
1345
- },
1346
- {
1347
- position: _system.Position.Left,
1348
- dataType: _abstract.CoreHandleType.variableProperty,
1349
- label: "Variable Properties",
1350
- connection: "target"
1351
- },
1352
- {
1353
- position: _system.Position.Right,
1354
- dataType: "module" /* module */,
1355
- connection: "source"
1356
- }
1357
- ]
1358
- }}
1359
- }, _class31);
1360
-
1361
- // src/abstract/node-types.ts
1362
- var NoiseNodeType = /* @__PURE__ */ ((NoiseNodeType2) => {
1363
- NoiseNodeType2["position"] = "position";
1364
- NoiseNodeType2["grid"] = "grid";
1365
- NoiseNodeType2["textureData"] = "texture-data";
1366
- NoiseNodeType2["groupModule"] = "group-module";
1367
- NoiseNodeType2["positionLogger"] = "position-logger";
1368
- NoiseNodeType2["noiseLogger"] = "noise-logger";
1369
- NoiseNodeType2["noiseOutput"] = "noise-output";
1370
- NoiseNodeType2["noiseConst"] = "noise-constant";
1371
- NoiseNodeType2["noiseBillow"] = "noise-billow";
1372
- NoiseNodeType2["noiseCheckerboard"] = "noise-checkerboard";
1373
- NoiseNodeType2["noiseNormalize"] = "noise-normalize";
1374
- NoiseNodeType2["noiseCylinders"] = "noise-cylinders";
1375
- NoiseNodeType2["noisePerlin"] = "noise-perlin";
1376
- NoiseNodeType2["noiseRidgedMulti"] = "noise-ridged-multi";
1377
- NoiseNodeType2["noiseSpheres"] = "noise-spheres";
1378
- NoiseNodeType2["noiseVoronoi"] = "noise-voronoi";
1379
- NoiseNodeType2["noiseCombine"] = "noise-combiner";
1380
- NoiseNodeType2["noiseClamp"] = "noise-clamp";
1381
- NoiseNodeType2["noiseAbs"] = "noise-abs";
1382
- NoiseNodeType2["noiseCurve"] = "noise-curve";
1383
- NoiseNodeType2["noiseExponent"] = "noise-exponent";
1384
- NoiseNodeType2["noiseInvert"] = "noise-invert";
1385
- NoiseNodeType2["noiseScaleBias"] = "noise-scale-bias";
1386
- NoiseNodeType2["noiseTerrace"] = "noise-terrace";
1387
- NoiseNodeType2["noiseBlend"] = "noise-blend";
1388
- NoiseNodeType2["noiseSelect"] = "noise-select";
1389
- NoiseNodeType2["noiseDisplace"] = "noise-displace";
1390
- NoiseNodeType2["noiseRotatePoint"] = "noise-rotate-point";
1391
- NoiseNodeType2["noiseScalePoint"] = "noise-scale-point";
1392
- NoiseNodeType2["noiseTranslatePoint"] = "noise-translate-point";
1393
- NoiseNodeType2["noiseTurbulence"] = "noise-turbulence";
1394
- return NoiseNodeType2;
1395
- })(NoiseNodeType || {});
1396
- var noiseNodeTypes = {
1397
- ["group-module" /* groupModule */]: _chunkXC7VF5YCcjs.module_group_node_default,
1398
- ["position" /* position */]: _chunkLKDSXT7Icjs.position_const_node_default,
1399
- ["grid" /* grid */]: _chunkLKDSXT7Icjs.position_grid_node_default,
1400
- ["noise-output" /* noiseOutput */]: noise_output_node_default,
1401
- ["texture-data" /* textureData */]: noise_raw_texture_node_default,
1402
- ["noise-logger" /* noiseLogger */]: noise_logger_node_default,
1403
- ["position-logger" /* positionLogger */]: positions_logger_node_default,
1404
- ["noise-constant" /* noiseConst */]: _chunkLKDSXT7Icjs.noise_const_node_default,
1405
- ["noise-billow" /* noiseBillow */]: _chunkLKDSXT7Icjs.noise_billow_node_default,
1406
- ["noise-checkerboard" /* noiseCheckerboard */]: _chunkLKDSXT7Icjs.noise_checkerboard_node_default,
1407
- ["noise-cylinders" /* noiseCylinders */]: _chunkLKDSXT7Icjs.noise_cylinders_node_default,
1408
- ["noise-perlin" /* noisePerlin */]: _chunkLKDSXT7Icjs.noise_perlin_node_default,
1409
- ["noise-ridged-multi" /* noiseRidgedMulti */]: _chunkLKDSXT7Icjs.noise_ridgedmulti_node_default,
1410
- ["noise-spheres" /* noiseSpheres */]: _chunkLKDSXT7Icjs.noise_spheres_node_default,
1411
- ["noise-voronoi" /* noiseVoronoi */]: _chunkLKDSXT7Icjs.noise_voronoi_node_default,
1412
- ["noise-combiner" /* noiseCombine */]: _chunkDQE5NXY7cjs.noise_combine_node_default,
1413
- ["noise-clamp" /* noiseClamp */]: _chunkDQE5NXY7cjs.noise_clamp_node_default,
1414
- ["noise-abs" /* noiseAbs */]: _chunkDQE5NXY7cjs.noise_abs_node_default,
1415
- ["noise-normalize" /* noiseNormalize */]: _chunkDQE5NXY7cjs.noise_normalize_node_default,
1416
- ["noise-curve" /* noiseCurve */]: _chunkDQE5NXY7cjs.noise_curve_node_default,
1417
- ["noise-exponent" /* noiseExponent */]: _chunkDQE5NXY7cjs.noise_exponent_node_default,
1418
- ["noise-invert" /* noiseInvert */]: _chunkDQE5NXY7cjs.noise_invert_node_default,
1419
- ["noise-scale-bias" /* noiseScaleBias */]: _chunkDQE5NXY7cjs.noise_scale_bias_node_default,
1420
- ["noise-terrace" /* noiseTerrace */]: _chunkDQE5NXY7cjs.noise_terrace_node_default,
1421
- ["noise-blend" /* noiseBlend */]: noise_blend_node_default,
1422
- ["noise-select" /* noiseSelect */]: noise_select_node_default,
1423
- ["noise-displace" /* noiseDisplace */]: _chunk36USJJC4cjs.noise_displace_node_default,
1424
- ["noise-rotate-point" /* noiseRotatePoint */]: _chunk36USJJC4cjs.noise_rotate_point_node_default,
1425
- ["noise-scale-point" /* noiseScalePoint */]: _chunk36USJJC4cjs.noise_scale_point_node_default,
1426
- ["noise-translate-point" /* noiseTranslatePoint */]: _chunk36USJJC4cjs.noise_translate_point_node_default,
1427
- ["noise-turbulence" /* noiseTurbulence */]: _chunk36USJJC4cjs.noise_turbulence_node_default
1428
- };
1429
- var noiseNodeTemplates = {
1430
- ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
1431
- ["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
1432
- ["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
1433
- ["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),
1434
- ["noise-logger" /* noiseLogger */]: new NoiseLoggerNodeTemplateFactory(),
1435
- ["noise-constant" /* noiseConst */]: new NoiseConstNodeTemplateFactory(),
1436
- ["position" /* position */]: new PositionConstNodeTemplateFactory(),
1437
- ["position-logger" /* positionLogger */]: new PositionLoggerNodeTemplateFactory(),
1438
- ["grid" /* grid */]: new PositionGridNodeTemplateFactory(),
1439
- ["texture-data" /* textureData */]: new NoiseRawTextureTemplateFactory(),
1440
- ["noise-cylinders" /* noiseCylinders */]: new NoiseCylindersNodeTemplateFactory(),
1441
- ["noise-perlin" /* noisePerlin */]: new NoisePerlinNodeTemplateFactory(),
1442
- ["noise-ridged-multi" /* noiseRidgedMulti */]: new NoiseRidgedMultiNodeTemplateFactory(),
1443
- ["noise-spheres" /* noiseSpheres */]: new NoiseSpheresNodeTemplateFactory(),
1444
- ["noise-voronoi" /* noiseVoronoi */]: new NoiseVoronoiNodeTemplateFactory(),
1445
- ["noise-combiner" /* noiseCombine */]: new NoiseCombineNodeTemplateFactory(),
1446
- ["noise-clamp" /* noiseClamp */]: new NoiseClampNodeTemplateFactory(),
1447
- ["noise-abs" /* noiseAbs */]: new NoiseAbsNodeTemplateFactory(),
1448
- ["noise-curve" /* noiseCurve */]: new NoiseCurveNodeTemplateFactory(),
1449
- ["noise-exponent" /* noiseExponent */]: new NoiseExponentNodeTemplateFactory(),
1450
- ["noise-invert" /* noiseInvert */]: new NoiseInvertNodeTemplateFactory(),
1451
- ["noise-scale-bias" /* noiseScaleBias */]: new NoiseScaleBiasNodeTemplateFactory(),
1452
- ["noise-terrace" /* noiseTerrace */]: new NoiseTerraceNodeTemplateFactory(),
1453
- ["noise-blend" /* noiseBlend */]: new NoiseBlendNodeTemplateFactory(),
1454
- ["noise-select" /* noiseSelect */]: new NoiseSelectNodeTemplateFactory(),
1455
- ["noise-displace" /* noiseDisplace */]: new NoiseDisplaceNodeTemplateFactory(),
1456
- ["noise-rotate-point" /* noiseRotatePoint */]: new NoiseRotatePointNodeTemplateFactory(),
1457
- ["noise-scale-point" /* noiseScalePoint */]: new NoiseScalePointNodeTemplateFactory(),
1458
- ["noise-translate-point" /* noiseTranslatePoint */]: new NoiseTranslatePointNodeTemplateFactory(),
1459
- ["noise-turbulence" /* noiseTurbulence */]: new NoiseTurbulenceNodeTemplateFactory(),
1460
- ["group-module" /* groupModule */]: new ModuleGroupNodeTemplateFactory()
1461
- };
1462
-
1463
- // src/nodes/output/noise-output-node.tsx
1464
-
1465
- function NoiseOutputNode(t0) {
1466
- const $ = _compilerruntime.c.call(void 0, 16);
1467
- const {
1468
- id,
1469
- selected,
1470
- data,
1471
- type
1472
- } = t0;
1473
- const [size, setSize] = _react.useState.call(void 0, 0);
1474
- const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
1475
- let t1;
1476
- if ($[0] !== id || $[1] !== updateComputedData) {
1477
- t1 = (handleData) => {
1478
- const incomingPositions = handleData["position" /* position */];
1479
- const incomingModule = handleData["module" /* module */];
1480
- if (_optionalChain([incomingPositions, 'optionalAccess', _31 => _31.length]) && _optionalChain([incomingModule, 'optionalAccess', _32 => _32.length]) && _optionalChain([incomingModule, 'access', _33 => _33[0], 'optionalAccess', _34 => _34.module])) {
1481
- const {
1482
- module
1483
- } = incomingModule[0];
1484
- const noise = [];
1485
- for (const input of incomingPositions) {
1486
- for (const position of input.positions) {
1487
- const value = module.getValue(position.x, position.y, position.z);
1488
- noise.push({
1489
- position,
1490
- value
1491
- });
1492
- }
1493
- }
1494
- updateComputedData(id, {
1495
- noise,
1496
- module
1497
- });
1498
- setSize(noise.length);
1499
- }
1500
- };
1501
- $[0] = id;
1502
- $[1] = updateComputedData;
1503
- $[2] = t1;
1504
- } else {
1505
- t1 = $[2];
1506
- }
1507
- const onDataUpdated = t1;
1508
- let t2;
1509
- if ($[3] !== data.handles || $[4] !== id || $[5] !== onDataUpdated) {
1510
- t2 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _components.HandlesIncomingDataStatus, { nodeId: id, handles: data.handles, groupBy: "dataType", onDataUpdated, type: "target", resetComputedData: true });
1511
- $[3] = data.handles;
1512
- $[4] = id;
1513
- $[5] = onDataUpdated;
1514
- $[6] = t2;
1515
- } else {
1516
- t2 = $[6];
1517
- }
1518
- let t3;
1519
- if ($[7] !== size) {
1520
- t3 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Text, { mt: 5, children: [
1521
- "Noise points: ",
1522
- size
1523
- ] });
1524
- $[7] = size;
1525
- $[8] = t3;
1526
- } else {
1527
- t3 = $[8];
1528
- }
1529
- let t4;
1530
- if ($[9] !== data || $[10] !== id || $[11] !== selected || $[12] !== t2 || $[13] !== t3 || $[14] !== type) {
1531
- t4 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
1532
- t2,
1533
- t3
1534
- ] });
1535
- $[9] = data;
1536
- $[10] = id;
1537
- $[11] = selected;
1538
- $[12] = t2;
1539
- $[13] = t3;
1540
- $[14] = type;
1541
- $[15] = t4;
1542
- } else {
1543
- t4 = $[15];
1544
- }
1545
- return t4;
1546
- }
1547
- var noise_output_node_default = NoiseOutputNode;
1548
-
1549
-
1550
-
1551
-
1552
-
1553
-
1554
-
1555
-
1556
-
1557
-
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
-
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
-
1587
-
1588
-
1589
-
1590
-
1591
- exports.noise_logger_node_default = noise_logger_node_default; exports.noise_output_node_default = noise_output_node_default; exports.noise_raw_texture_node_default = noise_raw_texture_node_default; exports.positions_logger_node_default = positions_logger_node_default; exports.noise_blend_node_default = noise_blend_node_default; exports.noise_select_node_default = noise_select_node_default; exports.NoiseTemplateGroup = NoiseTemplateGroup; exports.NoiseBillowNodeTemplateFactory = NoiseBillowNodeTemplateFactory; exports.NoiseCheckerboardNodeTemplateFactory = NoiseCheckerboardNodeTemplateFactory; exports.NoiseConstNodeTemplateFactory = NoiseConstNodeTemplateFactory; exports.NoiseCylindersNodeTemplateFactory = NoiseCylindersNodeTemplateFactory; exports.NoisePerlinNodeTemplateFactory = NoisePerlinNodeTemplateFactory; exports.NoiseRidgedMultiNodeTemplateFactory = NoiseRidgedMultiNodeTemplateFactory; exports.NoiseSpheresNodeTemplateFactory = NoiseSpheresNodeTemplateFactory; exports.NoiseVoronoiNodeTemplateFactory = NoiseVoronoiNodeTemplateFactory; exports.PositionConstNodeTemplateFactory = PositionConstNodeTemplateFactory; exports.PositionGridNodeTemplateFactory = PositionGridNodeTemplateFactory; exports.ModuleGroupNodeTemplateFactory = ModuleGroupNodeTemplateFactory; exports.NoiseAbsNodeTemplateFactory = NoiseAbsNodeTemplateFactory; exports.NoiseClampNodeTemplateFactory = NoiseClampNodeTemplateFactory; exports.NoiseCombineNodeTemplateFactory = NoiseCombineNodeTemplateFactory; exports.NoiseCurveNodeTemplateFactory = NoiseCurveNodeTemplateFactory; exports.NoiseExponentNodeTemplateFactory = NoiseExponentNodeTemplateFactory; exports.NoiseInvertNodeTemplateFactory = NoiseInvertNodeTemplateFactory; exports.NoiseNormalizeNodeTemplateFactory = NoiseNormalizeNodeTemplateFactory; exports.NoiseScaleBiasNodeTemplateFactory = NoiseScaleBiasNodeTemplateFactory; exports.NoiseTerraceNodeTemplateFactory = NoiseTerraceNodeTemplateFactory; exports.NoiseLoggerNodeTemplateFactory = NoiseLoggerNodeTemplateFactory; exports.NoiseOutputNodeTemplateFactory = NoiseOutputNodeTemplateFactory; exports.NoiseRawTextureTemplateFactory = NoiseRawTextureTemplateFactory; exports.PositionLoggerNodeTemplateFactory = PositionLoggerNodeTemplateFactory; exports.NoiseBlendNodeTemplateFactory = NoiseBlendNodeTemplateFactory; exports.NoiseSelectNodeTemplateFactory = NoiseSelectNodeTemplateFactory; exports.NoiseDisplaceNodeTemplateFactory = NoiseDisplaceNodeTemplateFactory; exports.NoiseRotatePointNodeTemplateFactory = NoiseRotatePointNodeTemplateFactory; exports.NoiseScalePointNodeTemplateFactory = NoiseScalePointNodeTemplateFactory; exports.NoiseTranslatePointNodeTemplateFactory = NoiseTranslatePointNodeTemplateFactory; exports.NoiseTurbulenceNodeTemplateFactory = NoiseTurbulenceNodeTemplateFactory; exports.NoiseNodeType = NoiseNodeType; exports.noiseNodeTypes = noiseNodeTypes; exports.noiseNodeTemplates = noiseNodeTemplates;