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.
Files changed (64) hide show
  1. package/dist/core/Sharpness-B2MrhUH5.js +41 -0
  2. package/dist/core/index.js +37 -35
  3. package/dist/core/shaderRegistry.d.ts.map +1 -1
  4. package/dist/core/shaders/Sharpness/index.d.ts +14 -0
  5. package/dist/core/shaders/Sharpness/index.d.ts.map +1 -0
  6. package/dist/core/shaders/Sharpness/index.js +2 -0
  7. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  8. package/dist/core/shaders/SineWave/index.js +1 -1
  9. package/dist/core/shaders/SolidColor/index.js +1 -1
  10. package/dist/core/shaders/Spherize/index.js +1 -1
  11. package/dist/core/shaders/Spiral/index.js +1 -1
  12. package/dist/core/shaders/Strands/index.js +1 -1
  13. package/dist/core/shaders/Stretch/index.js +1 -1
  14. package/dist/core/shaders/Swirl/index.js +1 -1
  15. package/dist/core/shaders/TiltShift/index.js +1 -1
  16. package/dist/core/shaders/Tritone/index.js +1 -1
  17. package/dist/core/shaders/Twirl/index.js +1 -1
  18. package/dist/core/shaders/Vibrance/index.js +1 -1
  19. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  20. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  21. package/dist/react/components/Sharpness.d.ts +31 -0
  22. package/dist/react/components/Sharpness.d.ts.map +1 -0
  23. package/dist/react/{generatePresetCode-CwTRhENe.js → generatePresetCode-C4t1eM0z.js} +6 -0
  24. package/dist/react/index.d.ts +1 -0
  25. package/dist/react/index.d.ts.map +1 -1
  26. package/dist/react/index.js +535 -396
  27. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  28. package/dist/react/utils/generatePresetCode.js +1 -1
  29. package/dist/registry.js +40 -0
  30. package/dist/solid/components/Sharpness.d.ts +28 -0
  31. package/dist/solid/components/Sharpness.d.ts.map +1 -0
  32. package/dist/solid/index.d.ts +1 -0
  33. package/dist/solid/index.d.ts.map +1 -1
  34. package/dist/solid/index.js +477 -336
  35. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  36. package/dist/solid/utils/generatePresetCode.js +6 -0
  37. package/dist/svelte/components/Sharpness.svelte.d.ts +19 -0
  38. package/dist/svelte/{generatePresetCode-Qh7jlXV3.js → generatePresetCode-CT9aNR6P.js} +6 -0
  39. package/dist/svelte/index.d.ts +1 -0
  40. package/dist/svelte/index.js +141 -30
  41. package/dist/svelte/utils/generatePresetCode.js +1 -1
  42. package/dist/vue/components/Sharpness.vue.d.ts +57 -0
  43. package/dist/vue/components/Sharpness.vue.d.ts.map +1 -0
  44. package/dist/vue/{generatePresetCode-Bf-TQPvI.js → generatePresetCode-BmkyNfz6.js} +6 -0
  45. package/dist/vue/index.d.ts +1 -0
  46. package/dist/vue/index.d.ts.map +1 -1
  47. package/dist/vue/index.js +237 -116
  48. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  49. package/dist/vue/utils/generatePresetCode.js +1 -1
  50. package/package.json +9 -1
  51. /package/dist/core/{SimplexNoise-CAtknQS7.js → SimplexNoise-j5sH7ro0.js} +0 -0
  52. /package/dist/core/{SineWave-CHtV6kB4.js → SineWave-C4Lz5gO9.js} +0 -0
  53. /package/dist/core/{SolidColor-CSSquNVW.js → SolidColor-9huPo7Qb.js} +0 -0
  54. /package/dist/core/{Spherize-BJby0xSU.js → Spherize-ARP2hY6_.js} +0 -0
  55. /package/dist/core/{Spiral-CpB3-tFZ.js → Spiral-d60Q9u4M.js} +0 -0
  56. /package/dist/core/{Strands-C2KWiJc8.js → Strands-DiIbhZ0r.js} +0 -0
  57. /package/dist/core/{Stretch-Chpzutao.js → Stretch-UYY3Qep7.js} +0 -0
  58. /package/dist/core/{Swirl-qbMypv_R.js → Swirl-jQMlfm2U.js} +0 -0
  59. /package/dist/core/{TiltShift-D0qyWoe3.js → TiltShift-Ctj-Dsom.js} +0 -0
  60. /package/dist/core/{Tritone-DzeueG1F.js → Tritone-D2lMeIyT.js} +0 -0
  61. /package/dist/core/{Twirl-B2Ic0WGq.js → Twirl-D4opuuKg.js} +0 -0
  62. /package/dist/core/{Vibrance-BAGXelBi.js → Vibrance-CZCF06c0.js} +0 -0
  63. /package/dist/core/{WaveDistortion-DYFl_8vA.js → WaveDistortion-DdJtTeib.js} +0 -0
  64. /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 };
@@ -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 "./SimplexNoise-CAtknQS7.js";
48
- import { n as componentDefinition$43 } from "./SineWave-CHtV6kB4.js";
49
- import { n as componentDefinition$44 } from "./SolidColor-CSSquNVW.js";
50
- import { n as componentDefinition$45 } from "./Spherize-BJby0xSU.js";
51
- import { n as componentDefinition$46 } from "./Spiral-CpB3-tFZ.js";
52
- import { n as componentDefinition$47 } from "./Strands-C2KWiJc8.js";
53
- import { n as componentDefinition$48 } from "./Stretch-Chpzutao.js";
54
- import { n as componentDefinition$49 } from "./Swirl-qbMypv_R.js";
55
- import { n as componentDefinition$50 } from "./TiltShift-D0qyWoe3.js";
56
- import { n as componentDefinition$51 } from "./Tritone-DzeueG1F.js";
57
- import { n as componentDefinition$52 } from "./Twirl-B2Ic0WGq.js";
58
- import { n as componentDefinition$53 } from "./Vibrance-BAGXelBi.js";
59
- import { n as componentDefinition$54 } from "./WaveDistortion-DYFl_8vA.js";
60
- import { n as componentDefinition$55 } from "./ZoomBlur-CXpRNRJA.js";
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$56) => {
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$56
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$56
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$56?.name || "Unknown",
1147
+ componentName: componentDefinition$57?.name || "Unknown",
1147
1148
  fragmentNodeFunc,
1148
1149
  parentId,
1149
- requiresRTT: componentDefinition$56?.requiresRTT || false,
1150
- requiresChild: componentDefinition$56?.requiresChild || false,
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$56 } of queue) if (fragmentNodeFunc) registerNode(id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition$56);
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
- SimplexNoise: componentDefinition$42,
1804
- SineWave: componentDefinition$43,
1805
- SolidColor: componentDefinition$44,
1806
- Spherize: componentDefinition$45,
1807
- Spiral: componentDefinition$46,
1808
- Strands: componentDefinition$47,
1809
- Stretch: componentDefinition$48,
1810
- Swirl: componentDefinition$49,
1811
- TiltShift: componentDefinition$50,
1812
- Tritone: componentDefinition$51,
1813
- Twirl: componentDefinition$52,
1814
- Vibrance: componentDefinition$53,
1815
- WaveDistortion: componentDefinition$54,
1816
- ZoomBlur: componentDefinition$55
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":"AA2DA,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;AA4FD,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"}
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"}
@@ -0,0 +1,2 @@
1
+ import { n as componentDefinition, t as Sharpness_default } from "../../Sharpness-B2MrhUH5.js";
2
+ export { componentDefinition, Sharpness_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 SimplexNoise_default } from "../../SimplexNoise-CAtknQS7.js";
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-CHtV6kB4.js";
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-CSSquNVW.js";
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-BJby0xSU.js";
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-CpB3-tFZ.js";
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-C2KWiJc8.js";
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-Chpzutao.js";
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-qbMypv_R.js";
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-D0qyWoe3.js";
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-DzeueG1F.js";
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-B2Ic0WGq.js";
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-BAGXelBi.js";
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-DYFl_8vA.js";
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-CXpRNRJA.js";
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",
@@ -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,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;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