@toriistudio/shader-ui 0.0.8 → 0.0.10
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/index.d.mts +36 -3
- package/dist/index.d.ts +36 -3
- package/dist/index.js +902 -16
- package/dist/index.mjs +905 -16
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -278,7 +278,7 @@ type NoiseWarpPassUniforms = {
|
|
|
278
278
|
radius: number;
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
type
|
|
281
|
+
type CombineShaderMode = "add" | "screen" | "multiply" | "overlay" | "max" | "min" | "difference" | "alphaOver" | "premultipliedOver" | "lerp" | "mask";
|
|
282
282
|
|
|
283
283
|
type DitherPulseRingProps = {
|
|
284
284
|
spriteTextureSrc?: string;
|
|
@@ -286,7 +286,7 @@ type DitherPulseRingProps = {
|
|
|
286
286
|
diffuseEnabled?: boolean;
|
|
287
287
|
blurEnabled?: boolean;
|
|
288
288
|
noiseWarpEnabled?: boolean;
|
|
289
|
-
combineMode?:
|
|
289
|
+
combineMode?: CombineShaderMode;
|
|
290
290
|
noiseWarpRadius?: NoiseWarpPassUniforms["radius"];
|
|
291
291
|
noiseWarpStrength?: NoiseWarpPassUniforms["strength"];
|
|
292
292
|
diffuseRadius?: DiffusePassUniforms["diffuseRadius"];
|
|
@@ -308,4 +308,37 @@ type DitherPulseRingProps = {
|
|
|
308
308
|
};
|
|
309
309
|
declare function DitherPulseRing({ spriteTextureSrc, glyphDitherEnabled, diffuseEnabled, blurEnabled, noiseWarpEnabled, combineMode, noiseWarpRadius, noiseWarpStrength, diffuseRadius, blurRadius, borderThickness, borderIntensity, borderColor, borderDitherStrength, borderTonemap, borderAlpha, ringColor, ringSpeed, ringPosition, ringAlpha, width, height, className, style, }: DitherPulseRingProps): react_jsx_runtime.JSX.Element;
|
|
310
310
|
|
|
311
|
-
|
|
311
|
+
type DitherStreamProps = {
|
|
312
|
+
width?: string | number;
|
|
313
|
+
height?: string | number;
|
|
314
|
+
className?: string;
|
|
315
|
+
style?: React.CSSProperties;
|
|
316
|
+
children?: React.ReactNode;
|
|
317
|
+
imageTextureSrc?: string;
|
|
318
|
+
backgroundImageSrc?: string;
|
|
319
|
+
backgroundDithered?: boolean;
|
|
320
|
+
projectionSpeed?: number;
|
|
321
|
+
beamSpeed?: number;
|
|
322
|
+
beamDirection?: "counterclockwise" | "clockwise";
|
|
323
|
+
beamColor?: [number, number, number] | string;
|
|
324
|
+
beamCenter?: [number, number];
|
|
325
|
+
beamRadius?: number;
|
|
326
|
+
beamScale?: number;
|
|
327
|
+
beamPathShape?: "circle" | "square" | "diamond" | "triangle" | "oval" | "custom";
|
|
328
|
+
beamCustomPathPoints?: Array<[number, number]>;
|
|
329
|
+
beamEnabled?: boolean;
|
|
330
|
+
pathPos?: [number, number];
|
|
331
|
+
pathAngle?: number;
|
|
332
|
+
godrayIntensity?: number;
|
|
333
|
+
};
|
|
334
|
+
declare function DitherStream({ width, height, className, style, children, imageTextureSrc, backgroundImageSrc, backgroundDithered, projectionSpeed, beamSpeed, beamDirection, beamColor, beamCenter, beamRadius, beamScale, beamPathShape, beamCustomPathPoints, beamEnabled, pathPos, pathAngle, godrayIntensity, }: DitherStreamProps): react_jsx_runtime.JSX.Element;
|
|
335
|
+
|
|
336
|
+
type DitherStreamPathDrawerProps = {
|
|
337
|
+
enabled: boolean;
|
|
338
|
+
beamColor?: string;
|
|
339
|
+
backgroundImageSrc?: string;
|
|
340
|
+
onCommit: (points: Array<[number, number]>) => void;
|
|
341
|
+
};
|
|
342
|
+
declare function DitherStreamPathDrawer({ enabled, beamColor, backgroundImageSrc, onCommit, }: DitherStreamPathDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
343
|
+
|
|
344
|
+
export { AnimatedDrawingSVG, type CombineShaderMode, DitherPulseRing, DitherStream, DitherStreamPathDrawer, EFECTO_ASCII_COMPONENT_DEFAULTS, EFECTO_ASCII_POST_PROCESSING_DEFAULTS, Efecto, type EfectoAsciiColorPalette, type EfectoAsciiStyle, type PublicPostProcessingSettings as EfectoPublicAsciiPostProcessingSettings, FractalFlower, MenuGlitch, type MenuGlitchUniforms, OranoParticles, type OranoParticlesUniforms, RippleWave, ShaderArt, type ShaderArtUniforms, Snow, WANDY_HAND_DEFAULTS, WandyHand };
|
package/dist/index.d.ts
CHANGED
|
@@ -278,7 +278,7 @@ type NoiseWarpPassUniforms = {
|
|
|
278
278
|
radius: number;
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
type
|
|
281
|
+
type CombineShaderMode = "add" | "screen" | "multiply" | "overlay" | "max" | "min" | "difference" | "alphaOver" | "premultipliedOver" | "lerp" | "mask";
|
|
282
282
|
|
|
283
283
|
type DitherPulseRingProps = {
|
|
284
284
|
spriteTextureSrc?: string;
|
|
@@ -286,7 +286,7 @@ type DitherPulseRingProps = {
|
|
|
286
286
|
diffuseEnabled?: boolean;
|
|
287
287
|
blurEnabled?: boolean;
|
|
288
288
|
noiseWarpEnabled?: boolean;
|
|
289
|
-
combineMode?:
|
|
289
|
+
combineMode?: CombineShaderMode;
|
|
290
290
|
noiseWarpRadius?: NoiseWarpPassUniforms["radius"];
|
|
291
291
|
noiseWarpStrength?: NoiseWarpPassUniforms["strength"];
|
|
292
292
|
diffuseRadius?: DiffusePassUniforms["diffuseRadius"];
|
|
@@ -308,4 +308,37 @@ type DitherPulseRingProps = {
|
|
|
308
308
|
};
|
|
309
309
|
declare function DitherPulseRing({ spriteTextureSrc, glyphDitherEnabled, diffuseEnabled, blurEnabled, noiseWarpEnabled, combineMode, noiseWarpRadius, noiseWarpStrength, diffuseRadius, blurRadius, borderThickness, borderIntensity, borderColor, borderDitherStrength, borderTonemap, borderAlpha, ringColor, ringSpeed, ringPosition, ringAlpha, width, height, className, style, }: DitherPulseRingProps): react_jsx_runtime.JSX.Element;
|
|
310
310
|
|
|
311
|
-
|
|
311
|
+
type DitherStreamProps = {
|
|
312
|
+
width?: string | number;
|
|
313
|
+
height?: string | number;
|
|
314
|
+
className?: string;
|
|
315
|
+
style?: React.CSSProperties;
|
|
316
|
+
children?: React.ReactNode;
|
|
317
|
+
imageTextureSrc?: string;
|
|
318
|
+
backgroundImageSrc?: string;
|
|
319
|
+
backgroundDithered?: boolean;
|
|
320
|
+
projectionSpeed?: number;
|
|
321
|
+
beamSpeed?: number;
|
|
322
|
+
beamDirection?: "counterclockwise" | "clockwise";
|
|
323
|
+
beamColor?: [number, number, number] | string;
|
|
324
|
+
beamCenter?: [number, number];
|
|
325
|
+
beamRadius?: number;
|
|
326
|
+
beamScale?: number;
|
|
327
|
+
beamPathShape?: "circle" | "square" | "diamond" | "triangle" | "oval" | "custom";
|
|
328
|
+
beamCustomPathPoints?: Array<[number, number]>;
|
|
329
|
+
beamEnabled?: boolean;
|
|
330
|
+
pathPos?: [number, number];
|
|
331
|
+
pathAngle?: number;
|
|
332
|
+
godrayIntensity?: number;
|
|
333
|
+
};
|
|
334
|
+
declare function DitherStream({ width, height, className, style, children, imageTextureSrc, backgroundImageSrc, backgroundDithered, projectionSpeed, beamSpeed, beamDirection, beamColor, beamCenter, beamRadius, beamScale, beamPathShape, beamCustomPathPoints, beamEnabled, pathPos, pathAngle, godrayIntensity, }: DitherStreamProps): react_jsx_runtime.JSX.Element;
|
|
335
|
+
|
|
336
|
+
type DitherStreamPathDrawerProps = {
|
|
337
|
+
enabled: boolean;
|
|
338
|
+
beamColor?: string;
|
|
339
|
+
backgroundImageSrc?: string;
|
|
340
|
+
onCommit: (points: Array<[number, number]>) => void;
|
|
341
|
+
};
|
|
342
|
+
declare function DitherStreamPathDrawer({ enabled, beamColor, backgroundImageSrc, onCommit, }: DitherStreamPathDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
343
|
+
|
|
344
|
+
export { AnimatedDrawingSVG, type CombineShaderMode, DitherPulseRing, DitherStream, DitherStreamPathDrawer, EFECTO_ASCII_COMPONENT_DEFAULTS, EFECTO_ASCII_POST_PROCESSING_DEFAULTS, Efecto, type EfectoAsciiColorPalette, type EfectoAsciiStyle, type PublicPostProcessingSettings as EfectoPublicAsciiPostProcessingSettings, FractalFlower, MenuGlitch, type MenuGlitchUniforms, OranoParticles, type OranoParticlesUniforms, RippleWave, ShaderArt, type ShaderArtUniforms, Snow, WANDY_HAND_DEFAULTS, WandyHand };
|