@novely/solid-renderer 0.10.2 → 0.10.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/components/Icon.d.ts +2 -0
- package/dist/index.jsx +94 -74
- package/dist/styles/index.css +14 -1
- package/package.json +1 -1
package/dist/index.jsx
CHANGED
|
@@ -1827,9 +1827,7 @@ var ControlPanelButtons = (props) => {
|
|
|
1827
1827
|
insert(_el$2, () => data.t("GoBack"));
|
|
1828
1828
|
insert(_el$, createComponent(Icon, {
|
|
1829
1829
|
"class": "control-panel__button__icon",
|
|
1830
|
-
|
|
1831
|
-
return Icon.Back();
|
|
1832
|
-
}
|
|
1830
|
+
children: Icon.Back()
|
|
1833
1831
|
}), null);
|
|
1834
1832
|
createRenderEffect(() => setAttribute(_el$, "title", data.t("GoBack")));
|
|
1835
1833
|
return _el$;
|
|
@@ -1841,9 +1839,7 @@ var ControlPanelButtons = (props) => {
|
|
|
1841
1839
|
insert(_el$4, () => data.t("DoSave"));
|
|
1842
1840
|
insert(_el$3, createComponent(Icon, {
|
|
1843
1841
|
"class": "control-panel__button__icon",
|
|
1844
|
-
|
|
1845
|
-
return Icon.Save();
|
|
1846
|
-
}
|
|
1842
|
+
children: Icon.Save()
|
|
1847
1843
|
}), null);
|
|
1848
1844
|
createRenderEffect(() => setAttribute(_el$3, "title", data.t("DoSave")));
|
|
1849
1845
|
return _el$3;
|
|
@@ -1870,9 +1866,7 @@ var ControlPanelButtons = (props) => {
|
|
|
1870
1866
|
insert(_el$8, () => data.t("Settings"));
|
|
1871
1867
|
insert(_el$7, createComponent(Icon, {
|
|
1872
1868
|
"class": "control-panel__button__icon",
|
|
1873
|
-
|
|
1874
|
-
return Icon.Settings();
|
|
1875
|
-
}
|
|
1869
|
+
children: Icon.Settings()
|
|
1876
1870
|
}), null);
|
|
1877
1871
|
createRenderEffect(() => setAttribute(_el$7, "title", data.t("Settings")));
|
|
1878
1872
|
return _el$7;
|
|
@@ -1884,9 +1878,7 @@ var ControlPanelButtons = (props) => {
|
|
|
1884
1878
|
insert(_el$10, () => data.t("Exit"));
|
|
1885
1879
|
insert(_el$9, createComponent(Icon, {
|
|
1886
1880
|
"class": "control-panel__button__icon",
|
|
1887
|
-
|
|
1888
|
-
return Icon.Exit();
|
|
1889
|
-
}
|
|
1881
|
+
children: Icon.Exit()
|
|
1890
1882
|
}), null);
|
|
1891
1883
|
createRenderEffect(() => setAttribute(_el$9, "title", data.t("Exit")));
|
|
1892
1884
|
return _el$9;
|
|
@@ -1900,9 +1892,7 @@ var ControlPanelButtons = (props) => {
|
|
|
1900
1892
|
props.closeDropdown();
|
|
1901
1893
|
};
|
|
1902
1894
|
insert(_el$11, createComponent(Icon, {
|
|
1903
|
-
|
|
1904
|
-
return Icon.Close();
|
|
1905
|
-
}
|
|
1895
|
+
children: Icon.Close()
|
|
1906
1896
|
}));
|
|
1907
1897
|
createRenderEffect(() => setAttribute(_el$11, "title", data.t("CloseMenu")));
|
|
1908
1898
|
return _el$11;
|
|
@@ -1950,6 +1940,9 @@ var _tmpl$9 = /* @__PURE__ */ template(`<svg><path d="m17.25 6.75-10.5 10.5M6.75
|
|
|
1950
1940
|
var _tmpl$10 = /* @__PURE__ */ template(`<svg><path d="M4.75 6.75a2 2 0 0 1 2-2h10.5a2 2 0 0 1 2 2v10.5a2 2 0 0 1-2 2H6.75a2 2 0 0 1-2-2V6.75Z"></svg>`, false, true);
|
|
1951
1941
|
var _tmpl$11 = /* @__PURE__ */ template(`<svg><path d="m15.25 12-5.5-3.25v6.5l5.5-3.25Z"></svg>`, false, true);
|
|
1952
1942
|
var _tmpl$12 = /* @__PURE__ */ template(`<svg><rect width="12.5" height="12.5" x="5.75" y="5.75" rx="1"></svg>`, false, true);
|
|
1943
|
+
var _tmpl$13 = /* @__PURE__ */ template(`<svg><path d="M11.25 19.25h-3.5a2 2 0 0 1-2-2V6.75a2 2 0 0 1 2-2H14L18.25 9v2.25M17 14.75v4.5M19.25 17h-4.5"></svg>`, false, true);
|
|
1944
|
+
var _tmpl$14 = /* @__PURE__ */ template(`<svg><path d="M18 9.25h-4.25V5"></svg>`, false, true);
|
|
1945
|
+
var _tmpl$15 = /* @__PURE__ */ template(`<svg><path d="M9.75 6.75h-3a2 2 0 0 0-2 2v8.5a2 2 0 0 0 2 2h6.5a2 2 0 0 0 2-2v-5m-5.5-5.5 5.5 5.5m-5.5-5.5v3.5a2 2 0 0 0 2 2h3.5m-3.5-7.5h2l5.5 5.5v5a2 2 0 0 1-2 2H15.5"></svg>`, false, true);
|
|
1953
1946
|
var Icon = (props) => {
|
|
1954
1947
|
return (() => {
|
|
1955
1948
|
const _el$ = _tmpl$5();
|
|
@@ -1982,6 +1975,12 @@ Icon.Play = () => {
|
|
|
1982
1975
|
Icon.Stop = () => {
|
|
1983
1976
|
return _tmpl$12();
|
|
1984
1977
|
};
|
|
1978
|
+
Icon.FilePlus = () => {
|
|
1979
|
+
return [_tmpl$13(), _tmpl$14()];
|
|
1980
|
+
};
|
|
1981
|
+
Icon.Files = () => {
|
|
1982
|
+
return _tmpl$15();
|
|
1983
|
+
};
|
|
1985
1984
|
|
|
1986
1985
|
// src/actions.ts
|
|
1987
1986
|
var clickOutside = (node, handler) => {
|
|
@@ -1991,7 +1990,7 @@ var clickOutside = (node, handler) => {
|
|
|
1991
1990
|
};
|
|
1992
1991
|
|
|
1993
1992
|
// src/components/Modal.tsx
|
|
1994
|
-
var _tmpl$
|
|
1993
|
+
var _tmpl$16 = /* @__PURE__ */ template(`<div role="dialog" class="dialog">`);
|
|
1995
1994
|
var Modal = (props) => {
|
|
1996
1995
|
let modalWindow;
|
|
1997
1996
|
const handleKeydown = (event) => {
|
|
@@ -2027,7 +2026,7 @@ var Modal = (props) => {
|
|
|
2027
2026
|
return props.isOpen();
|
|
2028
2027
|
},
|
|
2029
2028
|
get children() {
|
|
2030
|
-
const _el$ = _tmpl$
|
|
2029
|
+
const _el$ = _tmpl$16();
|
|
2031
2030
|
use((element) => {
|
|
2032
2031
|
modalWindow = element;
|
|
2033
2032
|
clickOutside(element, close);
|
|
@@ -2159,7 +2158,7 @@ var TEXT_SPEED_MAP = {
|
|
|
2159
2158
|
};
|
|
2160
2159
|
|
|
2161
2160
|
// src/components/Typewriter.tsx
|
|
2162
|
-
var _tmpl$
|
|
2161
|
+
var _tmpl$17 = /* @__PURE__ */ template(`<span>`);
|
|
2163
2162
|
var PRM = matchMedia("(prefers-reduced-motion: reduce)");
|
|
2164
2163
|
var createTypewriter = ({
|
|
2165
2164
|
resolve
|
|
@@ -2201,7 +2200,7 @@ var createTypewriter = ({
|
|
|
2201
2200
|
bypassed = false;
|
|
2202
2201
|
});
|
|
2203
2202
|
return (() => {
|
|
2204
|
-
const _el$ = _tmpl$
|
|
2203
|
+
const _el$ = _tmpl$17();
|
|
2205
2204
|
const _ref$ = node;
|
|
2206
2205
|
typeof _ref$ === "function" ? use(_ref$, _el$) : node = _el$;
|
|
2207
2206
|
spread(_el$, mergeProps(() => props.attributes), false, false);
|
|
@@ -2227,7 +2226,7 @@ var createTypewriter = ({
|
|
|
2227
2226
|
};
|
|
2228
2227
|
|
|
2229
2228
|
// src/screens/game.tsx
|
|
2230
|
-
var _tmpl$
|
|
2229
|
+
var _tmpl$18 = /* @__PURE__ */ template(`<div class="dialog-container"><span class="dialog-fix" aria-hidden="true">​</span><div class="dialog-panel"><span class="dialog-panel-label">`);
|
|
2231
2230
|
var _tmpl$24 = /* @__PURE__ */ template(`<div class="dialog-container"><span class="dialog-fix" aria-hidden="true">​</span><div class="dialog-panel input-dialog-panel"><label for="novely-input" class="input-dialog-label"><span></span><span aria-live="polite" aria-atomic="true"></span></label><button type="submit" class="button dialog-input__button">`);
|
|
2232
2231
|
var _tmpl$33 = /* @__PURE__ */ template(`<div class="dialog-container"><span class="dialog-fix" aria-hidden="true">​</span><div class="dialog-backdrop"></div><div class="dialog-panel exit-dialog-panel"><span class="dialog-panel-label"></span><div class="exit-dialog-panel-buttons"><button type="button" class="button"></button><button type="button" class="button">`);
|
|
2233
2232
|
var _tmpl$43 = /* @__PURE__ */ template(`<button type="button" class="button control-panel__button">`);
|
|
@@ -2401,7 +2400,7 @@ var Game = (props) => {
|
|
|
2401
2400
|
isOpen: () => props.state.choices.visible,
|
|
2402
2401
|
trapFocus: () => !props.state.exitPromptShown,
|
|
2403
2402
|
get children() {
|
|
2404
|
-
const _el$7 = _tmpl$
|
|
2403
|
+
const _el$7 = _tmpl$18(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$10 = _el$9.firstChild;
|
|
2405
2404
|
insert(_el$10, () => props.state.choices.question || " ");
|
|
2406
2405
|
insert(_el$9, createComponent(For, {
|
|
2407
2406
|
get each() {
|
|
@@ -2554,16 +2553,22 @@ var Game = (props) => {
|
|
|
2554
2553
|
setAuto
|
|
2555
2554
|
}));
|
|
2556
2555
|
createRenderEffect((_p$) => {
|
|
2557
|
-
const _v$5 = background(), _v$6 =
|
|
2556
|
+
const _v$5 = background(), _v$6 = Object.values(props.state.characters).reduce((acc, char) => {
|
|
2557
|
+
if (char.visible) {
|
|
2558
|
+
return acc + 1;
|
|
2559
|
+
}
|
|
2560
|
+
return acc;
|
|
2561
|
+
}, 0), _v$7 = !!props.state.dialog.visible, _v$8 = !props.state.dialog.visible, _v$9 = !(props.state.dialog.character && props.state.dialog.emotion), _v$10 = !props.state.dialog.content, _v$11 = Boolean(props.state.text.content), _v$12 = !props.state.text.content, _v$13 = !!(data.media.hyperWide() && !controlPanelMenuExpanded()), _v$14 = !!(data.media.hyperWide() && controlPanelMenuExpanded());
|
|
2558
2562
|
_p$._v$5 = style(_el$, _v$5, _p$._v$5);
|
|
2559
|
-
_v$6 !== _p$._v$6 && _el$
|
|
2560
|
-
_v$7 !== _p$._v$7 && _el$3.classList.toggle("action-dialog--
|
|
2561
|
-
_v$8 !== _p$._v$8 &&
|
|
2562
|
-
_v$9 !== _p$._v$9 && setAttribute(_el$4, "
|
|
2563
|
-
_v$10 !== _p$._v$10 && setAttribute(_el$
|
|
2564
|
-
_v$11 !== _p$._v$11 && setAttribute(_el$27, "
|
|
2565
|
-
_v$12 !== _p$._v$12 && _el$
|
|
2566
|
-
_v$13 !== _p$._v$13 && _el$32.classList.toggle("control-panel-container--wide-
|
|
2563
|
+
_v$6 !== _p$._v$6 && ((_p$._v$6 = _v$6) != null ? _el$2.style.setProperty("--shown-characters-count", _v$6) : _el$2.style.removeProperty("--shown-characters-count"));
|
|
2564
|
+
_v$7 !== _p$._v$7 && _el$3.classList.toggle("action-dialog--visible", _p$._v$7 = _v$7);
|
|
2565
|
+
_v$8 !== _p$._v$8 && _el$3.classList.toggle("action-dialog--hidden", _p$._v$8 = _v$8);
|
|
2566
|
+
_v$9 !== _p$._v$9 && setAttribute(_el$4, "data-no-person", _p$._v$9 = _v$9);
|
|
2567
|
+
_v$10 !== _p$._v$10 && setAttribute(_el$4, "aria-disabled", _p$._v$10 = _v$10);
|
|
2568
|
+
_v$11 !== _p$._v$11 && setAttribute(_el$27, "data-shown", _p$._v$11 = _v$11);
|
|
2569
|
+
_v$12 !== _p$._v$12 && setAttribute(_el$27, "aria-disabled", _p$._v$12 = _v$12);
|
|
2570
|
+
_v$13 !== _p$._v$13 && _el$32.classList.toggle("control-panel-container--wide-closed", _p$._v$13 = _v$13);
|
|
2571
|
+
_v$14 !== _p$._v$14 && _el$32.classList.toggle("control-panel-container--wide-open", _p$._v$14 = _v$14);
|
|
2567
2572
|
return _p$;
|
|
2568
2573
|
}, {
|
|
2569
2574
|
_v$5: void 0,
|
|
@@ -2574,7 +2579,8 @@ var Game = (props) => {
|
|
|
2574
2579
|
_v$10: void 0,
|
|
2575
2580
|
_v$11: void 0,
|
|
2576
2581
|
_v$12: void 0,
|
|
2577
|
-
_v$13: void 0
|
|
2582
|
+
_v$13: void 0,
|
|
2583
|
+
_v$14: void 0
|
|
2578
2584
|
});
|
|
2579
2585
|
return _el$;
|
|
2580
2586
|
})();
|
|
@@ -2582,13 +2588,13 @@ var Game = (props) => {
|
|
|
2582
2588
|
delegateEvents(["click", "keydown"]);
|
|
2583
2589
|
|
|
2584
2590
|
// src/screens/loading.tsx
|
|
2585
|
-
var _tmpl$
|
|
2591
|
+
var _tmpl$19 = /* @__PURE__ */ template(`<div class="root loading"><div class="loading__animation"><div></div><div></div><div></div><div>`);
|
|
2586
2592
|
var Loading = () => {
|
|
2587
|
-
return _tmpl$
|
|
2593
|
+
return _tmpl$19();
|
|
2588
2594
|
};
|
|
2589
2595
|
|
|
2590
2596
|
// src/screens/mainmenu.tsx
|
|
2591
|
-
var _tmpl$
|
|
2597
|
+
var _tmpl$20 = /* @__PURE__ */ template(`<div class="root main-menu"><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text">`);
|
|
2592
2598
|
var _tmpl$25 = /* @__PURE__ */ template(`<button>`);
|
|
2593
2599
|
var MainMenu = (props) => {
|
|
2594
2600
|
const data = useData();
|
|
@@ -2599,15 +2605,27 @@ var MainMenu = (props) => {
|
|
|
2599
2605
|
props.setState("screen", screen);
|
|
2600
2606
|
});
|
|
2601
2607
|
return (() => {
|
|
2602
|
-
const _el$ = _tmpl$
|
|
2608
|
+
const _el$ = _tmpl$20(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$6.nextSibling, _el$9 = _el$8.firstChild;
|
|
2603
2609
|
addEventListener2(_el$2, "click", data.options.newGame, true);
|
|
2604
|
-
insert(_el$
|
|
2605
|
-
_el$
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
_el$5
|
|
2610
|
-
insert(_el$
|
|
2610
|
+
insert(_el$3, () => data.t("NewGame"));
|
|
2611
|
+
insert(_el$2, createComponent(Icon, {
|
|
2612
|
+
children: Icon.FilePlus()
|
|
2613
|
+
}), null);
|
|
2614
|
+
_el$4.$$click = () => data.options.restore();
|
|
2615
|
+
insert(_el$5, () => data.t("LoadSave"));
|
|
2616
|
+
insert(_el$4, createComponent(Icon, {
|
|
2617
|
+
children: Icon.Play()
|
|
2618
|
+
}), null);
|
|
2619
|
+
_el$6.$$click = () => props.setState("screen", "saves");
|
|
2620
|
+
insert(_el$7, () => data.t("Saves"));
|
|
2621
|
+
insert(_el$6, createComponent(Icon, {
|
|
2622
|
+
children: Icon.Files()
|
|
2623
|
+
}), null);
|
|
2624
|
+
_el$8.$$click = () => props.setState("screen", "settings");
|
|
2625
|
+
insert(_el$9, () => data.t("Settings"));
|
|
2626
|
+
insert(_el$8, createComponent(Icon, {
|
|
2627
|
+
children: Icon.Settings()
|
|
2628
|
+
}), null);
|
|
2611
2629
|
insert(_el$, createComponent(Show, {
|
|
2612
2630
|
get when() {
|
|
2613
2631
|
return language();
|
|
@@ -2618,9 +2636,9 @@ var MainMenu = (props) => {
|
|
|
2618
2636
|
return props.state.mainmenu.items;
|
|
2619
2637
|
},
|
|
2620
2638
|
children: (item) => (() => {
|
|
2621
|
-
const _el$
|
|
2622
|
-
spread(_el$
|
|
2623
|
-
return _el$
|
|
2639
|
+
const _el$10 = _tmpl$25();
|
|
2640
|
+
spread(_el$10, mergeProps(() => item(goto)), false, false);
|
|
2641
|
+
return _el$10;
|
|
2624
2642
|
})()
|
|
2625
2643
|
})
|
|
2626
2644
|
}), null);
|
|
@@ -2630,7 +2648,7 @@ var MainMenu = (props) => {
|
|
|
2630
2648
|
delegateEvents(["click"]);
|
|
2631
2649
|
|
|
2632
2650
|
// src/screens/saves.tsx
|
|
2633
|
-
var _tmpl$
|
|
2651
|
+
var _tmpl$21 = /* @__PURE__ */ template(`<ol class="saves__list">`);
|
|
2634
2652
|
var _tmpl$26 = /* @__PURE__ */ template(`<div class="root saves"><div class="saves__column"><button type="button" class="button saves__button"></button></div><div class="saves__list-container">`);
|
|
2635
2653
|
var _tmpl$34 = /* @__PURE__ */ template(`<div class="saves__list saves__list--empty">`);
|
|
2636
2654
|
var _tmpl$44 = /* @__PURE__ */ template(`<li class="saves__list-item"><button type="button" class="button saves__button-load"><span></span><span class="saves__button-load__type"></span></button><button type="reset" class="button saves__button-reset"><span>`);
|
|
@@ -2660,7 +2678,7 @@ var Saves = (props) => {
|
|
|
2660
2678
|
})();
|
|
2661
2679
|
},
|
|
2662
2680
|
get children() {
|
|
2663
|
-
const _el$5 = _tmpl$
|
|
2681
|
+
const _el$5 = _tmpl$21();
|
|
2664
2682
|
insert(_el$5, createComponent(For, {
|
|
2665
2683
|
get each() {
|
|
2666
2684
|
return saves();
|
|
@@ -2707,8 +2725,8 @@ var Saves = (props) => {
|
|
|
2707
2725
|
delegateEvents(["click"]);
|
|
2708
2726
|
|
|
2709
2727
|
// src/screens/settings.tsx
|
|
2710
|
-
var _tmpl$
|
|
2711
|
-
var _tmpl$
|
|
2728
|
+
var _tmpl$27 = /* @__PURE__ */ template(`<div class="root settings"><div class="settings__column"><button type="button" class="button settings__button"></button><button type="button" class="button settings__button"></button></div><div class="settings__column"><div class="select"><label class="select__label"><span>🌎</span> </label><select class="select__select"></select></div><div class="select"><label class="select__label"><span>⚡</span> </label><select class="select__select">`);
|
|
2729
|
+
var _tmpl$28 = /* @__PURE__ */ template(`<option>`);
|
|
2712
2730
|
var Settings = (props) => {
|
|
2713
2731
|
const data = useData();
|
|
2714
2732
|
const language = () => data.storeData().meta[0];
|
|
@@ -2740,39 +2758,41 @@ var Settings = (props) => {
|
|
|
2740
2758
|
const languageSelectID = createUniqueId();
|
|
2741
2759
|
const speedSelectID = createUniqueId();
|
|
2742
2760
|
return (() => {
|
|
2743
|
-
const _el$ = _tmpl$
|
|
2761
|
+
const _el$ = _tmpl$27(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$10 = _el$7.nextSibling, _el$11 = _el$6.nextSibling, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$12.nextSibling;
|
|
2744
2762
|
_el$3.$$click = () => props.setState("screen", "mainmenu");
|
|
2745
2763
|
insert(_el$3, () => data.t("HomeScreen"));
|
|
2746
2764
|
_el$4.$$click = () => data.options.restore();
|
|
2747
2765
|
insert(_el$4, () => data.t("ToTheGame"));
|
|
2748
2766
|
setAttribute(_el$7, "for", languageSelectID);
|
|
2749
|
-
|
|
2750
|
-
_el$
|
|
2751
|
-
|
|
2752
|
-
|
|
2767
|
+
setAttribute(_el$8, "aria-hidden", true);
|
|
2768
|
+
insert(_el$7, () => data.t("Language"), null);
|
|
2769
|
+
_el$10.addEventListener("change", onLanguageSelect);
|
|
2770
|
+
setAttribute(_el$10, "id", languageSelectID);
|
|
2771
|
+
insert(_el$10, createComponent(For, {
|
|
2753
2772
|
get each() {
|
|
2754
2773
|
return data.options.languages;
|
|
2755
2774
|
},
|
|
2756
2775
|
children: (lang) => (() => {
|
|
2757
|
-
const _el$
|
|
2758
|
-
_el$
|
|
2759
|
-
insert(_el$
|
|
2760
|
-
createRenderEffect(() => _el$
|
|
2761
|
-
return _el$
|
|
2776
|
+
const _el$16 = _tmpl$28();
|
|
2777
|
+
_el$16.value = lang;
|
|
2778
|
+
insert(_el$16, () => capitalize(getLanguageName(lang)));
|
|
2779
|
+
createRenderEffect(() => _el$16.selected = lang === language());
|
|
2780
|
+
return _el$16;
|
|
2762
2781
|
})()
|
|
2763
2782
|
}));
|
|
2764
|
-
setAttribute(_el$
|
|
2765
|
-
|
|
2766
|
-
_el$
|
|
2767
|
-
|
|
2768
|
-
|
|
2783
|
+
setAttribute(_el$12, "for", speedSelectID);
|
|
2784
|
+
setAttribute(_el$13, "aria-hidden", true);
|
|
2785
|
+
insert(_el$12, () => data.t("TextSpeed"), null);
|
|
2786
|
+
_el$15.addEventListener("change", onSpeedSelect);
|
|
2787
|
+
setAttribute(_el$15, "id", speedSelectID);
|
|
2788
|
+
insert(_el$15, createComponent(For, {
|
|
2769
2789
|
each: ["Slow", "Medium", "Fast", "Auto"],
|
|
2770
2790
|
children: (speed) => (() => {
|
|
2771
|
-
const _el$
|
|
2772
|
-
_el$
|
|
2773
|
-
insert(_el$
|
|
2774
|
-
createRenderEffect(() => _el$
|
|
2775
|
-
return _el$
|
|
2791
|
+
const _el$17 = _tmpl$28();
|
|
2792
|
+
_el$17.value = speed;
|
|
2793
|
+
insert(_el$17, () => data.t("TextSpeed" + speed));
|
|
2794
|
+
createRenderEffect(() => _el$17.selected = speed === textSpeed());
|
|
2795
|
+
return _el$17;
|
|
2776
2796
|
})()
|
|
2777
2797
|
}));
|
|
2778
2798
|
return _el$;
|
|
@@ -2781,8 +2801,8 @@ var Settings = (props) => {
|
|
|
2781
2801
|
delegateEvents(["click"]);
|
|
2782
2802
|
|
|
2783
2803
|
// src/renderer.tsx
|
|
2784
|
-
var _tmpl$
|
|
2785
|
-
var _tmpl$
|
|
2804
|
+
var _tmpl$29 = /* @__PURE__ */ template(`<div>`);
|
|
2805
|
+
var _tmpl$210 = /* @__PURE__ */ template(`<canvas>`);
|
|
2786
2806
|
var _tmpl$35 = /* @__PURE__ */ template(`<input type="text" name="novely-input" required autocomplete="off">`);
|
|
2787
2807
|
var createSolidRenderer = ({
|
|
2788
2808
|
fullscreen = false,
|
|
@@ -2848,7 +2868,7 @@ var createSolidRenderer = ({
|
|
|
2848
2868
|
}
|
|
2849
2869
|
});
|
|
2850
2870
|
return (() => {
|
|
2851
|
-
const _el$ = _tmpl$
|
|
2871
|
+
const _el$ = _tmpl$29();
|
|
2852
2872
|
const _ref$ = root;
|
|
2853
2873
|
typeof _ref$ === "function" ? use(_ref$, _el$) : root = _el$;
|
|
2854
2874
|
insert(_el$, createComponent(Provider, {
|
|
@@ -2965,7 +2985,7 @@ var createSolidRenderer = ({
|
|
|
2965
2985
|
if (store.characters[character])
|
|
2966
2986
|
return store.characters[character];
|
|
2967
2987
|
const canvas = (() => {
|
|
2968
|
-
const _el$2 = _tmpl$
|
|
2988
|
+
const _el$2 = _tmpl$210();
|
|
2969
2989
|
setAttribute(_el$2, "data-character", character);
|
|
2970
2990
|
return _el$2;
|
|
2971
2991
|
})();
|
|
@@ -3187,7 +3207,7 @@ var createSolidRenderer = ({
|
|
|
3187
3207
|
clear(), setState("layers", id, void 0);
|
|
3188
3208
|
};
|
|
3189
3209
|
const element = insert2 ? (() => {
|
|
3190
|
-
const _el$4 = _tmpl$
|
|
3210
|
+
const _el$4 = _tmpl$29();
|
|
3191
3211
|
setAttribute(_el$4, "id", id);
|
|
3192
3212
|
return _el$4;
|
|
3193
3213
|
})() : null;
|
package/dist/styles/index.css
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
.characters > canvas {
|
|
73
73
|
min-width: unset;
|
|
74
|
-
max-width:
|
|
74
|
+
max-width: calc(100% / max(2, var(--shown-characters-count)));
|
|
75
75
|
max-height: 85%;
|
|
76
76
|
position: relative;
|
|
77
77
|
}
|
|
@@ -490,7 +490,20 @@
|
|
|
490
490
|
|
|
491
491
|
/* src/styles/main-menu/button/button.css */
|
|
492
492
|
.main-menu__button {
|
|
493
|
+
grid-template-rows: 1fr;
|
|
494
|
+
grid-template-columns: calc(100% - 24px) 24px;
|
|
495
|
+
align-content: space-around;
|
|
496
|
+
justify-items: center;
|
|
493
497
|
min-width: 30vw;
|
|
498
|
+
display: grid;
|
|
499
|
+
}
|
|
500
|
+
@media (max-aspect-ratio: .26) {
|
|
501
|
+
.main-menu__button {
|
|
502
|
+
grid-template-columns: 1fr;
|
|
503
|
+
}
|
|
504
|
+
.main-menu__button__text {
|
|
505
|
+
display: none;
|
|
506
|
+
}
|
|
494
507
|
}
|
|
495
508
|
|
|
496
509
|
/* src/styles/main-menu/index.css */
|