valtech-components 4.0.380 → 4.0.382
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/organisms/mini-games/chessimals-game.component.mjs +69 -3
- package/esm2022/lib/components/organisms/mini-games/retro-audio.service.mjs +39 -13
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +107 -15
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +10 -0
- package/lib/components/organisms/mini-games/retro-audio.service.d.ts +4 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,14 @@ interface ChessimalsMoveEffectView {
|
|
|
23
23
|
to: ChessimalsPosition;
|
|
24
24
|
capture: boolean;
|
|
25
25
|
}
|
|
26
|
+
interface ChessimalsMoveTrailView {
|
|
27
|
+
x: string;
|
|
28
|
+
y: string;
|
|
29
|
+
length: string;
|
|
30
|
+
angle: string;
|
|
31
|
+
animal?: ChessimalsAnimalType;
|
|
32
|
+
capture: boolean;
|
|
33
|
+
}
|
|
26
34
|
export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
27
35
|
private readonly i18n;
|
|
28
36
|
private readonly audio;
|
|
@@ -60,6 +68,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
60
68
|
readonly isBoardOrienting: import("@angular/core").WritableSignal<boolean>;
|
|
61
69
|
readonly movingPiece: import("@angular/core").WritableSignal<ChessimalsMovingPieceView>;
|
|
62
70
|
readonly moveEffect: import("@angular/core").WritableSignal<ChessimalsMoveEffectView>;
|
|
71
|
+
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
63
72
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
64
73
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
65
74
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
@@ -123,6 +132,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
123
132
|
selectCell(position: ChessimalsPosition): void;
|
|
124
133
|
private animateMove;
|
|
125
134
|
private applyAnimatedMove;
|
|
135
|
+
private playPowerUnlockSound;
|
|
126
136
|
private queueBotTurnIfNeeded;
|
|
127
137
|
private playBotTurn;
|
|
128
138
|
private clearBotTurn;
|
|
@@ -29,6 +29,7 @@ export declare class RetroAudioService {
|
|
|
29
29
|
chessimalsBotMove(): void;
|
|
30
30
|
chessimalsCapture(): void;
|
|
31
31
|
chessimalsPower(power: ChessimalsPower): void;
|
|
32
|
+
chessimalsPowerUnlocked(): void;
|
|
32
33
|
private readEnabled;
|
|
33
34
|
private ensureContext;
|
|
34
35
|
private menuMelody;
|
|
@@ -39,8 +40,11 @@ export declare class RetroAudioService {
|
|
|
39
40
|
private readonly handleVisibilityChange;
|
|
40
41
|
private readonly handlePageHide;
|
|
41
42
|
private readonly handlePageShow;
|
|
43
|
+
private readonly handleUserActivation;
|
|
42
44
|
private pauseForBackground;
|
|
43
45
|
private resumeFromBackground;
|
|
46
|
+
private wakeAudio;
|
|
47
|
+
private resumeContext;
|
|
44
48
|
private fadeMasterTo;
|
|
45
49
|
private isDocumentVisible;
|
|
46
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<RetroAudioService, never>;
|
package/lib/version.d.ts
CHANGED