@novely/solid-renderer 0.2.4 → 0.3.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.jsx +12 -7
- package/dist/styles/index.css +4 -0
- package/package.json +1 -1
package/dist/index.jsx
CHANGED
|
@@ -737,16 +737,21 @@ var createSolidRenderer = ({ fullscreen = false } = {}) => {
|
|
|
737
737
|
setState("choices", { choices, question, resolve, visible: true });
|
|
738
738
|
};
|
|
739
739
|
},
|
|
740
|
-
clear(goingBack) {
|
|
740
|
+
clear(goingBack, keep, keepCharacters) {
|
|
741
741
|
return (resolve) => {
|
|
742
|
-
if (!
|
|
742
|
+
if (!keep.has("showBackground"))
|
|
743
743
|
setState("background", "#000");
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
744
|
+
if (!keep.has("choice"))
|
|
745
|
+
setState("choices", { choices: [], visible: false, resolve: void 0, question: "" });
|
|
746
|
+
if (!keep.has("input"))
|
|
747
|
+
setState("input", { element: void 0, question: "", visible: false, error: "" });
|
|
748
|
+
if (!keep.has("dialog"))
|
|
749
|
+
setState("dialog", { visible: false, content: "", name: "" });
|
|
750
|
+
if (!keep.has("text"))
|
|
751
|
+
setState("text", { content: "" });
|
|
748
752
|
for (const character of Object.keys(state.characters)) {
|
|
749
|
-
|
|
753
|
+
if (!keepCharacters.has(character))
|
|
754
|
+
setState("characters", character, { visible: false });
|
|
750
755
|
}
|
|
751
756
|
for (const [id, layer] of Object.entries(state.layers)) {
|
|
752
757
|
if (!layer)
|
package/dist/styles/index.css
CHANGED
|
@@ -342,6 +342,10 @@
|
|
|
342
342
|
margin: 0.4rem 0;
|
|
343
343
|
min-height: 1rem;
|
|
344
344
|
min-height: 1lh;
|
|
345
|
+
user-select: none;
|
|
346
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
347
|
+
-webkit-tap-highlight-color: transparent;
|
|
348
|
+
-webkit-touch-callout: none;
|
|
345
349
|
}
|
|
346
350
|
.input-dialog-label > input {
|
|
347
351
|
min-width: 10rem;
|