shaders 2.2.39 → 2.2.40
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/Tint-BUFsUBqI.js +56 -0
- package/dist/core/index.js +19 -17
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Tint/index.d.ts +29 -0
- package/dist/core/shaders/Tint/index.d.ts.map +1 -0
- package/dist/core/shaders/Tint/index.js +3 -0
- 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/Tint.d.ts +31 -0
- package/dist/react/components/Tint.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-CPcLELa5.js → generatePresetCode-BCeSxN_V.js} +8 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +549 -410
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +71 -0
- package/dist/solid/components/Tint.d.ts +28 -0
- package/dist/solid/components/Tint.d.ts.map +1 -0
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +490 -348
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +8 -0
- package/dist/svelte/components/Tint.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-By5juLjK.js → generatePresetCode-BFY8wlyB.js} +8 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +123 -12
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/Tint.vue.d.ts +57 -0
- package/dist/vue/components/Tint.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-REXb9hnv.js → generatePresetCode-D3MinGC_.js} +8 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +159 -36
- 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/{Tritone-CJW8YTyB.js → Tritone-DS1QbB-T.js} +0 -0
- /package/dist/core/{Twirl-5k_XPd51.js → Twirl-w3PgFOlA.js} +0 -0
- /package/dist/core/{Vibrance-c25pkbWj.js → Vibrance--gtdjy4j.js} +0 -0
- /package/dist/core/{WaveDistortion-Bo2Ar13M.js → WaveDistortion-BfhB1rjJ.js} +0 -0
- /package/dist/core/{ZoomBlur-DEozXA8U.js → ZoomBlur-DxUocLAG.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;AA0rBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAyC/D;AAGD,eAAO,MAAM,mBAAmB,UA6D/B,CAAA"}
|
|
@@ -536,6 +536,13 @@ const shaderMetadata = {
|
|
|
536
536
|
"y": 0.5
|
|
537
537
|
}
|
|
538
538
|
},
|
|
539
|
+
"Tint": {
|
|
540
|
+
"opacity": 1,
|
|
541
|
+
"blendMode": "normal",
|
|
542
|
+
"color": "#ff8800",
|
|
543
|
+
"amount": 0.5,
|
|
544
|
+
"preserveLuminosity": true
|
|
545
|
+
},
|
|
539
546
|
"Tritone": {
|
|
540
547
|
"opacity": 1,
|
|
541
548
|
"blendMode": "normal",
|
|
@@ -747,6 +754,7 @@ const availableComponents = [
|
|
|
747
754
|
"Stretch",
|
|
748
755
|
"Swirl",
|
|
749
756
|
"TiltShift",
|
|
757
|
+
"Tint",
|
|
750
758
|
"Tritone",
|
|
751
759
|
"Twirl",
|
|
752
760
|
"Vibrance",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type BlendMode, type TransformConfig } from '../../core';
|
|
2
|
+
import { type ComponentProps } from '../../core/shaders/Tint';
|
|
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 Tint: import("svelte").Component<ExtendedComponentProps, {}, "">;
|
|
18
|
+
type Tint = ReturnType<typeof Tint>;
|
|
19
|
+
export default Tint;
|
|
@@ -534,6 +534,13 @@ var shaderMetadata = {
|
|
|
534
534
|
"y": .5
|
|
535
535
|
}
|
|
536
536
|
},
|
|
537
|
+
"Tint": {
|
|
538
|
+
"opacity": 1,
|
|
539
|
+
"blendMode": "normal",
|
|
540
|
+
"color": "#ff8800",
|
|
541
|
+
"amount": .5,
|
|
542
|
+
"preserveLuminosity": true
|
|
543
|
+
},
|
|
537
544
|
"Tritone": {
|
|
538
545
|
"opacity": 1,
|
|
539
546
|
"blendMode": "normal",
|
|
@@ -696,6 +703,7 @@ const availableComponents = [
|
|
|
696
703
|
"Stretch",
|
|
697
704
|
"Swirl",
|
|
698
705
|
"TiltShift",
|
|
706
|
+
"Tint",
|
|
699
707
|
"Tritone",
|
|
700
708
|
"Twirl",
|
|
701
709
|
"Vibrance",
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export { default as Strands } from './components/Strands.svelte';
|
|
|
51
51
|
export { default as Stretch } from './components/Stretch.svelte';
|
|
52
52
|
export { default as Swirl } from './components/Swirl.svelte';
|
|
53
53
|
export { default as TiltShift } from './components/TiltShift.svelte';
|
|
54
|
+
export { default as Tint } from './components/Tint.svelte';
|
|
54
55
|
export { default as Tritone } from './components/Tritone.svelte';
|
|
55
56
|
export { default as Twirl } from './components/Twirl.svelte';
|
|
56
57
|
export { default as Vibrance } from './components/Vibrance.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-BFY8wlyB.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";
|
|
@@ -56,11 +56,12 @@ import { componentDefinition as componentDefinition$49 } from "../core/shaders/S
|
|
|
56
56
|
import { componentDefinition as componentDefinition$50 } from "../core/shaders/Stretch/index.js";
|
|
57
57
|
import { componentDefinition as componentDefinition$51 } from "../core/shaders/Swirl/index.js";
|
|
58
58
|
import { componentDefinition as componentDefinition$52 } from "../core/shaders/TiltShift/index.js";
|
|
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/
|
|
63
|
-
import { componentDefinition as componentDefinition$57 } from "../core/shaders/
|
|
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";
|
|
64
65
|
import { vec4 } from "three/tsl";
|
|
65
66
|
import { TelemetryCollector, isExternalUser, shouldCollectTelemetry } from "../core/telemetry/index.js";
|
|
66
67
|
function AngularBlur($$anchor, $$props) {
|
|
@@ -5893,7 +5894,7 @@ function TiltShift($$anchor, $$props) {
|
|
|
5893
5894
|
children?.($$anchor);
|
|
5894
5895
|
$.pop();
|
|
5895
5896
|
}
|
|
5896
|
-
function
|
|
5897
|
+
function Tint($$anchor, $$props) {
|
|
5897
5898
|
$.push($$props, true);
|
|
5898
5899
|
const DEFAULT_TRANSFORM = {
|
|
5899
5900
|
offsetX: 0,
|
|
@@ -6003,7 +6004,7 @@ function Tritone($$anchor, $$props) {
|
|
|
6003
6004
|
children?.($$anchor);
|
|
6004
6005
|
$.pop();
|
|
6005
6006
|
}
|
|
6006
|
-
function
|
|
6007
|
+
function Tritone($$anchor, $$props) {
|
|
6007
6008
|
$.push($$props, true);
|
|
6008
6009
|
const DEFAULT_TRANSFORM = {
|
|
6009
6010
|
offsetX: 0,
|
|
@@ -6113,7 +6114,7 @@ function Twirl($$anchor, $$props) {
|
|
|
6113
6114
|
children?.($$anchor);
|
|
6114
6115
|
$.pop();
|
|
6115
6116
|
}
|
|
6116
|
-
function
|
|
6117
|
+
function Twirl($$anchor, $$props) {
|
|
6117
6118
|
$.push($$props, true);
|
|
6118
6119
|
const DEFAULT_TRANSFORM = {
|
|
6119
6120
|
offsetX: 0,
|
|
@@ -6223,7 +6224,7 @@ function Vibrance($$anchor, $$props) {
|
|
|
6223
6224
|
children?.($$anchor);
|
|
6224
6225
|
$.pop();
|
|
6225
6226
|
}
|
|
6226
|
-
function
|
|
6227
|
+
function Vibrance($$anchor, $$props) {
|
|
6227
6228
|
$.push($$props, true);
|
|
6228
6229
|
const DEFAULT_TRANSFORM = {
|
|
6229
6230
|
offsetX: 0,
|
|
@@ -6333,7 +6334,7 @@ function WaveDistortion($$anchor, $$props) {
|
|
|
6333
6334
|
children?.($$anchor);
|
|
6334
6335
|
$.pop();
|
|
6335
6336
|
}
|
|
6336
|
-
function
|
|
6337
|
+
function WaveDistortion($$anchor, $$props) {
|
|
6337
6338
|
$.push($$props, true);
|
|
6338
6339
|
const DEFAULT_TRANSFORM = {
|
|
6339
6340
|
offsetX: 0,
|
|
@@ -6443,6 +6444,116 @@ function ZoomBlur($$anchor, $$props) {
|
|
|
6443
6444
|
children?.($$anchor);
|
|
6444
6445
|
$.pop();
|
|
6445
6446
|
}
|
|
6447
|
+
function ZoomBlur($$anchor, $$props) {
|
|
6448
|
+
$.push($$props, true);
|
|
6449
|
+
const DEFAULT_TRANSFORM = {
|
|
6450
|
+
offsetX: 0,
|
|
6451
|
+
offsetY: 0,
|
|
6452
|
+
rotation: 0,
|
|
6453
|
+
scale: 1,
|
|
6454
|
+
anchorX: .5,
|
|
6455
|
+
anchorY: .5,
|
|
6456
|
+
edges: "transparent"
|
|
6457
|
+
};
|
|
6458
|
+
const componentDefaults = {
|
|
6459
|
+
blendMode: "normal",
|
|
6460
|
+
renderOrder: 0,
|
|
6461
|
+
visible: true,
|
|
6462
|
+
...Object.entries(componentDefinition$58.props).reduce((acc, [key, config]) => {
|
|
6463
|
+
acc[key] = config.default;
|
|
6464
|
+
return acc;
|
|
6465
|
+
}, {})
|
|
6466
|
+
};
|
|
6467
|
+
const props = $.rest_props($$props, [
|
|
6468
|
+
"$$slots",
|
|
6469
|
+
"$$events",
|
|
6470
|
+
"$$legacy"
|
|
6471
|
+
]);
|
|
6472
|
+
const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
|
|
6473
|
+
const opacity = $$props.opacity;
|
|
6474
|
+
const visible = $$props.visible ?? componentDefaults.visible;
|
|
6475
|
+
const id = $$props.id;
|
|
6476
|
+
const maskSource = $$props.maskSource;
|
|
6477
|
+
const maskType = $$props.maskType;
|
|
6478
|
+
const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
|
|
6479
|
+
const { children } = props;
|
|
6480
|
+
const effectiveTransform = $.derived(() => ({
|
|
6481
|
+
...DEFAULT_TRANSFORM,
|
|
6482
|
+
...$$props.transform
|
|
6483
|
+
}));
|
|
6484
|
+
const parentId = getContext("shaderParentId");
|
|
6485
|
+
if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
6486
|
+
const instanceId = id || `${componentDefinition$58.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6487
|
+
setContext("shaderParentId", instanceId);
|
|
6488
|
+
const shaderReadyProps = $.derived(() => {
|
|
6489
|
+
let baseProps = { ...componentDefaults };
|
|
6490
|
+
for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
|
|
6491
|
+
const propValue = props[key];
|
|
6492
|
+
const defaultValue = componentDefaults[key];
|
|
6493
|
+
if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
|
|
6494
|
+
}
|
|
6495
|
+
return baseProps;
|
|
6496
|
+
});
|
|
6497
|
+
const uniforms = createUniformsMap(componentDefinition$58, $.get(shaderReadyProps), instanceId);
|
|
6498
|
+
const parentRegister = getContext("shaderNodeRegister");
|
|
6499
|
+
if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
6500
|
+
const parentUniformUpdate = getContext("shaderUniformUpdate");
|
|
6501
|
+
if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
|
|
6502
|
+
const parentMetadataUpdate = getContext("shaderMetadataUpdate");
|
|
6503
|
+
if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
|
|
6504
|
+
let isRegistered = $.state(false);
|
|
6505
|
+
Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
|
|
6506
|
+
$.user_effect(() => {
|
|
6507
|
+
if (!$.get(isRegistered)) return;
|
|
6508
|
+
if (uniform && uniform.value !== void 0) {
|
|
6509
|
+
const newValue = props[propName];
|
|
6510
|
+
if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
|
|
6511
|
+
}
|
|
6512
|
+
});
|
|
6513
|
+
});
|
|
6514
|
+
$.user_effect(() => {
|
|
6515
|
+
if (!$.get(isRegistered)) return;
|
|
6516
|
+
parentMetadataUpdate(instanceId, {
|
|
6517
|
+
blendMode,
|
|
6518
|
+
opacity,
|
|
6519
|
+
visible: visible === false ? false : true,
|
|
6520
|
+
id,
|
|
6521
|
+
mask: maskSource ? {
|
|
6522
|
+
source: maskSource,
|
|
6523
|
+
type: maskType || "alpha"
|
|
6524
|
+
} : void 0,
|
|
6525
|
+
renderOrder,
|
|
6526
|
+
transform: $.get(effectiveTransform)
|
|
6527
|
+
});
|
|
6528
|
+
});
|
|
6529
|
+
onMount(() => {
|
|
6530
|
+
if (componentDefinition$58 && typeof componentDefinition$58.fragmentNode === "function") {
|
|
6531
|
+
parentRegister(instanceId, componentDefinition$58.fragmentNode, parentId, {
|
|
6532
|
+
blendMode,
|
|
6533
|
+
opacity,
|
|
6534
|
+
visible: visible !== false ? true : false,
|
|
6535
|
+
id,
|
|
6536
|
+
mask: maskSource ? {
|
|
6537
|
+
source: maskSource,
|
|
6538
|
+
type: maskType || "alpha"
|
|
6539
|
+
} : void 0,
|
|
6540
|
+
renderOrder,
|
|
6541
|
+
transform: $.get(effectiveTransform)
|
|
6542
|
+
}, uniforms);
|
|
6543
|
+
$.set(isRegistered, true);
|
|
6544
|
+
} else console.error("componentDefinition.fragmentNode is not a function:", {
|
|
6545
|
+
componentDefinition: componentDefinition$58,
|
|
6546
|
+
fragmentNode: componentDefinition$58?.fragmentNode,
|
|
6547
|
+
type: typeof componentDefinition$58?.fragmentNode
|
|
6548
|
+
});
|
|
6549
|
+
});
|
|
6550
|
+
onDestroy(() => {
|
|
6551
|
+
$.set(isRegistered, false);
|
|
6552
|
+
parentRegister(instanceId, null, null, null, null);
|
|
6553
|
+
});
|
|
6554
|
+
children?.($$anchor);
|
|
6555
|
+
$.pop();
|
|
6556
|
+
}
|
|
6446
6557
|
var root = $.from_html(`<div><canvas data-renderer="shaders" style="width: 100%; height: 100%; display: block;"></canvas> <!></div>`);
|
|
6447
6558
|
function Shader($$anchor, $$props) {
|
|
6448
6559
|
$.push($$props, true);
|
|
@@ -6545,4 +6656,4 @@ function Shader($$anchor, $$props) {
|
|
|
6545
6656
|
$.append($$anchor, div);
|
|
6546
6657
|
$.pop();
|
|
6547
6658
|
}
|
|
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 };
|
|
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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-
|
|
1
|
+
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-BFY8wlyB.js";
|
|
2
2
|
export { availableComponents, generatePresetCode };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BlendMode, TransformConfig } from '../../core';
|
|
2
|
+
import { ComponentProps } from '../../core/shaders/Tint';
|
|
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=Tint.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tint.vue.d.ts","sourceRoot":"","sources":["../../src/components/Tint.vue"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,SAAS,EAId,KAAK,eAAe,EACrB,MAAM,cAAc,CAAA;AAGrB,OAAO,EAAsB,KAAK,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAI1E;;GAEG;AACH,UAAU,sBAAuB,SAAQ,OAAO,CAAC,cAAc,CAAC;IAC9D,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;CACtC;AAgOD,iBAAS,cAAc;qBA0BM,GAAG;EAG/B;AAQD,QAAA,MAAM,eAAe;;;;;;;;;eA7QP,SAAS;aAEX,OAAO;iBAIH,MAAM;4EA6QpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,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"}
|
|
@@ -532,6 +532,13 @@ var shaderMetadata = {
|
|
|
532
532
|
"y": .5
|
|
533
533
|
}
|
|
534
534
|
},
|
|
535
|
+
"Tint": {
|
|
536
|
+
"opacity": 1,
|
|
537
|
+
"blendMode": "normal",
|
|
538
|
+
"color": "#ff8800",
|
|
539
|
+
"amount": .5,
|
|
540
|
+
"preserveLuminosity": true
|
|
541
|
+
},
|
|
535
542
|
"Tritone": {
|
|
536
543
|
"opacity": 1,
|
|
537
544
|
"blendMode": "normal",
|
|
@@ -695,6 +702,7 @@ const availableComponents = [
|
|
|
695
702
|
"Stretch",
|
|
696
703
|
"Swirl",
|
|
697
704
|
"TiltShift",
|
|
705
|
+
"Tint",
|
|
698
706
|
"Tritone",
|
|
699
707
|
"Twirl",
|
|
700
708
|
"Vibrance",
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export { default as Strands } from './components/Strands.vue';
|
|
|
51
51
|
export { default as Stretch } from './components/Stretch.vue';
|
|
52
52
|
export { default as Swirl } from './components/Swirl.vue';
|
|
53
53
|
export { default as TiltShift } from './components/TiltShift.vue';
|
|
54
|
+
export { default as Tint } from './components/Tint.vue';
|
|
54
55
|
export { default as Tritone } from './components/Tritone.vue';
|
|
55
56
|
export { default as Twirl } from './components/Twirl.vue';
|
|
56
57
|
export { default as Vibrance } from './components/Vibrance.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,E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