shaders 2.2.34 → 2.2.35
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/core/Sharpness-B2MrhUH5.js +41 -0
- package/dist/core/index.js +37 -35
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Sharpness/index.d.ts +14 -0
- package/dist/core/shaders/Sharpness/index.d.ts.map +1 -0
- package/dist/core/shaders/Sharpness/index.js +2 -0
- package/dist/core/shaders/SimplexNoise/index.js +1 -1
- package/dist/core/shaders/SineWave/index.js +1 -1
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +1 -1
- package/dist/core/shaders/Spiral/index.js +1 -1
- package/dist/core/shaders/Strands/index.js +1 -1
- package/dist/core/shaders/Stretch/index.js +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +1 -1
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/react/components/Sharpness.d.ts +31 -0
- package/dist/react/components/Sharpness.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-CwTRhENe.js → generatePresetCode-C4t1eM0z.js} +6 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +535 -396
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +40 -0
- package/dist/solid/components/Sharpness.d.ts +28 -0
- package/dist/solid/components/Sharpness.d.ts.map +1 -0
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +477 -336
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +6 -0
- package/dist/svelte/components/Sharpness.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-Qh7jlXV3.js → generatePresetCode-CT9aNR6P.js} +6 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +141 -30
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/Sharpness.vue.d.ts +57 -0
- package/dist/vue/components/Sharpness.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-Bf-TQPvI.js → generatePresetCode-BmkyNfz6.js} +6 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +237 -116
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +9 -1
- /package/dist/core/{SimplexNoise-CAtknQS7.js → SimplexNoise-j5sH7ro0.js} +0 -0
- /package/dist/core/{SineWave-CHtV6kB4.js → SineWave-C4Lz5gO9.js} +0 -0
- /package/dist/core/{SolidColor-CSSquNVW.js → SolidColor-9huPo7Qb.js} +0 -0
- /package/dist/core/{Spherize-BJby0xSU.js → Spherize-ARP2hY6_.js} +0 -0
- /package/dist/core/{Spiral-CpB3-tFZ.js → Spiral-d60Q9u4M.js} +0 -0
- /package/dist/core/{Strands-C2KWiJc8.js → Strands-DiIbhZ0r.js} +0 -0
- /package/dist/core/{Stretch-Chpzutao.js → Stretch-UYY3Qep7.js} +0 -0
- /package/dist/core/{Swirl-qbMypv_R.js → Swirl-jQMlfm2U.js} +0 -0
- /package/dist/core/{TiltShift-D0qyWoe3.js → TiltShift-Ctj-Dsom.js} +0 -0
- /package/dist/core/{Tritone-DzeueG1F.js → Tritone-D2lMeIyT.js} +0 -0
- /package/dist/core/{Twirl-B2Ic0WGq.js → Twirl-D4opuuKg.js} +0 -0
- /package/dist/core/{Vibrance-BAGXelBi.js → Vibrance-CZCF06c0.js} +0 -0
- /package/dist/core/{WaveDistortion-DYFl_8vA.js → WaveDistortion-DdJtTeib.js} +0 -0
- /package/dist/core/{ZoomBlur-CXpRNRJA.js → ZoomBlur-DfzUaH4u.js} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Fn, clamp, convertToTexture, float, screenUV, vec2, vec4, viewportSize } from "three/tsl";
|
|
2
|
+
const componentDefinition = {
|
|
3
|
+
name: "Sharpness",
|
|
4
|
+
category: "Adjustments",
|
|
5
|
+
description: "Adjust image sharpness using a convolution kernel",
|
|
6
|
+
requiresRTT: true,
|
|
7
|
+
requiresChild: true,
|
|
8
|
+
props: { sharpness: {
|
|
9
|
+
default: 0,
|
|
10
|
+
description: "How sharp to make the underlying image",
|
|
11
|
+
ui: {
|
|
12
|
+
type: "range",
|
|
13
|
+
min: 0,
|
|
14
|
+
max: 5,
|
|
15
|
+
step: .01,
|
|
16
|
+
label: "Sharpness"
|
|
17
|
+
}
|
|
18
|
+
} },
|
|
19
|
+
fragmentNode: ({ uniforms, childNode, onCleanup }) => {
|
|
20
|
+
if (!childNode) return vec4(0, 0, 0, 0);
|
|
21
|
+
const childTexture = convertToTexture(childNode);
|
|
22
|
+
onCleanup(() => {
|
|
23
|
+
if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
|
|
24
|
+
});
|
|
25
|
+
return Fn(() => {
|
|
26
|
+
const uv$1 = screenUV;
|
|
27
|
+
const amount = uniforms.sharpness.uniform;
|
|
28
|
+
const pixelSize = vec2(1).div(viewportSize);
|
|
29
|
+
const center = childTexture.sample(uv$1);
|
|
30
|
+
const top = childTexture.sample(uv$1.add(vec2(0, pixelSize.y)));
|
|
31
|
+
const bottom = childTexture.sample(uv$1.sub(vec2(0, pixelSize.y)));
|
|
32
|
+
const left = childTexture.sample(uv$1.sub(vec2(pixelSize.x, 0)));
|
|
33
|
+
const right = childTexture.sample(uv$1.add(vec2(pixelSize.x, 0)));
|
|
34
|
+
const centerWeight = float(1).add(amount.mul(4));
|
|
35
|
+
const neighborWeight = amount.negate();
|
|
36
|
+
return vec4(clamp(center.mul(centerWeight).add(top.mul(neighborWeight)).add(bottom.mul(neighborWeight)).add(left.mul(neighborWeight)).add(right.mul(neighborWeight)).rgb, 0, 1), center.a);
|
|
37
|
+
})();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var Sharpness_default = componentDefinition;
|
|
41
|
+
export { componentDefinition as n, Sharpness_default as t };
|
package/dist/core/index.js
CHANGED
|
@@ -44,20 +44,21 @@ import { n as componentDefinition$38 } from "./RadialGradient-Ci1dU-1K.js";
|
|
|
44
44
|
import { n as componentDefinition$39 } from "./RectangularCoordinates-tVGG7WOJ.js";
|
|
45
45
|
import { n as componentDefinition$40 } from "./Ripples-BCGSt5HD.js";
|
|
46
46
|
import { n as componentDefinition$41 } from "./Saturation-DWR1Nruu.js";
|
|
47
|
-
import { n as componentDefinition$42 } from "./
|
|
48
|
-
import { n as componentDefinition$43 } from "./
|
|
49
|
-
import { n as componentDefinition$44 } from "./
|
|
50
|
-
import { n as componentDefinition$45 } from "./
|
|
51
|
-
import { n as componentDefinition$46 } from "./
|
|
52
|
-
import { n as componentDefinition$47 } from "./
|
|
53
|
-
import { n as componentDefinition$48 } from "./
|
|
54
|
-
import { n as componentDefinition$49 } from "./
|
|
55
|
-
import { n as componentDefinition$50 } from "./
|
|
56
|
-
import { n as componentDefinition$51 } from "./
|
|
57
|
-
import { n as componentDefinition$52 } from "./
|
|
58
|
-
import { n as componentDefinition$53 } from "./
|
|
59
|
-
import { n as componentDefinition$54 } from "./
|
|
60
|
-
import { n as componentDefinition$55 } from "./
|
|
47
|
+
import { n as componentDefinition$42 } from "./Sharpness-B2MrhUH5.js";
|
|
48
|
+
import { n as componentDefinition$43 } from "./SimplexNoise-j5sH7ro0.js";
|
|
49
|
+
import { n as componentDefinition$44 } from "./SineWave-C4Lz5gO9.js";
|
|
50
|
+
import { n as componentDefinition$45 } from "./SolidColor-9huPo7Qb.js";
|
|
51
|
+
import { n as componentDefinition$46 } from "./Spherize-ARP2hY6_.js";
|
|
52
|
+
import { n as componentDefinition$47 } from "./Spiral-d60Q9u4M.js";
|
|
53
|
+
import { n as componentDefinition$48 } from "./Strands-DiIbhZ0r.js";
|
|
54
|
+
import { n as componentDefinition$49 } from "./Stretch-UYY3Qep7.js";
|
|
55
|
+
import { n as componentDefinition$50 } from "./Swirl-jQMlfm2U.js";
|
|
56
|
+
import { n as componentDefinition$51 } from "./TiltShift-Ctj-Dsom.js";
|
|
57
|
+
import { n as componentDefinition$52 } from "./Tritone-D2lMeIyT.js";
|
|
58
|
+
import { n as componentDefinition$53 } from "./Twirl-D4opuuKg.js";
|
|
59
|
+
import { n as componentDefinition$54 } from "./Vibrance-CZCF06c0.js";
|
|
60
|
+
import { n as componentDefinition$55 } from "./WaveDistortion-DdJtTeib.js";
|
|
61
|
+
import { n as componentDefinition$56 } from "./ZoomBlur-DfzUaH4u.js";
|
|
61
62
|
import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, WebGPURenderer } from "three/webgpu";
|
|
62
63
|
import { WebGLRenderer } from "three";
|
|
63
64
|
import { PI, abs, add, atan, convertToTexture, cos, div, dot, float, fract, max, min, mix, mul, pow, screenUV, sin, smoothstep, sqrt, step, sub, time, uniform, uv, vec2, vec3, vec4 } from "three/tsl";
|
|
@@ -1084,7 +1085,7 @@ function shaderRenderer() {
|
|
|
1084
1085
|
}
|
|
1085
1086
|
}
|
|
1086
1087
|
};
|
|
1087
|
-
const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition$
|
|
1088
|
+
const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition$57) => {
|
|
1088
1089
|
if (fragmentNodeFunc === null) {
|
|
1089
1090
|
const queueIndex = pendingRegistrationQueue.findIndex((item) => item.id === id);
|
|
1090
1091
|
if (queueIndex !== -1) {
|
|
@@ -1102,7 +1103,7 @@ function shaderRenderer() {
|
|
|
1102
1103
|
parentId,
|
|
1103
1104
|
metadata,
|
|
1104
1105
|
uniforms,
|
|
1105
|
-
componentDefinition: componentDefinition$
|
|
1106
|
+
componentDefinition: componentDefinition$57
|
|
1106
1107
|
};
|
|
1107
1108
|
else pendingRegistrationQueue.push({
|
|
1108
1109
|
id,
|
|
@@ -1110,7 +1111,7 @@ function shaderRenderer() {
|
|
|
1110
1111
|
parentId,
|
|
1111
1112
|
metadata,
|
|
1112
1113
|
uniforms,
|
|
1113
|
-
componentDefinition: componentDefinition$
|
|
1114
|
+
componentDefinition: componentDefinition$57
|
|
1114
1115
|
});
|
|
1115
1116
|
return;
|
|
1116
1117
|
}
|
|
@@ -1143,11 +1144,11 @@ function shaderRenderer() {
|
|
|
1143
1144
|
}
|
|
1144
1145
|
const nodeInfo = {
|
|
1145
1146
|
id,
|
|
1146
|
-
componentName: componentDefinition$
|
|
1147
|
+
componentName: componentDefinition$57?.name || "Unknown",
|
|
1147
1148
|
fragmentNodeFunc,
|
|
1148
1149
|
parentId,
|
|
1149
|
-
requiresRTT: componentDefinition$
|
|
1150
|
-
requiresChild: componentDefinition$
|
|
1150
|
+
requiresRTT: componentDefinition$57?.requiresRTT || false,
|
|
1151
|
+
requiresChild: componentDefinition$57?.requiresChild || false,
|
|
1151
1152
|
opacityUniform,
|
|
1152
1153
|
metadata: {
|
|
1153
1154
|
blendMode: metadata?.blendMode || "normal",
|
|
@@ -1463,7 +1464,7 @@ function shaderRenderer() {
|
|
|
1463
1464
|
if (pendingRegistrationQueue.length === 0) return;
|
|
1464
1465
|
const queue = [...pendingRegistrationQueue];
|
|
1465
1466
|
pendingRegistrationQueue = [];
|
|
1466
|
-
for (const { id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition: componentDefinition$
|
|
1467
|
+
for (const { id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition: componentDefinition$57 } of queue) if (fragmentNodeFunc) registerNode(id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition$57);
|
|
1467
1468
|
};
|
|
1468
1469
|
const initialize = async ({ canvas, enablePerformanceTracking: enableTracking = false }) => {
|
|
1469
1470
|
if (isInitialized || isInitializing) return;
|
|
@@ -1800,20 +1801,21 @@ var createShaderRegistry = () => {
|
|
|
1800
1801
|
RectangularCoordinates: componentDefinition$39,
|
|
1801
1802
|
Ripples: componentDefinition$40,
|
|
1802
1803
|
Saturation: componentDefinition$41,
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1804
|
+
Sharpness: componentDefinition$42,
|
|
1805
|
+
SimplexNoise: componentDefinition$43,
|
|
1806
|
+
SineWave: componentDefinition$44,
|
|
1807
|
+
SolidColor: componentDefinition$45,
|
|
1808
|
+
Spherize: componentDefinition$46,
|
|
1809
|
+
Spiral: componentDefinition$47,
|
|
1810
|
+
Strands: componentDefinition$48,
|
|
1811
|
+
Stretch: componentDefinition$49,
|
|
1812
|
+
Swirl: componentDefinition$50,
|
|
1813
|
+
TiltShift: componentDefinition$51,
|
|
1814
|
+
Tritone: componentDefinition$52,
|
|
1815
|
+
Twirl: componentDefinition$53,
|
|
1816
|
+
Vibrance: componentDefinition$54,
|
|
1817
|
+
WaveDistortion: componentDefinition$55,
|
|
1818
|
+
ZoomBlur: componentDefinition$56
|
|
1817
1819
|
};
|
|
1818
1820
|
Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
|
|
1819
1821
|
const propsMetadata = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AA6FD,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface ComponentProps {
|
|
4
|
+
/**
|
|
5
|
+
* How sharp to make the underlying image
|
|
6
|
+
*
|
|
7
|
+
* Accepts a number between 0 and 5.
|
|
8
|
+
* @default 0
|
|
9
|
+
*/
|
|
10
|
+
sharpness: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
13
|
+
export default componentDefinition;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Sharpness/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAuDnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../time-DgRTVr2F.js";
|
|
3
3
|
import "../../colorMixing-CZPFmiT4.js";
|
|
4
|
-
import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-
|
|
4
|
+
import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-j5sH7ro0.js";
|
|
5
5
|
export { componentDefinition, SimplexNoise_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
|
-
import { n as componentDefinition, t as SineWave_default } from "../../SineWave-
|
|
2
|
+
import { n as componentDefinition, t as SineWave_default } from "../../SineWave-C4Lz5gO9.js";
|
|
3
3
|
export { componentDefinition, SineWave_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
|
-
import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-
|
|
2
|
+
import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-9huPo7Qb.js";
|
|
3
3
|
export { componentDefinition, SolidColor_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
|
-
import { n as componentDefinition, t as Spherize_default } from "../../Spherize-
|
|
2
|
+
import { n as componentDefinition, t as Spherize_default } from "../../Spherize-ARP2hY6_.js";
|
|
3
3
|
export { componentDefinition, Spherize_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as Spiral_default } from "../../Spiral-
|
|
3
|
+
import { n as componentDefinition, t as Spiral_default } from "../../Spiral-d60Q9u4M.js";
|
|
4
4
|
export { componentDefinition, Spiral_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../time-DgRTVr2F.js";
|
|
3
|
-
import { n as componentDefinition, t as Strands_default } from "../../Strands-
|
|
3
|
+
import { n as componentDefinition, t as Strands_default } from "../../Strands-DiIbhZ0r.js";
|
|
4
4
|
export { componentDefinition, Strands_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-YbhRK-rd.js";
|
|
3
|
-
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-
|
|
3
|
+
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-UYY3Qep7.js";
|
|
4
4
|
export { componentDefinition, Stretch_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../time-DgRTVr2F.js";
|
|
3
3
|
import "../../colorMixing-CZPFmiT4.js";
|
|
4
|
-
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-
|
|
4
|
+
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-jQMlfm2U.js";
|
|
5
5
|
export { componentDefinition, Swirl_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
|
-
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-
|
|
2
|
+
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-Ctj-Dsom.js";
|
|
3
3
|
export { componentDefinition, TiltShift_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-
|
|
3
|
+
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-D2lMeIyT.js";
|
|
4
4
|
export { componentDefinition, Tritone_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-YbhRK-rd.js";
|
|
3
|
-
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-
|
|
3
|
+
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-D4opuuKg.js";
|
|
4
4
|
export { componentDefinition, Twirl_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-
|
|
1
|
+
import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-CZCF06c0.js";
|
|
2
2
|
export { componentDefinition, Vibrance_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-YbhRK-rd.js";
|
|
3
|
-
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-
|
|
3
|
+
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-DdJtTeib.js";
|
|
4
4
|
export { componentDefinition, WaveDistortion_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
|
-
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-
|
|
2
|
+
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-DfzUaH4u.js";
|
|
3
3
|
export { componentDefinition, ZoomBlur_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BlendMode, TransformConfig } from '../../core';
|
|
3
|
+
import { ComponentProps } from '../../core/shaders/Sharpness';
|
|
4
|
+
|
|
5
|
+
export type { ComponentProps };
|
|
6
|
+
/**
|
|
7
|
+
* Base props that all shader components have
|
|
8
|
+
*/
|
|
9
|
+
interface BaseShaderProps {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
blendMode?: BlendMode;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
maskSource?: string;
|
|
16
|
+
maskType?: string;
|
|
17
|
+
renderOrder?: number;
|
|
18
|
+
transform?: Partial<TransformConfig>;
|
|
19
|
+
ref?: React.Ref<any>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Component-specific props that merge base props with shader-specific props
|
|
23
|
+
* Note: ComponentProps are made optional since they have defaults from the shader definition
|
|
24
|
+
*/
|
|
25
|
+
type ShaderComponentProps = BaseShaderProps & Partial<ComponentProps>;
|
|
26
|
+
/**
|
|
27
|
+
* The main React wrapper component for Shader shader nodes
|
|
28
|
+
*/
|
|
29
|
+
export declare const OmbreComponent: React.FC<ShaderComponentProps>;
|
|
30
|
+
export default OmbreComponent;
|
|
31
|
+
//# sourceMappingURL=Sharpness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sharpness.d.ts","sourceRoot":"","sources":["../../src/components/Sharpness.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAGH,KAAK,SAAS,EAId,KAAK,eAAe,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGlF,YAAY,EAAE,cAAc,EAAE,CAAC;AAI/B;;GAEG;AACH,UAAU,eAAe;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACrC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACxB;AAED;;;GAGG;AACH,KAAK,oBAAoB,GAAG,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAsDtE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwJzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -395,6 +395,11 @@ var shaderMetadata = {
|
|
|
395
395
|
"blendMode": "normal",
|
|
396
396
|
"intensity": 1
|
|
397
397
|
},
|
|
398
|
+
"Sharpness": {
|
|
399
|
+
"opacity": 1,
|
|
400
|
+
"blendMode": "normal",
|
|
401
|
+
"sharpness": 0
|
|
402
|
+
},
|
|
398
403
|
"SimplexNoise": {
|
|
399
404
|
"opacity": 1,
|
|
400
405
|
"blendMode": "normal",
|
|
@@ -663,6 +668,7 @@ const availableComponents = [
|
|
|
663
668
|
"RectangularCoordinates",
|
|
664
669
|
"Ripples",
|
|
665
670
|
"Saturation",
|
|
671
|
+
"Sharpness",
|
|
666
672
|
"SimplexNoise",
|
|
667
673
|
"SineWave",
|
|
668
674
|
"SolidColor",
|
package/dist/react/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export { default as RadialGradient } from './components/RadialGradient';
|
|
|
40
40
|
export { default as RectangularCoordinates } from './components/RectangularCoordinates';
|
|
41
41
|
export { default as Ripples } from './components/Ripples';
|
|
42
42
|
export { default as Saturation } from './components/Saturation';
|
|
43
|
+
export { default as Sharpness } from './components/Sharpness';
|
|
43
44
|
export { default as SimplexNoise } from './components/SimplexNoise';
|
|
44
45
|
export { default as SineWave } from './components/SineWave';
|
|
45
46
|
export { default as SolidColor } from './components/SolidColor';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,O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