@open-slot-ui/core 0.2.2 → 0.2.4
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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1620,9 +1620,9 @@ var OpenUI = class {
|
|
|
1620
1620
|
this.betStepper = new StepperControl({ id: "bet-stepper", layout: { anchor: "center" }, levels: [0.5, 1, 2, 5, 10, 20], index: 1 }, this.bus);
|
|
1621
1621
|
this.muteButton = new ButtonControl({ id: "mute", layout: { anchor: "top-right", offset: [-122, 46] } }, this.bus);
|
|
1622
1622
|
this.fullscreenButton = new ButtonControl({ id: "fullscreen", layout: { anchor: "top-right", offset: [-46, 46] } }, this.bus);
|
|
1623
|
-
this.rtp = new ReadoutControl({ id: "rtp", kind: "percent", label: "RTP", layout: { anchor: "top-left", offset: [
|
|
1624
|
-
this.sessionTimer = new ReadoutControl({ id: "session-timer", kind: "duration", label: "Session Time", layout: { anchor: "top-left", offset: [
|
|
1625
|
-
this.netPosition = new ReadoutControl({ id: "net-position", kind: "currency", label: "Net", currency: { code: "USD", symbol: "$", display: "symbol", position: "prefix", decimals: 2 }, layout: { anchor: "top-left", offset: [
|
|
1623
|
+
this.rtp = new ReadoutControl({ id: "rtp", kind: "percent", label: "RTP", layout: { anchor: "top-left", offset: [20, 18] } });
|
|
1624
|
+
this.sessionTimer = new ReadoutControl({ id: "session-timer", kind: "duration", label: "Session Time", layout: { anchor: "top-left", offset: [20, 46] } });
|
|
1625
|
+
this.netPosition = new ReadoutControl({ id: "net-position", kind: "currency", label: "Net", currency: { code: "USD", symbol: "$", display: "symbol", position: "prefix", decimals: 2 }, layout: { anchor: "top-left", offset: [20, 74] } });
|
|
1626
1626
|
this.noticePanel = new PanelControl({ id: "notice-panel", variant: "modal", layout: { anchor: "center" } }, this.bus);
|
|
1627
1627
|
for (const c of [
|
|
1628
1628
|
this.spin,
|
|
@@ -1650,6 +1650,7 @@ var OpenUI = class {
|
|
|
1650
1650
|
this.hidden.add("rtp");
|
|
1651
1651
|
this.hidden.add("net-position");
|
|
1652
1652
|
this.hidden.add("session-timer");
|
|
1653
|
+
this.hidden.add("bonus");
|
|
1653
1654
|
this.bus.on("buttonActivated", ({ id }) => {
|
|
1654
1655
|
if (id === "settings") this.settingsPanel.toggle();
|
|
1655
1656
|
else if (id === "bet-plus") {
|
|
@@ -2050,7 +2051,7 @@ function createUI(spec = {}, hooks = {}) {
|
|
|
2050
2051
|
const c = ui.control(id);
|
|
2051
2052
|
if (!c) continue;
|
|
2052
2053
|
if (ov.layout) c.layout = ov.layout;
|
|
2053
|
-
if (ov.hidden) ui.
|
|
2054
|
+
if (ov.hidden != null) ui.setHidden(id, ov.hidden);
|
|
2054
2055
|
const disable = c.disable;
|
|
2055
2056
|
if (ov.disabled && typeof disable === "function") disable.call(c);
|
|
2056
2057
|
if (c instanceof ValueDisplay) {
|