genshin-interface 3.8.1

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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2020-present Jimmy Chen
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # genshin-interface
2
+
3
+ [![Apache-2.0 licensed][badge-license]][url-license]
4
+ [![NPM version][badge-npm-version]][url-npm]
5
+ [![NPM downloads][badge-npm-downloads]][url-npm]
6
+ [![NPM Unpacked Size (with version)][badge-npm-unpacked-size]][url-npm]
7
+
8
+ Genshin Impact's interface, rebuilt as an unofficial, non-commercial fan work and not affiliated with HoYoverse. It holds the pieces every screen of the game's is made from, as presentational Vue components:
9
+
10
+ - `GameScreen`, the root a screen is drawn in: the game's 1920 by 1080 unit, its face and its pointer;
11
+ - its round buttons and their glyphs, the server bar, the progress bar, the prompt band, the notice card, the wait mark and the ornamented divider.
12
+
13
+ It ships no image or font from the game: each glyph is a vector path traced from the game's own, and the face is the open one nearest it.
14
+
15
+ ## Table of Contents
16
+
17
+ - 🚀 [Getting Started](#getting-started)
18
+ - 📖 [Documentation](#documentation)
19
+ - ⚖️ [License](#license)
20
+
21
+ ---
22
+
23
+ ## <a name="getting-started">🚀 Getting Started</a>
24
+
25
+ ```bash
26
+ pnpm i genshin-interface vue
27
+ ```
28
+
29
+ Draw a screen inside `GameScreen`, lay it out in `calc(var(--unit) * n)`, and load the styles once:
30
+
31
+ ```vue
32
+ <script setup lang="ts">
33
+ import { GameScreen, InterfaceIcon, RoundButton } from "genshin-interface";
34
+ import "genshin-interface/style.css";
35
+ </script>
36
+
37
+ <template>
38
+ <GameScreen>
39
+ <RoundButton :icon="InterfaceIcon.Exit" label="Exit" />
40
+ </GameScreen>
41
+ </template>
42
+ ```
43
+
44
+ ## <a name="documentation">📖 Documentation</a>
45
+
46
+ We highly recommend you take a look at the [documentation](https://esposter.com/docs/api/modules/genshin-interface.html) to level up. How the library is measured against the game is its [docs page](https://esposter.com/docs/genshin/interface-library).
47
+
48
+ ## <a name="license">⚖️ License</a>
49
+
50
+ This project is licensed under the [Apache-2.0 license](https://github.com/Esposter/Esposter/blob/main/LICENSE).
51
+
52
+ [badge-license]: https://img.shields.io/github/license/Esposter/Esposter.svg?color=blue
53
+ [url-license]: https://github.com/Esposter/Esposter/blob/main/LICENSE
54
+ [badge-npm-version]: https://img.shields.io/npm/v/genshin-interface/latest?color=brightgreen
55
+ [url-npm]: https://www.npmjs.com/package/genshin-interface/v/latest
56
+ [badge-npm-unpacked-size]: https://img.shields.io/npm/unpacked-size/genshin-interface/latest?label=npm
57
+ [badge-npm-downloads]: https://img.shields.io/npm/dm/genshin-interface.svg
@@ -0,0 +1,197 @@
1
+ //#region src/components/GameScreen/Index.vue.d.ts
2
+ declare var __VLS_1$2: {};
3
+ type __VLS_Slots$2 = {} & {
4
+ default?: (props: typeof __VLS_1$2) => any;
5
+ };
6
+ declare const __VLS_base$2: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export$7: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
8
+ declare const _default: typeof __VLS_export$7;
9
+ type __VLS_WithSlots$2<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
14
+ //#endregion
15
+ //#region src/components/LoadingSpinner/Index.vue.d.ts
16
+ declare const __VLS_export$6: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ declare const _default$1: typeof __VLS_export$6;
18
+ //#endregion
19
+ //#region src/components/OrnamentDivider/Index.vue.d.ts
20
+ declare const __VLS_export$5: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ declare const _default$2: typeof __VLS_export$5;
22
+ //#endregion
23
+ //#region src/components/ProgressBar/Index.vue.d.ts
24
+ interface Props$2 {
25
+ isFolded?: boolean;
26
+ progress: number;
27
+ }
28
+ declare const __VLS_export$4: import("vue").DefineComponent<Props$2, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$2> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const _default$3: typeof __VLS_export$4;
30
+ //#endregion
31
+ //#region src/components/PromptBand/Index.vue.d.ts
32
+ declare var __VLS_1$1: {};
33
+ type __VLS_Slots$1 = {} & {
34
+ default?: (props: typeof __VLS_1$1) => any;
35
+ };
36
+ declare const __VLS_base$1: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ declare const __VLS_export$3: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
38
+ declare const _default$4: typeof __VLS_export$3;
39
+ type __VLS_WithSlots$1<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
44
+ //#endregion
45
+ //#region src/models/InterfaceIcon.d.ts
46
+ export declare enum InterfaceIcon {
47
+ Exit = "Exit",
48
+ Notice = "Notice",
49
+ Power = "Power",
50
+ Repair = "Repair",
51
+ Settings = "Settings"
52
+ }
53
+ //#endregion
54
+ //#region src/components/RoundButton/Index.vue.d.ts
55
+ interface Props$1 {
56
+ icon: InterfaceIcon;
57
+ label: string;
58
+ }
59
+ declare const __VLS_export$2: import("vue").DefineComponent<Props$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$1> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
+ declare const _default$5: typeof __VLS_export$2;
61
+ //#endregion
62
+ //#region src/components/ServerBar/Index.vue.d.ts
63
+ interface Props {
64
+ name: string;
65
+ }
66
+ declare const __VLS_export$1: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
67
+ declare const _default$6: typeof __VLS_export$1;
68
+ //#endregion
69
+ //#region src/components/ToastNotice/Index.vue.d.ts
70
+ declare var __VLS_1: {}, __VLS_3: {};
71
+ type __VLS_Slots = {} & {
72
+ mark?: (props: typeof __VLS_1) => any;
73
+ } & {
74
+ default?: (props: typeof __VLS_3) => any;
75
+ };
76
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
77
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
78
+ declare const _default$7: typeof __VLS_export;
79
+ type __VLS_WithSlots<T, S> = T & {
80
+ new (): {
81
+ $slots: S;
82
+ };
83
+ };
84
+ //#endregion
85
+ //#region src/models/CanvasRect.d.ts
86
+ export interface CanvasRect {
87
+ anchorMax: [number, number];
88
+ anchorMin: [number, number];
89
+ pivot: [number, number];
90
+ position: [number, number];
91
+ size: [number, number];
92
+ }
93
+ //#endregion
94
+ //#region src/models/ComponentFixture.d.ts
95
+ export interface ComponentFixture {
96
+ props: Record<string, unknown>;
97
+ slot?: string;
98
+ variants?: Record<string, Record<string, unknown>>;
99
+ }
100
+ //#endregion
101
+ //#region src/models/InterfaceClipProperty.d.ts
102
+ export declare enum InterfaceClipProperty {
103
+ Opacity = "opacity",
104
+ Scale = "scale",
105
+ X = "x",
106
+ Y = "y"
107
+ }
108
+ //#endregion
109
+ //#region src/models/InterfaceClip.d.ts
110
+ export interface InterfaceClip {
111
+ durationMs: number;
112
+ tracks: {
113
+ keyframes: [number, number][];
114
+ property: InterfaceClipProperty;
115
+ target: string;
116
+ }[];
117
+ }
118
+ //#endregion
119
+ //#region src/models/reference/GameFinding.d.ts
120
+ export interface GameFinding {
121
+ found: string;
122
+ search: string;
123
+ }
124
+ //#endregion
125
+ //#region src/models/reference/GameSourceKind.d.ts
126
+ export declare enum GameSourceKind {
127
+ AnimationClip = "AnimationClip",
128
+ Capture = "Capture",
129
+ Material = "Material",
130
+ Mesh = "Mesh",
131
+ MonoBehaviour = "MonoBehaviour",
132
+ RectTransform = "RectTransform",
133
+ Shader = "Shader",
134
+ Texture = "Texture",
135
+ Transform = "Transform"
136
+ }
137
+ //#endregion
138
+ //#region src/models/reference/GameSource.d.ts
139
+ export interface GameSource {
140
+ block: string;
141
+ kind: GameSourceKind;
142
+ name: string;
143
+ pathId?: string;
144
+ role: string;
145
+ }
146
+ //#endregion
147
+ //#region src/models/reference/ComponentReference.d.ts
148
+ export interface ComponentReference {
149
+ findings: GameFinding[];
150
+ open: string[];
151
+ sources: Record<string, GameSource>;
152
+ }
153
+ //#endregion
154
+ //#region src/services/InterfaceIconCentreMap.d.ts
155
+ export declare const InterfaceIconCentreMap: Record<InterfaceIcon, [number, number]>;
156
+ //#endregion
157
+ //#region src/services/InterfaceIconPathMap.d.ts
158
+ export declare const InterfaceIconPathMap: Record<InterfaceIcon, string>;
159
+ //#endregion
160
+ //#region src/services/OrnamentPath.d.ts
161
+ export declare const ORNAMENT_MIDDLE_PATH = "M 179.5 39 L 185.5 39 L 191 43.5 L 193 48.5 L 203 60.5 L 205 65.5 L 215 75.5 L 219 83.5 L 219 88.5 L 214.5 94 L 201.5 101 L 197.5 102 L 194 99.5 L 190.5 95 L 188.5 94 L 178.5 94 L 171 99.5 L 155.5 117 L 153 118.5 L 146.5 126 L 136.5 135 L 133.5 137 L 131.5 137 L 110.5 152 Q 104.23 153.73 100.5 158 L 91.5 160 L 87 163.5 Q 86.5 167.5 89.5 168 L 98.5 172 L 102.5 176 L 119.5 184 L 127.5 190 L 136.5 194 L 151 206.5 L 157.5 214 Q 159.75 213.25 159 215.5 L 165.5 223 L 170 226.5 Q 170.63 230.37 173.5 232 L 178.5 235 L 187.5 235 Q 188.5 232.5 191 233 Q 191.71 228.11 195.5 225 L 198.5 224 L 225 199.5 L 227.5 195 L 232.5 193 L 241.5 186 L 246.5 184 L 260 174.5 L 261.5 172 Q 267 170 270 165.5 L 270 162.5 L 265 157.5 L 265 154.5 L 268.5 150 Q 270.75 150.75 270 148.5 L 275.5 142 L 281.5 139 L 292.5 139 L 318.5 153 L 323.5 158 L 326.5 158 L 332.5 160 L 336 163.5 L 335 168 L 330.5 170 L 325.5 171 L 318.5 177 L 314.5 178 L 302.5 185 L 297.5 190 L 287.5 193 L 279.5 200 L 275.5 201 L 270.5 205 L 269 205 L 267.5 208 L 243.5 224 L 238 229.5 Q 238.75 231.75 236.5 231 L 216 249.5 L 214 253.5 L 201 267.5 L 192 280.5 L 189 287 L 186.5 288 L 183.5 288 L 182.5 289 L 179.5 289 L 173 285.5 L 169 274.5 Q 160.63 267.66 156 258 L 153 256.5 L 149 251.5 L 149 250 L 147 250 Q 148.13 247.33 145.5 248 L 132.5 233 L 129 232 L 129 230.5 L 122.5 224 L 119.5 223 L 108.5 214 L 95.5 208 L 89.5 203 L 85.5 201 L 74.5 199 L 69.5 195 L 54.5 190 L 48.5 186 L 30.5 180 L 0 180 L 0 149 L 31.5 149 L 35.5 147 L 44.5 147 L 49 145 Q 47.87 142.33 50.5 143 L 57.5 139 L 65.5 138 L 74.5 135 L 81.5 129 L 93.5 125 L 96.5 122 L 112.5 114 L 117 110.5 L 120.5 106 L 124.5 104 L 137 91.5 L 142.5 84 L 146 81.5 Q 150.3 73.8 157 68.5 L 164 56.5 L 177.5 40 L 179.5 39 Z M 294.5 40 L 303.5 40 Q 304.75 43.5 308 43 L 313 53.5 L 329 71.5 L 338.5 85 Q 340.75 84.25 340 86.5 L 346.5 94 L 352 98.5 L 354 103 Q 363.2 105.9 368.5 114 L 374.5 117 L 376.5 117 L 385.5 124 L 397.5 128 L 407.5 135 L 409.5 135 L 412.5 137 L 422.5 139 L 424.5 141 L 430.5 144 L 432.5 144 L 434.5 146 Q 437.75 145.25 438.5 147 L 445.5 147 L 451.5 149 L 480 149 L 480 180 L 466.5 180 L 465.5 179 L 459.5 179 L 450.5 182 L 445.5 182 L 441.5 184 L 437.5 184 L 429.5 190 L 426.5 191 L 419.5 191 L 413.5 194 L 411.5 194 L 398.5 202 L 388.5 204 L 381.5 210 L 371.5 214 L 367 218.5 L 365.5 221 L 356.5 225 L 352 229.5 L 347.5 235 L 345 236.5 L 334.5 249 L 332 250.5 Q 332.75 252.75 330.5 252 L 326.5 257 L 324 258.5 L 319 267.5 L 312 276.5 L 312 278.5 L 304.5 288 L 294.5 288 L 289 282.5 L 288 279.5 L 280 269.5 L 279 266.5 L 267 253.5 L 264 245.5 L 264 240.5 L 265 237.5 L 268.5 234 L 273 230.5 L 275.5 227 L 278.5 226 L 286 226 Q 286.65 231.4 291.5 234 L 294.5 235 L 301.5 235 Q 307 233 310 228.5 L 312 224 L 313.5 224 L 325.5 212 L 327 212 L 327 210.5 L 335.5 202 L 346.5 193 L 356.5 190 L 363.5 183 L 375.5 178 L 382.5 173 L 389.5 171 L 394 166.5 L 394 163.5 L 390.5 160 L 379.5 157 L 373.5 151 L 359.5 145 L 348.5 137 L 345.5 136 L 332 123.5 L 326.5 117 L 323 114.5 L 306.5 96 L 302.5 94 L 296.5 93 Q 295.75 94.75 292.5 94 L 288 98.5 Q 287.75 103.25 284.5 105 Q 278 107.5 274.5 113 L 273 113 Q 274.13 115.67 271.5 115 L 260.5 127 L 250.5 136 L 241 141.5 L 239.5 144 L 238 144 Q 239.13 146.67 236.5 146 Q 232.09 150.09 225.5 152 L 212 163.5 L 211 166.5 L 212 167.5 L 212 174.5 L 206.5 182 L 197.5 190 L 188.5 191 L 170.5 181 L 167.5 178 L 161.5 176 L 157.5 172 L 148.5 169 L 145 165.5 L 147.5 161 L 158.5 156 L 166.5 151 L 168.5 151 L 176.5 147 L 181.5 142 L 193.5 137 L 202.5 129 L 211.5 126 L 215 123.5 L 219.5 118 L 224.5 115 L 233.5 107 L 237.5 105 L 242 100.5 L 246.5 95 L 249.5 94 L 255 89.5 L 257 85 L 260 83.5 L 267 73.5 L 287 51.5 L 292 41 L 294.5 40 Z ";
162
+ export declare const ORNAMENT_END_PATH = "M 210.5 53 L 216.5 53 L 224 59.5 L 227.5 65 L 238 73.5 L 242.5 79 L 249.5 82 Q 252.67 86.83 258.5 89 L 262.5 89 L 263.5 90 L 269.5 91 L 284.5 98 L 294.5 98 L 295.5 99 L 303.5 99 L 304.5 100 L 311.5 100 L 312.5 101 L 320 101 L 320 131.5 Q 319.88 132.63 314.5 132 L 313.5 133 L 307.5 133 L 306.5 134 L 289.5 134 Q 288.5 136 284.5 135 L 269.5 142 L 266.5 143 L 260.5 143 Q 254 145.5 250.5 151 L 235.5 160 L 226 169.5 L 221.5 177 L 214.5 180 L 208.5 180 L 205.5 179 L 193 168.5 Q 193.75 166.25 191.5 167 L 185.5 162 Q 177.28 160.22 172.5 155 L 159.5 151 L 156.5 148 L 148.5 145 L 131.5 142 L 125.5 138 L 116.5 137 L 110.5 134 L 101.5 133 L 90.5 129 L 83.5 129 L 79.5 127 L 75.5 127 L 74.5 126 L 60.5 124 L 55.5 122 L 44.5 122 Q 43.25 119.75 38.5 121 L 32 117.5 L 33 114 L 38.5 112 L 41.5 112 L 42.5 111 L 54.5 111 L 55.5 110 L 59.5 110 L 65.5 108 L 74.5 107 L 75.5 106 L 78.5 106 L 82.5 104 L 86.5 104 L 95.5 101 L 103.5 101 L 119.5 95 L 123.5 95 L 130.5 91 Q 134.5 92 135.5 90 L 142.5 90 L 143.5 89 L 147.5 89 L 153.5 87 L 163.5 80 L 172.5 78 L 188.5 67 L 191.5 66 L 198.5 59 L 210.5 53 Z ";
163
+ //#endregion
164
+ //#region src/services/ServerMarkPath.d.ts
165
+ export declare const SERVER_MARK_DIAMOND_PATH = "M 23.44 6.62 L 24.44 7.25 L 25.88 8.56 L 26.31 9.12 L 28 10.56 L 28.56 11.25 L 28.88 11.44 L 29.44 12.12 L 30.25 12.81 Q 30.16 13.09 30.44 13 L 32.19 15 L 32.69 15.38 L 32.88 15.38 L 32.88 15.56 L 33.5 16.31 L 36.44 19.25 L 37.12 19.81 L 38.44 21.25 L 38.88 21.56 L 39.44 22.25 L 39.88 22.56 L 40.56 23.38 Q 40.84 23.28 40.75 23.56 Q 41.29 23.84 41.12 24.81 L 39.94 26.12 L 38.88 27.06 L 38.06 28 L 35.88 30.06 L 31.56 34.62 L 30.88 35.06 L 27.81 38.25 L 26.88 39.06 L 24.44 41.62 L 23.94 41.88 L 23.06 41.88 L 22.69 41.75 L 22.25 41.31 L 21.69 40.62 Q 21.41 40.72 21.5 40.44 L 19.12 38.19 L 18.94 37.88 L 18.25 37.31 L 17.69 36.62 L 17.38 36.44 L 17.19 36.12 L 16.25 35.44 L 15.56 34.62 Q 15.28 34.72 15.38 34.44 L 13.06 32 L 10.25 29.44 L 8.81 27.88 L 8.12 27.31 L 6.12 25.19 L 5.75 24.69 L 5.75 24.19 L 6 23.69 L 7.69 22 Q 7.97 22.09 7.88 21.81 Q 8.31 21.66 8.25 21.25 L 8.44 21.25 L 8.94 20.88 L 11 18.81 L 11.12 18.38 L 11.31 18.38 L 12.12 17.69 L 12.81 16.88 L 13.12 16.69 L 14.31 15.38 L 15.12 14.69 L 15.31 14.38 L 16.12 13.69 L 16.44 13.12 L 17 12.88 L 17 12.69 L 17.56 12.12 L 18.12 11.69 L 18.44 11.25 L 19.12 10.69 L 19.56 10.12 L 20.12 9.69 L 20.38 9.12 L 20.56 9.12 L 22.69 7.12 L 23.44 6.62 Z";
166
+ export declare const SERVER_MARK_TICK_PATH = "M 30.12 16.88 L 29.88 17 L 29.5 17.62 L 27 20.25 L 25.25 21.88 L 24 23.25 L 23.75 23.75 L 23.62 23.75 L 22.75 24.62 Q 22.88 24.88 22.62 24.75 L 21.88 25.62 L 20.62 26.62 L 20.25 26.5 L 19.62 26 L 19.12 25.5 L 18.62 25 L 18.12 24.5 L 16.75 23.25 L 16 23 L 15.62 23 L 15 23.25 Q 14.25 23.62 14 24.5 L 14 25.62 L 14.25 26.25 L 14.75 26.88 L 15.12 27 L 17.75 30 L 18.25 30.75 L 19.88 32 L 20.88 32 L 21.88 31.25 L 22.25 30.75 L 22.88 30.25 L 23.25 29.75 L 23.88 29.25 L 24.38 28.62 L 24.75 28.38 L 25.38 27.62 L 25.88 27.25 L 26.25 26.75 L 26.88 26.25 L 27.12 25.88 L 28 25.12 L 28.38 24.5 L 28.88 24.12 L 29.25 23.62 L 29.62 23.38 Q 30 23 30.25 22.5 L 31 22 L 31.12 21.75 L 31.88 21.12 L 33 20 Q 33.25 19.75 33.12 19.25 L 33.25 19.12 L 33.12 18.38 L 32.62 17.75 L 31.88 17 Q 31.25 17.12 31.25 16.88 L 30.12 16.88 Z";
167
+ //#endregion
168
+ //#region src/services/constants.d.ts
169
+ export declare const GAME_FONT_FAMILY = "\"HYWenHei 85W\", \"HYWenHei-85W\", Signika, ui-sans-serif, sans-serif";
170
+ export declare const GAME_UNIT = "min(100cqh / 1080, 100cqw / 1920)";
171
+ export declare const GAME_CANVAS_UNIT = "min(100cqh / 900, 100cqw / 1600)";
172
+ export declare const GAME_CANVAS_INSET = "min(var(--unit) * 71, (100cqw - var(--unit) * 1920) / 2)";
173
+ export declare const GAME_CURSOR: string;
174
+ export declare const SETTINGS_RING_CENTRE: readonly [24.05, 24.9];
175
+ export declare const SETTINGS_RING_RADIUS = 9.85;
176
+ export declare const SETTINGS_RING_WIDTH = 1.9;
177
+ export declare const FIXTURE_VARIANT_SEPARATOR = "-";
178
+ //#endregion
179
+ //#region src/services/playInterfaceClip.d.ts
180
+ export declare const playInterfaceClip: (root: HTMLElement, { durationMs, tracks }: InterfaceClip) => Animation[];
181
+ //#endregion
182
+ //#region src/services/readInterfaceClip.d.ts
183
+ export declare const readInterfaceClip: ({ durationMs, tracks }: {
184
+ durationMs: number;
185
+ tracks: {
186
+ keyframes: number[][];
187
+ property: string;
188
+ target: string;
189
+ }[];
190
+ }) => InterfaceClip;
191
+ //#endregion
192
+ //#region src/services/toCanvasRectStyle.d.ts
193
+ export declare const toCanvasRectStyle: ({ anchorMax, anchorMin, pivot, position, size }: CanvasRect, isOnCanvas?: boolean) => Record<"bottom" | "height" | "left" | "width", string> & {
194
+ position: "absolute";
195
+ };
196
+ //#endregion
197
+ export { _default as GameScreen, _default$1 as LoadingSpinner, _default$2 as OrnamentDivider, _default$3 as ProgressBar, _default$4 as PromptBand, _default$5 as RoundButton, _default$6 as ServerBar, _default$7 as ToastNotice };
package/dist/index.js ADDED
@@ -0,0 +1,348 @@
1
+ import { Fragment, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref, useCssVars } from "vue";
2
+ //#region src/services/constants.ts
3
+ const GAME_FONT_FAMILY = "\"HYWenHei 85W\", \"HYWenHei-85W\", Signika, ui-sans-serif, sans-serif";
4
+ const GAME_UNIT = "min(100cqh / 1080, 100cqw / 1920)";
5
+ const GAME_CANVAS_UNIT = "min(100cqh / 900, 100cqw / 1600)";
6
+ const GAME_CANVAS_INSET = "min(var(--unit) * 71, (100cqw - var(--unit) * 1920) / 2)";
7
+ const GAME_CURSOR_SIZE = 26;
8
+ const GAME_CURSOR = `url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="${GAME_CURSOR_SIZE}" height="${GAME_CURSOR_SIZE}" viewBox="-2 -2 66 66"><defs><radialGradient id="g" cx="28" cy="28" r="34" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffea00"/><stop offset="0.45" stop-color="#ffc800"/><stop offset="1" stop-color="#ffc100"/></radialGradient></defs><path d="M0 0Q30.1 11.4 62 15Q47.5 36.1 59 59Q36.1 47.5 15 62Q11.4 30.1 0 0Z" fill="none" stroke="#2c3a4e" stroke-opacity="0.75" stroke-width="3" stroke-linejoin="round"/><path d="M0 0Q30.1 11.4 62 15Q47.5 36.1 59 59Z" fill="#fff"/><path d="M0 0L59 59Q36.1 47.5 15 62Q11.4 30.1 0 0Z" fill="#f4f5e0"/><path d="M26 26Q47.5 32 62 15Q47.5 36.1 59 59Q36.1 47.5 15 62Q32 47.5 26 26Z" fill="url(#g)"/></svg>`)}") 1 1, auto`;
9
+ const SETTINGS_RING_CENTRE = [24.05, 24.9];
10
+ const SETTINGS_RING_RADIUS = 9.85;
11
+ const SETTINGS_RING_WIDTH = 1.9;
12
+ const FIXTURE_VARIANT_SEPARATOR = "-";
13
+ //#endregion
14
+ //#region \0/plugin-vue/export-helper
15
+ var export_helper_default = (sfc, props) => {
16
+ const target = sfc.__vccOpts || sfc;
17
+ for (const [key, val] of props) target[key] = val;
18
+ return target;
19
+ };
20
+ //#endregion
21
+ //#region src/components/GameScreen/Index.vue
22
+ const _hoisted_1$7 = { class: "game-screen" };
23
+ var Index_default = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ defineComponent({
24
+ __name: "Index",
25
+ setup(__props) {
26
+ useCssVars((_ctx) => ({
27
+ "v3519c02b": unref(GAME_CANVAS_INSET),
28
+ "v7558dc96": unref(GAME_CANVAS_UNIT),
29
+ "v2325394e": unref(GAME_UNIT),
30
+ "v2b5d102a": unref(GAME_CURSOR),
31
+ "v492b7442": unref(GAME_FONT_FAMILY)
32
+ }));
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createElementBlock(Fragment, null, [
35
+ createCommentVNode(" The root every screen of the game's is drawn in: the window's own container, whose `--unit` is a pixel of the "),
36
+ createCommentVNode(" Game's 1920 by 1080 screen, `--canvas-unit` a unit of its interface's 1600 by 900 canvas and `--canvas-inset` how "),
37
+ createCommentVNode(" Far the canvas stands in from each side, in the game's face and pointer. Each resolves where a child uses it, "),
38
+ createCommentVNode(" Against this container "),
39
+ createElementVNode("div", _hoisted_1$7, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])
40
+ ], 2112);
41
+ };
42
+ }
43
+ }), [["__scopeId", "data-v-950f02f4"]]);
44
+ //#endregion
45
+ //#region src/components/LoadingSpinner/Index.vue
46
+ const _sfc_main$6 = {};
47
+ const _hoisted_1$6 = {
48
+ class: "loading-spinner",
49
+ role: "status",
50
+ "aria-label": "Loading"
51
+ };
52
+ function _sfc_render$2(_ctx, _cache) {
53
+ return openBlock(), createElementBlock(Fragment, null, [
54
+ createCommentVNode(" The game's wait mark: a dark glass square 120 units across with rounded corners, and in it a white ring 40 units "),
55
+ createCommentVNode(" Across that fades out from its round head round to its tail, turning. Measured from a 1440 high recording "),
56
+ createElementVNode("div", _hoisted_1$6, [..._cache[0] || (_cache[0] = [createElementVNode("span", { class: "ring" }, null, -1)])])
57
+ ], 2112);
58
+ }
59
+ var Index_default$1 = /*#__PURE__*/ export_helper_default(_sfc_main$6, [["render", _sfc_render$2], ["__scopeId", "data-v-2b93853d"]]);
60
+ //#endregion
61
+ //#region src/services/OrnamentPath.ts
62
+ const ORNAMENT_MIDDLE_PATH = "M 179.5 39 L 185.5 39 L 191 43.5 L 193 48.5 L 203 60.5 L 205 65.5 L 215 75.5 L 219 83.5 L 219 88.5 L 214.5 94 L 201.5 101 L 197.5 102 L 194 99.5 L 190.5 95 L 188.5 94 L 178.5 94 L 171 99.5 L 155.5 117 L 153 118.5 L 146.5 126 L 136.5 135 L 133.5 137 L 131.5 137 L 110.5 152 Q 104.23 153.73 100.5 158 L 91.5 160 L 87 163.5 Q 86.5 167.5 89.5 168 L 98.5 172 L 102.5 176 L 119.5 184 L 127.5 190 L 136.5 194 L 151 206.5 L 157.5 214 Q 159.75 213.25 159 215.5 L 165.5 223 L 170 226.5 Q 170.63 230.37 173.5 232 L 178.5 235 L 187.5 235 Q 188.5 232.5 191 233 Q 191.71 228.11 195.5 225 L 198.5 224 L 225 199.5 L 227.5 195 L 232.5 193 L 241.5 186 L 246.5 184 L 260 174.5 L 261.5 172 Q 267 170 270 165.5 L 270 162.5 L 265 157.5 L 265 154.5 L 268.5 150 Q 270.75 150.75 270 148.5 L 275.5 142 L 281.5 139 L 292.5 139 L 318.5 153 L 323.5 158 L 326.5 158 L 332.5 160 L 336 163.5 L 335 168 L 330.5 170 L 325.5 171 L 318.5 177 L 314.5 178 L 302.5 185 L 297.5 190 L 287.5 193 L 279.5 200 L 275.5 201 L 270.5 205 L 269 205 L 267.5 208 L 243.5 224 L 238 229.5 Q 238.75 231.75 236.5 231 L 216 249.5 L 214 253.5 L 201 267.5 L 192 280.5 L 189 287 L 186.5 288 L 183.5 288 L 182.5 289 L 179.5 289 L 173 285.5 L 169 274.5 Q 160.63 267.66 156 258 L 153 256.5 L 149 251.5 L 149 250 L 147 250 Q 148.13 247.33 145.5 248 L 132.5 233 L 129 232 L 129 230.5 L 122.5 224 L 119.5 223 L 108.5 214 L 95.5 208 L 89.5 203 L 85.5 201 L 74.5 199 L 69.5 195 L 54.5 190 L 48.5 186 L 30.5 180 L 0 180 L 0 149 L 31.5 149 L 35.5 147 L 44.5 147 L 49 145 Q 47.87 142.33 50.5 143 L 57.5 139 L 65.5 138 L 74.5 135 L 81.5 129 L 93.5 125 L 96.5 122 L 112.5 114 L 117 110.5 L 120.5 106 L 124.5 104 L 137 91.5 L 142.5 84 L 146 81.5 Q 150.3 73.8 157 68.5 L 164 56.5 L 177.5 40 L 179.5 39 Z M 294.5 40 L 303.5 40 Q 304.75 43.5 308 43 L 313 53.5 L 329 71.5 L 338.5 85 Q 340.75 84.25 340 86.5 L 346.5 94 L 352 98.5 L 354 103 Q 363.2 105.9 368.5 114 L 374.5 117 L 376.5 117 L 385.5 124 L 397.5 128 L 407.5 135 L 409.5 135 L 412.5 137 L 422.5 139 L 424.5 141 L 430.5 144 L 432.5 144 L 434.5 146 Q 437.75 145.25 438.5 147 L 445.5 147 L 451.5 149 L 480 149 L 480 180 L 466.5 180 L 465.5 179 L 459.5 179 L 450.5 182 L 445.5 182 L 441.5 184 L 437.5 184 L 429.5 190 L 426.5 191 L 419.5 191 L 413.5 194 L 411.5 194 L 398.5 202 L 388.5 204 L 381.5 210 L 371.5 214 L 367 218.5 L 365.5 221 L 356.5 225 L 352 229.5 L 347.5 235 L 345 236.5 L 334.5 249 L 332 250.5 Q 332.75 252.75 330.5 252 L 326.5 257 L 324 258.5 L 319 267.5 L 312 276.5 L 312 278.5 L 304.5 288 L 294.5 288 L 289 282.5 L 288 279.5 L 280 269.5 L 279 266.5 L 267 253.5 L 264 245.5 L 264 240.5 L 265 237.5 L 268.5 234 L 273 230.5 L 275.5 227 L 278.5 226 L 286 226 Q 286.65 231.4 291.5 234 L 294.5 235 L 301.5 235 Q 307 233 310 228.5 L 312 224 L 313.5 224 L 325.5 212 L 327 212 L 327 210.5 L 335.5 202 L 346.5 193 L 356.5 190 L 363.5 183 L 375.5 178 L 382.5 173 L 389.5 171 L 394 166.5 L 394 163.5 L 390.5 160 L 379.5 157 L 373.5 151 L 359.5 145 L 348.5 137 L 345.5 136 L 332 123.5 L 326.5 117 L 323 114.5 L 306.5 96 L 302.5 94 L 296.5 93 Q 295.75 94.75 292.5 94 L 288 98.5 Q 287.75 103.25 284.5 105 Q 278 107.5 274.5 113 L 273 113 Q 274.13 115.67 271.5 115 L 260.5 127 L 250.5 136 L 241 141.5 L 239.5 144 L 238 144 Q 239.13 146.67 236.5 146 Q 232.09 150.09 225.5 152 L 212 163.5 L 211 166.5 L 212 167.5 L 212 174.5 L 206.5 182 L 197.5 190 L 188.5 191 L 170.5 181 L 167.5 178 L 161.5 176 L 157.5 172 L 148.5 169 L 145 165.5 L 147.5 161 L 158.5 156 L 166.5 151 L 168.5 151 L 176.5 147 L 181.5 142 L 193.5 137 L 202.5 129 L 211.5 126 L 215 123.5 L 219.5 118 L 224.5 115 L 233.5 107 L 237.5 105 L 242 100.5 L 246.5 95 L 249.5 94 L 255 89.5 L 257 85 L 260 83.5 L 267 73.5 L 287 51.5 L 292 41 L 294.5 40 Z ";
63
+ const ORNAMENT_END_PATH = "M 210.5 53 L 216.5 53 L 224 59.5 L 227.5 65 L 238 73.5 L 242.5 79 L 249.5 82 Q 252.67 86.83 258.5 89 L 262.5 89 L 263.5 90 L 269.5 91 L 284.5 98 L 294.5 98 L 295.5 99 L 303.5 99 L 304.5 100 L 311.5 100 L 312.5 101 L 320 101 L 320 131.5 Q 319.88 132.63 314.5 132 L 313.5 133 L 307.5 133 L 306.5 134 L 289.5 134 Q 288.5 136 284.5 135 L 269.5 142 L 266.5 143 L 260.5 143 Q 254 145.5 250.5 151 L 235.5 160 L 226 169.5 L 221.5 177 L 214.5 180 L 208.5 180 L 205.5 179 L 193 168.5 Q 193.75 166.25 191.5 167 L 185.5 162 Q 177.28 160.22 172.5 155 L 159.5 151 L 156.5 148 L 148.5 145 L 131.5 142 L 125.5 138 L 116.5 137 L 110.5 134 L 101.5 133 L 90.5 129 L 83.5 129 L 79.5 127 L 75.5 127 L 74.5 126 L 60.5 124 L 55.5 122 L 44.5 122 Q 43.25 119.75 38.5 121 L 32 117.5 L 33 114 L 38.5 112 L 41.5 112 L 42.5 111 L 54.5 111 L 55.5 110 L 59.5 110 L 65.5 108 L 74.5 107 L 75.5 106 L 78.5 106 L 82.5 104 L 86.5 104 L 95.5 101 L 103.5 101 L 119.5 95 L 123.5 95 L 130.5 91 Q 134.5 92 135.5 90 L 142.5 90 L 143.5 89 L 147.5 89 L 153.5 87 L 163.5 80 L 172.5 78 L 188.5 67 L 191.5 66 L 198.5 59 L 210.5 53 Z ";
64
+ //#endregion
65
+ //#region src/components/OrnamentDivider/Index.vue
66
+ const _hoisted_1$5 = {
67
+ class: "ornament-divider",
68
+ "aria-hidden": "true"
69
+ };
70
+ const _hoisted_2$5 = {
71
+ class: "end",
72
+ viewBox: "0 0 320 224"
73
+ };
74
+ const _hoisted_3$3 = ["d"];
75
+ const _hoisted_4$2 = {
76
+ class: "middle",
77
+ viewBox: "0 0 480 320"
78
+ };
79
+ const _hoisted_5$1 = ["d"];
80
+ const _hoisted_6 = {
81
+ class: "end right",
82
+ viewBox: "0 0 320 224"
83
+ };
84
+ const _hoisted_7 = ["d"];
85
+ var Index_default$2 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ defineComponent({
86
+ __name: "Index",
87
+ setup(__props) {
88
+ return (_ctx, _cache) => {
89
+ return openBlock(), createElementBlock(Fragment, null, [
90
+ createCommentVNode(" The game's divider: a hairline as wide as its parent, a tapered diamond at each end and an interlocked double "),
91
+ createCommentVNode(" Diamond at its middle, in the game's units from the parent's `--unit` "),
92
+ createElementVNode("div", _hoisted_1$5, [
93
+ (openBlock(), createElementBlock("svg", _hoisted_2$5, [createElementVNode("path", { d: unref(ORNAMENT_END_PATH) }, null, 8, _hoisted_3$3)])),
94
+ (openBlock(), createElementBlock("svg", _hoisted_4$2, [createElementVNode("path", { d: unref(ORNAMENT_MIDDLE_PATH) }, null, 8, _hoisted_5$1)])),
95
+ (openBlock(), createElementBlock("svg", _hoisted_6, [createElementVNode("path", { d: unref(ORNAMENT_END_PATH) }, null, 8, _hoisted_7)]))
96
+ ])
97
+ ], 2112);
98
+ };
99
+ }
100
+ }), [["__scopeId", "data-v-d85b7a4e"]]);
101
+ //#endregion
102
+ //#region src/components/ProgressBar/Index.vue
103
+ const _hoisted_1$4 = ["aria-valuenow"];
104
+ const _hoisted_2$4 = { class: "track" };
105
+ var Index_default$3 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ defineComponent({
106
+ __name: "Index",
107
+ props: {
108
+ isFolded: { type: Boolean },
109
+ progress: {}
110
+ },
111
+ setup(__props) {
112
+ return (_ctx, _cache) => {
113
+ return openBlock(), createElementBlock(Fragment, null, [
114
+ createCommentVNode(" The game's progress bar, 394 units from diamond to diamond: a dark track 10 units high with pointed ends between "),
115
+ createCommentVNode(" Two small white diamonds, filled white from its left, measured from the English client's login screen. It opens "),
116
+ createCommentVNode(" Out of its middle over 250 ms as it mounts and folds back into it, so its diamonds meet as one: the English "),
117
+ createCommentVNode(" Recording's login screen at 60 frames "),
118
+ createElementVNode("div", {
119
+ class: normalizeClass(["progress-bar", { folded: __props.isFolded }]),
120
+ role: "progressbar",
121
+ "aria-valuemin": "0",
122
+ "aria-valuemax": "100",
123
+ "aria-valuenow": Math.round(__props.progress * 100)
124
+ }, [
125
+ _cache[0] || (_cache[0] = createElementVNode("span", { class: "diamond" }, null, -1)),
126
+ createElementVNode("span", _hoisted_2$4, [createElementVNode("span", {
127
+ class: "fill",
128
+ style: normalizeStyle({ width: `${__props.progress * 100}%` })
129
+ }, null, 4)]),
130
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "diamond" }, null, -1))
131
+ ], 10, _hoisted_1$4)
132
+ ], 2112);
133
+ };
134
+ }
135
+ }), [["__scopeId", "data-v-de59534b"]]);
136
+ //#endregion
137
+ //#region src/components/PromptBand/Index.vue
138
+ const _sfc_main$3 = {};
139
+ const _hoisted_1$3 = { class: "prompt-band" };
140
+ const _hoisted_2$3 = { class: "text" };
141
+ function _sfc_render$1(_ctx, _cache) {
142
+ return openBlock(), createElementBlock(Fragment, null, [
143
+ createCommentVNode(" The band a prompt is set in across the foot of a screen: a navy glass strip 44 units high, fading in over its "),
144
+ createCommentVNode(" Ends, its words centred in a light grey. Its glass and fade are solved from the scene the English recording "),
145
+ createCommentVNode(" Shows through it at the door "),
146
+ createElementVNode("div", _hoisted_1$3, [createElementVNode("p", _hoisted_2$3, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])])
147
+ ], 2112);
148
+ }
149
+ var Index_default$4 = /*#__PURE__*/ export_helper_default(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-3fd65c8e"]]);
150
+ //#endregion
151
+ //#region src/models/InterfaceIcon.ts
152
+ let InterfaceIcon = /* @__PURE__ */ function(InterfaceIcon) {
153
+ InterfaceIcon["Exit"] = "Exit";
154
+ InterfaceIcon["Notice"] = "Notice";
155
+ InterfaceIcon["Power"] = "Power";
156
+ InterfaceIcon["Repair"] = "Repair";
157
+ InterfaceIcon["Settings"] = "Settings";
158
+ return InterfaceIcon;
159
+ }({});
160
+ //#endregion
161
+ //#region src/services/InterfaceIconCentreMap.ts
162
+ const InterfaceIconCentreMap = {
163
+ ["Exit"]: [26.6, 24.75],
164
+ ["Notice"]: [24, 25.8],
165
+ ["Power"]: [25.5, 23.75],
166
+ ["Repair"]: [24, 26],
167
+ ["Settings"]: [23.95, 25]
168
+ };
169
+ //#endregion
170
+ //#region src/services/InterfaceIconPathMap.ts
171
+ const InterfaceIconPathMap = {
172
+ ["Exit"]: "M 14.3 8.16 L 31.36 8.16 L 31.45 8.25 L 32.11 8.34 L 32.67 8.62 L 33.56 9.42 L 34.22 10.92 L 34.22 11.48 L 34.31 11.58 L 34.31 13.83 Q 34.15 13.9 34.22 14.2 L 33.8 14.91 L 33.23 15.09 L 31.17 15.09 L 31.08 15 L 30.52 14.91 L 30.19 14.58 Q 30.26 14.27 30.09 14.2 L 30.09 13.08 L 29.67 12.56 L 29.02 12.09 L 17.3 12.09 L 16.69 12.42 L 16.31 13.17 L 16.31 36.42 L 16.5 36.89 L 16.83 37.31 L 17.3 37.5 L 29.02 37.5 L 30 36.7 L 30.09 36.52 L 30.09 35.3 L 30.19 35.02 L 30.52 34.69 Q 30.69 34.53 31.08 34.59 L 31.17 34.5 L 33.23 34.5 Q 33.3 34.66 33.61 34.59 L 33.94 34.83 L 34.31 35.67 L 34.31 38.11 L 34.22 38.2 L 34.22 38.67 L 33.94 39.23 L 33.94 39.42 L 33.56 40.17 L 33.33 40.41 L 32.67 40.97 L 32.11 41.25 L 31.45 41.34 L 31.36 41.44 L 14.3 41.44 L 13.17 41.06 Q 12.84 40.56 12.28 40.41 Q 12.08 39.59 11.53 39.05 L 11.44 38.77 L 11.44 38.3 L 11.34 38.2 L 11.34 11.39 Q 11.55 11.27 11.44 10.83 L 11.62 10.45 L 12 9.98 L 12.19 9.42 L 12.61 9 L 13.17 8.53 L 14.3 8.16 Z M 33.33 17.16 L 33.8 17.16 L 34.55 17.44 L 36.8 19.59 L 39 21.52 L 39.14 21.75 Q 39.57 21.83 39.75 22.17 L 40.08 22.59 L 41.25 23.58 L 41.67 24.09 L 41.91 24.23 L 42 24.52 L 42 25.08 L 41.91 25.36 L 41.58 25.69 Q 41.37 25.62 41.44 25.83 L 40.5 26.67 L 40.36 26.91 L 39.84 27.23 L 39.42 27.75 L 39 28.08 L 38.77 28.41 Q 38.31 28.56 38.06 28.92 Q 38.13 29.13 37.92 29.06 L 36.23 30.66 L 35.67 31.12 L 35.53 31.12 L 35.39 31.41 L 34.27 32.34 Q 33.96 32.27 33.89 32.44 L 33.33 32.44 L 32.62 31.92 L 32.34 31.17 L 32.34 27.42 L 32.11 27.09 L 24.52 27.09 L 24.05 26.91 L 23.53 26.39 L 23.34 25.92 L 23.34 23.77 L 23.62 23.11 L 24.14 22.59 L 24.42 22.5 L 31.55 22.5 L 31.73 22.59 Q 31.8 22.43 32.11 22.5 L 32.34 22.27 L 32.34 18.42 L 32.44 18.33 Q 32.37 17.94 32.53 17.77 L 32.95 17.34 L 33.33 17.16 Z",
173
+ ["Notice"]: "M 14.67 11.16 L 16.08 11.16 Q 16.71 11.37 17.06 11.86 L 17.34 12.7 L 17.34 15.8 Q 17.13 15.91 17.25 16.36 L 17.06 16.73 L 16.64 17.16 L 16.08 17.44 L 14.67 17.44 L 14.02 17.16 L 13.69 16.83 L 13.41 16.27 L 13.41 12.42 L 13.59 11.86 L 14.02 11.44 L 14.67 11.16 Z M 32.67 11.16 L 34.08 11.16 Q 34.71 11.37 35.06 11.86 L 35.25 12.23 Q 35.13 12.68 35.34 12.8 L 35.34 15.98 L 35.25 16.08 L 35.16 16.64 L 34.64 17.16 L 34.08 17.44 L 32.67 17.44 L 31.78 17.06 L 31.41 16.17 L 31.41 12.42 L 31.69 11.77 L 32.02 11.44 L 32.67 11.16 Z M 28.64 14.06 L 29.02 14.16 L 29.25 14.39 L 29.34 14.67 L 29.34 17.11 L 30.23 18.75 L 30.75 19.08 L 31.08 19.5 L 32.39 20.06 Q 32.84 19.95 32.95 20.16 L 33.8 20.16 Q 33.91 19.95 34.36 20.06 L 35.91 19.41 L 35.91 19.27 L 36.23 18.84 Q 36.6 18.79 36.75 18.52 L 37.41 16.55 L 37.41 14.58 L 37.73 14.25 L 38.02 14.16 L 38.11 14.25 L 38.48 14.25 L 38.95 14.44 L 40.03 15.42 L 40.5 16.17 L 40.59 16.83 L 40.69 16.92 L 40.69 37.45 L 40.59 37.55 L 40.5 38.2 L 40.22 38.77 L 39.42 39.66 L 38.86 39.84 L 38.02 40.41 L 37.17 40.41 L 37.08 40.5 L 10.92 40.5 L 10.83 40.41 L 10.17 40.41 L 9.89 40.31 Q 9.44 39.82 8.67 39.66 L 8.34 39.33 L 7.78 38.58 L 7.41 37.45 L 7.41 16.83 L 7.78 15.8 L 8.77 14.72 L 9.14 14.44 L 9.7 14.25 Q 10.08 14.34 10.17 14.16 L 11.02 14.16 L 11.25 14.39 L 11.34 14.67 L 11.34 17.11 L 11.53 17.58 L 11.81 17.86 L 12.09 18.42 L 12.09 18.61 L 12.33 18.84 L 13.08 19.5 L 14.11 19.97 L 14.39 20.06 L 14.86 20.06 L 14.95 20.16 L 15.98 20.16 L 16.08 20.06 L 16.64 19.97 L 17.3 19.59 L 17.48 19.59 L 17.91 19.41 L 17.91 19.27 L 18.52 18.66 Q 18.73 18.73 18.66 18.52 L 19.31 17.02 Q 19.2 16.57 19.41 16.45 L 19.41 14.58 L 19.64 14.25 L 19.83 14.16 L 28.55 14.16 L 28.64 14.06 Z M 14.16 24.09 L 13.88 24.19 L 13.22 24.75 L 12.84 25.12 L 12.75 25.41 L 12.75 26.72 L 12.84 26.91 L 13.69 27.66 L 14.25 27.84 L 33.94 27.84 L 34.5 27.66 L 35.25 26.91 L 35.34 26.62 L 35.34 25.5 L 35.16 25.03 L 34.88 24.75 L 34.5 24.47 L 34.5 24.28 L 34.12 24.09 L 14.16 24.09 Z M 13.97 32.06 L 13.41 32.34 L 12.94 32.81 L 12.75 33.28 L 12.75 34.41 L 12.94 34.88 L 13.41 35.25 L 13.97 35.53 L 14.62 35.53 L 14.72 35.62 L 15.28 35.62 L 15.38 35.53 L 34.22 35.53 L 34.88 35.16 L 35.25 34.69 L 35.34 34.41 L 35.34 33.28 L 35.06 32.72 L 34.22 32.06 L 13.97 32.06 Z",
174
+ ["Power"]: "M 24.98 6.19 L 26.11 6.19 L 26.95 6.75 L 27.38 7.17 L 27.75 7.83 L 27.75 8.48 L 27.84 8.58 L 27.84 19.45 L 27.75 19.55 L 27.75 20.11 L 27.56 20.58 L 26.86 21.28 L 26.11 21.75 L 24.98 21.75 L 24.42 21.47 L 23.53 20.58 L 23.34 20.11 L 23.34 19.64 L 23.25 19.55 L 23.25 8.48 L 23.34 8.39 L 23.34 7.83 L 23.53 7.45 L 24.14 6.75 L 24.98 6.19 Z M 18.98 9.19 Q 19.34 9.12 19.41 9.33 L 19.5 9.52 L 19.5 14.02 L 19.08 14.53 L 18.61 14.91 L 18.33 15 L 17.25 15.98 L 16.83 16.5 L 16.5 16.73 L 15.28 18.23 L 14.91 18.98 L 14.91 19.17 L 14.44 19.92 L 14.06 21.42 L 13.69 21.98 Q 13.76 22.29 13.59 22.36 L 13.59 23.2 L 13.5 23.3 L 13.5 26.3 L 13.59 26.39 L 13.59 27.23 Q 13.76 27.3 13.69 27.61 L 14.16 28.45 L 14.16 28.73 L 14.25 28.83 L 14.25 29.11 L 14.44 29.67 L 14.72 30.05 L 15.28 31.36 L 16.73 33.09 L 17.25 33.52 L 17.48 33.84 L 18.23 34.5 L 18.52 34.59 L 18.98 35.06 L 19.55 35.34 L 19.73 35.34 L 20.67 35.91 L 22.17 36.28 L 22.73 36.66 Q 23.04 36.59 23.11 36.75 L 23.95 36.75 L 24.05 36.84 L 27.05 36.84 L 27.14 36.75 L 27.98 36.75 Q 28.05 36.59 28.36 36.66 L 28.92 36.28 L 30.42 35.91 L 30.8 35.62 L 32.11 35.06 L 33.84 33.61 L 34.27 33.09 L 34.59 32.86 L 35.25 32.11 L 35.34 31.83 L 35.81 31.36 L 36.09 30.8 L 36.09 30.61 L 36.66 29.67 L 37.03 28.17 L 37.41 27.61 Q 37.34 27.3 37.5 27.23 L 37.5 26.39 L 37.59 26.3 L 37.59 23.3 L 37.5 23.2 L 37.5 22.36 Q 37.34 22.29 37.41 21.98 L 37.03 21.42 L 36.84 20.48 L 36.75 20.39 L 36.75 20.11 L 36.38 19.55 L 35.81 18.23 L 34.36 16.5 L 33.84 16.08 L 33.61 15.75 L 31.69 14.2 L 31.59 14.02 L 31.59 9.52 L 31.83 9.19 L 32.11 9.19 L 32.58 9.66 L 33.42 9.94 L 33.89 10.41 L 34.45 10.59 Q 35.07 11.23 35.91 11.53 Q 35.86 11.8 36.14 11.91 L 36.75 12.33 L 37.08 12.75 L 37.5 12.98 Q 37.58 13.42 37.92 13.59 L 38.25 13.83 L 38.44 14.2 L 39 14.77 Q 39.2 15.37 39.66 15.7 L 39.84 16.27 L 40.41 16.92 L 40.59 17.58 L 41.16 18.33 L 41.25 18.61 L 41.34 19.36 L 41.62 19.92 L 41.81 20.48 L 41.91 21.23 L 42 21.33 L 42 22.08 L 42.09 22.17 L 42.09 23.2 L 42.19 23.3 L 42.19 26.39 L 42.09 26.48 L 42.09 27.52 L 42 27.61 L 42 28.27 Q 41.81 28.36 41.91 28.73 L 41.81 28.83 L 41.81 29.11 L 41.62 29.67 L 41.34 30.23 L 41.16 31.27 L 40.69 31.83 L 40.41 32.67 L 39.84 33.33 L 39.66 33.89 L 39.28 34.27 L 38.81 35.16 Q 38.54 35.11 38.44 35.39 L 38.02 36 L 37.59 36.33 L 37.36 36.75 Q 36.93 36.83 36.75 37.17 L 36.52 37.5 L 36.14 37.69 L 35.58 38.25 L 35.3 38.34 L 34.45 39 L 33.89 39.19 L 33.42 39.66 L 32.77 39.84 L 32.02 40.41 L 31.73 40.5 L 31.36 40.5 L 29.77 41.06 L 29.02 41.16 L 28.92 41.25 L 28.45 41.25 L 28.36 41.34 L 27.33 41.34 L 27.23 41.44 L 23.86 41.44 L 23.77 41.34 L 22.73 41.34 L 22.64 41.25 L 22.17 41.25 L 22.08 41.16 L 21.23 41.06 L 20.11 40.59 L 19.08 40.41 L 18.52 39.94 L 17.86 39.75 L 17.2 39.19 L 16.64 39 Q 16.19 38.51 15.52 38.25 L 14.95 37.69 L 14.34 37.27 L 14.02 36.84 L 13.59 36.61 Q 13.51 36.18 13.17 36 L 12.75 35.67 Q 12.69 35.31 12.42 35.16 Q 12.21 35.23 12.28 35.02 L 11.81 34.27 L 11.44 33.89 L 11.06 33.05 L 10.69 32.67 L 10.41 31.83 L 10.03 31.45 L 9.75 30.61 L 9.75 30.23 L 9.28 29.11 L 9.19 28.36 L 9.09 28.27 L 9.09 27.52 L 9 27.42 L 9 26.48 L 8.91 26.39 L 8.91 23.11 L 9 23.02 L 9 22.08 L 9.09 21.98 L 9.09 21.33 Q 9.28 21.23 9.19 20.86 L 9.28 20.77 L 9.28 20.48 L 9.47 19.92 L 9.66 19.64 L 9.66 19.36 L 9.84 18.98 L 9.94 18.33 L 10.41 17.77 L 10.69 16.92 L 11.25 16.27 L 11.44 15.7 L 13.08 13.59 L 13.5 13.27 L 13.73 12.84 Q 14.17 12.76 14.34 12.42 L 14.58 12.09 Q 15.19 11.86 15.52 11.34 L 15.98 11.16 L 16.36 10.78 L 16.92 10.5 L 17.11 10.5 L 17.67 9.94 L 18.52 9.66 L 18.98 9.19 Z",
175
+ ["Repair"]: "M 29.02 9.28 Q 29.39 9.19 29.48 9.38 L 30.7 9.38 Q 30.8 9.56 31.17 9.47 L 31.27 9.56 L 32.67 9.84 L 32.91 10.08 L 33 10.64 Q 32.84 10.71 32.91 11.02 L 32.58 11.34 L 32.25 11.58 L 31.92 12 L 31.5 12.33 L 31.17 12.75 L 30.84 12.98 L 30.61 13.41 L 30.09 13.73 L 29.91 14.16 Q 29.44 14.27 29.16 14.67 L 28.92 15 L 28.69 15.14 L 28.27 15.75 L 27.94 15.98 L 27.66 16.64 Q 27.73 16.95 27.56 17.02 L 27.56 17.58 L 27.47 17.67 L 27.47 20.48 L 27.56 20.58 L 27.56 20.86 L 27.84 21.7 L 28.64 22.5 L 29.2 22.69 L 29.48 22.69 L 29.58 22.78 L 32.86 22.78 L 32.95 22.69 L 33.7 22.59 L 34.17 22.31 L 36.75 19.92 L 37.83 18.66 L 38.16 18.42 L 38.39 18.09 L 39.23 17.34 L 39.89 17.34 L 40.31 17.67 L 40.59 18.42 L 40.59 19.17 L 40.69 19.27 L 40.69 22.36 L 40.59 22.45 L 40.59 23.02 L 40.5 23.11 L 40.5 23.58 L 40.31 24.05 L 40.31 24.33 L 39.84 25.27 L 39.66 26.02 L 39.19 26.48 L 39 26.95 Q 38.44 27.38 38.16 28.08 L 37.17 29.16 L 36.56 29.58 Q 36.63 29.79 36.42 29.72 Q 36.07 30.12 35.48 30.28 L 35.2 30.56 L 34.36 30.94 L 34.17 30.94 L 33.52 31.41 L 32.11 31.69 L 31.83 31.88 L 30.98 32.16 L 29.58 32.16 Q 29.46 32.37 29.02 32.25 L 28.92 32.16 L 27.8 32.16 Q 27.73 31.99 27.42 32.06 L 26.77 31.69 L 26.48 31.69 L 26.02 31.5 L 25.64 31.5 L 24.7 31.03 L 23.86 30.84 Q 23.37 30.67 23.11 30.28 L 22.64 30.09 L 21.47 29.02 Q 21.54 28.8 21.33 28.88 L 20.16 27.61 Q 20.06 27.14 19.69 26.95 L 19.12 25.73 L 19.12 25.45 L 18.84 24.8 L 18.66 23.77 L 18.28 23.11 L 18.19 22.83 L 18.19 22.36 L 18.09 22.27 L 18.09 19.27 L 18.19 19.17 L 18.19 18.61 L 18.28 18.33 L 18.75 17.39 L 18.84 16.64 L 19.5 15.42 L 19.5 15.23 L 19.78 14.67 L 20.16 14.3 Q 20.27 13.76 20.67 13.5 L 21 13.27 Q 21.06 12.9 21.33 12.75 L 22.92 11.44 L 23.58 11.16 L 24.05 10.69 L 24.7 10.5 L 25.64 9.94 L 26.3 9.84 L 26.39 9.75 L 26.86 9.75 L 27.7 9.47 L 28.92 9.38 L 29.02 9.28 Z M 16.73 27 Q 17.25 26.91 17.34 27.23 Q 17.47 27.81 17.91 28.08 L 18.38 29.06 L 18.52 29.06 L 18.84 29.39 L 19.27 30 L 19.59 30.23 L 19.92 30.66 L 20.25 30.89 Q 20.31 31.25 20.58 31.41 L 20.95 31.5 L 21.52 32.06 L 22.55 32.53 L 23.16 33.05 L 23.25 33.42 Q 22.61 34.38 21.75 35.11 L 21.75 35.25 L 21.61 35.25 L 20.34 36.42 L 19.92 36.94 L 19.69 37.08 L 18.75 38.11 L 18.75 38.25 L 18.61 38.25 L 17.34 39.42 L 17.02 39.84 L 16.69 40.08 L 15.42 41.44 L 15 41.77 Q 15.07 41.98 14.86 41.91 L 14.67 42.09 L 14.48 42.09 L 14.11 42.38 L 13.27 42.75 L 12.52 42.75 L 12.42 42.84 L 11.3 42.84 L 11.2 42.75 L 10.64 42.75 L 9.98 42.47 L 9.8 42.28 L 9.14 42 L 8.34 41.3 L 7.69 40.36 L 7.59 39.8 L 7.5 39.7 Q 7.59 39.33 7.41 39.23 L 7.41 37.17 L 7.5 37.08 L 7.59 36.42 L 7.88 35.86 L 8.77 34.69 L 9.19 34.36 L 9.61 33.84 L 10.03 33.52 L 10.17 33.28 L 10.78 32.77 L 10.92 32.53 L 11.34 32.2 L 11.77 31.69 L 12.19 31.36 L 12.61 30.84 L 12.94 30.61 L 13.27 30.19 L 13.69 29.86 L 13.92 29.53 L 14.34 29.2 L 14.77 28.69 L 15.19 28.36 L 15.61 27.84 L 16.03 27.52 L 16.17 27.28 L 16.73 27 Z M 11.16 36.94 L 10.69 37.12 L 10.69 37.31 L 10.03 38.16 L 10.03 39 L 10.22 39.38 L 10.97 40.03 L 11.62 40.31 L 12 40.22 L 12.47 39.94 L 13.03 39.38 L 13.22 38.91 L 13.22 38.06 L 12.66 37.31 L 12.28 36.94 L 11.16 36.94 Z",
176
+ ["Settings"]: "M 17.95 8.25 L 18.89 8.25 Q 18.96 8.41 19.27 8.34 L 19.64 8.53 L 20.3 9.09 L 20.58 9.19 L 21.05 9.66 Q 21.81 9.88 22.27 10.41 L 22.83 10.59 L 23.2 10.59 L 23.3 10.69 L 24.7 10.69 Q 24.82 10.48 25.27 10.59 L 25.92 10.31 L 26.2 10.03 L 27.05 9.66 L 27.52 9.19 L 27.8 9.09 L 28.45 8.53 L 28.83 8.34 Q 29.2 8.44 29.3 8.25 L 30.14 8.25 L 30.23 8.34 L 30.7 8.34 L 30.98 8.44 L 31.64 8.91 L 32.48 9.28 L 33.14 9.84 L 33.52 9.94 L 34.08 10.5 Q 34.51 10.58 34.69 10.92 L 35.25 11.58 L 35.34 12.14 L 35.44 12.23 L 35.44 12.61 L 35.53 12.7 L 35.53 13.45 L 35.44 13.55 L 35.44 14.11 L 35.34 14.2 L 35.34 16.55 Q 35.51 16.62 35.44 16.92 Q 35.88 17.42 36.09 18.14 L 36.98 19.03 L 37.73 19.59 L 38.11 19.69 L 38.67 20.16 L 38.86 20.16 L 39.7 20.53 L 40.59 21.33 L 41.25 22.55 L 41.25 23.3 L 41.34 23.39 L 41.34 27.23 L 41.25 27.33 L 41.25 27.89 L 41.06 28.27 L 40.27 29.16 Q 39.46 29.43 38.86 29.91 L 38.02 30.19 L 36.84 31.17 L 36.19 31.92 L 35.34 33.52 L 35.34 36.05 L 35.44 36.14 L 35.44 36.8 Q 35.6 36.87 35.53 37.17 L 35.44 37.27 L 35.34 38.11 L 35.06 38.67 L 34.73 39 L 34.41 39.23 L 34.17 39.56 L 33.61 39.84 L 33.42 39.84 L 33.09 40.17 L 32.95 40.41 Q 32.25 40.59 31.92 41.16 L 31.08 41.53 L 30.52 41.72 L 30.14 41.72 L 30.05 41.81 L 29.39 41.81 Q 29.32 41.65 29.02 41.72 L 28.36 41.34 L 28.17 41.34 L 27.52 40.69 L 27.23 40.59 L 26.39 39.84 L 25.73 39.66 L 25.08 39.28 Q 24.63 39.4 24.52 39.19 L 23.58 39.19 L 23.48 39.28 L 22.83 39.38 L 21.61 39.94 L 21.14 40.41 L 20.58 40.69 L 20.25 41.02 L 20.11 41.25 Q 19.47 41.36 19.08 41.72 Q 18.77 41.65 18.7 41.81 L 18.05 41.81 L 17.95 41.72 L 17.3 41.62 L 17.02 41.44 L 16.17 41.16 L 15.61 40.59 L 15 40.27 L 14.77 39.94 Q 13.59 39.52 12.94 38.58 L 12.66 37.73 L 12.66 37.27 L 12.56 36.98 L 12.66 36.89 L 12.66 36.23 L 12.75 36.14 L 12.75 34.64 L 12.84 34.36 L 12.75 34.27 L 12.75 33.52 L 12.66 33.23 Q 12.14 32.72 11.91 31.92 L 10.83 30.75 Q 10.34 30.58 10.08 30.19 L 9.42 30 L 7.83 29.16 L 7.5 28.83 L 7.03 28.27 L 6.84 27.89 Q 6.96 27.45 6.75 27.33 L 6.75 23.2 L 6.84 23.11 L 6.84 22.55 L 6.94 22.27 L 7.5 21.33 L 7.83 21 L 8.39 20.53 L 9.23 20.25 L 9.98 19.69 L 10.55 19.5 L 12 18.14 L 12.75 16.64 L 12.75 14.2 L 12.66 14.11 L 12.66 13.55 L 12.56 13.45 L 12.56 12.61 L 12.66 12.52 L 12.84 11.58 L 13.73 10.59 L 14.34 10.27 L 14.58 9.94 L 15.23 9.66 L 15.61 9.28 L 16.64 8.81 L 16.83 8.62 L 17.39 8.34 Q 17.84 8.46 17.95 8.25 Z M 23.06 18.19 L 21.09 18.84 L 20.25 19.5 L 19.97 19.59 L 19.5 20.16 L 19.31 20.25 L 18.94 20.62 L 18 22.03 L 17.91 22.5 L 17.34 23.53 L 17.34 24.28 L 17.25 24.38 L 17.25 25.69 L 17.34 25.78 L 17.34 26.44 Q 17.53 26.44 17.44 26.81 L 17.91 27.47 L 18.19 28.41 L 18.75 28.97 L 18.84 29.25 Q 19.59 30.09 20.62 30.75 L 21.38 30.94 L 22.22 31.5 Q 22.5 31.41 22.69 31.59 L 25.31 31.59 Q 25.41 31.41 25.88 31.5 L 27.09 30.84 L 27.66 30.66 L 28.41 30.09 L 29.25 29.25 L 29.34 28.97 L 30 28.31 L 30.09 27.75 L 30.75 26.62 L 30.75 25.88 L 30.84 25.78 L 30.84 24.28 L 30.75 24.19 L 30.75 23.53 Q 30.56 23.44 30.66 23.16 L 30.09 22.22 L 29.91 21.66 L 29.25 20.91 L 29.16 20.62 L 28.88 20.34 L 28.59 20.06 L 27.47 19.03 L 26.62 18.66 L 26.34 18.66 L 25.59 18.28 Q 25.12 18.38 25.12 18.19 L 23.06 18.19 Z"
177
+ };
178
+ //#endregion
179
+ //#region src/components/RoundButton/Index.vue
180
+ const _hoisted_1$2 = ["aria-label"];
181
+ const _hoisted_2$2 = ["viewBox"];
182
+ const _hoisted_3$2 = ["d"];
183
+ const _hoisted_4$1 = [
184
+ "cx",
185
+ "cy",
186
+ "r",
187
+ "stroke-width"
188
+ ];
189
+ var Index_default$5 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ defineComponent({
190
+ __name: "Index",
191
+ props: {
192
+ icon: {},
193
+ label: {}
194
+ },
195
+ setup(__props) {
196
+ return (_ctx, _cache) => {
197
+ return openBlock(), createElementBlock(Fragment, null, [
198
+ createCommentVNode(" The game's round button: a white disc 52 units across under a soft dark rim, its glyph in the game's near black "),
199
+ createCommentVNode(" Centred on its ink, as the game centres each icon's sprite "),
200
+ createElementVNode("button", {
201
+ class: "round-button",
202
+ "aria-label": __props.label,
203
+ type: "button"
204
+ }, [(openBlock(), createElementBlock("svg", {
205
+ class: "glyph",
206
+ viewBox: `${unref(InterfaceIconCentreMap)[__props.icon][0] - 24} ${unref(InterfaceIconCentreMap)[__props.icon][1] - 24} 48 48`,
207
+ "aria-hidden": "true"
208
+ }, [createElementVNode("path", {
209
+ d: unref(InterfaceIconPathMap)[__props.icon],
210
+ "fill-rule": "evenodd"
211
+ }, null, 8, _hoisted_3$2), __props.icon === unref(InterfaceIcon).Settings ? (openBlock(), createElementBlock("circle", {
212
+ key: 0,
213
+ cx: unref(SETTINGS_RING_CENTRE)[0],
214
+ cy: unref(SETTINGS_RING_CENTRE)[1],
215
+ r: unref(SETTINGS_RING_RADIUS),
216
+ class: "ring",
217
+ "stroke-width": unref(SETTINGS_RING_WIDTH)
218
+ }, null, 8, _hoisted_4$1)) : createCommentVNode("v-if", true)], 8, _hoisted_2$2))], 8, _hoisted_1$2)
219
+ ], 2112);
220
+ };
221
+ }
222
+ }), [["__scopeId", "data-v-01b33b3e"]]);
223
+ //#endregion
224
+ //#region src/services/ServerMarkPath.ts
225
+ const SERVER_MARK_DIAMOND_PATH = "M 23.44 6.62 L 24.44 7.25 L 25.88 8.56 L 26.31 9.12 L 28 10.56 L 28.56 11.25 L 28.88 11.44 L 29.44 12.12 L 30.25 12.81 Q 30.16 13.09 30.44 13 L 32.19 15 L 32.69 15.38 L 32.88 15.38 L 32.88 15.56 L 33.5 16.31 L 36.44 19.25 L 37.12 19.81 L 38.44 21.25 L 38.88 21.56 L 39.44 22.25 L 39.88 22.56 L 40.56 23.38 Q 40.84 23.28 40.75 23.56 Q 41.29 23.84 41.12 24.81 L 39.94 26.12 L 38.88 27.06 L 38.06 28 L 35.88 30.06 L 31.56 34.62 L 30.88 35.06 L 27.81 38.25 L 26.88 39.06 L 24.44 41.62 L 23.94 41.88 L 23.06 41.88 L 22.69 41.75 L 22.25 41.31 L 21.69 40.62 Q 21.41 40.72 21.5 40.44 L 19.12 38.19 L 18.94 37.88 L 18.25 37.31 L 17.69 36.62 L 17.38 36.44 L 17.19 36.12 L 16.25 35.44 L 15.56 34.62 Q 15.28 34.72 15.38 34.44 L 13.06 32 L 10.25 29.44 L 8.81 27.88 L 8.12 27.31 L 6.12 25.19 L 5.75 24.69 L 5.75 24.19 L 6 23.69 L 7.69 22 Q 7.97 22.09 7.88 21.81 Q 8.31 21.66 8.25 21.25 L 8.44 21.25 L 8.94 20.88 L 11 18.81 L 11.12 18.38 L 11.31 18.38 L 12.12 17.69 L 12.81 16.88 L 13.12 16.69 L 14.31 15.38 L 15.12 14.69 L 15.31 14.38 L 16.12 13.69 L 16.44 13.12 L 17 12.88 L 17 12.69 L 17.56 12.12 L 18.12 11.69 L 18.44 11.25 L 19.12 10.69 L 19.56 10.12 L 20.12 9.69 L 20.38 9.12 L 20.56 9.12 L 22.69 7.12 L 23.44 6.62 Z";
226
+ const SERVER_MARK_TICK_PATH = "M 30.12 16.88 L 29.88 17 L 29.5 17.62 L 27 20.25 L 25.25 21.88 L 24 23.25 L 23.75 23.75 L 23.62 23.75 L 22.75 24.62 Q 22.88 24.88 22.62 24.75 L 21.88 25.62 L 20.62 26.62 L 20.25 26.5 L 19.62 26 L 19.12 25.5 L 18.62 25 L 18.12 24.5 L 16.75 23.25 L 16 23 L 15.62 23 L 15 23.25 Q 14.25 23.62 14 24.5 L 14 25.62 L 14.25 26.25 L 14.75 26.88 L 15.12 27 L 17.75 30 L 18.25 30.75 L 19.88 32 L 20.88 32 L 21.88 31.25 L 22.25 30.75 L 22.88 30.25 L 23.25 29.75 L 23.88 29.25 L 24.38 28.62 L 24.75 28.38 L 25.38 27.62 L 25.88 27.25 L 26.25 26.75 L 26.88 26.25 L 27.12 25.88 L 28 25.12 L 28.38 24.5 L 28.88 24.12 L 29.25 23.62 L 29.62 23.38 Q 30 23 30.25 22.5 L 31 22 L 31.12 21.75 L 31.88 21.12 L 33 20 Q 33.25 19.75 33.12 19.25 L 33.25 19.12 L 33.12 18.38 L 32.62 17.75 L 31.88 17 Q 31.25 17.12 31.25 16.88 L 30.12 16.88 Z";
227
+ //#endregion
228
+ //#region src/components/ServerBar/Index.vue
229
+ const _hoisted_1$1 = { class: "server-bar" };
230
+ const _hoisted_2$1 = {
231
+ class: "mark",
232
+ viewBox: "0 0 46 46",
233
+ "aria-hidden": "true"
234
+ };
235
+ const _hoisted_3$1 = ["d"];
236
+ const _hoisted_4 = ["d"];
237
+ const _hoisted_5 = { class: "name" };
238
+ var Index_default$6 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ defineComponent({
239
+ __name: "Index",
240
+ props: { name: {} },
241
+ setup(__props) {
242
+ return (_ctx, _cache) => {
243
+ return openBlock(), createElementBlock(Fragment, null, [
244
+ createCommentVNode(" The bar naming the chosen server, 456 by 75 units: a dark glass slab with a faint rim, the ticked diamond at its "),
245
+ createCommentVNode(" Left and the server's name at its middle, measured from the English client's login screen at 1080 high "),
246
+ createElementVNode("div", _hoisted_1$1, [(openBlock(), createElementBlock("svg", _hoisted_2$1, [createElementVNode("path", {
247
+ class: "diamond",
248
+ d: unref(SERVER_MARK_DIAMOND_PATH)
249
+ }, null, 8, _hoisted_3$1), createElementVNode("path", {
250
+ class: "tick",
251
+ d: unref(SERVER_MARK_TICK_PATH)
252
+ }, null, 8, _hoisted_4)])), createElementVNode("p", _hoisted_5, toDisplayString(__props.name), 1)])
253
+ ], 2112);
254
+ };
255
+ }
256
+ }), [["__scopeId", "data-v-deaec8b8"]]);
257
+ //#endregion
258
+ //#region src/components/ToastNotice/Index.vue
259
+ const _sfc_main = {};
260
+ const _hoisted_1 = {
261
+ class: "toast-notice",
262
+ role: "status"
263
+ };
264
+ const _hoisted_2 = { class: "mark" };
265
+ const _hoisted_3 = { class: "text" };
266
+ function _sfc_render(_ctx, _cache) {
267
+ return openBlock(), createElementBlock(Fragment, null, [
268
+ createCommentVNode(" The game's notice card, dropped at the top of a screen: white with rounded corners, 107 units high and at least "),
269
+ createCommentVNode(" 537 across, a round mark at its left and its words in the game's near black. Measured from a 1440 high "),
270
+ createCommentVNode(" Recording of the welcome the login screen shows "),
271
+ createElementVNode("div", _hoisted_1, [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "mark", {}, void 0, true)]), createElementVNode("p", _hoisted_3, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])])
272
+ ], 2112);
273
+ }
274
+ var Index_default$7 = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8ae84baf"]]);
275
+ //#endregion
276
+ //#region src/models/InterfaceClipProperty.ts
277
+ let InterfaceClipProperty = /* @__PURE__ */ function(InterfaceClipProperty) {
278
+ InterfaceClipProperty["Opacity"] = "opacity";
279
+ InterfaceClipProperty["Scale"] = "scale";
280
+ InterfaceClipProperty["X"] = "x";
281
+ InterfaceClipProperty["Y"] = "y";
282
+ return InterfaceClipProperty;
283
+ }({});
284
+ //#endregion
285
+ //#region src/models/reference/GameSourceKind.ts
286
+ let GameSourceKind = /* @__PURE__ */ function(GameSourceKind) {
287
+ GameSourceKind["AnimationClip"] = "AnimationClip";
288
+ GameSourceKind["Capture"] = "Capture";
289
+ GameSourceKind["Material"] = "Material";
290
+ GameSourceKind["Mesh"] = "Mesh";
291
+ GameSourceKind["MonoBehaviour"] = "MonoBehaviour";
292
+ GameSourceKind["RectTransform"] = "RectTransform";
293
+ GameSourceKind["Shader"] = "Shader";
294
+ GameSourceKind["Texture"] = "Texture";
295
+ GameSourceKind["Transform"] = "Transform";
296
+ return GameSourceKind;
297
+ }({});
298
+ //#endregion
299
+ //#region src/services/playInterfaceClip.ts
300
+ const InterfaceClipPropertyKeyframeMap = {
301
+ ["opacity"]: (value) => ({ opacity: value }),
302
+ ["scale"]: (value) => ({ scale: String(value) }),
303
+ ["x"]: (value) => ({ translate: `calc(var(--canvas-unit) * ${value}) 0` }),
304
+ ["y"]: (value) => ({ translate: `0 calc(var(--canvas-unit) * ${-value})` })
305
+ };
306
+ const playInterfaceClip = (root, { durationMs, tracks }) => tracks.flatMap(({ keyframes, property, target }) => {
307
+ const element = target ? root.querySelector(`[data-clip-target="${target}"]`) : root;
308
+ if (!element) return [];
309
+ return [element.animate(keyframes.map(([offset, value]) => ({
310
+ ...InterfaceClipPropertyKeyframeMap[property](value),
311
+ offset
312
+ })), {
313
+ composite: property === "x" || property === "y" ? "add" : "replace",
314
+ duration: durationMs,
315
+ fill: "forwards"
316
+ })];
317
+ });
318
+ //#endregion
319
+ //#region src/services/readInterfaceClip.ts
320
+ const PROPERTIES = Object.values(InterfaceClipProperty);
321
+ const checkIsProperty = (property) => PROPERTIES.includes(property);
322
+ const readInterfaceClip = ({ durationMs, tracks }) => ({
323
+ durationMs,
324
+ tracks: tracks.flatMap(({ keyframes, property, target }) => checkIsProperty(property) ? [{
325
+ keyframes: keyframes.map(([offset = 0, value = 0]) => [offset, value]),
326
+ property,
327
+ target
328
+ }] : [])
329
+ });
330
+ //#endregion
331
+ //#region src/services/toCanvasRectStyle.ts
332
+ const toAxis = (anchorMin, anchorMax, pivot, position, size, span, start) => {
333
+ const length = `calc(${anchorMax - anchorMin} * ${span} + ${size} * var(--canvas-unit))`;
334
+ return [`calc(${start} + ${anchorMin} * ${span} + ${position - pivot * size} * var(--canvas-unit))`, length];
335
+ };
336
+ const toCanvasRectStyle = ({ anchorMax, anchorMin, pivot, position, size }, isOnCanvas = false) => {
337
+ const [left, width] = toAxis(anchorMin[0], anchorMax[0], pivot[0], position[0], size[0], isOnCanvas ? "(100% - 2 * var(--canvas-inset))" : "100%", isOnCanvas ? "var(--canvas-inset)" : "0px");
338
+ const [bottom, height] = toAxis(anchorMin[1], anchorMax[1], pivot[1], position[1], size[1], "100%", "0px");
339
+ return {
340
+ bottom,
341
+ height,
342
+ left,
343
+ position: "absolute",
344
+ width
345
+ };
346
+ };
347
+ //#endregion
348
+ export { FIXTURE_VARIANT_SEPARATOR, GAME_CANVAS_INSET, GAME_CANVAS_UNIT, GAME_CURSOR, GAME_FONT_FAMILY, GAME_UNIT, Index_default as GameScreen, GameSourceKind, InterfaceClipProperty, InterfaceIcon, InterfaceIconCentreMap, InterfaceIconPathMap, Index_default$1 as LoadingSpinner, ORNAMENT_END_PATH, ORNAMENT_MIDDLE_PATH, Index_default$2 as OrnamentDivider, Index_default$3 as ProgressBar, Index_default$4 as PromptBand, Index_default$5 as RoundButton, SERVER_MARK_DIAMOND_PATH, SERVER_MARK_TICK_PATH, SETTINGS_RING_CENTRE, SETTINGS_RING_RADIUS, SETTINGS_RING_WIDTH, Index_default$6 as ServerBar, Index_default$7 as ToastNotice, playInterfaceClip, readInterfaceClip, toCanvasRectStyle };
package/dist/style.css ADDED
@@ -0,0 +1,249 @@
1
+
2
+ .game-screen[data-v-950f02f4] {
3
+ --canvas-inset: var(--v3519c02b);
4
+ --canvas-unit: var(--v7558dc96);
5
+ --unit: var(--v2325394e);
6
+ position: absolute;
7
+ inset: 0;
8
+ overflow: hidden;
9
+ container-type: size;
10
+ cursor: var(--v2b5d102a);
11
+ font-family: var(--v492b7442);
12
+ user-select: none;
13
+ }
14
+
15
+ .loading-spinner[data-v-2b93853d] {
16
+ display: grid;
17
+ width: calc(var(--unit) * 120);
18
+ height: calc(var(--unit) * 120);
19
+ border-radius: calc(var(--unit) * 15);
20
+ background: rgb(8 14 36 / 0.72);
21
+ place-items: center;
22
+ }
23
+
24
+ /* The ring is a conic gradient cut to an annulus, its head a dot at the gradient's bright end */
25
+ .ring[data-v-2b93853d] {
26
+ position: relative;
27
+ width: calc(var(--unit) * 48);
28
+ height: calc(var(--unit) * 48);
29
+ border-radius: 50%;
30
+ animation: turn-2b93853d 1s linear infinite;
31
+ background: conic-gradient(from 200deg, transparent, rgb(255 255 255 / 0.45) 55%, #fff 88%, transparent 88%);
32
+ mask: radial-gradient(circle, transparent calc(var(--unit) * 16.5), #000 calc(var(--unit) * 17));
33
+ }
34
+ .ring[data-v-2b93853d]::after {
35
+ position: absolute;
36
+ top: 50%;
37
+ left: 50%;
38
+ width: calc(var(--unit) * 7);
39
+ height: calc(var(--unit) * 7);
40
+ border-radius: 50%;
41
+ background: #fff;
42
+ content: "";
43
+ /* The head sits where the gradient's bright end does, 88% of the turn on from 200 degrees */
44
+ transform: rotate(516.8deg) translateY(calc(var(--unit) * -20.5)) translate(-50%, -50%);
45
+ transform-origin: 0 0;
46
+ }
47
+ @keyframes turn-2b93853d {
48
+ to {
49
+ rotate: 1turn;
50
+ }
51
+ }
52
+
53
+ .ornament-divider[data-v-d85b7a4e] {
54
+ position: relative;
55
+ height: calc(var(--unit) * 30);
56
+ fill: #d7d7d7;
57
+ }
58
+ .ornament-divider[data-v-d85b7a4e]::before {
59
+ position: absolute;
60
+ top: 50%;
61
+ right: calc(var(--unit) * 4);
62
+ left: calc(var(--unit) * 4);
63
+ height: calc(var(--unit) * 3);
64
+ background: #d7d7d7;
65
+ content: "";
66
+ translate: 0 -50%;
67
+ }
68
+ .end[data-v-d85b7a4e] {
69
+ position: absolute;
70
+ top: 50%;
71
+ left: 0;
72
+ width: calc(var(--unit) * 30);
73
+ height: calc(var(--unit) * 21);
74
+ translate: 0 -50%;
75
+ }
76
+ .right[data-v-d85b7a4e] {
77
+ right: 0;
78
+ left: auto;
79
+ scale: -1 1;
80
+ }
81
+ .middle[data-v-d85b7a4e] {
82
+ position: absolute;
83
+ top: 0;
84
+ left: 50%;
85
+ width: calc(var(--unit) * 45);
86
+ height: calc(var(--unit) * 30);
87
+ translate: -50% 0;
88
+ }
89
+
90
+ .progress-bar[data-v-de59534b] {
91
+ --open-ms: 250ms;
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: space-between;
95
+ width: calc(var(--unit) * 394);
96
+ animation: open-de59534b var(--open-ms) ease-out;
97
+ transition: width var(--open-ms) ease-in;
98
+ }
99
+ .folded[data-v-de59534b] {
100
+ width: calc(var(--unit) * 6.5);
101
+ }
102
+ @keyframes open-de59534b {
103
+ from {
104
+ width: calc(var(--unit) * 6.5);
105
+ }
106
+ }
107
+ .diamond[data-v-de59534b] {
108
+ flex: none;
109
+ width: calc(var(--unit) * 6.5);
110
+ height: calc(var(--unit) * 6.5);
111
+ background: #fff;
112
+ rotate: 45deg;
113
+ }
114
+
115
+ /* The track is what lies between the diamonds, less a 3 unit gap either side, so a folded bar has none */
116
+ .track[data-v-de59534b] {
117
+ flex: 1;
118
+ min-width: 0;
119
+ height: calc(var(--unit) * 10);
120
+ margin: 0 calc(var(--unit) * 3);
121
+ background: rgb(38 38 38 / 0.85);
122
+ clip-path: polygon(
123
+ calc(var(--unit) * 6) 0,
124
+ calc(100% - var(--unit) * 6) 0,
125
+ 100% 50%,
126
+ calc(100% - var(--unit) * 6) 100%,
127
+ calc(var(--unit) * 6) 100%,
128
+ 0 50%
129
+ );
130
+ }
131
+ .folded .track[data-v-de59534b] {
132
+ margin: 0;
133
+ }
134
+ .folded .diamond + .track + .diamond[data-v-de59534b] {
135
+ display: none;
136
+ }
137
+ .fill[data-v-de59534b] {
138
+ display: block;
139
+ height: 100%;
140
+ background: #fff;
141
+ }
142
+
143
+ .prompt-band[data-v-3fd65c8e] {
144
+ display: grid;
145
+ height: calc(var(--unit) * 44);
146
+ background: linear-gradient(
147
+ 90deg,
148
+ transparent,
149
+ rgb(0 8 38 / 0.37) calc(var(--unit) * 380),
150
+ rgb(0 8 38 / 0.37) calc(100% - var(--unit) * 380),
151
+ transparent
152
+ );
153
+ place-items: center;
154
+ }
155
+ .text[data-v-3fd65c8e] {
156
+ margin: 0;
157
+ color: #dcdcdc;
158
+ font-size: calc(var(--unit) * 29.5);
159
+ font-weight: 600;
160
+ line-height: 1;
161
+ }
162
+
163
+ .round-button[data-v-01b33b3e] {
164
+ display: grid;
165
+ width: calc(var(--unit) * 52);
166
+ height: calc(var(--unit) * 52);
167
+ padding: 0;
168
+ border: none;
169
+ border-radius: 50%;
170
+ background: #fdfdfd;
171
+ box-shadow: 0 0 calc(var(--unit) * 3) calc(var(--unit) * 1) rgb(0 0 0 / 0.3);
172
+ cursor: inherit;
173
+ place-items: center;
174
+ }
175
+ .glyph[data-v-01b33b3e] {
176
+ width: calc(var(--unit) * 48);
177
+ height: calc(var(--unit) * 48);
178
+ fill: #212121;
179
+ }
180
+ .ring[data-v-01b33b3e] {
181
+ fill: none;
182
+ stroke: #858585;
183
+ }
184
+
185
+ .server-bar[data-v-deaec8b8] {
186
+ position: relative;
187
+ display: grid;
188
+ width: calc(var(--unit) * 456);
189
+ height: calc(var(--unit) * 75);
190
+ box-sizing: border-box;
191
+ border: calc(var(--unit) * 1.5) solid rgb(120 124 130 / 0.6);
192
+ background: rgb(42 45 52 / 0.74);
193
+ place-items: center;
194
+ }
195
+ .mark[data-v-deaec8b8] {
196
+ position: absolute;
197
+ top: 50%;
198
+ left: calc(var(--unit) * 20);
199
+ width: calc(var(--unit) * 46);
200
+ height: calc(var(--unit) * 46);
201
+ translate: 0 -50%;
202
+ }
203
+ .diamond[data-v-deaec8b8] {
204
+ fill: #e4e0d4;
205
+ }
206
+ .tick[data-v-deaec8b8] {
207
+ fill: #1c1c1c;
208
+ }
209
+ .name[data-v-deaec8b8] {
210
+ margin: 0;
211
+ color: #d4d4d4;
212
+ font-size: calc(var(--unit) * 33);
213
+ font-weight: 600;
214
+ letter-spacing: 0.03em;
215
+ line-height: 1;
216
+ }
217
+
218
+ .toast-notice[data-v-8ae84baf] {
219
+ position: relative;
220
+ display: flex;
221
+ min-width: calc(var(--unit) * 537);
222
+ height: calc(var(--unit) * 107);
223
+ box-sizing: border-box;
224
+ align-items: center;
225
+ padding: 0 calc(var(--unit) * 82) 0 calc(var(--unit) * 148);
226
+ border-radius: calc(var(--unit) * 12);
227
+ background: #fff;
228
+ }
229
+ .mark[data-v-8ae84baf] {
230
+ position: absolute;
231
+ top: 50%;
232
+ left: calc(var(--unit) * 61);
233
+ display: grid;
234
+ width: calc(var(--unit) * 59);
235
+ height: calc(var(--unit) * 59);
236
+ overflow: hidden;
237
+ border-radius: 50%;
238
+ background: #000;
239
+ place-items: center;
240
+ translate: 0 -50%;
241
+ }
242
+ .text[data-v-8ae84baf] {
243
+ margin: 0;
244
+ color: #1d1d1d;
245
+ font-size: calc(var(--unit) * 36);
246
+ font-weight: 600;
247
+ line-height: 1;
248
+ white-space: nowrap;
249
+ }
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "genshin-interface",
3
+ "version": "3.8.1",
4
+ "description": "Genshin Impact's interface as a fan recreation: the game's own screen units, face and pointer, and its buttons, dividers, bars and notices as presentational Vue components.",
5
+ "keywords": [
6
+ "component-library",
7
+ "game-ui",
8
+ "genshin-impact",
9
+ "interface",
10
+ "vue",
11
+ "vue3"
12
+ ],
13
+ "homepage": "https://github.com/Esposter/Esposter/blob/main/packages/genshin-interface#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/Esposter/Esposter/issues"
16
+ },
17
+ "license": "Apache-2.0",
18
+ "author": "Jimmy Chen",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/Esposter/Esposter.git"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "type": "module",
27
+ "sideEffects": false,
28
+ "types": "dist/index.d.ts",
29
+ "imports": {
30
+ "#src/*": "./src/*.ts",
31
+ "#src/*.vue": "./src/*.vue"
32
+ },
33
+ "exports": {
34
+ ".": "./dist/index.js",
35
+ "./package.json": "./package.json",
36
+ "./style.css": "./dist/style.css"
37
+ },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "scripts": {
42
+ "build": "tsdown",
43
+ "format": "oxfmt",
44
+ "format:check": "oxfmt --check",
45
+ "lint": "eslint .",
46
+ "lint:fix": "eslint --fix .",
47
+ "test": "vitest",
48
+ "test:visual": "vitest --config vitest.browser.config.ts",
49
+ "typecheck": "vue-tsc"
50
+ },
51
+ "devDependencies": {
52
+ "@esposter/configuration": "3.8.1",
53
+ "@fontsource/signika": "^5.3.0",
54
+ "@tsdown/css": "^0.23.0",
55
+ "@types/node": "^26.6.3",
56
+ "@vitest/browser-playwright": "^5.0.3",
57
+ "playwright": "^1.63.0",
58
+ "tsdown": "^0.23.0",
59
+ "vite": "^8.3.1",
60
+ "vitest": "^5.0.3",
61
+ "vitest-browser-vue": "^3.1.0",
62
+ "vue-tsc": "^3.3.11"
63
+ },
64
+ "peerDependencies": {
65
+ "vue": "^3.5.43"
66
+ },
67
+ "gitHead": "1cc0b24081a5fd56ec0c57b784f978f1ad0df0f4"
68
+ }