shaders 2.2.40 → 2.2.41

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 (52) hide show
  1. package/dist/core/Stripes-TdCUOh07.js +127 -0
  2. package/dist/core/index.js +25 -23
  3. package/dist/core/shaderRegistry.d.ts.map +1 -1
  4. package/dist/core/shaders/Stripes/index.d.ts +71 -0
  5. package/dist/core/shaders/Stripes/index.d.ts.map +1 -0
  6. package/dist/core/shaders/Stripes/index.js +5 -0
  7. package/dist/core/shaders/Swirl/index.js +1 -1
  8. package/dist/core/shaders/TiltShift/index.js +1 -1
  9. package/dist/core/shaders/Tint/index.js +1 -1
  10. package/dist/core/shaders/Tritone/index.js +1 -1
  11. package/dist/core/shaders/Twirl/index.js +1 -1
  12. package/dist/core/shaders/Vibrance/index.js +1 -1
  13. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  14. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  15. package/dist/react/components/Stripes.d.ts +31 -0
  16. package/dist/react/components/Stripes.d.ts.map +1 -0
  17. package/dist/react/{generatePresetCode-BCeSxN_V.js → generatePresetCode-K6ZAneRr.js} +14 -0
  18. package/dist/react/index.d.ts +1 -0
  19. package/dist/react/index.d.ts.map +1 -1
  20. package/dist/react/index.js +556 -417
  21. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  22. package/dist/react/utils/generatePresetCode.js +1 -1
  23. package/dist/registry.js +223 -0
  24. package/dist/solid/components/Stripes.d.ts +28 -0
  25. package/dist/solid/components/Stripes.d.ts.map +1 -0
  26. package/dist/solid/index.d.ts +1 -0
  27. package/dist/solid/index.d.ts.map +1 -1
  28. package/dist/solid/index.js +496 -354
  29. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  30. package/dist/solid/utils/generatePresetCode.js +14 -0
  31. package/dist/svelte/components/Stripes.svelte.d.ts +19 -0
  32. package/dist/svelte/{generatePresetCode-BFY8wlyB.js → generatePresetCode-x1dhDaQ3.js} +14 -0
  33. package/dist/svelte/index.d.ts +1 -0
  34. package/dist/svelte/index.js +129 -18
  35. package/dist/svelte/utils/generatePresetCode.js +1 -1
  36. package/dist/vue/components/Stripes.vue.d.ts +57 -0
  37. package/dist/vue/components/Stripes.vue.d.ts.map +1 -0
  38. package/dist/vue/{generatePresetCode-D3MinGC_.js → generatePresetCode-BaNcX5ua.js} +14 -0
  39. package/dist/vue/index.d.ts +1 -0
  40. package/dist/vue/index.d.ts.map +1 -1
  41. package/dist/vue/index.js +184 -55
  42. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  43. package/dist/vue/utils/generatePresetCode.js +1 -1
  44. package/package.json +9 -1
  45. /package/dist/core/{Swirl-DoCDBZad.js → Swirl-m1-Mnzj5.js} +0 -0
  46. /package/dist/core/{TiltShift-BYQjUHpn.js → TiltShift-C_NUqKZF.js} +0 -0
  47. /package/dist/core/{Tint-BUFsUBqI.js → Tint-ChKku9xR.js} +0 -0
  48. /package/dist/core/{Tritone-DS1QbB-T.js → Tritone-D-NcV7N-.js} +0 -0
  49. /package/dist/core/{Twirl-w3PgFOlA.js → Twirl-Cqzll6nW.js} +0 -0
  50. /package/dist/core/{Vibrance--gtdjy4j.js → Vibrance-CxunJkcb.js} +0 -0
  51. /package/dist/core/{WaveDistortion-BfhB1rjJ.js → WaveDistortion-UQZKCfKh.js} +0 -0
  52. /package/dist/core/{ZoomBlur-DxUocLAG.js → ZoomBlur-DqKYdlmm.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"generatePresetCode.d.ts","sourceRoot":"","sources":["../../src/utils/generatePresetCode.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED,UAAU,YAAY;IACpB,UAAU,EAAE,eAAe,EAAE,CAAA;CAC9B;AA0rBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAyC/D;AAGD,eAAO,MAAM,mBAAmB,UA6D/B,CAAA"}
1
+ {"version":3,"file":"generatePresetCode.d.ts","sourceRoot":"","sources":["../../src/utils/generatePresetCode.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED,UAAU,YAAY;IACpB,UAAU,EAAE,eAAe,EAAE,CAAA;CAC9B;AAusBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAyC/D;AAGD,eAAO,MAAM,mBAAmB,UA8D/B,CAAA"}
@@ -514,6 +514,19 @@ const shaderMetadata = {
514
514
  "falloff": 0,
515
515
  "edges": "stretch"
516
516
  },
517
+ "Stripes": {
518
+ "opacity": 1,
519
+ "blendMode": "normal",
520
+ "colorA": "#000000",
521
+ "colorB": "#ffffff",
522
+ "angle": 45,
523
+ "density": 5,
524
+ "balance": 0.5,
525
+ "softness": 0,
526
+ "speed": 0.2,
527
+ "offset": 0,
528
+ "colorSpace": "linear"
529
+ },
517
530
  "Swirl": {
518
531
  "opacity": 1,
519
532
  "blendMode": "normal",
@@ -752,6 +765,7 @@ const availableComponents = [
752
765
  "Spiral",
753
766
  "Strands",
754
767
  "Stretch",
768
+ "Stripes",
755
769
  "Swirl",
756
770
  "TiltShift",
757
771
  "Tint",
@@ -0,0 +1,19 @@
1
+ import { type BlendMode, type TransformConfig } from '../../core';
2
+ import { type ComponentProps } from '../../core/shaders/Stripes';
3
+ /**
4
+ * Define component props including blend mode, opacity, visibility, masking, and transformation
5
+ */
6
+ interface ExtendedComponentProps extends Partial<ComponentProps> {
7
+ blendMode?: BlendMode;
8
+ opacity?: number;
9
+ visible?: boolean;
10
+ id?: string;
11
+ maskSource?: string;
12
+ maskType?: string;
13
+ renderOrder?: number;
14
+ transform?: Partial<TransformConfig>;
15
+ children?: import('svelte').Snippet;
16
+ }
17
+ declare const Stripes: import("svelte").Component<ExtendedComponentProps, {}, "">;
18
+ type Stripes = ReturnType<typeof Stripes>;
19
+ export default Stripes;
@@ -512,6 +512,19 @@ var shaderMetadata = {
512
512
  "falloff": 0,
513
513
  "edges": "stretch"
514
514
  },
515
+ "Stripes": {
516
+ "opacity": 1,
517
+ "blendMode": "normal",
518
+ "colorA": "#000000",
519
+ "colorB": "#ffffff",
520
+ "angle": 45,
521
+ "density": 5,
522
+ "balance": .5,
523
+ "softness": 0,
524
+ "speed": .2,
525
+ "offset": 0,
526
+ "colorSpace": "linear"
527
+ },
515
528
  "Swirl": {
516
529
  "opacity": 1,
517
530
  "blendMode": "normal",
@@ -701,6 +714,7 @@ const availableComponents = [
701
714
  "Spiral",
702
715
  "Strands",
703
716
  "Stretch",
717
+ "Stripes",
704
718
  "Swirl",
705
719
  "TiltShift",
706
720
  "Tint",
@@ -49,6 +49,7 @@ export { default as Spherize } from './components/Spherize.svelte';
49
49
  export { default as Spiral } from './components/Spiral.svelte';
50
50
  export { default as Strands } from './components/Strands.svelte';
51
51
  export { default as Stretch } from './components/Stretch.svelte';
52
+ export { default as Stripes } from './components/Stripes.svelte';
52
53
  export { default as Swirl } from './components/Swirl.svelte';
53
54
  export { default as TiltShift } from './components/TiltShift.svelte';
54
55
  export { default as Tint } from './components/Tint.svelte';
@@ -1,4 +1,4 @@
1
- import { n as generatePresetCode } from "./generatePresetCode-BFY8wlyB.js";
1
+ import { n as generatePresetCode } from "./generatePresetCode-x1dhDaQ3.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as $ from "svelte/internal/client";
4
4
  import { getContext, onDestroy, onMount, setContext } from "svelte";
@@ -54,14 +54,15 @@ import { componentDefinition as componentDefinition$47 } from "../core/shaders/S
54
54
  import { componentDefinition as componentDefinition$48 } from "../core/shaders/Spiral/index.js";
55
55
  import { componentDefinition as componentDefinition$49 } from "../core/shaders/Strands/index.js";
56
56
  import { componentDefinition as componentDefinition$50 } from "../core/shaders/Stretch/index.js";
57
- import { componentDefinition as componentDefinition$51 } from "../core/shaders/Swirl/index.js";
58
- import { componentDefinition as componentDefinition$52 } from "../core/shaders/TiltShift/index.js";
59
- import { componentDefinition as componentDefinition$53 } from "../core/shaders/Tint/index.js";
60
- import { componentDefinition as componentDefinition$54 } from "../core/shaders/Tritone/index.js";
61
- import { componentDefinition as componentDefinition$55 } from "../core/shaders/Twirl/index.js";
62
- import { componentDefinition as componentDefinition$56 } from "../core/shaders/Vibrance/index.js";
63
- import { componentDefinition as componentDefinition$57 } from "../core/shaders/WaveDistortion/index.js";
64
- import { componentDefinition as componentDefinition$58 } from "../core/shaders/ZoomBlur/index.js";
57
+ import { componentDefinition as componentDefinition$51 } from "../core/shaders/Stripes/index.js";
58
+ import { componentDefinition as componentDefinition$52 } from "../core/shaders/Swirl/index.js";
59
+ import { componentDefinition as componentDefinition$53 } from "../core/shaders/TiltShift/index.js";
60
+ import { componentDefinition as componentDefinition$54 } from "../core/shaders/Tint/index.js";
61
+ import { componentDefinition as componentDefinition$55 } from "../core/shaders/Tritone/index.js";
62
+ import { componentDefinition as componentDefinition$56 } from "../core/shaders/Twirl/index.js";
63
+ import { componentDefinition as componentDefinition$57 } from "../core/shaders/Vibrance/index.js";
64
+ import { componentDefinition as componentDefinition$58 } from "../core/shaders/WaveDistortion/index.js";
65
+ import { componentDefinition as componentDefinition$59 } from "../core/shaders/ZoomBlur/index.js";
65
66
  import { vec4 } from "three/tsl";
66
67
  import { TelemetryCollector, isExternalUser, shouldCollectTelemetry } from "../core/telemetry/index.js";
67
68
  function AngularBlur($$anchor, $$props) {
@@ -5674,7 +5675,7 @@ function Stretch($$anchor, $$props) {
5674
5675
  children?.($$anchor);
5675
5676
  $.pop();
5676
5677
  }
5677
- function Swirl($$anchor, $$props) {
5678
+ function Stripes($$anchor, $$props) {
5678
5679
  $.push($$props, true);
5679
5680
  const DEFAULT_TRANSFORM = {
5680
5681
  offsetX: 0,
@@ -5784,7 +5785,7 @@ function Swirl($$anchor, $$props) {
5784
5785
  children?.($$anchor);
5785
5786
  $.pop();
5786
5787
  }
5787
- function TiltShift($$anchor, $$props) {
5788
+ function Swirl($$anchor, $$props) {
5788
5789
  $.push($$props, true);
5789
5790
  const DEFAULT_TRANSFORM = {
5790
5791
  offsetX: 0,
@@ -5894,7 +5895,7 @@ function TiltShift($$anchor, $$props) {
5894
5895
  children?.($$anchor);
5895
5896
  $.pop();
5896
5897
  }
5897
- function Tint($$anchor, $$props) {
5898
+ function TiltShift($$anchor, $$props) {
5898
5899
  $.push($$props, true);
5899
5900
  const DEFAULT_TRANSFORM = {
5900
5901
  offsetX: 0,
@@ -6004,7 +6005,7 @@ function Tint($$anchor, $$props) {
6004
6005
  children?.($$anchor);
6005
6006
  $.pop();
6006
6007
  }
6007
- function Tritone($$anchor, $$props) {
6008
+ function Tint($$anchor, $$props) {
6008
6009
  $.push($$props, true);
6009
6010
  const DEFAULT_TRANSFORM = {
6010
6011
  offsetX: 0,
@@ -6114,7 +6115,7 @@ function Tritone($$anchor, $$props) {
6114
6115
  children?.($$anchor);
6115
6116
  $.pop();
6116
6117
  }
6117
- function Twirl($$anchor, $$props) {
6118
+ function Tritone($$anchor, $$props) {
6118
6119
  $.push($$props, true);
6119
6120
  const DEFAULT_TRANSFORM = {
6120
6121
  offsetX: 0,
@@ -6224,7 +6225,7 @@ function Twirl($$anchor, $$props) {
6224
6225
  children?.($$anchor);
6225
6226
  $.pop();
6226
6227
  }
6227
- function Vibrance($$anchor, $$props) {
6228
+ function Twirl($$anchor, $$props) {
6228
6229
  $.push($$props, true);
6229
6230
  const DEFAULT_TRANSFORM = {
6230
6231
  offsetX: 0,
@@ -6334,7 +6335,7 @@ function Vibrance($$anchor, $$props) {
6334
6335
  children?.($$anchor);
6335
6336
  $.pop();
6336
6337
  }
6337
- function WaveDistortion($$anchor, $$props) {
6338
+ function Vibrance($$anchor, $$props) {
6338
6339
  $.push($$props, true);
6339
6340
  const DEFAULT_TRANSFORM = {
6340
6341
  offsetX: 0,
@@ -6444,7 +6445,7 @@ function WaveDistortion($$anchor, $$props) {
6444
6445
  children?.($$anchor);
6445
6446
  $.pop();
6446
6447
  }
6447
- function ZoomBlur($$anchor, $$props) {
6448
+ function WaveDistortion($$anchor, $$props) {
6448
6449
  $.push($$props, true);
6449
6450
  const DEFAULT_TRANSFORM = {
6450
6451
  offsetX: 0,
@@ -6554,6 +6555,116 @@ function ZoomBlur($$anchor, $$props) {
6554
6555
  children?.($$anchor);
6555
6556
  $.pop();
6556
6557
  }
6558
+ function ZoomBlur($$anchor, $$props) {
6559
+ $.push($$props, true);
6560
+ const DEFAULT_TRANSFORM = {
6561
+ offsetX: 0,
6562
+ offsetY: 0,
6563
+ rotation: 0,
6564
+ scale: 1,
6565
+ anchorX: .5,
6566
+ anchorY: .5,
6567
+ edges: "transparent"
6568
+ };
6569
+ const componentDefaults = {
6570
+ blendMode: "normal",
6571
+ renderOrder: 0,
6572
+ visible: true,
6573
+ ...Object.entries(componentDefinition$59.props).reduce((acc, [key, config]) => {
6574
+ acc[key] = config.default;
6575
+ return acc;
6576
+ }, {})
6577
+ };
6578
+ const props = $.rest_props($$props, [
6579
+ "$$slots",
6580
+ "$$events",
6581
+ "$$legacy"
6582
+ ]);
6583
+ const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
6584
+ const opacity = $$props.opacity;
6585
+ const visible = $$props.visible ?? componentDefaults.visible;
6586
+ const id = $$props.id;
6587
+ const maskSource = $$props.maskSource;
6588
+ const maskType = $$props.maskType;
6589
+ const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
6590
+ const { children } = props;
6591
+ const effectiveTransform = $.derived(() => ({
6592
+ ...DEFAULT_TRANSFORM,
6593
+ ...$$props.transform
6594
+ }));
6595
+ const parentId = getContext("shaderParentId");
6596
+ if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
6597
+ const instanceId = id || `${componentDefinition$59.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
6598
+ setContext("shaderParentId", instanceId);
6599
+ const shaderReadyProps = $.derived(() => {
6600
+ let baseProps = { ...componentDefaults };
6601
+ for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
6602
+ const propValue = props[key];
6603
+ const defaultValue = componentDefaults[key];
6604
+ if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
6605
+ }
6606
+ return baseProps;
6607
+ });
6608
+ const uniforms = createUniformsMap(componentDefinition$59, $.get(shaderReadyProps), instanceId);
6609
+ const parentRegister = getContext("shaderNodeRegister");
6610
+ if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
6611
+ const parentUniformUpdate = getContext("shaderUniformUpdate");
6612
+ if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
6613
+ const parentMetadataUpdate = getContext("shaderMetadataUpdate");
6614
+ if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
6615
+ let isRegistered = $.state(false);
6616
+ Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
6617
+ $.user_effect(() => {
6618
+ if (!$.get(isRegistered)) return;
6619
+ if (uniform && uniform.value !== void 0) {
6620
+ const newValue = props[propName];
6621
+ if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
6622
+ }
6623
+ });
6624
+ });
6625
+ $.user_effect(() => {
6626
+ if (!$.get(isRegistered)) return;
6627
+ parentMetadataUpdate(instanceId, {
6628
+ blendMode,
6629
+ opacity,
6630
+ visible: visible === false ? false : true,
6631
+ id,
6632
+ mask: maskSource ? {
6633
+ source: maskSource,
6634
+ type: maskType || "alpha"
6635
+ } : void 0,
6636
+ renderOrder,
6637
+ transform: $.get(effectiveTransform)
6638
+ });
6639
+ });
6640
+ onMount(() => {
6641
+ if (componentDefinition$59 && typeof componentDefinition$59.fragmentNode === "function") {
6642
+ parentRegister(instanceId, componentDefinition$59.fragmentNode, parentId, {
6643
+ blendMode,
6644
+ opacity,
6645
+ visible: visible !== false ? true : false,
6646
+ id,
6647
+ mask: maskSource ? {
6648
+ source: maskSource,
6649
+ type: maskType || "alpha"
6650
+ } : void 0,
6651
+ renderOrder,
6652
+ transform: $.get(effectiveTransform)
6653
+ }, uniforms);
6654
+ $.set(isRegistered, true);
6655
+ } else console.error("componentDefinition.fragmentNode is not a function:", {
6656
+ componentDefinition: componentDefinition$59,
6657
+ fragmentNode: componentDefinition$59?.fragmentNode,
6658
+ type: typeof componentDefinition$59?.fragmentNode
6659
+ });
6660
+ });
6661
+ onDestroy(() => {
6662
+ $.set(isRegistered, false);
6663
+ parentRegister(instanceId, null, null, null, null);
6664
+ });
6665
+ children?.($$anchor);
6666
+ $.pop();
6667
+ }
6557
6668
  var root = $.from_html(`<div><canvas data-renderer="shaders" style="width: 100%; height: 100%; display: block;"></canvas> <!></div>`);
6558
6669
  function Shader($$anchor, $$props) {
6559
6670
  $.push($$props, true);
@@ -6656,4 +6767,4 @@ function Shader($$anchor, $$props) {
6656
6767
  $.append($$anchor, div);
6657
6768
  $.pop();
6658
6769
  }
6659
- export { AngularBlur, Ascii, Beam, Blob, Blur, BrightnessContrast, Bulge, CRTScreen, ChannelBlur, Checkerboard, ChromaFlow, ChromaticAberration, Circle, CursorTrail, DiffuseBlur, Dither, DotGrid, Duotone, FilmGrain, FloatingParticles, GlassTiles, Glow, Godrays, Grayscale, Grid, GridDistortion, Group, Halftone, HueShift, ImageTexture, Invert, LinearBlur, LinearGradient, Liquify, Perspective, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Swirl, TiltShift, Tint, Tritone, Twirl, Vibrance, WaveDistortion, ZoomBlur, generatePresetCode };
6770
+ export { AngularBlur, Ascii, Beam, Blob, Blur, BrightnessContrast, Bulge, CRTScreen, ChannelBlur, Checkerboard, ChromaFlow, ChromaticAberration, Circle, CursorTrail, DiffuseBlur, Dither, DotGrid, Duotone, FilmGrain, FloatingParticles, GlassTiles, Glow, Godrays, Grayscale, Grid, GridDistortion, Group, Halftone, HueShift, ImageTexture, Invert, LinearBlur, LinearGradient, Liquify, Perspective, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Stripes, Swirl, TiltShift, Tint, Tritone, Twirl, Vibrance, WaveDistortion, ZoomBlur, generatePresetCode };
@@ -1,2 +1,2 @@
1
- import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-BFY8wlyB.js";
1
+ import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-x1dhDaQ3.js";
2
2
  export { availableComponents, generatePresetCode };
@@ -0,0 +1,57 @@
1
+ import { BlendMode, TransformConfig } from '../../core';
2
+ import { ComponentProps } from '../../core/shaders/Stripes';
3
+
4
+ /**
5
+ * Define component props including blend mode, opacity, visibility, masking, and transformation
6
+ */
7
+ interface ExtendedComponentProps extends Partial<ComponentProps> {
8
+ blendMode?: BlendMode;
9
+ opacity?: number;
10
+ visible?: boolean;
11
+ id?: string;
12
+ maskSource?: string;
13
+ maskType?: string;
14
+ renderOrder?: number;
15
+ transform?: Partial<TransformConfig>;
16
+ }
17
+ declare function __VLS_template(): {
18
+ default?(_: {}): any;
19
+ };
20
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ExtendedComponentProps>, {
21
+ blendMode: string;
22
+ renderOrder: number;
23
+ visible: boolean;
24
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ExtendedComponentProps>, {
25
+ blendMode: string;
26
+ renderOrder: number;
27
+ visible: boolean;
28
+ }>>> & Readonly<{}>, {
29
+ blendMode: BlendMode;
30
+ visible: boolean;
31
+ renderOrder: number;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
34
+ export default _default;
35
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
+ type __VLS_TypePropsToRuntimeProps<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: import('vue').PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
44
+ type __VLS_WithDefaults<P, D> = {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
+ default: D[K];
47
+ }> : P[K];
48
+ };
49
+ type __VLS_Prettify<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
57
+ //# sourceMappingURL=Stripes.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stripes.vue.d.ts","sourceRoot":"","sources":["../../src/components/Stripes.vue"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,SAAS,EAId,KAAK,eAAe,EACrB,MAAM,cAAc,CAAA;AAGrB,OAAO,EAAsB,KAAK,cAAc,EAAC,MAAM,sBAAsB,CAAA;AAI7E;;GAEG;AACH,UAAU,sBAAuB,SAAQ,OAAO,CAAC,cAAc,CAAC;IAC9D,SAAS,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AAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -510,6 +510,19 @@ var shaderMetadata = {
510
510
  "falloff": 0,
511
511
  "edges": "stretch"
512
512
  },
513
+ "Stripes": {
514
+ "opacity": 1,
515
+ "blendMode": "normal",
516
+ "colorA": "#000000",
517
+ "colorB": "#ffffff",
518
+ "angle": 45,
519
+ "density": 5,
520
+ "balance": .5,
521
+ "softness": 0,
522
+ "speed": .2,
523
+ "offset": 0,
524
+ "colorSpace": "linear"
525
+ },
513
526
  "Swirl": {
514
527
  "opacity": 1,
515
528
  "blendMode": "normal",
@@ -700,6 +713,7 @@ const availableComponents = [
700
713
  "Spiral",
701
714
  "Strands",
702
715
  "Stretch",
716
+ "Stripes",
703
717
  "Swirl",
704
718
  "TiltShift",
705
719
  "Tint",
@@ -49,6 +49,7 @@ export { default as Spherize } from './components/Spherize.vue';
49
49
  export { default as Spiral } from './components/Spiral.vue';
50
50
  export { default as Strands } from './components/Strands.vue';
51
51
  export { default as Stretch } from './components/Stretch.vue';
52
+ export { default as Stripes } from './components/Stripes.vue';
52
53
  export { default as Swirl } from './components/Swirl.vue';
53
54
  export { default as TiltShift } from './components/TiltShift.vue';
54
55
  export { default as Tint } from './components/Tint.vue';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,w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