shaders 2.2.35 → 2.2.37
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/Perspective-CSP2Hb16.js +137 -0
- package/dist/core/index.js +55 -53
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Perspective/index.d.ts +57 -0
- package/dist/core/shaders/Perspective/index.d.ts.map +1 -0
- package/dist/core/shaders/Perspective/index.js +4 -0
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +1 -1
- package/dist/core/shaders/Posterize/index.js +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
- package/dist/core/shaders/RadialGradient/index.js +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/Saturation/index.js +1 -1
- package/dist/core/shaders/Sharpness/index.js +1 -1
- 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/Perspective.d.ts +31 -0
- package/dist/react/components/Perspective.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-C4t1eM0z.js → generatePresetCode-DtpUpaeM.js} +18 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +542 -403
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +202 -0
- package/dist/solid/components/AngularBlur.d.ts.map +1 -1
- package/dist/solid/components/Ascii.d.ts.map +1 -1
- package/dist/solid/components/Beam.d.ts.map +1 -1
- package/dist/solid/components/Blob.d.ts.map +1 -1
- package/dist/solid/components/Blur.d.ts.map +1 -1
- package/dist/solid/components/BrightnessContrast.d.ts.map +1 -1
- package/dist/solid/components/Bulge.d.ts.map +1 -1
- package/dist/solid/components/CRTScreen.d.ts.map +1 -1
- package/dist/solid/components/ChannelBlur.d.ts.map +1 -1
- package/dist/solid/components/Checkerboard.d.ts.map +1 -1
- package/dist/solid/components/ChromaFlow.d.ts.map +1 -1
- package/dist/solid/components/ChromaticAberration.d.ts.map +1 -1
- package/dist/solid/components/Circle.d.ts.map +1 -1
- package/dist/solid/components/CursorTrail.d.ts.map +1 -1
- package/dist/solid/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/solid/components/Dither.d.ts.map +1 -1
- package/dist/solid/components/DotGrid.d.ts.map +1 -1
- package/dist/solid/components/Duotone.d.ts.map +1 -1
- package/dist/solid/components/FilmGrain.d.ts.map +1 -1
- package/dist/solid/components/FloatingParticles.d.ts.map +1 -1
- package/dist/solid/components/GlassTiles.d.ts.map +1 -1
- package/dist/solid/components/Glow.d.ts.map +1 -1
- package/dist/solid/components/Godrays.d.ts.map +1 -1
- package/dist/solid/components/Grayscale.d.ts.map +1 -1
- package/dist/solid/components/Grid.d.ts.map +1 -1
- package/dist/solid/components/GridDistortion.d.ts.map +1 -1
- package/dist/solid/components/Group.d.ts.map +1 -1
- package/dist/solid/components/Halftone.d.ts.map +1 -1
- package/dist/solid/components/HueShift.d.ts.map +1 -1
- package/dist/solid/components/ImageTexture.d.ts.map +1 -1
- package/dist/solid/components/Invert.d.ts.map +1 -1
- package/dist/solid/components/LinearBlur.d.ts.map +1 -1
- package/dist/solid/components/LinearGradient.d.ts.map +1 -1
- package/dist/solid/components/Liquify.d.ts.map +1 -1
- package/dist/solid/components/Perspective.d.ts +28 -0
- package/dist/solid/components/Perspective.d.ts.map +1 -0
- package/dist/solid/components/Pixelate.d.ts.map +1 -1
- package/dist/solid/components/PolarCoordinates.d.ts.map +1 -1
- package/dist/solid/components/Posterize.d.ts.map +1 -1
- package/dist/solid/components/ProgressiveBlur.d.ts.map +1 -1
- package/dist/solid/components/RadialGradient.d.ts.map +1 -1
- package/dist/solid/components/RectangularCoordinates.d.ts.map +1 -1
- package/dist/solid/components/Ripples.d.ts.map +1 -1
- package/dist/solid/components/Saturation.d.ts.map +1 -1
- package/dist/solid/components/Sharpness.d.ts.map +1 -1
- package/dist/solid/components/SimplexNoise.d.ts.map +1 -1
- package/dist/solid/components/SineWave.d.ts.map +1 -1
- package/dist/solid/components/SolidColor.d.ts.map +1 -1
- package/dist/solid/components/Spherize.d.ts.map +1 -1
- package/dist/solid/components/Spiral.d.ts.map +1 -1
- package/dist/solid/components/Strands.d.ts.map +1 -1
- package/dist/solid/components/Stretch.d.ts.map +1 -1
- package/dist/solid/components/Swirl.d.ts.map +1 -1
- package/dist/solid/components/TiltShift.d.ts.map +1 -1
- package/dist/solid/components/Tritone.d.ts.map +1 -1
- package/dist/solid/components/Twirl.d.ts.map +1 -1
- package/dist/solid/components/Vibrance.d.ts.map +1 -1
- package/dist/solid/components/WaveDistortion.d.ts.map +1 -1
- package/dist/solid/components/ZoomBlur.d.ts.map +1 -1
- package/dist/solid/engine/Shader.d.ts.map +1 -1
- package/dist/solid/engine/component.template.d.ts.map +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +601 -401
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +18 -0
- package/dist/svelte/components/Perspective.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-CT9aNR6P.js → generatePresetCode-Yu_cJh3q.js} +18 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +159 -48
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/Perspective.vue.d.ts +57 -0
- package/dist/vue/components/Perspective.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-BmkyNfz6.js → generatePresetCode-DnK2X66E.js} +18 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +297 -170
- 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/{Pixelate-C5Rx1dBp.js → Pixelate-BAoi-CSx.js} +0 -0
- /package/dist/core/{PolarCoordinates-CIh5ef8m.js → PolarCoordinates-BwN9HhFK.js} +0 -0
- /package/dist/core/{Posterize-Byy0Ek0l.js → Posterize-XoAqPWv2.js} +0 -0
- /package/dist/core/{ProgressiveBlur-Bzz24_y-.js → ProgressiveBlur-RuAm_BKx.js} +0 -0
- /package/dist/core/{RadialGradient-Ci1dU-1K.js → RadialGradient-BfFuRbIl.js} +0 -0
- /package/dist/core/{RectangularCoordinates-tVGG7WOJ.js → RectangularCoordinates-CiW3J4UT.js} +0 -0
- /package/dist/core/{Ripples-BCGSt5HD.js → Ripples-BAcLsbLr.js} +0 -0
- /package/dist/core/{Saturation-DWR1Nruu.js → Saturation-DVVlpikK.js} +0 -0
- /package/dist/core/{Sharpness-B2MrhUH5.js → Sharpness-cw57bW0s.js} +0 -0
- /package/dist/core/{SimplexNoise-j5sH7ro0.js → SimplexNoise-CxF7Tl5O.js} +0 -0
- /package/dist/core/{SineWave-C4Lz5gO9.js → SineWave-SIEiE1O3.js} +0 -0
- /package/dist/core/{SolidColor-9huPo7Qb.js → SolidColor-zYROg_aE.js} +0 -0
- /package/dist/core/{Spherize-ARP2hY6_.js → Spherize-tsKMpSaS.js} +0 -0
- /package/dist/core/{Spiral-d60Q9u4M.js → Spiral-PsIc1BI9.js} +0 -0
- /package/dist/core/{Strands-DiIbhZ0r.js → Strands-xsbd_3Bt.js} +0 -0
- /package/dist/core/{Stretch-UYY3Qep7.js → Stretch-BhHjbcqd.js} +0 -0
- /package/dist/core/{Swirl-jQMlfm2U.js → Swirl-CV1prOHF.js} +0 -0
- /package/dist/core/{TiltShift-Ctj-Dsom.js → TiltShift-BYQjUHpn.js} +0 -0
- /package/dist/core/{Tritone-D2lMeIyT.js → Tritone-CJW8YTyB.js} +0 -0
- /package/dist/core/{Twirl-D4opuuKg.js → Twirl-5k_XPd51.js} +0 -0
- /package/dist/core/{Vibrance-CZCF06c0.js → Vibrance-c25pkbWj.js} +0 -0
- /package/dist/core/{WaveDistortion-DdJtTeib.js → WaveDistortion-BRgbfqt3.js} +0 -0
- /package/dist/core/{ZoomBlur-DfzUaH4u.js → ZoomBlur-DEozXA8U.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;
|
|
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;AAmrBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAyC/D;AAGD,eAAO,MAAM,mBAAmB,UA4D/B,CAAA"}
|
|
@@ -321,6 +321,23 @@ const shaderMetadata = {
|
|
|
321
321
|
"radius": 1,
|
|
322
322
|
"edges": "stretch"
|
|
323
323
|
},
|
|
324
|
+
"Perspective": {
|
|
325
|
+
"opacity": 1,
|
|
326
|
+
"blendMode": "normal",
|
|
327
|
+
"center": {
|
|
328
|
+
"x": 0.5,
|
|
329
|
+
"y": 0.5
|
|
330
|
+
},
|
|
331
|
+
"pan": 0,
|
|
332
|
+
"tilt": 0,
|
|
333
|
+
"fov": 60,
|
|
334
|
+
"zoom": 1,
|
|
335
|
+
"offset": {
|
|
336
|
+
"x": 0.5,
|
|
337
|
+
"y": 0.5
|
|
338
|
+
},
|
|
339
|
+
"edges": "transparent"
|
|
340
|
+
},
|
|
324
341
|
"Pixelate": {
|
|
325
342
|
"opacity": 1,
|
|
326
343
|
"blendMode": "normal",
|
|
@@ -711,6 +728,7 @@ const availableComponents = [
|
|
|
711
728
|
"LinearBlur",
|
|
712
729
|
"LinearGradient",
|
|
713
730
|
"Liquify",
|
|
731
|
+
"Perspective",
|
|
714
732
|
"Pixelate",
|
|
715
733
|
"PolarCoordinates",
|
|
716
734
|
"Posterize",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type BlendMode, type TransformConfig } from '../../core';
|
|
2
|
+
import { type ComponentProps } from '../../core/shaders/Perspective';
|
|
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 Perspective: import("svelte").Component<ExtendedComponentProps, {}, "">;
|
|
18
|
+
type Perspective = ReturnType<typeof Perspective>;
|
|
19
|
+
export default Perspective;
|
|
@@ -319,6 +319,23 @@ var shaderMetadata = {
|
|
|
319
319
|
"radius": 1,
|
|
320
320
|
"edges": "stretch"
|
|
321
321
|
},
|
|
322
|
+
"Perspective": {
|
|
323
|
+
"opacity": 1,
|
|
324
|
+
"blendMode": "normal",
|
|
325
|
+
"center": {
|
|
326
|
+
"x": .5,
|
|
327
|
+
"y": .5
|
|
328
|
+
},
|
|
329
|
+
"pan": 0,
|
|
330
|
+
"tilt": 0,
|
|
331
|
+
"fov": 60,
|
|
332
|
+
"zoom": 1,
|
|
333
|
+
"offset": {
|
|
334
|
+
"x": .5,
|
|
335
|
+
"y": .5
|
|
336
|
+
},
|
|
337
|
+
"edges": "transparent"
|
|
338
|
+
},
|
|
322
339
|
"Pixelate": {
|
|
323
340
|
"opacity": 1,
|
|
324
341
|
"blendMode": "normal",
|
|
@@ -660,6 +677,7 @@ const availableComponents = [
|
|
|
660
677
|
"LinearBlur",
|
|
661
678
|
"LinearGradient",
|
|
662
679
|
"Liquify",
|
|
680
|
+
"Perspective",
|
|
663
681
|
"Pixelate",
|
|
664
682
|
"PolarCoordinates",
|
|
665
683
|
"Posterize",
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export { default as Invert } from './components/Invert.svelte';
|
|
|
32
32
|
export { default as LinearBlur } from './components/LinearBlur.svelte';
|
|
33
33
|
export { default as LinearGradient } from './components/LinearGradient.svelte';
|
|
34
34
|
export { default as Liquify } from './components/Liquify.svelte';
|
|
35
|
+
export { default as Perspective } from './components/Perspective.svelte';
|
|
35
36
|
export { default as Pixelate } from './components/Pixelate.svelte';
|
|
36
37
|
export { default as PolarCoordinates } from './components/PolarCoordinates.svelte';
|
|
37
38
|
export { default as Posterize } from './components/Posterize.svelte';
|
package/dist/svelte/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as generatePresetCode } from "./generatePresetCode-
|
|
1
|
+
import { n as generatePresetCode } from "./generatePresetCode-Yu_cJh3q.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";
|
|
@@ -37,29 +37,30 @@ import { componentDefinition as componentDefinition$30 } from "../core/shaders/I
|
|
|
37
37
|
import { componentDefinition as componentDefinition$31 } from "../core/shaders/LinearBlur/index.js";
|
|
38
38
|
import { componentDefinition as componentDefinition$32 } from "../core/shaders/LinearGradient/index.js";
|
|
39
39
|
import { componentDefinition as componentDefinition$33 } from "../core/shaders/Liquify/index.js";
|
|
40
|
-
import { componentDefinition as componentDefinition$34 } from "../core/shaders/
|
|
41
|
-
import { componentDefinition as componentDefinition$35 } from "../core/shaders/
|
|
42
|
-
import { componentDefinition as componentDefinition$36 } from "../core/shaders/
|
|
43
|
-
import { componentDefinition as componentDefinition$37 } from "../core/shaders/
|
|
44
|
-
import { componentDefinition as componentDefinition$38 } from "../core/shaders/
|
|
45
|
-
import { componentDefinition as componentDefinition$39 } from "../core/shaders/
|
|
46
|
-
import { componentDefinition as componentDefinition$40 } from "../core/shaders/
|
|
47
|
-
import { componentDefinition as componentDefinition$41 } from "../core/shaders/
|
|
48
|
-
import { componentDefinition as componentDefinition$42 } from "../core/shaders/
|
|
49
|
-
import { componentDefinition as componentDefinition$43 } from "../core/shaders/
|
|
50
|
-
import { componentDefinition as componentDefinition$44 } from "../core/shaders/
|
|
51
|
-
import { componentDefinition as componentDefinition$45 } from "../core/shaders/
|
|
52
|
-
import { componentDefinition as componentDefinition$46 } from "../core/shaders/
|
|
53
|
-
import { componentDefinition as componentDefinition$47 } from "../core/shaders/
|
|
54
|
-
import { componentDefinition as componentDefinition$48 } from "../core/shaders/
|
|
55
|
-
import { componentDefinition as componentDefinition$49 } from "../core/shaders/
|
|
56
|
-
import { componentDefinition as componentDefinition$50 } from "../core/shaders/
|
|
57
|
-
import { componentDefinition as componentDefinition$51 } from "../core/shaders/
|
|
58
|
-
import { componentDefinition as componentDefinition$52 } from "../core/shaders/
|
|
59
|
-
import { componentDefinition as componentDefinition$53 } from "../core/shaders/
|
|
60
|
-
import { componentDefinition as componentDefinition$54 } from "../core/shaders/
|
|
61
|
-
import { componentDefinition as componentDefinition$55 } from "../core/shaders/
|
|
62
|
-
import { componentDefinition as componentDefinition$56 } from "../core/shaders/
|
|
40
|
+
import { componentDefinition as componentDefinition$34 } from "../core/shaders/Perspective/index.js";
|
|
41
|
+
import { componentDefinition as componentDefinition$35 } from "../core/shaders/Pixelate/index.js";
|
|
42
|
+
import { componentDefinition as componentDefinition$36 } from "../core/shaders/PolarCoordinates/index.js";
|
|
43
|
+
import { componentDefinition as componentDefinition$37 } from "../core/shaders/Posterize/index.js";
|
|
44
|
+
import { componentDefinition as componentDefinition$38 } from "../core/shaders/ProgressiveBlur/index.js";
|
|
45
|
+
import { componentDefinition as componentDefinition$39 } from "../core/shaders/RadialGradient/index.js";
|
|
46
|
+
import { componentDefinition as componentDefinition$40 } from "../core/shaders/RectangularCoordinates/index.js";
|
|
47
|
+
import { componentDefinition as componentDefinition$41 } from "../core/shaders/Ripples/index.js";
|
|
48
|
+
import { componentDefinition as componentDefinition$42 } from "../core/shaders/Saturation/index.js";
|
|
49
|
+
import { componentDefinition as componentDefinition$43 } from "../core/shaders/Sharpness/index.js";
|
|
50
|
+
import { componentDefinition as componentDefinition$44 } from "../core/shaders/SimplexNoise/index.js";
|
|
51
|
+
import { componentDefinition as componentDefinition$45 } from "../core/shaders/SineWave/index.js";
|
|
52
|
+
import { componentDefinition as componentDefinition$46 } from "../core/shaders/SolidColor/index.js";
|
|
53
|
+
import { componentDefinition as componentDefinition$47 } from "../core/shaders/Spherize/index.js";
|
|
54
|
+
import { componentDefinition as componentDefinition$48 } from "../core/shaders/Spiral/index.js";
|
|
55
|
+
import { componentDefinition as componentDefinition$49 } from "../core/shaders/Strands/index.js";
|
|
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/Tritone/index.js";
|
|
60
|
+
import { componentDefinition as componentDefinition$54 } from "../core/shaders/Twirl/index.js";
|
|
61
|
+
import { componentDefinition as componentDefinition$55 } from "../core/shaders/Vibrance/index.js";
|
|
62
|
+
import { componentDefinition as componentDefinition$56 } from "../core/shaders/WaveDistortion/index.js";
|
|
63
|
+
import { componentDefinition as componentDefinition$57 } from "../core/shaders/ZoomBlur/index.js";
|
|
63
64
|
import { vec4 } from "three/tsl";
|
|
64
65
|
import { TelemetryCollector, isExternalUser, shouldCollectTelemetry } from "../core/telemetry/index.js";
|
|
65
66
|
function AngularBlur($$anchor, $$props) {
|
|
@@ -3802,7 +3803,7 @@ function Liquify($$anchor, $$props) {
|
|
|
3802
3803
|
children?.($$anchor);
|
|
3803
3804
|
$.pop();
|
|
3804
3805
|
}
|
|
3805
|
-
function
|
|
3806
|
+
function Perspective($$anchor, $$props) {
|
|
3806
3807
|
$.push($$props, true);
|
|
3807
3808
|
const DEFAULT_TRANSFORM = {
|
|
3808
3809
|
offsetX: 0,
|
|
@@ -3912,7 +3913,7 @@ function Pixelate($$anchor, $$props) {
|
|
|
3912
3913
|
children?.($$anchor);
|
|
3913
3914
|
$.pop();
|
|
3914
3915
|
}
|
|
3915
|
-
function
|
|
3916
|
+
function Pixelate($$anchor, $$props) {
|
|
3916
3917
|
$.push($$props, true);
|
|
3917
3918
|
const DEFAULT_TRANSFORM = {
|
|
3918
3919
|
offsetX: 0,
|
|
@@ -4022,7 +4023,7 @@ function PolarCoordinates($$anchor, $$props) {
|
|
|
4022
4023
|
children?.($$anchor);
|
|
4023
4024
|
$.pop();
|
|
4024
4025
|
}
|
|
4025
|
-
function
|
|
4026
|
+
function PolarCoordinates($$anchor, $$props) {
|
|
4026
4027
|
$.push($$props, true);
|
|
4027
4028
|
const DEFAULT_TRANSFORM = {
|
|
4028
4029
|
offsetX: 0,
|
|
@@ -4132,7 +4133,7 @@ function Posterize($$anchor, $$props) {
|
|
|
4132
4133
|
children?.($$anchor);
|
|
4133
4134
|
$.pop();
|
|
4134
4135
|
}
|
|
4135
|
-
function
|
|
4136
|
+
function Posterize($$anchor, $$props) {
|
|
4136
4137
|
$.push($$props, true);
|
|
4137
4138
|
const DEFAULT_TRANSFORM = {
|
|
4138
4139
|
offsetX: 0,
|
|
@@ -4242,7 +4243,7 @@ function ProgressiveBlur($$anchor, $$props) {
|
|
|
4242
4243
|
children?.($$anchor);
|
|
4243
4244
|
$.pop();
|
|
4244
4245
|
}
|
|
4245
|
-
function
|
|
4246
|
+
function ProgressiveBlur($$anchor, $$props) {
|
|
4246
4247
|
$.push($$props, true);
|
|
4247
4248
|
const DEFAULT_TRANSFORM = {
|
|
4248
4249
|
offsetX: 0,
|
|
@@ -4352,7 +4353,7 @@ function RadialGradient($$anchor, $$props) {
|
|
|
4352
4353
|
children?.($$anchor);
|
|
4353
4354
|
$.pop();
|
|
4354
4355
|
}
|
|
4355
|
-
function
|
|
4356
|
+
function RadialGradient($$anchor, $$props) {
|
|
4356
4357
|
$.push($$props, true);
|
|
4357
4358
|
const DEFAULT_TRANSFORM = {
|
|
4358
4359
|
offsetX: 0,
|
|
@@ -4462,7 +4463,7 @@ function RectangularCoordinates($$anchor, $$props) {
|
|
|
4462
4463
|
children?.($$anchor);
|
|
4463
4464
|
$.pop();
|
|
4464
4465
|
}
|
|
4465
|
-
function
|
|
4466
|
+
function RectangularCoordinates($$anchor, $$props) {
|
|
4466
4467
|
$.push($$props, true);
|
|
4467
4468
|
const DEFAULT_TRANSFORM = {
|
|
4468
4469
|
offsetX: 0,
|
|
@@ -4572,7 +4573,7 @@ function Ripples($$anchor, $$props) {
|
|
|
4572
4573
|
children?.($$anchor);
|
|
4573
4574
|
$.pop();
|
|
4574
4575
|
}
|
|
4575
|
-
function
|
|
4576
|
+
function Ripples($$anchor, $$props) {
|
|
4576
4577
|
$.push($$props, true);
|
|
4577
4578
|
const DEFAULT_TRANSFORM = {
|
|
4578
4579
|
offsetX: 0,
|
|
@@ -4682,7 +4683,7 @@ function Saturation($$anchor, $$props) {
|
|
|
4682
4683
|
children?.($$anchor);
|
|
4683
4684
|
$.pop();
|
|
4684
4685
|
}
|
|
4685
|
-
function
|
|
4686
|
+
function Saturation($$anchor, $$props) {
|
|
4686
4687
|
$.push($$props, true);
|
|
4687
4688
|
const DEFAULT_TRANSFORM = {
|
|
4688
4689
|
offsetX: 0,
|
|
@@ -4792,7 +4793,7 @@ function Sharpness($$anchor, $$props) {
|
|
|
4792
4793
|
children?.($$anchor);
|
|
4793
4794
|
$.pop();
|
|
4794
4795
|
}
|
|
4795
|
-
function
|
|
4796
|
+
function Sharpness($$anchor, $$props) {
|
|
4796
4797
|
$.push($$props, true);
|
|
4797
4798
|
const DEFAULT_TRANSFORM = {
|
|
4798
4799
|
offsetX: 0,
|
|
@@ -4902,7 +4903,7 @@ function SimplexNoise($$anchor, $$props) {
|
|
|
4902
4903
|
children?.($$anchor);
|
|
4903
4904
|
$.pop();
|
|
4904
4905
|
}
|
|
4905
|
-
function
|
|
4906
|
+
function SimplexNoise($$anchor, $$props) {
|
|
4906
4907
|
$.push($$props, true);
|
|
4907
4908
|
const DEFAULT_TRANSFORM = {
|
|
4908
4909
|
offsetX: 0,
|
|
@@ -5012,7 +5013,7 @@ function SineWave($$anchor, $$props) {
|
|
|
5012
5013
|
children?.($$anchor);
|
|
5013
5014
|
$.pop();
|
|
5014
5015
|
}
|
|
5015
|
-
function
|
|
5016
|
+
function SineWave($$anchor, $$props) {
|
|
5016
5017
|
$.push($$props, true);
|
|
5017
5018
|
const DEFAULT_TRANSFORM = {
|
|
5018
5019
|
offsetX: 0,
|
|
@@ -5122,7 +5123,7 @@ function SolidColor($$anchor, $$props) {
|
|
|
5122
5123
|
children?.($$anchor);
|
|
5123
5124
|
$.pop();
|
|
5124
5125
|
}
|
|
5125
|
-
function
|
|
5126
|
+
function SolidColor($$anchor, $$props) {
|
|
5126
5127
|
$.push($$props, true);
|
|
5127
5128
|
const DEFAULT_TRANSFORM = {
|
|
5128
5129
|
offsetX: 0,
|
|
@@ -5232,7 +5233,7 @@ function Spherize($$anchor, $$props) {
|
|
|
5232
5233
|
children?.($$anchor);
|
|
5233
5234
|
$.pop();
|
|
5234
5235
|
}
|
|
5235
|
-
function
|
|
5236
|
+
function Spherize($$anchor, $$props) {
|
|
5236
5237
|
$.push($$props, true);
|
|
5237
5238
|
const DEFAULT_TRANSFORM = {
|
|
5238
5239
|
offsetX: 0,
|
|
@@ -5342,7 +5343,7 @@ function Spiral($$anchor, $$props) {
|
|
|
5342
5343
|
children?.($$anchor);
|
|
5343
5344
|
$.pop();
|
|
5344
5345
|
}
|
|
5345
|
-
function
|
|
5346
|
+
function Spiral($$anchor, $$props) {
|
|
5346
5347
|
$.push($$props, true);
|
|
5347
5348
|
const DEFAULT_TRANSFORM = {
|
|
5348
5349
|
offsetX: 0,
|
|
@@ -5452,7 +5453,7 @@ function Strands($$anchor, $$props) {
|
|
|
5452
5453
|
children?.($$anchor);
|
|
5453
5454
|
$.pop();
|
|
5454
5455
|
}
|
|
5455
|
-
function
|
|
5456
|
+
function Strands($$anchor, $$props) {
|
|
5456
5457
|
$.push($$props, true);
|
|
5457
5458
|
const DEFAULT_TRANSFORM = {
|
|
5458
5459
|
offsetX: 0,
|
|
@@ -5562,7 +5563,7 @@ function Stretch($$anchor, $$props) {
|
|
|
5562
5563
|
children?.($$anchor);
|
|
5563
5564
|
$.pop();
|
|
5564
5565
|
}
|
|
5565
|
-
function
|
|
5566
|
+
function Stretch($$anchor, $$props) {
|
|
5566
5567
|
$.push($$props, true);
|
|
5567
5568
|
const DEFAULT_TRANSFORM = {
|
|
5568
5569
|
offsetX: 0,
|
|
@@ -5672,7 +5673,7 @@ function Swirl($$anchor, $$props) {
|
|
|
5672
5673
|
children?.($$anchor);
|
|
5673
5674
|
$.pop();
|
|
5674
5675
|
}
|
|
5675
|
-
function
|
|
5676
|
+
function Swirl($$anchor, $$props) {
|
|
5676
5677
|
$.push($$props, true);
|
|
5677
5678
|
const DEFAULT_TRANSFORM = {
|
|
5678
5679
|
offsetX: 0,
|
|
@@ -5782,7 +5783,7 @@ function TiltShift($$anchor, $$props) {
|
|
|
5782
5783
|
children?.($$anchor);
|
|
5783
5784
|
$.pop();
|
|
5784
5785
|
}
|
|
5785
|
-
function
|
|
5786
|
+
function TiltShift($$anchor, $$props) {
|
|
5786
5787
|
$.push($$props, true);
|
|
5787
5788
|
const DEFAULT_TRANSFORM = {
|
|
5788
5789
|
offsetX: 0,
|
|
@@ -5892,7 +5893,7 @@ function Tritone($$anchor, $$props) {
|
|
|
5892
5893
|
children?.($$anchor);
|
|
5893
5894
|
$.pop();
|
|
5894
5895
|
}
|
|
5895
|
-
function
|
|
5896
|
+
function Tritone($$anchor, $$props) {
|
|
5896
5897
|
$.push($$props, true);
|
|
5897
5898
|
const DEFAULT_TRANSFORM = {
|
|
5898
5899
|
offsetX: 0,
|
|
@@ -6002,7 +6003,7 @@ function Twirl($$anchor, $$props) {
|
|
|
6002
6003
|
children?.($$anchor);
|
|
6003
6004
|
$.pop();
|
|
6004
6005
|
}
|
|
6005
|
-
function
|
|
6006
|
+
function Twirl($$anchor, $$props) {
|
|
6006
6007
|
$.push($$props, true);
|
|
6007
6008
|
const DEFAULT_TRANSFORM = {
|
|
6008
6009
|
offsetX: 0,
|
|
@@ -6112,7 +6113,7 @@ function Vibrance($$anchor, $$props) {
|
|
|
6112
6113
|
children?.($$anchor);
|
|
6113
6114
|
$.pop();
|
|
6114
6115
|
}
|
|
6115
|
-
function
|
|
6116
|
+
function Vibrance($$anchor, $$props) {
|
|
6116
6117
|
$.push($$props, true);
|
|
6117
6118
|
const DEFAULT_TRANSFORM = {
|
|
6118
6119
|
offsetX: 0,
|
|
@@ -6222,7 +6223,7 @@ function WaveDistortion($$anchor, $$props) {
|
|
|
6222
6223
|
children?.($$anchor);
|
|
6223
6224
|
$.pop();
|
|
6224
6225
|
}
|
|
6225
|
-
function
|
|
6226
|
+
function WaveDistortion($$anchor, $$props) {
|
|
6226
6227
|
$.push($$props, true);
|
|
6227
6228
|
const DEFAULT_TRANSFORM = {
|
|
6228
6229
|
offsetX: 0,
|
|
@@ -6332,6 +6333,116 @@ function ZoomBlur($$anchor, $$props) {
|
|
|
6332
6333
|
children?.($$anchor);
|
|
6333
6334
|
$.pop();
|
|
6334
6335
|
}
|
|
6336
|
+
function ZoomBlur($$anchor, $$props) {
|
|
6337
|
+
$.push($$props, true);
|
|
6338
|
+
const DEFAULT_TRANSFORM = {
|
|
6339
|
+
offsetX: 0,
|
|
6340
|
+
offsetY: 0,
|
|
6341
|
+
rotation: 0,
|
|
6342
|
+
scale: 1,
|
|
6343
|
+
anchorX: .5,
|
|
6344
|
+
anchorY: .5,
|
|
6345
|
+
edges: "transparent"
|
|
6346
|
+
};
|
|
6347
|
+
const componentDefaults = {
|
|
6348
|
+
blendMode: "normal",
|
|
6349
|
+
renderOrder: 0,
|
|
6350
|
+
visible: true,
|
|
6351
|
+
...Object.entries(componentDefinition$57.props).reduce((acc, [key, config]) => {
|
|
6352
|
+
acc[key] = config.default;
|
|
6353
|
+
return acc;
|
|
6354
|
+
}, {})
|
|
6355
|
+
};
|
|
6356
|
+
const props = $.rest_props($$props, [
|
|
6357
|
+
"$$slots",
|
|
6358
|
+
"$$events",
|
|
6359
|
+
"$$legacy"
|
|
6360
|
+
]);
|
|
6361
|
+
const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
|
|
6362
|
+
const opacity = $$props.opacity;
|
|
6363
|
+
const visible = $$props.visible ?? componentDefaults.visible;
|
|
6364
|
+
const id = $$props.id;
|
|
6365
|
+
const maskSource = $$props.maskSource;
|
|
6366
|
+
const maskType = $$props.maskType;
|
|
6367
|
+
const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
|
|
6368
|
+
const { children } = props;
|
|
6369
|
+
const effectiveTransform = $.derived(() => ({
|
|
6370
|
+
...DEFAULT_TRANSFORM,
|
|
6371
|
+
...$$props.transform
|
|
6372
|
+
}));
|
|
6373
|
+
const parentId = getContext("shaderParentId");
|
|
6374
|
+
if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
6375
|
+
const instanceId = id || `${componentDefinition$57.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6376
|
+
setContext("shaderParentId", instanceId);
|
|
6377
|
+
const shaderReadyProps = $.derived(() => {
|
|
6378
|
+
let baseProps = { ...componentDefaults };
|
|
6379
|
+
for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
|
|
6380
|
+
const propValue = props[key];
|
|
6381
|
+
const defaultValue = componentDefaults[key];
|
|
6382
|
+
if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
|
|
6383
|
+
}
|
|
6384
|
+
return baseProps;
|
|
6385
|
+
});
|
|
6386
|
+
const uniforms = createUniformsMap(componentDefinition$57, $.get(shaderReadyProps), instanceId);
|
|
6387
|
+
const parentRegister = getContext("shaderNodeRegister");
|
|
6388
|
+
if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
6389
|
+
const parentUniformUpdate = getContext("shaderUniformUpdate");
|
|
6390
|
+
if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
|
|
6391
|
+
const parentMetadataUpdate = getContext("shaderMetadataUpdate");
|
|
6392
|
+
if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
|
|
6393
|
+
let isRegistered = $.state(false);
|
|
6394
|
+
Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
|
|
6395
|
+
$.user_effect(() => {
|
|
6396
|
+
if (!$.get(isRegistered)) return;
|
|
6397
|
+
if (uniform && uniform.value !== void 0) {
|
|
6398
|
+
const newValue = props[propName];
|
|
6399
|
+
if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
|
|
6400
|
+
}
|
|
6401
|
+
});
|
|
6402
|
+
});
|
|
6403
|
+
$.user_effect(() => {
|
|
6404
|
+
if (!$.get(isRegistered)) return;
|
|
6405
|
+
parentMetadataUpdate(instanceId, {
|
|
6406
|
+
blendMode,
|
|
6407
|
+
opacity,
|
|
6408
|
+
visible: visible === false ? false : true,
|
|
6409
|
+
id,
|
|
6410
|
+
mask: maskSource ? {
|
|
6411
|
+
source: maskSource,
|
|
6412
|
+
type: maskType || "alpha"
|
|
6413
|
+
} : void 0,
|
|
6414
|
+
renderOrder,
|
|
6415
|
+
transform: $.get(effectiveTransform)
|
|
6416
|
+
});
|
|
6417
|
+
});
|
|
6418
|
+
onMount(() => {
|
|
6419
|
+
if (componentDefinition$57 && typeof componentDefinition$57.fragmentNode === "function") {
|
|
6420
|
+
parentRegister(instanceId, componentDefinition$57.fragmentNode, parentId, {
|
|
6421
|
+
blendMode,
|
|
6422
|
+
opacity,
|
|
6423
|
+
visible: visible !== false ? true : false,
|
|
6424
|
+
id,
|
|
6425
|
+
mask: maskSource ? {
|
|
6426
|
+
source: maskSource,
|
|
6427
|
+
type: maskType || "alpha"
|
|
6428
|
+
} : void 0,
|
|
6429
|
+
renderOrder,
|
|
6430
|
+
transform: $.get(effectiveTransform)
|
|
6431
|
+
}, uniforms);
|
|
6432
|
+
$.set(isRegistered, true);
|
|
6433
|
+
} else console.error("componentDefinition.fragmentNode is not a function:", {
|
|
6434
|
+
componentDefinition: componentDefinition$57,
|
|
6435
|
+
fragmentNode: componentDefinition$57?.fragmentNode,
|
|
6436
|
+
type: typeof componentDefinition$57?.fragmentNode
|
|
6437
|
+
});
|
|
6438
|
+
});
|
|
6439
|
+
onDestroy(() => {
|
|
6440
|
+
$.set(isRegistered, false);
|
|
6441
|
+
parentRegister(instanceId, null, null, null, null);
|
|
6442
|
+
});
|
|
6443
|
+
children?.($$anchor);
|
|
6444
|
+
$.pop();
|
|
6445
|
+
}
|
|
6335
6446
|
var root = $.from_html(`<div><canvas data-renderer="shaders" style="width: 100%; height: 100%; display: block;"></canvas> <!></div>`);
|
|
6336
6447
|
function Shader($$anchor, $$props) {
|
|
6337
6448
|
$.push($$props, true);
|
|
@@ -6434,4 +6545,4 @@ function Shader($$anchor, $$props) {
|
|
|
6434
6545
|
$.append($$anchor, div);
|
|
6435
6546
|
$.pop();
|
|
6436
6547
|
}
|
|
6437
|
-
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, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Swirl, TiltShift, Tritone, Twirl, Vibrance, WaveDistortion, ZoomBlur, generatePresetCode };
|
|
6548
|
+
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, Tritone, Twirl, Vibrance, WaveDistortion, ZoomBlur, generatePresetCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-
|
|
1
|
+
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-Yu_cJh3q.js";
|
|
2
2
|
export { availableComponents, generatePresetCode };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BlendMode, TransformConfig } from '../../core';
|
|
2
|
+
import { ComponentProps } from '../../core/shaders/Perspective';
|
|
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=Perspective.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Perspective.vue.d.ts","sourceRoot":"","sources":["../../src/components/Perspective.vue"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,SAAS,EAId,KAAK,eAAe,EACrB,MAAM,cAAc,CAAA;AAGrB,OAAO,EAAsB,KAAK,cAAc,EAAC,MAAM,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,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,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"}
|
|
@@ -317,6 +317,23 @@ var shaderMetadata = {
|
|
|
317
317
|
"radius": 1,
|
|
318
318
|
"edges": "stretch"
|
|
319
319
|
},
|
|
320
|
+
"Perspective": {
|
|
321
|
+
"opacity": 1,
|
|
322
|
+
"blendMode": "normal",
|
|
323
|
+
"center": {
|
|
324
|
+
"x": .5,
|
|
325
|
+
"y": .5
|
|
326
|
+
},
|
|
327
|
+
"pan": 0,
|
|
328
|
+
"tilt": 0,
|
|
329
|
+
"fov": 60,
|
|
330
|
+
"zoom": 1,
|
|
331
|
+
"offset": {
|
|
332
|
+
"x": .5,
|
|
333
|
+
"y": .5
|
|
334
|
+
},
|
|
335
|
+
"edges": "transparent"
|
|
336
|
+
},
|
|
320
337
|
"Pixelate": {
|
|
321
338
|
"opacity": 1,
|
|
322
339
|
"blendMode": "normal",
|
|
@@ -659,6 +676,7 @@ const availableComponents = [
|
|
|
659
676
|
"LinearBlur",
|
|
660
677
|
"LinearGradient",
|
|
661
678
|
"Liquify",
|
|
679
|
+
"Perspective",
|
|
662
680
|
"Pixelate",
|
|
663
681
|
"PolarCoordinates",
|
|
664
682
|
"Posterize",
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export { default as Invert } from './components/Invert.vue';
|
|
|
32
32
|
export { default as LinearBlur } from './components/LinearBlur.vue';
|
|
33
33
|
export { default as LinearGradient } from './components/LinearGradient.vue';
|
|
34
34
|
export { default as Liquify } from './components/Liquify.vue';
|
|
35
|
+
export { default as Perspective } from './components/Perspective.vue';
|
|
35
36
|
export { default as Pixelate } from './components/Pixelate.vue';
|
|
36
37
|
export { default as PolarCoordinates } from './components/PolarCoordinates.vue';
|
|
37
38
|
export { default as Posterize } from './components/Posterize.vue';
|
package/dist/vue/index.d.ts.map
CHANGED
|
@@ -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,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,WAAW,EA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