genshin-interface 3.9.0 → 4.0.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.d.ts +126 -47
- package/dist/index.js +159 -148
- package/dist/style.css +39 -38
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
import { InjectionKey } from "vue";
|
|
2
|
+
//#region src/models/CanvasRect.d.ts
|
|
3
|
+
export interface CanvasRect {
|
|
4
|
+
anchorMax: [number, number];
|
|
5
|
+
anchorMin: [number, number];
|
|
6
|
+
pivot: [number, number];
|
|
7
|
+
position: [number, number];
|
|
8
|
+
size: [number, number];
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/models/FittedInterfaceRect.d.ts
|
|
12
|
+
export interface FittedInterfaceRect extends Record<keyof CanvasRect, number[]> {
|
|
13
|
+
scale?: number[];
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/GameRect/Index.vue.d.ts
|
|
17
|
+
interface Props$4 {
|
|
18
|
+
rect: FittedInterfaceRect;
|
|
19
|
+
}
|
|
20
|
+
declare var __VLS_1$3: {};
|
|
21
|
+
type __VLS_Slots$3 = {} & {
|
|
22
|
+
default?: (props: typeof __VLS_1$3) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base$3: import("vue").DefineComponent<Props$4, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$4> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export$8: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
26
|
+
declare const _default: typeof __VLS_export$8;
|
|
27
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
1
33
|
//#region src/components/GameScreen/Index.vue.d.ts
|
|
2
34
|
declare var __VLS_1$2: {};
|
|
3
35
|
type __VLS_Slots$2 = {} & {
|
|
@@ -5,7 +37,7 @@ type __VLS_Slots$2 = {} & {
|
|
|
5
37
|
};
|
|
6
38
|
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
39
|
declare const __VLS_export$7: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
8
|
-
declare const _default: typeof __VLS_export$7;
|
|
40
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
9
41
|
type __VLS_WithSlots$2<T, S> = T & {
|
|
10
42
|
new (): {
|
|
11
43
|
$slots: S;
|
|
@@ -13,12 +45,15 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
13
45
|
};
|
|
14
46
|
//#endregion
|
|
15
47
|
//#region src/components/LoadingSpinner/Index.vue.d.ts
|
|
16
|
-
|
|
17
|
-
|
|
48
|
+
interface Props$3 {
|
|
49
|
+
label: string;
|
|
50
|
+
}
|
|
51
|
+
declare const __VLS_export$6: import("vue").DefineComponent<Props$3, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$3> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const _default$2: typeof __VLS_export$6;
|
|
18
53
|
//#endregion
|
|
19
54
|
//#region src/components/OrnamentDivider/Index.vue.d.ts
|
|
20
55
|
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$
|
|
56
|
+
declare const _default$3: typeof __VLS_export$5;
|
|
22
57
|
//#endregion
|
|
23
58
|
//#region src/components/ProgressBar/Index.vue.d.ts
|
|
24
59
|
interface Props$2 {
|
|
@@ -26,7 +61,7 @@ interface Props$2 {
|
|
|
26
61
|
progress: number;
|
|
27
62
|
}
|
|
28
63
|
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$
|
|
64
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
30
65
|
//#endregion
|
|
31
66
|
//#region src/components/PromptBand/Index.vue.d.ts
|
|
32
67
|
declare var __VLS_1$1: {};
|
|
@@ -35,7 +70,7 @@ type __VLS_Slots$1 = {} & {
|
|
|
35
70
|
};
|
|
36
71
|
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
72
|
declare const __VLS_export$3: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
38
|
-
declare const _default$
|
|
73
|
+
declare const _default$5: typeof __VLS_export$3;
|
|
39
74
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
40
75
|
new (): {
|
|
41
76
|
$slots: S;
|
|
@@ -50,6 +85,7 @@ export declare enum InterfaceIcon {
|
|
|
50
85
|
Repair = "Repair",
|
|
51
86
|
Settings = "Settings"
|
|
52
87
|
}
|
|
88
|
+
export declare const InterfaceIcons: readonly InterfaceIcon[];
|
|
53
89
|
//#endregion
|
|
54
90
|
//#region src/components/RoundButton/Index.vue.d.ts
|
|
55
91
|
interface Props$1 {
|
|
@@ -57,14 +93,14 @@ interface Props$1 {
|
|
|
57
93
|
label: string;
|
|
58
94
|
}
|
|
59
95
|
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$
|
|
96
|
+
declare const _default$6: typeof __VLS_export$2;
|
|
61
97
|
//#endregion
|
|
62
98
|
//#region src/components/ServerBar/Index.vue.d.ts
|
|
63
99
|
interface Props {
|
|
64
100
|
name: string;
|
|
65
101
|
}
|
|
66
102
|
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$
|
|
103
|
+
declare const _default$7: typeof __VLS_export$1;
|
|
68
104
|
//#endregion
|
|
69
105
|
//#region src/components/ToastNotice/Index.vue.d.ts
|
|
70
106
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
@@ -75,22 +111,13 @@ type __VLS_Slots = {} & {
|
|
|
75
111
|
};
|
|
76
112
|
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
113
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
78
|
-
declare const _default$
|
|
114
|
+
declare const _default$8: typeof __VLS_export;
|
|
79
115
|
type __VLS_WithSlots<T, S> = T & {
|
|
80
116
|
new (): {
|
|
81
117
|
$slots: S;
|
|
82
118
|
};
|
|
83
119
|
};
|
|
84
120
|
//#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
121
|
//#region src/models/ComponentFixture.d.ts
|
|
95
122
|
export interface ComponentFixture {
|
|
96
123
|
props: Record<string, unknown>;
|
|
@@ -98,6 +125,16 @@ export interface ComponentFixture {
|
|
|
98
125
|
variants?: Record<string, Record<string, unknown>>;
|
|
99
126
|
}
|
|
100
127
|
//#endregion
|
|
128
|
+
//#region src/models/FittedInterfaceClip.d.ts
|
|
129
|
+
export interface FittedInterfaceClip {
|
|
130
|
+
durationMs: number;
|
|
131
|
+
tracks: {
|
|
132
|
+
keyframes: number[][];
|
|
133
|
+
property: string;
|
|
134
|
+
target: string;
|
|
135
|
+
}[];
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
101
138
|
//#region src/models/InterfaceClipProperty.d.ts
|
|
102
139
|
export declare enum InterfaceClipProperty {
|
|
103
140
|
Opacity = "opacity",
|
|
@@ -105,6 +142,7 @@ export declare enum InterfaceClipProperty {
|
|
|
105
142
|
X = "x",
|
|
106
143
|
Y = "y"
|
|
107
144
|
}
|
|
145
|
+
export declare const InterfaceClipProperties: readonly InterfaceClipProperty[];
|
|
108
146
|
//#endregion
|
|
109
147
|
//#region src/models/InterfaceClip.d.ts
|
|
110
148
|
export interface InterfaceClip {
|
|
@@ -116,55 +154,95 @@ export interface InterfaceClip {
|
|
|
116
154
|
}[];
|
|
117
155
|
}
|
|
118
156
|
//#endregion
|
|
119
|
-
//#region src/models/reference/GameFinding.d.ts
|
|
120
|
-
export interface GameFinding {
|
|
121
|
-
found: string;
|
|
122
|
-
search: string;
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
157
|
//#region src/models/reference/GameSourceKind.d.ts
|
|
126
158
|
export declare enum GameSourceKind {
|
|
127
159
|
AnimationClip = "AnimationClip",
|
|
160
|
+
BinaryData = "MiHoYoBinData",
|
|
128
161
|
Capture = "Capture",
|
|
162
|
+
DataTable = "DataTable",
|
|
163
|
+
GameObject = "GameObject",
|
|
129
164
|
Material = "Material",
|
|
130
165
|
Mesh = "Mesh",
|
|
131
166
|
MonoBehaviour = "MonoBehaviour",
|
|
132
167
|
RectTransform = "RectTransform",
|
|
133
168
|
Shader = "Shader",
|
|
169
|
+
Sound = "Sound",
|
|
170
|
+
TerrainData = "TerrainData",
|
|
134
171
|
Texture = "Texture",
|
|
135
172
|
Transform = "Transform"
|
|
136
173
|
}
|
|
137
174
|
//#endregion
|
|
138
|
-
//#region src/models/reference/
|
|
139
|
-
export interface
|
|
175
|
+
//#region src/models/reference/GameAssetSource.d.ts
|
|
176
|
+
export interface GameAssetSource {
|
|
140
177
|
block: string;
|
|
141
|
-
kind: GameSourceKind
|
|
178
|
+
kind: Exclude<GameSourceKind, GameSourceKind.Capture | GameSourceKind.DataTable>;
|
|
142
179
|
name: string;
|
|
143
180
|
pathId?: string;
|
|
144
181
|
role: string;
|
|
145
182
|
}
|
|
146
183
|
//#endregion
|
|
184
|
+
//#region src/models/reference/GameCaptureSource.d.ts
|
|
185
|
+
export type GameCaptureSource = GameCaptureSourceBase & ({
|
|
186
|
+
capture: string;
|
|
187
|
+
parityReference?: string;
|
|
188
|
+
} | {
|
|
189
|
+
capture?: never;
|
|
190
|
+
parityReference: string;
|
|
191
|
+
});
|
|
192
|
+
interface GameCaptureSourceBase {
|
|
193
|
+
kind: GameSourceKind.Capture;
|
|
194
|
+
name: string;
|
|
195
|
+
role: string;
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/models/reference/GameTableSource.d.ts
|
|
199
|
+
export interface GameTableSource {
|
|
200
|
+
kind: GameSourceKind.DataTable;
|
|
201
|
+
name: string;
|
|
202
|
+
role: string;
|
|
203
|
+
table: string;
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/models/reference/GameSource.d.ts
|
|
207
|
+
export type GameSource = GameAssetSource | GameCaptureSource | GameTableSource;
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/models/reference/InvestigationOutcome.d.ts
|
|
210
|
+
export declare enum InvestigationOutcome {
|
|
211
|
+
Adopted = "Adopted",
|
|
212
|
+
DeadEnd = "DeadEnd",
|
|
213
|
+
Found = "Found",
|
|
214
|
+
Rejected = "Rejected",
|
|
215
|
+
Superseded = "Superseded"
|
|
216
|
+
}
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/models/reference/Investigation.d.ts
|
|
219
|
+
export interface Investigation {
|
|
220
|
+
method: string;
|
|
221
|
+
outcome: InvestigationOutcome;
|
|
222
|
+
result: string;
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/models/reference/ReferenceTopic.d.ts
|
|
226
|
+
export interface ReferenceTopic {
|
|
227
|
+
investigations: Investigation[];
|
|
228
|
+
openQuestions: string[];
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
147
231
|
//#region src/models/reference/ComponentReference.d.ts
|
|
148
232
|
export interface ComponentReference {
|
|
149
|
-
findings: GameFinding[];
|
|
150
|
-
open: string[];
|
|
151
233
|
sources: Record<string, GameSource>;
|
|
234
|
+
topics: Record<string, ReferenceTopic>;
|
|
152
235
|
}
|
|
153
236
|
//#endregion
|
|
237
|
+
//#region src/services/GameRectKey.d.ts
|
|
238
|
+
export declare const GameRectKey: InjectionKey<boolean>;
|
|
239
|
+
//#endregion
|
|
154
240
|
//#region src/services/InterfaceIconCentreMap.d.ts
|
|
155
241
|
export declare const InterfaceIconCentreMap: Record<InterfaceIcon, [number, number]>;
|
|
156
242
|
//#endregion
|
|
157
243
|
//#region src/services/InterfaceIconPathMap.d.ts
|
|
158
244
|
export declare const InterfaceIconPathMap: Record<InterfaceIcon, string>;
|
|
159
245
|
//#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
246
|
//#region src/services/computeRectOffsets.d.ts
|
|
169
247
|
export declare const computeRectOffsets: ({ pivot, position, size }: Pick<CanvasRect, "pivot" | "position" | "size">) => Record<"offsetMax" | "offsetMin", [number, number]>;
|
|
170
248
|
//#endregion
|
|
@@ -173,7 +251,12 @@ export declare const GAME_FONT_FAMILY = "\"HYWenHei 85W\", \"HYWenHei-85W\", Sig
|
|
|
173
251
|
export declare const GAME_UNIT = "min(100cqh / 1080, 100cqw / 1920)";
|
|
174
252
|
export declare const GAME_CANVAS_UNIT = "min(100cqh / 900, 100cqw / 1600)";
|
|
175
253
|
export declare const GAME_CANVAS_INSET = "min(var(--unit) * 71, (100cqw - var(--unit) * 1920) / 2)";
|
|
254
|
+
export declare const GAME_WHITE = "#fdfdfd";
|
|
176
255
|
export declare const GAME_CURSOR: string;
|
|
256
|
+
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 ";
|
|
257
|
+
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 ";
|
|
258
|
+
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";
|
|
259
|
+
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";
|
|
177
260
|
export declare const SETTINGS_RING_CENTRE: readonly [24.05, 24.9];
|
|
178
261
|
export declare const SETTINGS_RING_RADIUS = 9.85;
|
|
179
262
|
export declare const SETTINGS_RING_WIDTH = 1.9;
|
|
@@ -182,19 +265,15 @@ export declare const FIXTURE_VARIANT_SEPARATOR = "-";
|
|
|
182
265
|
//#region src/services/playInterfaceClip.d.ts
|
|
183
266
|
export declare const playInterfaceClip: (root: HTMLElement, { durationMs, tracks }: InterfaceClip) => Animation[];
|
|
184
267
|
//#endregion
|
|
185
|
-
//#region src/services/
|
|
186
|
-
export declare const
|
|
187
|
-
durationMs: number;
|
|
188
|
-
tracks: {
|
|
189
|
-
keyframes: number[][];
|
|
190
|
-
property: string;
|
|
191
|
-
target: string;
|
|
192
|
-
}[];
|
|
193
|
-
}) => InterfaceClip;
|
|
268
|
+
//#region src/services/toCanvasRect.d.ts
|
|
269
|
+
export declare const toCanvasRect: ({ anchorMax, anchorMin, pivot, position, size }: FittedInterfaceRect) => CanvasRect;
|
|
194
270
|
//#endregion
|
|
195
271
|
//#region src/services/toCanvasRectStyle.d.ts
|
|
196
272
|
export declare const toCanvasRectStyle: (rect: CanvasRect, isOnCanvas?: boolean) => Record<"bottom" | "height" | "left" | "width", string> & {
|
|
197
273
|
position: "absolute";
|
|
198
274
|
};
|
|
199
275
|
//#endregion
|
|
200
|
-
|
|
276
|
+
//#region src/services/toInterfaceClip.d.ts
|
|
277
|
+
export declare const toInterfaceClip: ({ durationMs, tracks }: FittedInterfaceClip) => InterfaceClip;
|
|
278
|
+
//#endregion
|
|
279
|
+
export { _default as GameRect, _default$1 as GameScreen, _default$2 as LoadingSpinner, _default$3 as OrnamentDivider, _default$4 as ProgressBar, _default$5 as PromptBand, _default$6 as RoundButton, _default$7 as ServerBar, _default$8 as ToastNotice };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,71 @@
|
|
|
1
|
-
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref, useCssVars } from "vue";
|
|
1
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, provide, renderSlot, toDisplayString, unref, useCssVars } from "vue";
|
|
2
|
+
//#region src/services/GameRectKey.ts
|
|
3
|
+
const GameRectKey = Symbol("GameRect");
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/services/toCanvasRect.ts
|
|
6
|
+
const toPair = ([x = 0, y = 0]) => [x, y];
|
|
7
|
+
const toCanvasRect = ({ anchorMax, anchorMin, pivot, position, size }) => ({
|
|
8
|
+
anchorMax: toPair(anchorMax),
|
|
9
|
+
anchorMin: toPair(anchorMin),
|
|
10
|
+
pivot: toPair(pivot),
|
|
11
|
+
position: toPair(position),
|
|
12
|
+
size: toPair(size)
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/services/computeRectOffsets.ts
|
|
16
|
+
const computeRectOffsets = ({ pivot, position, size }) => {
|
|
17
|
+
const offsetMin = [position[0] - size[0] * pivot[0], position[1] - size[1] * pivot[1]];
|
|
18
|
+
return {
|
|
19
|
+
offsetMax: [offsetMin[0] + size[0], offsetMin[1] + size[1]],
|
|
20
|
+
offsetMin
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/services/toCanvasRectStyle.ts
|
|
25
|
+
const toAxis = (anchorMin, anchorMax, offsetMin, size, span, start) => [`calc(${start} + ${anchorMin} * ${span} + ${offsetMin} * var(--canvas-unit))`, `calc(${anchorMax - anchorMin} * ${span} + ${size} * var(--canvas-unit))`];
|
|
26
|
+
const toCanvasRectStyle = (rect, isOnCanvas = false) => {
|
|
27
|
+
const { anchorMax, anchorMin, size } = rect;
|
|
28
|
+
const { offsetMin } = computeRectOffsets(rect);
|
|
29
|
+
const [left, width] = toAxis(anchorMin[0], anchorMax[0], offsetMin[0], size[0], isOnCanvas ? "(100% - 2 * var(--canvas-inset))" : "100%", isOnCanvas ? "var(--canvas-inset)" : "0px");
|
|
30
|
+
const [bottom, height] = toAxis(anchorMin[1], anchorMax[1], offsetMin[1], size[1], "100%", "0px");
|
|
31
|
+
return {
|
|
32
|
+
bottom,
|
|
33
|
+
height,
|
|
34
|
+
left,
|
|
35
|
+
position: "absolute",
|
|
36
|
+
width
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/GameRect/Index.vue
|
|
41
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
42
|
+
__name: "Index",
|
|
43
|
+
props: { rect: {} },
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const isOnCanvas = !inject(GameRectKey, false);
|
|
46
|
+
provide(GameRectKey, true);
|
|
47
|
+
const style = computed(() => ({
|
|
48
|
+
...toCanvasRectStyle(toCanvasRect(__props.rect), isOnCanvas),
|
|
49
|
+
scale: __props.rect.scale?.join(" ")
|
|
50
|
+
}));
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return openBlock(), createElementBlock("div", { style: normalizeStyle(style.value) }, [renderSlot(_ctx.$slots, "default")], 4);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
2
57
|
//#region src/services/constants.ts
|
|
3
58
|
const GAME_FONT_FAMILY = "\"HYWenHei 85W\", \"HYWenHei-85W\", Signika, ui-sans-serif, sans-serif";
|
|
4
59
|
const GAME_UNIT = "min(100cqh / 1080, 100cqw / 1920)";
|
|
5
60
|
const GAME_CANVAS_UNIT = "min(100cqh / 900, 100cqw / 1600)";
|
|
6
61
|
const GAME_CANVAS_INSET = "min(var(--unit) * 71, (100cqw - var(--unit) * 1920) / 2)";
|
|
62
|
+
const GAME_WHITE = "#fdfdfd";
|
|
7
63
|
const GAME_CURSOR_SIZE = 26;
|
|
8
64
|
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`;
|
|
65
|
+
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 ";
|
|
66
|
+
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 ";
|
|
67
|
+
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";
|
|
68
|
+
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";
|
|
9
69
|
const SETTINGS_RING_CENTRE = [24.05, 24.9];
|
|
10
70
|
const SETTINGS_RING_RADIUS = 9.85;
|
|
11
71
|
const SETTINGS_RING_WIDTH = 1.9;
|
|
@@ -24,43 +84,34 @@ var Index_default = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ defineCo
|
|
|
24
84
|
__name: "Index",
|
|
25
85
|
setup(__props) {
|
|
26
86
|
useCssVars((_ctx) => ({
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
87
|
+
"d1b33204": unref(GAME_CANVAS_INSET),
|
|
88
|
+
"v78828f63": unref(GAME_CANVAS_UNIT),
|
|
89
|
+
"v3768e5a8": unref(GAME_UNIT),
|
|
90
|
+
"b580e53e": unref(GAME_WHITE),
|
|
91
|
+
"v3d670e04": unref(GAME_CURSOR),
|
|
92
|
+
"v42d80ea8": unref(GAME_FONT_FAMILY)
|
|
32
93
|
}));
|
|
33
94
|
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);
|
|
95
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" The root every screen of the game's is drawn in: the window's own container, whose `--unit` is a pixel of the\n Game's 1920 by 1080 screen, `--canvas-unit` a unit of its interface's 1600 by 900 canvas and `--canvas-inset` how\n Far the canvas stands in from each side and `--white` the white its opening is drawn on, in the game's face and\n Pointer. Each resolves where a child uses it, against this container "), createElementVNode("div", _hoisted_1$7, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 2112);
|
|
41
96
|
};
|
|
42
97
|
}
|
|
43
|
-
}), [["__scopeId", "data-v-
|
|
98
|
+
}), [["__scopeId", "data-v-d306fd73"]]);
|
|
44
99
|
//#endregion
|
|
45
100
|
//#region src/components/LoadingSpinner/Index.vue
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
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 ";
|
|
101
|
+
const _hoisted_1$6 = ["aria-label"];
|
|
102
|
+
var Index_default$1 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
103
|
+
__name: "Index",
|
|
104
|
+
props: { label: {} },
|
|
105
|
+
setup(__props) {
|
|
106
|
+
return (_ctx, _cache) => {
|
|
107
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" The game's wait mark: a dark glass square 120 units across with rounded corners, and in it a white ring 40 units\n Across that fades out from its round head round to its tail, turning. Measured from a 1440 high recording "), createElementVNode("div", {
|
|
108
|
+
class: "loading-spinner",
|
|
109
|
+
role: "status",
|
|
110
|
+
"aria-label": __props.label
|
|
111
|
+
}, [..._cache[0] || (_cache[0] = [createElementVNode("span", { class: "ring" }, null, -1)])], 8, _hoisted_1$6)], 2112);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}), [["__scopeId", "data-v-69cb5a34"]]);
|
|
64
115
|
//#endregion
|
|
65
116
|
//#region src/components/OrnamentDivider/Index.vue
|
|
66
117
|
const _hoisted_1$5 = {
|
|
@@ -86,18 +137,14 @@ var Index_default$2 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ define
|
|
|
86
137
|
__name: "Index",
|
|
87
138
|
setup(__props) {
|
|
88
139
|
return (_ctx, _cache) => {
|
|
89
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
createElementVNode("
|
|
93
|
-
|
|
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);
|
|
140
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" The game's divider: a hairline as wide as its parent, a tapered diamond at each end and an interlocked double\n Diamond at its middle, in the game's units from the parent's `--unit` "), createElementVNode("div", _hoisted_1$5, [
|
|
141
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$5, [createElementVNode("path", { d: unref(ORNAMENT_END_PATH) }, null, 8, _hoisted_3$3)])),
|
|
142
|
+
(openBlock(), createElementBlock("svg", _hoisted_4$2, [createElementVNode("path", { d: unref(ORNAMENT_MIDDLE_PATH) }, null, 8, _hoisted_5$1)])),
|
|
143
|
+
(openBlock(), createElementBlock("svg", _hoisted_6, [createElementVNode("path", { d: unref(ORNAMENT_END_PATH) }, null, 8, _hoisted_7)]))
|
|
144
|
+
])], 2112);
|
|
98
145
|
};
|
|
99
146
|
}
|
|
100
|
-
}), [["__scopeId", "data-v-
|
|
147
|
+
}), [["__scopeId", "data-v-335021af"]]);
|
|
101
148
|
//#endregion
|
|
102
149
|
//#region src/components/ProgressBar/Index.vue
|
|
103
150
|
const _hoisted_1$4 = ["aria-valuenow"];
|
|
@@ -110,43 +157,32 @@ var Index_default$3 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ define
|
|
|
110
157
|
},
|
|
111
158
|
setup(__props) {
|
|
112
159
|
return (_ctx, _cache) => {
|
|
113
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
|
|
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);
|
|
160
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" The game's progress bar, 394 units from diamond to diamond: a dark track 10 units high with pointed ends between\n Two small white diamonds, filled white from its left, measured from the English client's login screen. It opens\n Out of its middle over 250 ms as it mounts and folds back into it, so its diamonds meet as one: the English\n Recording's login screen at 60 frames "), createElementVNode("div", {
|
|
161
|
+
class: normalizeClass(["progress-bar", { folded: __props.isFolded }]),
|
|
162
|
+
role: "progressbar",
|
|
163
|
+
"aria-valuemin": "0",
|
|
164
|
+
"aria-valuemax": "100",
|
|
165
|
+
"aria-valuenow": Math.round(__props.progress * 100)
|
|
166
|
+
}, [
|
|
167
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "diamond" }, null, -1)),
|
|
168
|
+
createElementVNode("span", _hoisted_2$4, [createElementVNode("span", {
|
|
169
|
+
class: "fill",
|
|
170
|
+
style: normalizeStyle({ width: `${__props.progress * 100}%` })
|
|
171
|
+
}, null, 4)]),
|
|
172
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "diamond" }, null, -1))
|
|
173
|
+
], 10, _hoisted_1$4)], 2112);
|
|
133
174
|
};
|
|
134
175
|
}
|
|
135
|
-
}), [["__scopeId", "data-v-
|
|
176
|
+
}), [["__scopeId", "data-v-bea8e745"]]);
|
|
136
177
|
//#endregion
|
|
137
178
|
//#region src/components/PromptBand/Index.vue
|
|
138
|
-
const _sfc_main$
|
|
179
|
+
const _sfc_main$4 = {};
|
|
139
180
|
const _hoisted_1$3 = { class: "prompt-band" };
|
|
140
181
|
const _hoisted_2$3 = { class: "text" };
|
|
141
182
|
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);
|
|
183
|
+
return openBlock(), createElementBlock(Fragment, null, [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\n Ends, its words centred in a light grey. Its glass and fade are solved from the scene the English recording\n Shows through it at the door "), createElementVNode("div", _hoisted_1$3, [createElementVNode("p", _hoisted_2$3, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])])], 2112);
|
|
148
184
|
}
|
|
149
|
-
var Index_default$4 = /*#__PURE__*/ export_helper_default(_sfc_main$
|
|
185
|
+
var Index_default$4 = /*#__PURE__*/ export_helper_default(_sfc_main$4, [["render", _sfc_render$1], ["__scopeId", "data-v-8c88bb3d"]]);
|
|
150
186
|
//#endregion
|
|
151
187
|
//#region src/models/InterfaceIcon.ts
|
|
152
188
|
let InterfaceIcon = /* @__PURE__ */ function(InterfaceIcon) {
|
|
@@ -157,6 +193,7 @@ let InterfaceIcon = /* @__PURE__ */ function(InterfaceIcon) {
|
|
|
157
193
|
InterfaceIcon["Settings"] = "Settings";
|
|
158
194
|
return InterfaceIcon;
|
|
159
195
|
}({});
|
|
196
|
+
const InterfaceIcons = Object.values(InterfaceIcon);
|
|
160
197
|
//#endregion
|
|
161
198
|
//#region src/services/InterfaceIconCentreMap.ts
|
|
162
199
|
const InterfaceIconCentreMap = {
|
|
@@ -194,36 +231,28 @@ var Index_default$5 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ define
|
|
|
194
231
|
},
|
|
195
232
|
setup(__props) {
|
|
196
233
|
return (_ctx, _cache) => {
|
|
197
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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);
|
|
234
|
+
return openBlock(), createElementBlock(Fragment, null, [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\n Centred on its ink, as the game centres each icon's sprite "), createElementVNode("button", {
|
|
235
|
+
class: "round-button",
|
|
236
|
+
"aria-label": __props.label,
|
|
237
|
+
type: "button"
|
|
238
|
+
}, [(openBlock(), createElementBlock("svg", {
|
|
239
|
+
class: "glyph",
|
|
240
|
+
viewBox: `${unref(InterfaceIconCentreMap)[__props.icon][0] - 24} ${unref(InterfaceIconCentreMap)[__props.icon][1] - 24} 48 48`,
|
|
241
|
+
"aria-hidden": "true"
|
|
242
|
+
}, [createElementVNode("path", {
|
|
243
|
+
d: unref(InterfaceIconPathMap)[__props.icon],
|
|
244
|
+
"fill-rule": "evenodd"
|
|
245
|
+
}, null, 8, _hoisted_3$2), __props.icon === unref(InterfaceIcon).Settings ? (openBlock(), createElementBlock("circle", {
|
|
246
|
+
key: 0,
|
|
247
|
+
cx: unref(SETTINGS_RING_CENTRE)[0],
|
|
248
|
+
cy: unref(SETTINGS_RING_CENTRE)[1],
|
|
249
|
+
r: unref(SETTINGS_RING_RADIUS),
|
|
250
|
+
class: "ring",
|
|
251
|
+
"stroke-width": unref(SETTINGS_RING_WIDTH)
|
|
252
|
+
}, null, 8, _hoisted_4$1)) : createCommentVNode("v-if", true)], 8, _hoisted_2$2))], 8, _hoisted_1$2)], 2112);
|
|
220
253
|
};
|
|
221
254
|
}
|
|
222
|
-
}), [["__scopeId", "data-v-
|
|
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";
|
|
255
|
+
}), [["__scopeId", "data-v-e1ab12d3"]]);
|
|
227
256
|
//#endregion
|
|
228
257
|
//#region src/components/ServerBar/Index.vue
|
|
229
258
|
const _hoisted_1$1 = { class: "server-bar" };
|
|
@@ -240,23 +269,19 @@ var Index_default$6 = /*#__PURE__*/ export_helper_default(/* @__PURE__ */ define
|
|
|
240
269
|
props: { name: {} },
|
|
241
270
|
setup(__props) {
|
|
242
271
|
return (_ctx, _cache) => {
|
|
243
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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);
|
|
272
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" The bar naming the chosen server, 456 by 75 units: a dark glass slab with a faint rim, the ticked diamond at its\n Left and the server's name at its middle, measured from the English client's login screen at 1080 high "), createElementVNode("div", _hoisted_1$1, [(openBlock(), createElementBlock("svg", _hoisted_2$1, [createElementVNode("path", {
|
|
273
|
+
class: "diamond",
|
|
274
|
+
d: unref(SERVER_MARK_DIAMOND_PATH)
|
|
275
|
+
}, null, 8, _hoisted_3$1), createElementVNode("path", {
|
|
276
|
+
class: "tick",
|
|
277
|
+
d: unref(SERVER_MARK_TICK_PATH)
|
|
278
|
+
}, null, 8, _hoisted_4)])), createElementVNode("p", _hoisted_5, toDisplayString(__props.name), 1)])], 2112);
|
|
254
279
|
};
|
|
255
280
|
}
|
|
256
|
-
}), [["__scopeId", "data-v-
|
|
281
|
+
}), [["__scopeId", "data-v-6b68b3eb"]]);
|
|
257
282
|
//#endregion
|
|
258
283
|
//#region src/components/ToastNotice/Index.vue
|
|
259
|
-
const _sfc_main = {};
|
|
284
|
+
const _sfc_main$1 = {};
|
|
260
285
|
const _hoisted_1 = {
|
|
261
286
|
class: "toast-notice",
|
|
262
287
|
role: "status"
|
|
@@ -264,14 +289,9 @@ const _hoisted_1 = {
|
|
|
264
289
|
const _hoisted_2 = { class: "mark" };
|
|
265
290
|
const _hoisted_3 = { class: "text" };
|
|
266
291
|
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);
|
|
292
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" The game's notice card, dropped at the top of a screen: white with rounded corners, 107 units high and at least\n 537 across, a round mark at its left and its words in the game's near black. Measured from a 1440 high\n Recording of the welcome the login screen shows "), 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)])])], 2112);
|
|
273
293
|
}
|
|
274
|
-
var Index_default$7 = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
294
|
+
var Index_default$7 = /*#__PURE__*/ export_helper_default(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-a09dfb40"]]);
|
|
275
295
|
//#endregion
|
|
276
296
|
//#region src/models/InterfaceClipProperty.ts
|
|
277
297
|
let InterfaceClipProperty = /* @__PURE__ */ function(InterfaceClipProperty) {
|
|
@@ -281,29 +301,36 @@ let InterfaceClipProperty = /* @__PURE__ */ function(InterfaceClipProperty) {
|
|
|
281
301
|
InterfaceClipProperty["Y"] = "y";
|
|
282
302
|
return InterfaceClipProperty;
|
|
283
303
|
}({});
|
|
304
|
+
const InterfaceClipProperties = Object.values(InterfaceClipProperty);
|
|
284
305
|
//#endregion
|
|
285
306
|
//#region src/models/reference/GameSourceKind.ts
|
|
286
307
|
let GameSourceKind = /* @__PURE__ */ function(GameSourceKind) {
|
|
287
308
|
GameSourceKind["AnimationClip"] = "AnimationClip";
|
|
309
|
+
GameSourceKind["BinaryData"] = "MiHoYoBinData";
|
|
288
310
|
GameSourceKind["Capture"] = "Capture";
|
|
311
|
+
GameSourceKind["DataTable"] = "DataTable";
|
|
312
|
+
GameSourceKind["GameObject"] = "GameObject";
|
|
289
313
|
GameSourceKind["Material"] = "Material";
|
|
290
314
|
GameSourceKind["Mesh"] = "Mesh";
|
|
291
315
|
GameSourceKind["MonoBehaviour"] = "MonoBehaviour";
|
|
292
316
|
GameSourceKind["RectTransform"] = "RectTransform";
|
|
293
317
|
GameSourceKind["Shader"] = "Shader";
|
|
318
|
+
GameSourceKind["Sound"] = "Sound";
|
|
319
|
+
GameSourceKind["TerrainData"] = "TerrainData";
|
|
294
320
|
GameSourceKind["Texture"] = "Texture";
|
|
295
321
|
GameSourceKind["Transform"] = "Transform";
|
|
296
322
|
return GameSourceKind;
|
|
297
323
|
}({});
|
|
298
324
|
//#endregion
|
|
299
|
-
//#region src/
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
325
|
+
//#region src/models/reference/InvestigationOutcome.ts
|
|
326
|
+
let InvestigationOutcome = /* @__PURE__ */ function(InvestigationOutcome) {
|
|
327
|
+
InvestigationOutcome["Adopted"] = "Adopted";
|
|
328
|
+
InvestigationOutcome["DeadEnd"] = "DeadEnd";
|
|
329
|
+
InvestigationOutcome["Found"] = "Found";
|
|
330
|
+
InvestigationOutcome["Rejected"] = "Rejected";
|
|
331
|
+
InvestigationOutcome["Superseded"] = "Superseded";
|
|
332
|
+
return InvestigationOutcome;
|
|
333
|
+
}({});
|
|
307
334
|
//#endregion
|
|
308
335
|
//#region src/services/playInterfaceClip.ts
|
|
309
336
|
const InterfaceClipPropertyKeyframeMap = {
|
|
@@ -325,10 +352,10 @@ const playInterfaceClip = (root, { durationMs, tracks }) => tracks.flatMap(({ ke
|
|
|
325
352
|
})];
|
|
326
353
|
});
|
|
327
354
|
//#endregion
|
|
328
|
-
//#region src/services/
|
|
329
|
-
const
|
|
330
|
-
const checkIsProperty = (property) =>
|
|
331
|
-
const
|
|
355
|
+
//#region src/services/toInterfaceClip.ts
|
|
356
|
+
const INTERFACE_CLIP_PROPERTY_NAMES = InterfaceClipProperties;
|
|
357
|
+
const checkIsProperty = (property) => INTERFACE_CLIP_PROPERTY_NAMES.includes(property);
|
|
358
|
+
const toInterfaceClip = ({ durationMs, tracks }) => ({
|
|
332
359
|
durationMs,
|
|
333
360
|
tracks: tracks.flatMap(({ keyframes, property, target }) => checkIsProperty(property) ? [{
|
|
334
361
|
keyframes: keyframes.map(([offset = 0, value = 0]) => [offset, value]),
|
|
@@ -337,20 +364,4 @@ const readInterfaceClip = ({ durationMs, tracks }) => ({
|
|
|
337
364
|
}] : [])
|
|
338
365
|
});
|
|
339
366
|
//#endregion
|
|
340
|
-
|
|
341
|
-
const toAxis = (anchorMin, anchorMax, offsetMin, size, span, start) => [`calc(${start} + ${anchorMin} * ${span} + ${offsetMin} * var(--canvas-unit))`, `calc(${anchorMax - anchorMin} * ${span} + ${size} * var(--canvas-unit))`];
|
|
342
|
-
const toCanvasRectStyle = (rect, isOnCanvas = false) => {
|
|
343
|
-
const { anchorMax, anchorMin, size } = rect;
|
|
344
|
-
const { offsetMin } = computeRectOffsets(rect);
|
|
345
|
-
const [left, width] = toAxis(anchorMin[0], anchorMax[0], offsetMin[0], size[0], isOnCanvas ? "(100% - 2 * var(--canvas-inset))" : "100%", isOnCanvas ? "var(--canvas-inset)" : "0px");
|
|
346
|
-
const [bottom, height] = toAxis(anchorMin[1], anchorMax[1], offsetMin[1], size[1], "100%", "0px");
|
|
347
|
-
return {
|
|
348
|
-
bottom,
|
|
349
|
-
height,
|
|
350
|
-
left,
|
|
351
|
-
position: "absolute",
|
|
352
|
-
width
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
|
-
//#endregion
|
|
356
|
-
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, computeRectOffsets, playInterfaceClip, readInterfaceClip, toCanvasRectStyle };
|
|
367
|
+
export { FIXTURE_VARIANT_SEPARATOR, GAME_CANVAS_INSET, GAME_CANVAS_UNIT, GAME_CURSOR, GAME_FONT_FAMILY, GAME_UNIT, GAME_WHITE, _sfc_main as GameRect, GameRectKey, Index_default as GameScreen, GameSourceKind, InterfaceClipProperties, InterfaceClipProperty, InterfaceIcon, InterfaceIconCentreMap, InterfaceIconPathMap, InterfaceIcons, InvestigationOutcome, 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, computeRectOffsets, playInterfaceClip, toCanvasRect, toCanvasRectStyle, toInterfaceClip };
|
package/dist/style.css
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
.game-screen[data-v-
|
|
3
|
-
--canvas-inset: var(--
|
|
4
|
-
--canvas-unit: var(--
|
|
5
|
-
--unit: var(--
|
|
2
|
+
.game-screen[data-v-d306fd73] {
|
|
3
|
+
--canvas-inset: var(--d1b33204);
|
|
4
|
+
--canvas-unit: var(--v78828f63);
|
|
5
|
+
--unit: var(--v3768e5a8);
|
|
6
|
+
--white: var(--b580e53e);
|
|
6
7
|
position: absolute;
|
|
7
8
|
inset: 0;
|
|
8
9
|
overflow: hidden;
|
|
9
10
|
container-type: size;
|
|
10
|
-
cursor: var(--
|
|
11
|
-
font-family: var(--
|
|
11
|
+
cursor: var(--v3d670e04);
|
|
12
|
+
font-family: var(--v42d80ea8);
|
|
12
13
|
user-select: none;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
.loading-spinner[data-v-
|
|
16
|
+
.loading-spinner[data-v-69cb5a34] {
|
|
16
17
|
display: grid;
|
|
17
18
|
width: calc(var(--unit) * 120);
|
|
18
19
|
height: calc(var(--unit) * 120);
|
|
@@ -22,16 +23,16 @@
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
/* The ring is a conic gradient cut to an annulus, its head a dot at the gradient's bright end */
|
|
25
|
-
.ring[data-v-
|
|
26
|
+
.ring[data-v-69cb5a34] {
|
|
26
27
|
position: relative;
|
|
27
28
|
width: calc(var(--unit) * 48);
|
|
28
29
|
height: calc(var(--unit) * 48);
|
|
29
30
|
border-radius: 50%;
|
|
30
|
-
animation: turn-
|
|
31
|
+
animation: turn-69cb5a34 1s linear infinite;
|
|
31
32
|
background: conic-gradient(from 200deg, transparent, rgb(255 255 255 / 0.45) 55%, #fff 88%, transparent 88%);
|
|
32
33
|
mask: radial-gradient(circle, transparent calc(var(--unit) * 16.5), #000 calc(var(--unit) * 17));
|
|
33
34
|
}
|
|
34
|
-
.ring[data-v-
|
|
35
|
+
.ring[data-v-69cb5a34]::after {
|
|
35
36
|
position: absolute;
|
|
36
37
|
top: 50%;
|
|
37
38
|
left: 50%;
|
|
@@ -44,18 +45,18 @@
|
|
|
44
45
|
transform: rotate(516.8deg) translateY(calc(var(--unit) * -20.5)) translate(-50%, -50%);
|
|
45
46
|
transform-origin: 0 0;
|
|
46
47
|
}
|
|
47
|
-
@keyframes turn-
|
|
48
|
+
@keyframes turn-69cb5a34 {
|
|
48
49
|
to {
|
|
49
50
|
rotate: 1turn;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
.ornament-divider[data-v-
|
|
54
|
+
.ornament-divider[data-v-335021af] {
|
|
54
55
|
position: relative;
|
|
55
56
|
height: calc(var(--unit) * 30);
|
|
56
57
|
fill: #d7d7d7;
|
|
57
58
|
}
|
|
58
|
-
.ornament-divider[data-v-
|
|
59
|
+
.ornament-divider[data-v-335021af]::before {
|
|
59
60
|
position: absolute;
|
|
60
61
|
top: 50%;
|
|
61
62
|
right: calc(var(--unit) * 4);
|
|
@@ -65,7 +66,7 @@ to {
|
|
|
65
66
|
content: "";
|
|
66
67
|
translate: 0 -50%;
|
|
67
68
|
}
|
|
68
|
-
.end[data-v-
|
|
69
|
+
.end[data-v-335021af] {
|
|
69
70
|
position: absolute;
|
|
70
71
|
top: 50%;
|
|
71
72
|
left: 0;
|
|
@@ -73,12 +74,12 @@ to {
|
|
|
73
74
|
height: calc(var(--unit) * 21);
|
|
74
75
|
translate: 0 -50%;
|
|
75
76
|
}
|
|
76
|
-
.right[data-v-
|
|
77
|
+
.right[data-v-335021af] {
|
|
77
78
|
right: 0;
|
|
78
79
|
left: auto;
|
|
79
80
|
scale: -1 1;
|
|
80
81
|
}
|
|
81
|
-
.middle[data-v-
|
|
82
|
+
.middle[data-v-335021af] {
|
|
82
83
|
position: absolute;
|
|
83
84
|
top: 0;
|
|
84
85
|
left: 50%;
|
|
@@ -87,24 +88,24 @@ to {
|
|
|
87
88
|
translate: -50% 0;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
.progress-bar[data-v-
|
|
91
|
+
.progress-bar[data-v-bea8e745] {
|
|
91
92
|
--open-ms: 250ms;
|
|
92
93
|
display: flex;
|
|
93
94
|
align-items: center;
|
|
94
95
|
justify-content: space-between;
|
|
95
96
|
width: calc(var(--unit) * 394);
|
|
96
|
-
animation: open-
|
|
97
|
+
animation: open-bea8e745 var(--open-ms) ease-out;
|
|
97
98
|
transition: width var(--open-ms) ease-in;
|
|
98
99
|
}
|
|
99
|
-
.folded[data-v-
|
|
100
|
+
.folded[data-v-bea8e745] {
|
|
100
101
|
width: calc(var(--unit) * 6.5);
|
|
101
102
|
}
|
|
102
|
-
@keyframes open-
|
|
103
|
+
@keyframes open-bea8e745 {
|
|
103
104
|
from {
|
|
104
105
|
width: calc(var(--unit) * 6.5);
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
|
-
.diamond[data-v-
|
|
108
|
+
.diamond[data-v-bea8e745] {
|
|
108
109
|
flex: none;
|
|
109
110
|
width: calc(var(--unit) * 6.5);
|
|
110
111
|
height: calc(var(--unit) * 6.5);
|
|
@@ -113,7 +114,7 @@ from {
|
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
/* 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-
|
|
117
|
+
.track[data-v-bea8e745] {
|
|
117
118
|
flex: 1;
|
|
118
119
|
min-width: 0;
|
|
119
120
|
height: calc(var(--unit) * 10);
|
|
@@ -128,19 +129,19 @@ from {
|
|
|
128
129
|
0 50%
|
|
129
130
|
);
|
|
130
131
|
}
|
|
131
|
-
.folded .track[data-v-
|
|
132
|
+
.folded .track[data-v-bea8e745] {
|
|
132
133
|
margin: 0;
|
|
133
134
|
}
|
|
134
|
-
.folded .diamond + .track + .diamond[data-v-
|
|
135
|
+
.folded .diamond + .track + .diamond[data-v-bea8e745] {
|
|
135
136
|
display: none;
|
|
136
137
|
}
|
|
137
|
-
.fill[data-v-
|
|
138
|
+
.fill[data-v-bea8e745] {
|
|
138
139
|
display: block;
|
|
139
140
|
height: 100%;
|
|
140
141
|
background: #fff;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
|
-
.prompt-band[data-v-
|
|
144
|
+
.prompt-band[data-v-8c88bb3d] {
|
|
144
145
|
display: grid;
|
|
145
146
|
height: calc(var(--unit) * 44);
|
|
146
147
|
background: linear-gradient(
|
|
@@ -152,7 +153,7 @@ from {
|
|
|
152
153
|
);
|
|
153
154
|
place-items: center;
|
|
154
155
|
}
|
|
155
|
-
.text[data-v-
|
|
156
|
+
.text[data-v-8c88bb3d] {
|
|
156
157
|
margin: 0;
|
|
157
158
|
color: #dcdcdc;
|
|
158
159
|
font-size: calc(var(--unit) * 29.5);
|
|
@@ -160,7 +161,7 @@ from {
|
|
|
160
161
|
line-height: 1;
|
|
161
162
|
}
|
|
162
163
|
|
|
163
|
-
.round-button[data-v-
|
|
164
|
+
.round-button[data-v-e1ab12d3] {
|
|
164
165
|
display: grid;
|
|
165
166
|
width: calc(var(--unit) * 52);
|
|
166
167
|
height: calc(var(--unit) * 52);
|
|
@@ -172,17 +173,17 @@ from {
|
|
|
172
173
|
cursor: inherit;
|
|
173
174
|
place-items: center;
|
|
174
175
|
}
|
|
175
|
-
.glyph[data-v-
|
|
176
|
+
.glyph[data-v-e1ab12d3] {
|
|
176
177
|
width: calc(var(--unit) * 48);
|
|
177
178
|
height: calc(var(--unit) * 48);
|
|
178
179
|
fill: #212121;
|
|
179
180
|
}
|
|
180
|
-
.ring[data-v-
|
|
181
|
+
.ring[data-v-e1ab12d3] {
|
|
181
182
|
fill: none;
|
|
182
183
|
stroke: #858585;
|
|
183
184
|
}
|
|
184
185
|
|
|
185
|
-
.server-bar[data-v-
|
|
186
|
+
.server-bar[data-v-6b68b3eb] {
|
|
186
187
|
position: relative;
|
|
187
188
|
display: grid;
|
|
188
189
|
width: calc(var(--unit) * 456);
|
|
@@ -192,7 +193,7 @@ from {
|
|
|
192
193
|
background: rgb(42 45 52 / 0.74);
|
|
193
194
|
place-items: center;
|
|
194
195
|
}
|
|
195
|
-
.mark[data-v-
|
|
196
|
+
.mark[data-v-6b68b3eb] {
|
|
196
197
|
position: absolute;
|
|
197
198
|
top: 50%;
|
|
198
199
|
left: calc(var(--unit) * 20);
|
|
@@ -200,13 +201,13 @@ from {
|
|
|
200
201
|
height: calc(var(--unit) * 46);
|
|
201
202
|
translate: 0 -50%;
|
|
202
203
|
}
|
|
203
|
-
.diamond[data-v-
|
|
204
|
+
.diamond[data-v-6b68b3eb] {
|
|
204
205
|
fill: #e4e0d4;
|
|
205
206
|
}
|
|
206
|
-
.tick[data-v-
|
|
207
|
+
.tick[data-v-6b68b3eb] {
|
|
207
208
|
fill: #1c1c1c;
|
|
208
209
|
}
|
|
209
|
-
.name[data-v-
|
|
210
|
+
.name[data-v-6b68b3eb] {
|
|
210
211
|
margin: 0;
|
|
211
212
|
color: #d4d4d4;
|
|
212
213
|
font-size: calc(var(--unit) * 33);
|
|
@@ -215,7 +216,7 @@ from {
|
|
|
215
216
|
line-height: 1;
|
|
216
217
|
}
|
|
217
218
|
|
|
218
|
-
.toast-notice[data-v-
|
|
219
|
+
.toast-notice[data-v-a09dfb40] {
|
|
219
220
|
position: relative;
|
|
220
221
|
display: flex;
|
|
221
222
|
min-width: calc(var(--unit) * 537);
|
|
@@ -226,7 +227,7 @@ from {
|
|
|
226
227
|
border-radius: calc(var(--unit) * 12);
|
|
227
228
|
background: #fff;
|
|
228
229
|
}
|
|
229
|
-
.mark[data-v-
|
|
230
|
+
.mark[data-v-a09dfb40] {
|
|
230
231
|
position: absolute;
|
|
231
232
|
top: 50%;
|
|
232
233
|
left: calc(var(--unit) * 61);
|
|
@@ -239,7 +240,7 @@ from {
|
|
|
239
240
|
place-items: center;
|
|
240
241
|
translate: 0 -50%;
|
|
241
242
|
}
|
|
242
|
-
.text[data-v-
|
|
243
|
+
.text[data-v-a09dfb40] {
|
|
243
244
|
margin: 0;
|
|
244
245
|
color: #1d1d1d;
|
|
245
246
|
font-size: calc(var(--unit) * 36);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genshin-interface",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
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
5
|
"keywords": [
|
|
6
6
|
"component-library",
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
"typecheck": "vue-tsc"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@esposter/configuration": "
|
|
52
|
+
"@esposter/configuration": "4.0.0",
|
|
53
53
|
"@fontsource/signika": "^5.3.0",
|
|
54
54
|
"@tsdown/css": "^0.23.0",
|
|
55
55
|
"@types/node": "^26.6.4",
|
|
56
56
|
"@vitest/browser-playwright": "^5.0.3",
|
|
57
57
|
"playwright": "^1.63.0",
|
|
58
58
|
"tsdown": "^0.23.0",
|
|
59
|
-
"vite": "^8.3.
|
|
59
|
+
"vite": "^8.3.3",
|
|
60
60
|
"vitest": "^5.0.3",
|
|
61
61
|
"vitest-browser-vue": "^3.1.0",
|
|
62
|
-
"vue-tsc": "
|
|
62
|
+
"vue-tsc": "3.3.11"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"vue": "^3.5.43"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "7667bc8c9a2b4e9dcacd6b845ee8cc9951250ae7"
|
|
68
68
|
}
|