@toriistudio/shader-ui 0.0.3 → 0.0.5
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 +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +1364 -2
- package/dist/index.mjs +1359 -1
- package/package.json +6 -1
package/dist/index.d.mts
CHANGED
|
@@ -163,4 +163,65 @@ type EfectoProps = Omit<ComponentProps<"div">, "ref"> & {
|
|
|
163
163
|
};
|
|
164
164
|
declare function Efecto({ postProcessing, src, mouseParallax, parallaxIntensity, mediaAdjustments, cellSize, invert, colorMode, style, asciiStyle, ...wrapperProps }: EfectoProps): react_jsx_runtime.JSX.Element;
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
type SnowUniforms = {
|
|
167
|
+
color: string;
|
|
168
|
+
fallSpeed: number;
|
|
169
|
+
windStrength: number;
|
|
170
|
+
turbulence: number;
|
|
171
|
+
flakeSize: number;
|
|
172
|
+
twinkleStrength: number;
|
|
173
|
+
flakeCount: number;
|
|
174
|
+
};
|
|
175
|
+
type SnowProps = SnowUniforms & Omit<ComponentProps<"div">, keyof SnowUniforms | "ref" | "width" | "height"> & {
|
|
176
|
+
width?: string | number;
|
|
177
|
+
height?: string | number;
|
|
178
|
+
mouseWindInteraction?: boolean;
|
|
179
|
+
};
|
|
180
|
+
declare function Snow({ className, style, width, height, color, fallSpeed, windStrength, turbulence, flakeSize, twinkleStrength, flakeCount, mouseWindInteraction, ...divProps }: SnowProps): react_jsx_runtime.JSX.Element;
|
|
181
|
+
|
|
182
|
+
type AnimatedDrawingSVGProps = {
|
|
183
|
+
svgMarkup: string;
|
|
184
|
+
animated?: boolean;
|
|
185
|
+
size?: number | string;
|
|
186
|
+
onAnimated?: () => void;
|
|
187
|
+
delay?: number;
|
|
188
|
+
} & Omit<ComponentProps<"div">, "children">;
|
|
189
|
+
declare function AnimatedDrawingSVG({ svgMarkup, animated, size, onAnimated, delay, className, style, ...divProps }: AnimatedDrawingSVGProps): react_jsx_runtime.JSX.Element;
|
|
190
|
+
|
|
191
|
+
type WandyHandProps = {
|
|
192
|
+
text: string;
|
|
193
|
+
fontUrl?: string;
|
|
194
|
+
fontSize?: number;
|
|
195
|
+
durationMs?: number;
|
|
196
|
+
strokeWidth?: number;
|
|
197
|
+
penOpacity?: number;
|
|
198
|
+
strokeColor?: string;
|
|
199
|
+
lineCap?: string;
|
|
200
|
+
lineJoin?: string;
|
|
201
|
+
samplesPerCurve?: number;
|
|
202
|
+
strokeMode?: string;
|
|
203
|
+
canvasPadding?: number;
|
|
204
|
+
backgroundColor?: string;
|
|
205
|
+
imperfectionsEnabled?: boolean;
|
|
206
|
+
size?: number | string;
|
|
207
|
+
animate?: boolean;
|
|
208
|
+
onDrawn?: () => void;
|
|
209
|
+
};
|
|
210
|
+
declare const WANDY_HAND_DEFAULTS: {
|
|
211
|
+
readonly fontSize: 160;
|
|
212
|
+
readonly durationMs: 2200;
|
|
213
|
+
readonly strokeWidth: 3.2;
|
|
214
|
+
readonly penOpacity: 1;
|
|
215
|
+
readonly strokeColor: "#fff";
|
|
216
|
+
readonly lineCap: "round";
|
|
217
|
+
readonly lineJoin: "round";
|
|
218
|
+
readonly samplesPerCurve: 5;
|
|
219
|
+
readonly strokeMode: "outline";
|
|
220
|
+
readonly canvasPadding: 8;
|
|
221
|
+
readonly backgroundColor: "transparent";
|
|
222
|
+
readonly imperfectionsEnabled: false;
|
|
223
|
+
readonly animate: true;
|
|
224
|
+
};
|
|
225
|
+
declare function WandyHand({ text, fontUrl, fontSize, durationMs, strokeWidth, penOpacity, strokeColor, lineCap, lineJoin, samplesPerCurve, strokeMode, canvasPadding, backgroundColor, imperfectionsEnabled, size, animate, onDrawn, }: WandyHandProps): react_jsx_runtime.JSX.Element;
|
|
226
|
+
|
|
227
|
+
export { AnimatedDrawingSVG, 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, ShaderArt, type ShaderArtUniforms, Snow, WANDY_HAND_DEFAULTS, WandyHand };
|
package/dist/index.d.ts
CHANGED
|
@@ -163,4 +163,65 @@ type EfectoProps = Omit<ComponentProps<"div">, "ref"> & {
|
|
|
163
163
|
};
|
|
164
164
|
declare function Efecto({ postProcessing, src, mouseParallax, parallaxIntensity, mediaAdjustments, cellSize, invert, colorMode, style, asciiStyle, ...wrapperProps }: EfectoProps): react_jsx_runtime.JSX.Element;
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
type SnowUniforms = {
|
|
167
|
+
color: string;
|
|
168
|
+
fallSpeed: number;
|
|
169
|
+
windStrength: number;
|
|
170
|
+
turbulence: number;
|
|
171
|
+
flakeSize: number;
|
|
172
|
+
twinkleStrength: number;
|
|
173
|
+
flakeCount: number;
|
|
174
|
+
};
|
|
175
|
+
type SnowProps = SnowUniforms & Omit<ComponentProps<"div">, keyof SnowUniforms | "ref" | "width" | "height"> & {
|
|
176
|
+
width?: string | number;
|
|
177
|
+
height?: string | number;
|
|
178
|
+
mouseWindInteraction?: boolean;
|
|
179
|
+
};
|
|
180
|
+
declare function Snow({ className, style, width, height, color, fallSpeed, windStrength, turbulence, flakeSize, twinkleStrength, flakeCount, mouseWindInteraction, ...divProps }: SnowProps): react_jsx_runtime.JSX.Element;
|
|
181
|
+
|
|
182
|
+
type AnimatedDrawingSVGProps = {
|
|
183
|
+
svgMarkup: string;
|
|
184
|
+
animated?: boolean;
|
|
185
|
+
size?: number | string;
|
|
186
|
+
onAnimated?: () => void;
|
|
187
|
+
delay?: number;
|
|
188
|
+
} & Omit<ComponentProps<"div">, "children">;
|
|
189
|
+
declare function AnimatedDrawingSVG({ svgMarkup, animated, size, onAnimated, delay, className, style, ...divProps }: AnimatedDrawingSVGProps): react_jsx_runtime.JSX.Element;
|
|
190
|
+
|
|
191
|
+
type WandyHandProps = {
|
|
192
|
+
text: string;
|
|
193
|
+
fontUrl?: string;
|
|
194
|
+
fontSize?: number;
|
|
195
|
+
durationMs?: number;
|
|
196
|
+
strokeWidth?: number;
|
|
197
|
+
penOpacity?: number;
|
|
198
|
+
strokeColor?: string;
|
|
199
|
+
lineCap?: string;
|
|
200
|
+
lineJoin?: string;
|
|
201
|
+
samplesPerCurve?: number;
|
|
202
|
+
strokeMode?: string;
|
|
203
|
+
canvasPadding?: number;
|
|
204
|
+
backgroundColor?: string;
|
|
205
|
+
imperfectionsEnabled?: boolean;
|
|
206
|
+
size?: number | string;
|
|
207
|
+
animate?: boolean;
|
|
208
|
+
onDrawn?: () => void;
|
|
209
|
+
};
|
|
210
|
+
declare const WANDY_HAND_DEFAULTS: {
|
|
211
|
+
readonly fontSize: 160;
|
|
212
|
+
readonly durationMs: 2200;
|
|
213
|
+
readonly strokeWidth: 3.2;
|
|
214
|
+
readonly penOpacity: 1;
|
|
215
|
+
readonly strokeColor: "#fff";
|
|
216
|
+
readonly lineCap: "round";
|
|
217
|
+
readonly lineJoin: "round";
|
|
218
|
+
readonly samplesPerCurve: 5;
|
|
219
|
+
readonly strokeMode: "outline";
|
|
220
|
+
readonly canvasPadding: 8;
|
|
221
|
+
readonly backgroundColor: "transparent";
|
|
222
|
+
readonly imperfectionsEnabled: false;
|
|
223
|
+
readonly animate: true;
|
|
224
|
+
};
|
|
225
|
+
declare function WandyHand({ text, fontUrl, fontSize, durationMs, strokeWidth, penOpacity, strokeColor, lineCap, lineJoin, samplesPerCurve, strokeMode, canvasPadding, backgroundColor, imperfectionsEnabled, size, animate, onDrawn, }: WandyHandProps): react_jsx_runtime.JSX.Element;
|
|
226
|
+
|
|
227
|
+
export { AnimatedDrawingSVG, 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, ShaderArt, type ShaderArtUniforms, Snow, WANDY_HAND_DEFAULTS, WandyHand };
|