valtech-components 2.0.775 → 2.0.777
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/esm2022/lib/components/atoms/pattern/pattern.component.mjs +22 -12
- package/esm2022/lib/components/atoms/pattern/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +22 -12
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/pattern/pattern.component.d.ts +3 -3
- package/lib/components/atoms/pattern/types.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -39,9 +39,9 @@ export declare class PatternComponent implements OnDestroy {
|
|
|
39
39
|
private readonly chevronDensity;
|
|
40
40
|
private readonly preserveAspect;
|
|
41
41
|
private readonly animated;
|
|
42
|
-
/** ms entre
|
|
42
|
+
/** ms entre reshuffles (modo animated). Default 8000ms — "de vez en cuando". */
|
|
43
43
|
private readonly reshuffleInterval;
|
|
44
|
-
/**
|
|
44
|
+
/** Tiles a cambiar por tick. 0 → reseed grid completo (default). >0 → staggered. */
|
|
45
45
|
private readonly tilesPerTick;
|
|
46
46
|
private timer?;
|
|
47
47
|
/** Object-first input. Cambios disparan re-render por signals. */
|
|
@@ -57,7 +57,7 @@ export declare class PatternComponent implements OnDestroy {
|
|
|
57
57
|
constructor();
|
|
58
58
|
/**
|
|
59
59
|
* Reemplaza `count` tiles random del grid actual con tiles nuevos generados.
|
|
60
|
-
* Usado
|
|
60
|
+
* Usado para staggered reshuffle (opt-in via `tilesPerTick > 0`).
|
|
61
61
|
*/
|
|
62
62
|
private mutateRandomTiles;
|
|
63
63
|
ngOnDestroy(): void;
|
|
@@ -7,12 +7,12 @@ import { PatternPaletteKey } from './motifs';
|
|
|
7
7
|
* <val-pattern [props]="{ palette: 'purple', cols: 12, rows: 4, seed: 42 }" />
|
|
8
8
|
* ```
|
|
9
9
|
*
|
|
10
|
-
* @example Animated
|
|
10
|
+
* @example Animated whole-grid reshuffle (cada 8s — default):
|
|
11
11
|
* ```html
|
|
12
12
|
* <val-pattern [props]="{ palette: 'ink', cols: 16, rows: 8, animated: true }" />
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
|
-
* @example Animated
|
|
15
|
+
* @example Animated staggered (2 tiles cada 800ms — sutil):
|
|
16
16
|
* ```html
|
|
17
17
|
* <val-pattern [props]="{ animated: true, reshuffleInterval: 800, tilesPerTick: 2 }" />
|
|
18
18
|
* ```
|
package/lib/version.d.ts
CHANGED