@betorigami/game-ui-wheel 1.1.4 → 1.1.6
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/README.md +1 -1
- package/dist/WheelAnimator/WheelAnimator.d.ts +4 -2
- package/dist/WheelContentBottom/WheelContentBottom.d.ts +5 -3
- package/dist/WheelControls/WheelAuto.d.ts +0 -1
- package/dist/WheelControls/WheelManual.d.ts +2 -2
- package/dist/WheelControls/WheelSelectors.d.ts +2 -2
- package/dist/WheelGame.d.ts +2 -0
- package/dist/WheelLayout/WheelLayout.d.ts +0 -1
- package/dist/WheelSvg/WheelSvg.d.ts +1 -2
- package/dist/index.mjs +408 -443
- package/dist/standalone.mjs +9323 -9443
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ A page loads either this or the `games` bundle, never both. The verifier's base
|
|
|
24
24
|
|
|
25
25
|
## Dependencies
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
`lit`, `@lit/context` and `big.js` are peer dependencies: exactly one copy of each may exist on a page, and the host supplies it. `@betorigami/game-ui-shared` is an ordinary dependency, linked through the workspace and published as the exact kit version this package was released with; every kit release also releases this package and `games` on that same version, so a page still holds one kit. `@betorigami/game-wheel` and `@betorigami/game-engine` are ordinary dependencies, pinned to the same versions the server runs so the multipliers and probabilities the UI discloses are the ones the engine pays; a host must pin the same engine versions.
|
|
28
28
|
|
|
29
29
|
## Theming
|
|
30
30
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { OrigamiElement
|
|
1
|
+
import { OrigamiElement } from '@betorigami/game-ui-shared';
|
|
2
2
|
import { WheelRiskLevel, WheelSegments } from '../wheel.constants';
|
|
3
3
|
export declare class WheelAnimator extends OrigamiElement {
|
|
4
|
+
private readonly services;
|
|
5
|
+
private readonly skin;
|
|
6
|
+
private readonly preferences;
|
|
4
7
|
static styles: import('lit').CSSResult[];
|
|
5
8
|
isPlaying: boolean;
|
|
6
9
|
staticDisplay: boolean;
|
|
@@ -10,7 +13,6 @@ export declare class WheelAnimator extends OrigamiElement {
|
|
|
10
13
|
targetAngle: number | null;
|
|
11
14
|
resultSegment: number | null;
|
|
12
15
|
hoveredSegments: number[];
|
|
13
|
-
gameData?: gameContextType;
|
|
14
16
|
private _angle;
|
|
15
17
|
private _rafId;
|
|
16
18
|
private _decelerationOffsets;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { OrigamiElement
|
|
1
|
+
import { OrigamiElement } from '@betorigami/game-ui-shared';
|
|
2
2
|
import { WheelRiskLevel, WheelSegments } from '@betorigami/game-wheel';
|
|
3
3
|
export declare class WheelContentBottom extends OrigamiElement {
|
|
4
|
+
private readonly locale;
|
|
5
|
+
private readonly limits;
|
|
6
|
+
private readonly layout;
|
|
7
|
+
private readonly wallet;
|
|
4
8
|
static styles: import('lit').CSSResult[];
|
|
5
|
-
isDesktop: boolean;
|
|
6
9
|
risk: WheelRiskLevel;
|
|
7
10
|
segments: WheelSegments;
|
|
8
11
|
resultSegment: number | null;
|
|
9
12
|
private hoveredTileIndex;
|
|
10
|
-
gameData?: gameContextType;
|
|
11
13
|
private get edge();
|
|
12
14
|
private get selection();
|
|
13
15
|
private get segmentMultipliers();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { default as Big } from 'big.js';
|
|
2
|
-
import { OrigamiElement
|
|
2
|
+
import { OrigamiElement } from '@betorigami/game-ui-shared';
|
|
3
3
|
import { WheelRiskLevel, WheelSegments } from '@betorigami/game-wheel';
|
|
4
4
|
export declare class WheelManual extends OrigamiElement {
|
|
5
|
+
private readonly locale;
|
|
5
6
|
isPlaying: boolean;
|
|
6
7
|
betDisabled: boolean;
|
|
7
8
|
inputsDisabled: boolean;
|
|
8
9
|
risk: WheelRiskLevel;
|
|
9
10
|
segments: WheelSegments;
|
|
10
11
|
betMaxMultiplier: Big;
|
|
11
|
-
gameData: gameContextType;
|
|
12
12
|
private isBetAmountValid;
|
|
13
13
|
private _betAboveBalance;
|
|
14
14
|
static styles: import('lit').CSSResult[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OrigamiElement
|
|
1
|
+
import { OrigamiElement } from '@betorigami/game-ui-shared';
|
|
2
2
|
import { WheelRiskLevel, WheelSegments } from '@betorigami/game-wheel';
|
|
3
3
|
export declare class WheelSelectors extends OrigamiElement {
|
|
4
|
+
private readonly locale;
|
|
4
5
|
static styles: import('lit').CSSResult[];
|
|
5
6
|
risk: WheelRiskLevel;
|
|
6
7
|
segments: WheelSegments;
|
|
7
8
|
disabled: boolean;
|
|
8
|
-
gameData?: gameContextType;
|
|
9
9
|
private handleRiskChange;
|
|
10
10
|
private handleSegmentsChange;
|
|
11
11
|
render(): import('lit').TemplateResult<1>;
|
package/dist/WheelGame.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { AutobetSettingsWithId, GameBetResult, GameComponent } from '@betorigami
|
|
|
2
2
|
import { WheelApi } from './wheel.api';
|
|
3
3
|
import { MockWheelApi } from './wheel.mock.api';
|
|
4
4
|
export declare class WheelGame extends GameComponent {
|
|
5
|
+
private readonly limits;
|
|
6
|
+
private readonly layout;
|
|
5
7
|
static styles: import('lit').CSSResult[];
|
|
6
8
|
private isManualPlaying;
|
|
7
9
|
private history;
|
|
@@ -2,7 +2,6 @@ import { OrigamiElement } from '@betorigami/game-ui-shared';
|
|
|
2
2
|
import { WheelRiskLevel, WheelSegments } from '../wheel.constants';
|
|
3
3
|
export declare class WheelLayout extends OrigamiElement {
|
|
4
4
|
static styles: import('lit').CSSResult[];
|
|
5
|
-
isDesktop: boolean;
|
|
6
5
|
isPlaying: boolean;
|
|
7
6
|
history: Array<{
|
|
8
7
|
multiplier: number;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { OrigamiElement
|
|
1
|
+
import { OrigamiElement } from '@betorigami/game-ui-shared';
|
|
2
2
|
import { WheelRiskLevel, WheelSegments } from '@betorigami/game-wheel';
|
|
3
3
|
export declare class WheelSvg extends OrigamiElement {
|
|
4
4
|
static styles: import('lit').CSSResult[];
|
|
5
5
|
risk: WheelRiskLevel;
|
|
6
6
|
segments: WheelSegments;
|
|
7
7
|
highlightedSegments: number[];
|
|
8
|
-
gameData?: gameContextType;
|
|
9
8
|
private generateWheelPaths;
|
|
10
9
|
render(): import('lit').TemplateResult<2>;
|
|
11
10
|
}
|