@awesome-flow/noise 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract/index.cjs +701 -769
- package/dist/abstract/index.d.cts +6 -12
- package/dist/abstract/index.d.ts +6 -12
- package/dist/abstract/index.js +498 -568
- package/dist/{index-BungWYrh.d.cts → index-CfiOpOzX.d.cts} +1 -1
- package/dist/{index-DsQSjZC5.d.ts → index-mlK0X4O1.d.ts} +1 -1
- package/dist/modules/index.cjs +4 -30
- package/dist/modules/index.d.cts +2 -10
- package/dist/modules/index.d.ts +2 -10
- package/dist/modules/index.js +2 -17
- package/dist/{node-props-BbqbXDXn.d.cts → node-props-CAV2WNDN.d.cts} +3 -7
- package/dist/{node-props-BbqbXDXn.d.ts → node-props-CAV2WNDN.d.ts} +3 -7
- package/dist/nodes/generators/index.cjs +71 -114
- package/dist/nodes/generators/index.d.cts +3 -8
- package/dist/nodes/generators/index.d.ts +3 -8
- package/dist/nodes/generators/index.js +47 -79
- package/dist/nodes/index.cjs +642 -710
- package/dist/nodes/index.d.cts +3 -6
- package/dist/nodes/index.d.ts +3 -6
- package/dist/nodes/index.js +443 -512
- package/dist/nodes/modifiers/index.cjs +77 -89
- package/dist/nodes/modifiers/index.d.cts +2 -5
- package/dist/nodes/modifiers/index.d.ts +2 -5
- package/dist/nodes/modifiers/index.js +73 -85
- package/dist/nodes/output/index.cjs +239 -285
- package/dist/nodes/output/index.js +252 -290
- package/dist/nodes/selectors/index.cjs +230 -280
- package/dist/nodes/selectors/index.d.cts +2 -5
- package/dist/nodes/selectors/index.d.ts +2 -5
- package/dist/nodes/selectors/index.js +248 -290
- package/dist/nodes/transformers/index.cjs +10 -10
- package/dist/nodes/transformers/index.d.cts +2 -5
- package/dist/nodes/transformers/index.d.ts +2 -5
- package/dist/nodes/transformers/index.js +5 -5
- package/dist/templates/generators/index.cjs +201 -253
- package/dist/templates/generators/index.d.cts +3 -10
- package/dist/templates/generators/index.d.ts +3 -10
- package/dist/templates/generators/index.js +236 -279
- package/dist/templates/groups/index.cjs +201 -251
- package/dist/templates/groups/index.js +236 -278
- package/dist/templates/index.cjs +201 -253
- package/dist/templates/index.d.cts +4 -7
- package/dist/templates/index.d.ts +4 -7
- package/dist/templates/index.js +236 -279
- package/dist/templates/modifiers/index.cjs +201 -251
- package/dist/templates/modifiers/index.d.cts +2 -5
- package/dist/templates/modifiers/index.d.ts +2 -5
- package/dist/templates/modifiers/index.js +236 -278
- package/dist/templates/output/index.cjs +201 -251
- package/dist/templates/output/index.js +236 -278
- package/dist/templates/selectors/index.cjs +201 -251
- package/dist/templates/selectors/index.d.cts +2 -5
- package/dist/templates/selectors/index.d.ts +2 -5
- package/dist/templates/selectors/index.js +236 -278
- package/dist/templates/transformers/index.cjs +201 -251
- package/dist/templates/transformers/index.d.cts +3 -6
- package/dist/templates/transformers/index.d.ts +3 -6
- package/dist/templates/transformers/index.js +236 -278
- package/package.json +6 -4
|
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(transformers_exports);
|
|
|
31
31
|
var import_layout = require("@awesome-flow/core/layout");
|
|
32
32
|
var import_react = require("react");
|
|
33
33
|
var import_hooks = require("@awesome-flow/core/hooks");
|
|
34
|
-
var
|
|
34
|
+
var import_libnoise_simplex_ts = require("libnoise-simplex-ts");
|
|
35
35
|
var import_components = require("@awesome-flow/core/components");
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
37
|
function NoiseDisplaceNode({ id, selected, data, type }) {
|
|
@@ -43,7 +43,7 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
|
|
|
43
43
|
const yModule = handleData["y-module" /* yModule */];
|
|
44
44
|
const zModule = handleData["z-module" /* zModule */];
|
|
45
45
|
if (sourceModule && xModule && yModule && zModule) {
|
|
46
|
-
const module2 = new
|
|
46
|
+
const module2 = new import_libnoise_simplex_ts.Displace(
|
|
47
47
|
sourceModule[0].module,
|
|
48
48
|
xModule[0].module,
|
|
49
49
|
yModule[0].module,
|
|
@@ -76,7 +76,7 @@ var import_layout2 = require("@awesome-flow/core/layout");
|
|
|
76
76
|
var import_react2 = require("react");
|
|
77
77
|
var import_hooks2 = require("@awesome-flow/core/hooks");
|
|
78
78
|
var import_core = require("@mantine/core");
|
|
79
|
-
var
|
|
79
|
+
var import_libnoise_simplex_ts2 = require("libnoise-simplex-ts");
|
|
80
80
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
81
81
|
function NoiseRotatePointNode({
|
|
82
82
|
id,
|
|
@@ -92,7 +92,7 @@ function NoiseRotatePointNode({
|
|
|
92
92
|
const updateComputedData = (0, import_hooks2.useUpdateNodeComputedData)();
|
|
93
93
|
(0, import_react2.useEffect)(() => {
|
|
94
94
|
if (incoming?.length) {
|
|
95
|
-
const module2 = new
|
|
95
|
+
const module2 = new import_libnoise_simplex_ts2.RotatePoint(incoming[0].module, xAngle, yAngle, zAngle);
|
|
96
96
|
updateComputedData(id, { module: module2 });
|
|
97
97
|
}
|
|
98
98
|
updateNodeData(id, { xAngle, yAngle, zAngle });
|
|
@@ -149,7 +149,7 @@ var import_layout3 = require("@awesome-flow/core/layout");
|
|
|
149
149
|
var import_react3 = require("react");
|
|
150
150
|
var import_hooks3 = require("@awesome-flow/core/hooks");
|
|
151
151
|
var import_core2 = require("@mantine/core");
|
|
152
|
-
var
|
|
152
|
+
var import_libnoise_simplex_ts3 = require("libnoise-simplex-ts");
|
|
153
153
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
154
154
|
function NoiseScalePointNode({
|
|
155
155
|
id,
|
|
@@ -165,7 +165,7 @@ function NoiseScalePointNode({
|
|
|
165
165
|
const updateComputedData = (0, import_hooks3.useUpdateNodeComputedData)();
|
|
166
166
|
(0, import_react3.useEffect)(() => {
|
|
167
167
|
if (incoming?.length) {
|
|
168
|
-
const module2 = new
|
|
168
|
+
const module2 = new import_libnoise_simplex_ts3.ScalePoint(incoming[0].module, xScale, yScale, zScale);
|
|
169
169
|
updateComputedData(id, { module: module2 });
|
|
170
170
|
}
|
|
171
171
|
updateNodeData(id, { xScale, yScale, zScale });
|
|
@@ -222,7 +222,7 @@ var import_layout4 = require("@awesome-flow/core/layout");
|
|
|
222
222
|
var import_react4 = require("react");
|
|
223
223
|
var import_hooks4 = require("@awesome-flow/core/hooks");
|
|
224
224
|
var import_core3 = require("@mantine/core");
|
|
225
|
-
var
|
|
225
|
+
var import_libnoise_simplex_ts4 = require("libnoise-simplex-ts");
|
|
226
226
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
227
227
|
function NoiseTranslatePointNode({
|
|
228
228
|
id,
|
|
@@ -238,7 +238,7 @@ function NoiseTranslatePointNode({
|
|
|
238
238
|
const updateComputedData = (0, import_hooks4.useUpdateNodeComputedData)();
|
|
239
239
|
(0, import_react4.useEffect)(() => {
|
|
240
240
|
if (incoming?.length) {
|
|
241
|
-
const module2 = new
|
|
241
|
+
const module2 = new import_libnoise_simplex_ts4.TranslatePoint(incoming[0].module, translateX, translateY, translateZ);
|
|
242
242
|
updateComputedData(id, { module: module2 });
|
|
243
243
|
}
|
|
244
244
|
updateNodeData(id, { translateX, translateY, translateZ });
|
|
@@ -294,7 +294,7 @@ var noise_translate_point_node_default = NoiseTranslatePointNode;
|
|
|
294
294
|
var import_layout5 = require("@awesome-flow/core/layout");
|
|
295
295
|
var import_react5 = require("react");
|
|
296
296
|
var import_hooks5 = require("@awesome-flow/core/hooks");
|
|
297
|
-
var
|
|
297
|
+
var import_libnoise_simplex_ts5 = require("libnoise-simplex-ts");
|
|
298
298
|
var import_components2 = require("@awesome-flow/core/components");
|
|
299
299
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
300
300
|
function NoiseTurbulenceNode({
|
|
@@ -311,7 +311,7 @@ function NoiseTurbulenceNode({
|
|
|
311
311
|
}, []);
|
|
312
312
|
(0, import_react5.useEffect)(() => {
|
|
313
313
|
if (incoming?.length && properties) {
|
|
314
|
-
const module2 = new
|
|
314
|
+
const module2 = new import_libnoise_simplex_ts5.Turbulence(
|
|
315
315
|
incoming[0].module,
|
|
316
316
|
properties.frequency.value,
|
|
317
317
|
properties.power.value,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { NodeProps, Node } from '@xyflow/react';
|
|
3
3
|
import { BasicNodeData } from '@awesome-flow/core/abstract';
|
|
4
|
-
import { u as NodeRotatePointNoiseData, v as NodeScalePointNoiseData, w as NodeTranslatePointNoiseData, x as NodeTurbulenceNoiseData } from '../../node-props-
|
|
5
|
-
import 'libnoise-ts
|
|
6
|
-
import 'libnoise-ts/noisegen';
|
|
7
|
-
import 'libnoise-ts/module/Module';
|
|
8
|
-
import 'libnoise-ts/module/combiner';
|
|
4
|
+
import { u as NodeRotatePointNoiseData, v as NodeScalePointNoiseData, w as NodeTranslatePointNoiseData, x as NodeTurbulenceNoiseData } from '../../node-props-CAV2WNDN.cjs';
|
|
5
|
+
import 'libnoise-simplex-ts';
|
|
9
6
|
|
|
10
7
|
declare function NoiseDisplaceNode({ id, selected, data, type }: NodeProps<Node<BasicNodeData>>): react_jsx_runtime.JSX.Element;
|
|
11
8
|
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { NodeProps, Node } from '@xyflow/react';
|
|
3
3
|
import { BasicNodeData } from '@awesome-flow/core/abstract';
|
|
4
|
-
import { u as NodeRotatePointNoiseData, v as NodeScalePointNoiseData, w as NodeTranslatePointNoiseData, x as NodeTurbulenceNoiseData } from '../../node-props-
|
|
5
|
-
import 'libnoise-ts
|
|
6
|
-
import 'libnoise-ts/noisegen';
|
|
7
|
-
import 'libnoise-ts/module/Module';
|
|
8
|
-
import 'libnoise-ts/module/combiner';
|
|
4
|
+
import { u as NodeRotatePointNoiseData, v as NodeScalePointNoiseData, w as NodeTranslatePointNoiseData, x as NodeTurbulenceNoiseData } from '../../node-props-CAV2WNDN.js';
|
|
5
|
+
import 'libnoise-simplex-ts';
|
|
9
6
|
|
|
10
7
|
declare function NoiseDisplaceNode({ id, selected, data, type }: NodeProps<Node<BasicNodeData>>): react_jsx_runtime.JSX.Element;
|
|
11
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { NodeContainer, NodeTrackConnections } from "@awesome-flow/core/layout";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
|
|
5
|
-
import { Displace } from "libnoise-ts
|
|
5
|
+
import { Displace } from "libnoise-simplex-ts";
|
|
6
6
|
import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
function NoiseDisplaceNode({ id, selected, data, type }) {
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
useUpdateNodeData
|
|
52
52
|
} from "@awesome-flow/core/hooks";
|
|
53
53
|
import { Group, NumberInput, Stack } from "@mantine/core";
|
|
54
|
-
import { RotatePoint } from "libnoise-ts
|
|
54
|
+
import { RotatePoint } from "libnoise-simplex-ts";
|
|
55
55
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
56
56
|
function NoiseRotatePointNode({
|
|
57
57
|
id,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
useUpdateNodeData as useUpdateNodeData2
|
|
129
129
|
} from "@awesome-flow/core/hooks";
|
|
130
130
|
import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
|
|
131
|
-
import { ScalePoint } from "libnoise-ts
|
|
131
|
+
import { ScalePoint } from "libnoise-simplex-ts";
|
|
132
132
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
133
133
|
function NoiseScalePointNode({
|
|
134
134
|
id,
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
useUpdateNodeData as useUpdateNodeData3
|
|
206
206
|
} from "@awesome-flow/core/hooks";
|
|
207
207
|
import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
|
|
208
|
-
import { TranslatePoint } from "libnoise-ts
|
|
208
|
+
import { TranslatePoint } from "libnoise-simplex-ts";
|
|
209
209
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
210
210
|
function NoiseTranslatePointNode({
|
|
211
211
|
id,
|
|
@@ -277,7 +277,7 @@ var noise_translate_point_node_default = NoiseTranslatePointNode;
|
|
|
277
277
|
import { NodeContainer as NodeContainer5, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
|
|
278
278
|
import { useCallback as useCallback2, useEffect as useEffect4, useState as useState4 } from "react";
|
|
279
279
|
import { useIncomingComputedData as useIncomingComputedData4, useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
|
|
280
|
-
import { Turbulence } from "libnoise-ts
|
|
280
|
+
import { Turbulence } from "libnoise-simplex-ts";
|
|
281
281
|
import { NodePropertyVariables } from "@awesome-flow/core/components";
|
|
282
282
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
283
283
|
function NoiseTurbulenceNode({
|