@open-slot-ui/pixi 0.8.3 → 0.10.0
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/art.js +1 -1
- package/dist/{chunk-PYXZIGXG.js → chunk-Z7X5JH7H.js} +7 -4
- package/dist/chunk-Z7X5JH7H.js.map +1 -0
- package/dist/index.cjs +85 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +84 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-PYXZIGXG.js.map +0 -1
package/dist/art.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Container, Graphics, Text, Circle, Sprite, Rectangle, Ticker, BlurFilter, Texture } from 'pixi.js';
|
|
2
|
-
import { resolvePlacement, displayDigits, valueFitMaxWidth,
|
|
2
|
+
import { resolvePlacement, displayDigits, valueFitMaxWidth, formatAmountPrecise, EventLog, composeMenu, buildBlocks, buttonBlocks } from '@open-slot-ui/core';
|
|
3
3
|
|
|
4
4
|
// src/views/ControlView.ts
|
|
5
5
|
var ControlView = class extends Container {
|
|
@@ -204,6 +204,9 @@ var SpinView = class extends ControlView {
|
|
|
204
204
|
}),
|
|
205
205
|
// re-dim if slam-stop is toggled at runtime (e.g. applyJurisdiction)
|
|
206
206
|
this.spin.allowSlamStop.subscribe(() => this.updateInteractive()),
|
|
207
|
+
// the ref-counted HUD lock (menu / buy modal / blocking notice) gates
|
|
208
|
+
// `spin.interactable` — refresh eventMode/cursor when it flips
|
|
209
|
+
this.ui.locked.subscribe(() => this.updateInteractive()),
|
|
207
210
|
this.spin.onTransition((t) => this.play(t)),
|
|
208
211
|
// free-spins face: switch between the normal skin and the "N FS" counter
|
|
209
212
|
this.spin.freeSpins.subscribe(() => this.updateFaces()),
|
|
@@ -3096,7 +3099,7 @@ var ReadoutView = class extends ControlView {
|
|
|
3096
3099
|
let text;
|
|
3097
3100
|
switch (this.ro.kind) {
|
|
3098
3101
|
case "currency":
|
|
3099
|
-
text = this.ro.currency ?
|
|
3102
|
+
text = this.ro.currency ? formatAmountPrecise(v, this.ro.currency.get(), { signed: this.ro.signed }) : String(v);
|
|
3100
3103
|
break;
|
|
3101
3104
|
case "percent":
|
|
3102
3105
|
text = `${v.toFixed(this.ro.decimals)}%`;
|
|
@@ -3729,5 +3732,5 @@ function svgSpinSkin(textures) {
|
|
|
3729
3732
|
}
|
|
3730
3733
|
|
|
3731
3734
|
export { AutoplayDrawerView, AutoplayView, ButtonView, ControlView, DialogView, MenuView, OpenUIPixi, ReadoutView, SelectView, SliderView, SpinView, StepperView, TextCellRenderer, ToggleView, TurboView, Tweener, ValueDisplayView, buildBlockColumn, defaultSpinSkin, drawSpin, isDesktop, svgSpinSkin };
|
|
3732
|
-
//# sourceMappingURL=chunk-
|
|
3733
|
-
//# sourceMappingURL=chunk-
|
|
3735
|
+
//# sourceMappingURL=chunk-Z7X5JH7H.js.map
|
|
3736
|
+
//# sourceMappingURL=chunk-Z7X5JH7H.js.map
|