@open-slot-ui/core 0.3.2 → 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.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -458,6 +458,13 @@ var ValueDisplay = class extends Control {
|
|
|
458
458
|
if (!spec || typeof spec.code !== "string") return;
|
|
459
459
|
this.currency.set({ ...spec, decimals: clampDecimals(spec.decimals) });
|
|
460
460
|
}
|
|
461
|
+
/** Accent emphasis: the renderer tints the value in the theme accent while on.
|
|
462
|
+
* For "this number is modified" moments — e.g. a bet display showing the
|
|
463
|
+
* EFFECTIVE stake while an ante/boost multiplies it. */
|
|
464
|
+
emphasized = new Signal(false);
|
|
465
|
+
setEmphasis(on) {
|
|
466
|
+
this.emphasized.set(on === true);
|
|
467
|
+
}
|
|
461
468
|
/** Integer minor units for the counter (no float drift). */
|
|
462
469
|
get minorUnits() {
|
|
463
470
|
return Math.round(this.value.get() * Math.pow(10, this.currency.get().decimals));
|