@open-slot-ui/pixi 0.3.1 → 0.4.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/index.js CHANGED
@@ -1198,6 +1198,11 @@ var ValueDisplayView = class extends ControlView {
1198
1198
  // re-translate the caption on language switch (guard a post-dispose emit)
1199
1199
  this.ui.locale.subscribe(() => {
1200
1200
  if (!this.destroyed) this.rebuild();
1201
+ }),
1202
+ // accent emphasis (e.g. a bet display showing the boosted effective stake):
1203
+ // rebuild the odometer with the accent fill at the same width
1204
+ this.vd.emphasized.subscribe(() => {
1205
+ if (!this.destroyed && this.counter) this.buildCounter(this.counter.digits, this.vd.minorUnits);
1201
1206
  })
1202
1207
  );
1203
1208
  }
@@ -1246,7 +1251,9 @@ var ValueDisplayView = class extends ControlView {
1246
1251
  style: {
1247
1252
  fontFamily: theme.type.family,
1248
1253
  fontSize: FONT_SIZE,
1249
- fill: 16777215,
1254
+ // Emphasis (ValueDisplay.setEmphasis) renders the value in the theme
1255
+ // accent — "this number is modified" (boosted effective stake, etc.).
1256
+ fill: this.vd.emphasized.get() ? theme.color.accent : 16777215,
1250
1257
  fontWeight: "900",
1251
1258
  stroke: { color: 0, width: 8, join: "round" },
1252
1259
  dropShadow: { color: 0, alpha: 0.25, blur: 2, distance: 4, angle: Math.PI / 2 }