@open-slot-ui/pixi 0.8.3 → 0.9.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 CHANGED
@@ -1,4 +1,4 @@
1
- import { svgSpinSkin } from './chunk-PYXZIGXG.js';
1
+ import { svgSpinSkin } from './chunk-Z7X5JH7H.js';
2
2
  import { CanvasSource, Texture, Rectangle } from 'pixi.js';
3
3
 
4
4
  async function svgToTexture(svg, resolution = 3) {
@@ -1,5 +1,5 @@
1
1
  import { Container, Graphics, Text, Circle, Sprite, Rectangle, Ticker, BlurFilter, Texture } from 'pixi.js';
2
- import { resolvePlacement, displayDigits, valueFitMaxWidth, formatAmount, EventLog, composeMenu, buildBlocks, buttonBlocks } from '@open-slot-ui/core';
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 ? formatAmount(v, this.ro.currency.get(), { signed: this.ro.signed }) : String(v);
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-PYXZIGXG.js.map
3733
- //# sourceMappingURL=chunk-PYXZIGXG.js.map
3735
+ //# sourceMappingURL=chunk-Z7X5JH7H.js.map
3736
+ //# sourceMappingURL=chunk-Z7X5JH7H.js.map