@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.cjs
CHANGED
|
@@ -1622,9 +1622,9 @@ var OpenUI = class {
|
|
|
1622
1622
|
this.betStepper = new StepperControl({ id: "bet-stepper", layout: { anchor: "center" }, levels: [0.5, 1, 2, 5, 10, 20], index: 1 }, this.bus);
|
|
1623
1623
|
this.muteButton = new ButtonControl({ id: "mute", layout: { anchor: "top-right", offset: [-122, 46] } }, this.bus);
|
|
1624
1624
|
this.fullscreenButton = new ButtonControl({ id: "fullscreen", layout: { anchor: "top-right", offset: [-46, 46] } }, this.bus);
|
|
1625
|
-
this.rtp = new ReadoutControl({ id: "rtp", kind: "percent", label: "RTP", layout: { anchor: "top-left", offset: [
|
|
1626
|
-
this.sessionTimer = new ReadoutControl({ id: "session-timer", kind: "duration", label: "Session Time", layout: { anchor: "top-left", offset: [
|
|
1627
|
-
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: [
|
|
1625
|
+
this.rtp = new ReadoutControl({ id: "rtp", kind: "percent", label: "RTP", layout: { anchor: "top-left", offset: [20, 18] } });
|
|
1626
|
+
this.sessionTimer = new ReadoutControl({ id: "session-timer", kind: "duration", label: "Session Time", layout: { anchor: "top-left", offset: [20, 46] } });
|
|
1627
|
+
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] } });
|
|
1628
1628
|
this.noticePanel = new PanelControl({ id: "notice-panel", variant: "modal", layout: { anchor: "center" } }, this.bus);
|
|
1629
1629
|
for (const c of [
|
|
1630
1630
|
this.spin,
|
|
@@ -1652,6 +1652,7 @@ var OpenUI = class {
|
|
|
1652
1652
|
this.hidden.add("rtp");
|
|
1653
1653
|
this.hidden.add("net-position");
|
|
1654
1654
|
this.hidden.add("session-timer");
|
|
1655
|
+
this.hidden.add("bonus");
|
|
1655
1656
|
this.bus.on("buttonActivated", ({ id }) => {
|
|
1656
1657
|
if (id === "settings") this.settingsPanel.toggle();
|
|
1657
1658
|
else if (id === "bet-plus") {
|
|
@@ -2052,7 +2053,7 @@ function createUI(spec = {}, hooks = {}) {
|
|
|
2052
2053
|
const c = ui.control(id);
|
|
2053
2054
|
if (!c) continue;
|
|
2054
2055
|
if (ov.layout) c.layout = ov.layout;
|
|
2055
|
-
if (ov.hidden) ui.
|
|
2056
|
+
if (ov.hidden != null) ui.setHidden(id, ov.hidden);
|
|
2056
2057
|
const disable = c.disable;
|
|
2057
2058
|
if (ov.disabled && typeof disable === "function") disable.call(c);
|
|
2058
2059
|
if (c instanceof ValueDisplay) {
|