@toriistudio/shader-ui 0.0.7 → 0.0.9

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 CHANGED
@@ -278,23 +278,26 @@ type NoiseWarpPassUniforms = {
278
278
  radius: number;
279
279
  };
280
280
 
281
+ type CombineShaderMode = "add" | "screen" | "multiply" | "overlay" | "max" | "min" | "difference" | "alphaOver" | "premultipliedOver" | "lerp" | "mask";
282
+
281
283
  type DitherPulseRingProps = {
282
284
  spriteTextureSrc?: string;
283
285
  glyphDitherEnabled?: boolean;
284
286
  diffuseEnabled?: boolean;
285
287
  blurEnabled?: boolean;
286
288
  noiseWarpEnabled?: boolean;
289
+ combineMode?: CombineShaderMode;
287
290
  noiseWarpRadius?: NoiseWarpPassUniforms["radius"];
288
291
  noiseWarpStrength?: NoiseWarpPassUniforms["strength"];
289
292
  diffuseRadius?: DiffusePassUniforms["diffuseRadius"];
290
293
  blurRadius?: BlurPassUniforms["blurRadius"];
291
294
  borderThickness?: number;
292
295
  borderIntensity?: number;
293
- borderColor?: BorderBeamPassUniforms["color"];
296
+ borderColor?: BorderBeamPassUniforms["color"] | string;
294
297
  borderDitherStrength?: number;
295
298
  borderTonemap?: boolean;
296
299
  borderAlpha?: number;
297
- ringColor?: ExpandingRingPassUniforms["color"];
300
+ ringColor?: ExpandingRingPassUniforms["color"] | string;
298
301
  ringSpeed?: number;
299
302
  ringPosition?: ExpandingRingPassUniforms["position"];
300
303
  ringAlpha?: ExpandingRingPassUniforms["alpha"];
@@ -303,6 +306,26 @@ type DitherPulseRingProps = {
303
306
  className?: string;
304
307
  style?: React.CSSProperties;
305
308
  };
306
- declare function DitherPulseRing({ spriteTextureSrc, glyphDitherEnabled, diffuseEnabled, blurEnabled, noiseWarpEnabled, noiseWarpRadius, noiseWarpStrength, diffuseRadius, blurRadius, borderThickness, borderIntensity, borderColor, borderDitherStrength, borderTonemap, borderAlpha, ringColor, ringSpeed, ringPosition, ringAlpha, width, height, className, style, }: DitherPulseRingProps): react_jsx_runtime.JSX.Element;
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
+
311
+ type DitherStreamProps = {
312
+ width?: string | number;
313
+ height?: string | number;
314
+ className?: string;
315
+ style?: React.CSSProperties;
316
+ imageTextureSrc?: string;
317
+ projectionSpeed?: number;
318
+ beamSpeed?: number;
319
+ beamDirection?: "counterclockwise" | "clockwise";
320
+ beamColor?: [number, number, number] | string;
321
+ beamCenter?: [number, number];
322
+ beamRadius?: number;
323
+ beamScale?: number;
324
+ beamPathShape?: "circle" | "square" | "diamond" | "triangle" | "oval";
325
+ pathPos?: [number, number];
326
+ pathAngle?: number;
327
+ godrayIntensity?: number;
328
+ };
329
+ declare function DitherStream({ width, height, className, style, imageTextureSrc, projectionSpeed, beamSpeed, beamDirection, beamColor, beamCenter, beamRadius, beamScale, beamPathShape, pathPos, pathAngle, godrayIntensity, }: DitherStreamProps): react_jsx_runtime.JSX.Element;
307
330
 
308
- export { AnimatedDrawingSVG, DitherPulseRing, 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 };
331
+ export { AnimatedDrawingSVG, type CombineShaderMode, DitherPulseRing, DitherStream, 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,23 +278,26 @@ type NoiseWarpPassUniforms = {
278
278
  radius: number;
279
279
  };
280
280
 
281
+ type CombineShaderMode = "add" | "screen" | "multiply" | "overlay" | "max" | "min" | "difference" | "alphaOver" | "premultipliedOver" | "lerp" | "mask";
282
+
281
283
  type DitherPulseRingProps = {
282
284
  spriteTextureSrc?: string;
283
285
  glyphDitherEnabled?: boolean;
284
286
  diffuseEnabled?: boolean;
285
287
  blurEnabled?: boolean;
286
288
  noiseWarpEnabled?: boolean;
289
+ combineMode?: CombineShaderMode;
287
290
  noiseWarpRadius?: NoiseWarpPassUniforms["radius"];
288
291
  noiseWarpStrength?: NoiseWarpPassUniforms["strength"];
289
292
  diffuseRadius?: DiffusePassUniforms["diffuseRadius"];
290
293
  blurRadius?: BlurPassUniforms["blurRadius"];
291
294
  borderThickness?: number;
292
295
  borderIntensity?: number;
293
- borderColor?: BorderBeamPassUniforms["color"];
296
+ borderColor?: BorderBeamPassUniforms["color"] | string;
294
297
  borderDitherStrength?: number;
295
298
  borderTonemap?: boolean;
296
299
  borderAlpha?: number;
297
- ringColor?: ExpandingRingPassUniforms["color"];
300
+ ringColor?: ExpandingRingPassUniforms["color"] | string;
298
301
  ringSpeed?: number;
299
302
  ringPosition?: ExpandingRingPassUniforms["position"];
300
303
  ringAlpha?: ExpandingRingPassUniforms["alpha"];
@@ -303,6 +306,26 @@ type DitherPulseRingProps = {
303
306
  className?: string;
304
307
  style?: React.CSSProperties;
305
308
  };
306
- declare function DitherPulseRing({ spriteTextureSrc, glyphDitherEnabled, diffuseEnabled, blurEnabled, noiseWarpEnabled, noiseWarpRadius, noiseWarpStrength, diffuseRadius, blurRadius, borderThickness, borderIntensity, borderColor, borderDitherStrength, borderTonemap, borderAlpha, ringColor, ringSpeed, ringPosition, ringAlpha, width, height, className, style, }: DitherPulseRingProps): react_jsx_runtime.JSX.Element;
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
+
311
+ type DitherStreamProps = {
312
+ width?: string | number;
313
+ height?: string | number;
314
+ className?: string;
315
+ style?: React.CSSProperties;
316
+ imageTextureSrc?: string;
317
+ projectionSpeed?: number;
318
+ beamSpeed?: number;
319
+ beamDirection?: "counterclockwise" | "clockwise";
320
+ beamColor?: [number, number, number] | string;
321
+ beamCenter?: [number, number];
322
+ beamRadius?: number;
323
+ beamScale?: number;
324
+ beamPathShape?: "circle" | "square" | "diamond" | "triangle" | "oval";
325
+ pathPos?: [number, number];
326
+ pathAngle?: number;
327
+ godrayIntensity?: number;
328
+ };
329
+ declare function DitherStream({ width, height, className, style, imageTextureSrc, projectionSpeed, beamSpeed, beamDirection, beamColor, beamCenter, beamRadius, beamScale, beamPathShape, pathPos, pathAngle, godrayIntensity, }: DitherStreamProps): react_jsx_runtime.JSX.Element;
307
330
 
308
- export { AnimatedDrawingSVG, DitherPulseRing, 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 };
331
+ export { AnimatedDrawingSVG, type CombineShaderMode, DitherPulseRing, DitherStream, 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 };