shaders 2.2.6 → 2.2.8
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/Stretch-C8iYAgNS.js +104 -0
- package/dist/core/index.js +170 -168
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Stretch/index.d.ts +45 -0
- package/dist/core/shaders/Stretch/index.d.ts.map +1 -0
- package/dist/core/shaders/Stretch/index.js +8 -0
- 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/Stretch.d.ts +3 -1
- package/dist/react/components/Stretch.d.ts.map +1 -1
- package/dist/react/index.cjs +220 -220
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +10222 -9996
- package/dist/react/utils/generatePresetCode.cjs +7 -7
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +13 -0
- package/dist/registry.js +158 -0
- package/dist/svelte/components/Stretch.svelte.d.ts +4 -2
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +10064 -9880
- package/dist/svelte/utils/generatePresetCode.js +13 -0
- package/dist/vue/components/Stretch.vue.d.ts +57 -0
- package/dist/vue/components/Stretch.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-D4V6rBae.js → generatePresetCode-DoYZnbEH.js} +13 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +10152 -9953
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +6 -1
- /package/dist/core/{Swirl-BoveqtNV.js → Swirl-BpMwkNcm.js} +0 -0
- /package/dist/core/{TiltShift-D53azmRe.js → TiltShift-D31nakFq.js} +0 -0
- /package/dist/core/{Tritone-Cg1rX-hL.js → Tritone-Dx48G3b1.js} +0 -0
- /package/dist/core/{Twirl-raO5pe5X.js → Twirl-ng6pwyl2.js} +0 -0
- /package/dist/core/{Vibrance-DtekSkcz.js → Vibrance-D0ArL0qp.js} +0 -0
- /package/dist/core/{WaveDistortion-C65qO_cZ.js → WaveDistortion-DGKrpUdb.js} +0 -0
- /package/dist/core/{ZoomBlur-B97ZjhXe.js → ZoomBlur-uQyy5yko.js} +0 -0
|
@@ -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":"AAwDA,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;AAyFD,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,45 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface ComponentProps {
|
|
4
|
+
/**
|
|
5
|
+
* The center point of the stretch effect
|
|
6
|
+
*
|
|
7
|
+
* Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
|
|
8
|
+
* @default {"x":0.5,"y":0.5}
|
|
9
|
+
*/
|
|
10
|
+
center: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
} | string;
|
|
14
|
+
/**
|
|
15
|
+
* The intensity of the stretch effect
|
|
16
|
+
*
|
|
17
|
+
* Accepts a number between 0 and 1.
|
|
18
|
+
* @default 1
|
|
19
|
+
*/
|
|
20
|
+
strength: number;
|
|
21
|
+
/**
|
|
22
|
+
* The direction of the stretch in degrees
|
|
23
|
+
*
|
|
24
|
+
* Accepts a number between 0 and 360.
|
|
25
|
+
* @default 0
|
|
26
|
+
*/
|
|
27
|
+
angle: number;
|
|
28
|
+
/**
|
|
29
|
+
* Controls the sharpness of the transition (0 = sharp edge, 1 = gradual transition)
|
|
30
|
+
*
|
|
31
|
+
* Accepts a number between 0 and 1.
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
falloff: number;
|
|
35
|
+
/**
|
|
36
|
+
* How to handle edges when distortion pushes content out of bounds
|
|
37
|
+
*
|
|
38
|
+
* Accepts one of: `"stretch"`, `"transparent"`, `"mirror"`, `"wrap"`.
|
|
39
|
+
* @default "stretch"
|
|
40
|
+
*/
|
|
41
|
+
edges: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
44
|
+
export default componentDefinition;
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Stretch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAwC,MAAM,iBAAiB,CAAA;AAO1F,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,MAAM,CAAA;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAkLnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -2,7 +2,7 @@ import "../../three.tsl-BqgDcRt9.js";
|
|
|
2
2
|
import "../../time-5uQ65blS.js";
|
|
3
3
|
import "../../transformations-DBjTkQ5b.js";
|
|
4
4
|
import "../../colorMixing-DPZ-Td4U.js";
|
|
5
|
-
import { n as p, t as a } from "../../Swirl-
|
|
5
|
+
import { n as p, t as a } from "../../Swirl-BpMwkNcm.js";
|
|
6
6
|
export {
|
|
7
7
|
p as componentDefinition,
|
|
8
8
|
a as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../transformations-DBjTkQ5b.js";
|
|
3
3
|
import "../../colorMixing-DPZ-Td4U.js";
|
|
4
|
-
import { n as e, t as m } from "../../Tritone-
|
|
4
|
+
import { n as e, t as m } from "../../Tritone-Dx48G3b1.js";
|
|
5
5
|
export {
|
|
6
6
|
e as componentDefinition,
|
|
7
7
|
m as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../edges-B-tVdqcI.js";
|
|
3
3
|
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
-
import { n as m, t as p } from "../../Twirl-
|
|
4
|
+
import { n as m, t as p } from "../../Twirl-ng6pwyl2.js";
|
|
5
5
|
export {
|
|
6
6
|
m as componentDefinition,
|
|
7
7
|
p as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../TSLBase-BFMvTOak.js";
|
|
3
3
|
import "../../ColorAdjustment-CKwpE_4M.js";
|
|
4
|
-
import { n as a, t as e } from "../../Vibrance-
|
|
4
|
+
import { n as a, t as e } from "../../Vibrance-D0ArL0qp.js";
|
|
5
5
|
export {
|
|
6
6
|
a as componentDefinition,
|
|
7
7
|
e as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../edges-B-tVdqcI.js";
|
|
3
3
|
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
-
import { n as a, t as e } from "../../WaveDistortion-
|
|
4
|
+
import { n as a, t as e } from "../../WaveDistortion-DGKrpUdb.js";
|
|
5
5
|
export {
|
|
6
6
|
a as componentDefinition,
|
|
7
7
|
e as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BlendMode } from 'shaders/core';
|
|
2
|
+
import { BlendMode, TransformConfig } from 'shaders/core';
|
|
3
3
|
import { ComponentProps } from 'shaders/core/Stretch';
|
|
4
4
|
|
|
5
5
|
export type { ComponentProps };
|
|
@@ -10,10 +10,12 @@ interface BaseShaderProps {
|
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
blendMode?: BlendMode;
|
|
12
12
|
opacity?: number;
|
|
13
|
+
visible?: boolean;
|
|
13
14
|
id?: string;
|
|
14
15
|
maskSource?: string;
|
|
15
16
|
maskType?: string;
|
|
16
17
|
renderOrder?: number;
|
|
18
|
+
transform?: Partial<TransformConfig>;
|
|
17
19
|
ref?: React.Ref<any>;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stretch.d.ts","sourceRoot":"","sources":["../../src/components/Stretch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAGH,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Stretch.d.ts","sourceRoot":"","sources":["../../src/components/Stretch.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,sBAAsB,CAAC;AAGhF,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"}
|