@toriistudio/shader-ui 0.0.2 → 0.0.4
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 +105 -1
- package/dist/index.d.ts +105 -1
- package/dist/index.js +1595 -5
- package/dist/index.mjs +1600 -4
- package/package.json +6 -2
package/dist/index.d.mts
CHANGED
|
@@ -84,4 +84,108 @@ type MenuGlitchProps = {
|
|
|
84
84
|
};
|
|
85
85
|
declare function MenuGlitch({ settings, onShowDone, onHideDone, className, style, width, height, ...divProps }: MenuGlitchProps): react_jsx_runtime.JSX.Element;
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
type EfectoMediaAdjustments = {
|
|
88
|
+
brightness?: number;
|
|
89
|
+
contrast?: number;
|
|
90
|
+
saturation?: number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
declare const STYLE_MAP: {
|
|
94
|
+
readonly standard: 0;
|
|
95
|
+
readonly dense: 1;
|
|
96
|
+
readonly minimal: 2;
|
|
97
|
+
readonly blocks: 3;
|
|
98
|
+
};
|
|
99
|
+
declare const COLOR_PALETTE_MAP: {
|
|
100
|
+
readonly original: 0;
|
|
101
|
+
readonly green: 1;
|
|
102
|
+
readonly amber: 2;
|
|
103
|
+
readonly cyan: 3;
|
|
104
|
+
readonly blue: 4;
|
|
105
|
+
};
|
|
106
|
+
type PostProcessingSettings = {
|
|
107
|
+
scanlineIntensity: number;
|
|
108
|
+
scanlineCount: number;
|
|
109
|
+
targetFPS: number;
|
|
110
|
+
jitterIntensity: number;
|
|
111
|
+
jitterSpeed: number;
|
|
112
|
+
mouseGlowEnabled: boolean;
|
|
113
|
+
mouseGlowRadius: number;
|
|
114
|
+
mouseGlowIntensity: number;
|
|
115
|
+
vignetteIntensity: number;
|
|
116
|
+
vignetteRadius: number;
|
|
117
|
+
colorPalette: number;
|
|
118
|
+
curvature: number;
|
|
119
|
+
aberrationStrength: number;
|
|
120
|
+
noiseIntensity: number;
|
|
121
|
+
noiseScale: number;
|
|
122
|
+
noiseSpeed: number;
|
|
123
|
+
waveAmplitude: number;
|
|
124
|
+
waveFrequency: number;
|
|
125
|
+
waveSpeed: number;
|
|
126
|
+
glitchIntensity: number;
|
|
127
|
+
glitchFrequency: number;
|
|
128
|
+
brightnessAdjust: number;
|
|
129
|
+
contrastAdjust: number;
|
|
130
|
+
};
|
|
131
|
+
declare const EFECTO_ASCII_COMPONENT_DEFAULTS: {
|
|
132
|
+
readonly cellSize: 8;
|
|
133
|
+
readonly invert: false;
|
|
134
|
+
readonly colorMode: true;
|
|
135
|
+
readonly asciiStyle: "standard";
|
|
136
|
+
};
|
|
137
|
+
declare const EFECTO_ASCII_POST_PROCESSING_DEFAULTS: PostProcessingSettings;
|
|
138
|
+
type EfectoAsciiStyle = keyof typeof STYLE_MAP;
|
|
139
|
+
type EfectoAsciiColorPalette = keyof typeof COLOR_PALETTE_MAP;
|
|
140
|
+
type PublicPostProcessingSettings = Omit<PostProcessingSettings, "colorPalette"> & {
|
|
141
|
+
colorPalette: keyof typeof COLOR_PALETTE_MAP | number;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
type AsciiBaseProps = {
|
|
145
|
+
cellSize: number;
|
|
146
|
+
invert: boolean;
|
|
147
|
+
colorMode: boolean;
|
|
148
|
+
asciiStyle: EfectoAsciiStyle;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type EfectoProps = Omit<ComponentProps<"div">, "ref"> & {
|
|
152
|
+
cellSize?: number;
|
|
153
|
+
invert?: boolean;
|
|
154
|
+
colorMode?: boolean;
|
|
155
|
+
style?: AsciiBaseProps["asciiStyle"];
|
|
156
|
+
/** @deprecated use `style` */
|
|
157
|
+
asciiStyle?: AsciiBaseProps["asciiStyle"];
|
|
158
|
+
postProcessing?: Partial<PublicPostProcessingSettings>;
|
|
159
|
+
src?: string;
|
|
160
|
+
mouseParallax?: boolean;
|
|
161
|
+
parallaxIntensity?: number;
|
|
162
|
+
mediaAdjustments?: EfectoMediaAdjustments;
|
|
163
|
+
};
|
|
164
|
+
declare function Efecto({ postProcessing, src, mouseParallax, parallaxIntensity, mediaAdjustments, cellSize, invert, colorMode, style, asciiStyle, ...wrapperProps }: EfectoProps): react_jsx_runtime.JSX.Element;
|
|
165
|
+
|
|
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
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -84,4 +84,108 @@ type MenuGlitchProps = {
|
|
|
84
84
|
};
|
|
85
85
|
declare function MenuGlitch({ settings, onShowDone, onHideDone, className, style, width, height, ...divProps }: MenuGlitchProps): react_jsx_runtime.JSX.Element;
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
type EfectoMediaAdjustments = {
|
|
88
|
+
brightness?: number;
|
|
89
|
+
contrast?: number;
|
|
90
|
+
saturation?: number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
declare const STYLE_MAP: {
|
|
94
|
+
readonly standard: 0;
|
|
95
|
+
readonly dense: 1;
|
|
96
|
+
readonly minimal: 2;
|
|
97
|
+
readonly blocks: 3;
|
|
98
|
+
};
|
|
99
|
+
declare const COLOR_PALETTE_MAP: {
|
|
100
|
+
readonly original: 0;
|
|
101
|
+
readonly green: 1;
|
|
102
|
+
readonly amber: 2;
|
|
103
|
+
readonly cyan: 3;
|
|
104
|
+
readonly blue: 4;
|
|
105
|
+
};
|
|
106
|
+
type PostProcessingSettings = {
|
|
107
|
+
scanlineIntensity: number;
|
|
108
|
+
scanlineCount: number;
|
|
109
|
+
targetFPS: number;
|
|
110
|
+
jitterIntensity: number;
|
|
111
|
+
jitterSpeed: number;
|
|
112
|
+
mouseGlowEnabled: boolean;
|
|
113
|
+
mouseGlowRadius: number;
|
|
114
|
+
mouseGlowIntensity: number;
|
|
115
|
+
vignetteIntensity: number;
|
|
116
|
+
vignetteRadius: number;
|
|
117
|
+
colorPalette: number;
|
|
118
|
+
curvature: number;
|
|
119
|
+
aberrationStrength: number;
|
|
120
|
+
noiseIntensity: number;
|
|
121
|
+
noiseScale: number;
|
|
122
|
+
noiseSpeed: number;
|
|
123
|
+
waveAmplitude: number;
|
|
124
|
+
waveFrequency: number;
|
|
125
|
+
waveSpeed: number;
|
|
126
|
+
glitchIntensity: number;
|
|
127
|
+
glitchFrequency: number;
|
|
128
|
+
brightnessAdjust: number;
|
|
129
|
+
contrastAdjust: number;
|
|
130
|
+
};
|
|
131
|
+
declare const EFECTO_ASCII_COMPONENT_DEFAULTS: {
|
|
132
|
+
readonly cellSize: 8;
|
|
133
|
+
readonly invert: false;
|
|
134
|
+
readonly colorMode: true;
|
|
135
|
+
readonly asciiStyle: "standard";
|
|
136
|
+
};
|
|
137
|
+
declare const EFECTO_ASCII_POST_PROCESSING_DEFAULTS: PostProcessingSettings;
|
|
138
|
+
type EfectoAsciiStyle = keyof typeof STYLE_MAP;
|
|
139
|
+
type EfectoAsciiColorPalette = keyof typeof COLOR_PALETTE_MAP;
|
|
140
|
+
type PublicPostProcessingSettings = Omit<PostProcessingSettings, "colorPalette"> & {
|
|
141
|
+
colorPalette: keyof typeof COLOR_PALETTE_MAP | number;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
type AsciiBaseProps = {
|
|
145
|
+
cellSize: number;
|
|
146
|
+
invert: boolean;
|
|
147
|
+
colorMode: boolean;
|
|
148
|
+
asciiStyle: EfectoAsciiStyle;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type EfectoProps = Omit<ComponentProps<"div">, "ref"> & {
|
|
152
|
+
cellSize?: number;
|
|
153
|
+
invert?: boolean;
|
|
154
|
+
colorMode?: boolean;
|
|
155
|
+
style?: AsciiBaseProps["asciiStyle"];
|
|
156
|
+
/** @deprecated use `style` */
|
|
157
|
+
asciiStyle?: AsciiBaseProps["asciiStyle"];
|
|
158
|
+
postProcessing?: Partial<PublicPostProcessingSettings>;
|
|
159
|
+
src?: string;
|
|
160
|
+
mouseParallax?: boolean;
|
|
161
|
+
parallaxIntensity?: number;
|
|
162
|
+
mediaAdjustments?: EfectoMediaAdjustments;
|
|
163
|
+
};
|
|
164
|
+
declare function Efecto({ postProcessing, src, mouseParallax, parallaxIntensity, mediaAdjustments, cellSize, invert, colorMode, style, asciiStyle, ...wrapperProps }: EfectoProps): react_jsx_runtime.JSX.Element;
|
|
165
|
+
|
|
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
|
+
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 };
|