genshin-interface 4.1.2 → 4.3.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/README.md +1 -1
- package/dist/constants-Bt7f1_FX.d.ts +52 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +72 -0
- package/dist/index.d.ts +685 -186
- package/dist/index.js +1980 -670
- package/dist/style.css +2244 -825
- package/dist/styles/artifactPicker.css +12 -0
- package/dist/styles/blessingWorship.css +50 -0
- package/dist/styles/confirmDialog.css +11 -0
- package/dist/styles/craftingShop.css +21 -0
- package/dist/styles/partyReputation.css +24 -0
- package/dist/styles/weaponStars.css +16 -0
- package/dist/styles/wishOverlay.css +38 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ import "genshin-interface/style.css";
|
|
|
43
43
|
|
|
44
44
|
## <a name="documentation">📖 Documentation</a>
|
|
45
45
|
|
|
46
|
-
We highly recommend you take a look at the [documentation](https://
|
|
46
|
+
We highly recommend you take a look at the [documentation](https://github.com/Esposter/Esposter/blob/main/openspec/specs/genshin/interface-library/design.md) to level up. It compares the library against the game.
|
|
47
47
|
|
|
48
48
|
## <a name="license">⚖️ License</a>
|
|
49
49
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/models/CanvasRect.d.ts
|
|
2
|
+
interface CanvasRect {
|
|
3
|
+
anchorMax: [number, number];
|
|
4
|
+
anchorMin: [number, number];
|
|
5
|
+
pivot: [number, number];
|
|
6
|
+
position: [number, number];
|
|
7
|
+
size: [number, number];
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/services/constants.d.ts
|
|
11
|
+
declare const ASCENSION_PHASE_COUNT = 6;
|
|
12
|
+
declare const GAME_FONT_FAMILY = "\"HYWenHei 85W\", \"HYWenHei-85W\", Signika, ui-sans-serif, sans-serif";
|
|
13
|
+
declare const GAME_UNIT = "calc(min(100cqh / 1080, 100cqw / 1920) * var(--interface-scale))";
|
|
14
|
+
declare const GAME_CANVAS_UNIT = "calc(min(100cqh / 900, 100cqw / 1600) * var(--interface-scale))";
|
|
15
|
+
declare const GAME_CANVAS_INSET = "min(var(--unit) * 71, (100cqw - min(100cqh * 16 / 9, 100cqw)) / 2)";
|
|
16
|
+
declare const MOBILE_INTERFACE_SCALE = 1.25;
|
|
17
|
+
declare const GAME_CANVAS_RECT: CanvasRect;
|
|
18
|
+
declare const GAME_WHITE = "#fdfdfd";
|
|
19
|
+
declare const GAME_CREAM = "#ece5d8";
|
|
20
|
+
declare const GAME_INK = "#3b4354";
|
|
21
|
+
declare const GAME_GOLD = "#d3bc8e";
|
|
22
|
+
declare const GAME_CURSOR: string;
|
|
23
|
+
declare const ORNAMENT_MIDDLE_PATH = "M179.5 39h6l5.5 4.5 2 5 10 12 2 5 10 10 4 8v5l-4.5 5.5-13 7-4 1-3.5-2.5-3.5-4.5-2-1h-10l-7.5 5.5-15.5 17.5-2.5 1.5-6.5 7.5-10 9-3 2h-2l-21 15q-6.27 1.73-10 6l-9 2-4.5 3.5q-.5 4 2.5 4.5l9 4 4 4 17 8 8 6 9 4 14.5 12.5 6.5 7.5q2.25-.75 1.5 1.5l6.5 7.5 4.5 3.5q.63 3.87 3.5 5.5l5 3h9q1-2.5 3.5-2 .71-4.89 4.5-8l3-1 26.5-24.5 2.5-4.5 5-2 9-7 5-2 13.5-9.5 1.5-2.5q5.5-2 8.5-6.5v-3l-5-5v-3l3.5-4.5q2.25.75 1.5-1.5l5.5-6.5 6-3h11l26 14 5 5h3l6 2 3.5 3.5-1 4.5-4.5 2-5 1-7 6-4 1-12 7-5 5-10 3-8 7-4 1-5 4h-1.5l-1.5 3-24 16-5.5 5.5q.75 2.25-1.5 1.5l-20.5 18.5-2 4-13 14-9 13-3 6.5-2.5 1h-3l-1 1h-3l-6.5-3.5-4-11q-8.37-6.84-13-16.5l-3-1.5-4-5v-1.5h-2q1.13-2.67-1.5-2l-13-15-3.5-1v-1.5l-6.5-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5.5-4.5 2-4.5 3-1.5 7-10 20-22 5-10.5 2.5-1z";
|
|
24
|
+
declare const ORNAMENT_END_PATH = "M210.5 53h6l7.5 6.5 3.5 5.5 10.5 8.5 4.5 5.5 7 3q3.17 4.83 9 7h4l1 1 6 1 15 7h10l1 1h8l1 1h7l1 1h7.5v30.5q-.12 1.13-5.5.5l-1 1h-6l-1 1h-17q-1 2-5 1l-15 7-3 1h-6q-6.5 2.5-10 8l-15 9-9.5 9.5-4.5 7.5-7 3h-6l-3-1-12.5-10.5q.75-2.25-1.5-1.5l-6-5q-8.22-1.78-13-7l-13-4-3-3-8-3-17-3-6-4-9-1-6-3-9-1-11-4h-7l-4-2h-4l-1-1-14-2-5-2h-11q-1.25-2.25-6-1l-6.5-3.5 1-3.5 5.5-2h3l1-1h12l1-1h4l6-2 9-1 1-1h3l4-2h4l9-3h8l16-6h4l7-4q4 1 5-1h7l1-1h4l6-2 10-7 9-2 16-11 3-1 7-7 12-6z";
|
|
25
|
+
declare const CHECK_MARK_PATH = "M237.5 26q5.25-1.75 3.5 3.5l-6 11-5 5-4 7-4 4-9 14-3 3-1 3-4 4-1 3-12 17-7 12-9 11-5 9-14 19-1 3-4 4-7 12-8 10-1 3-4 4-2 5-3 3v2l-3.5 4.5-6 2-11-6-2.5-2.5-3.5-4.5-16-11-13.5-12.5q-1.25-5.75-5.5-8.5l-7-2-5-3-13-12-8-3h-6l-3-1-2.5-2.5v-2l3-6 26.5-36.5 5-3h5l5.5 4.5q-.75 2.25 1.5 1.5l16.5 17.5 1 3 13 13 5.5 9.5 7 1 18-13 12-12 21-18 10-10 8-6 19.5-18.5 2.5-3.5 12-9q10.85-12.15 24-22z";
|
|
26
|
+
declare const SERVER_MARK_DIAMOND_PATH = "M23.44 6.62l1 .63 1.44 1.31.43.56 1.69 1.44.56.69.32.19.56.68.81.69q-.09.28.19.19l1.75 2 .5.38h.19v.18l.62.75 2.94 2.94.68.56 1.32 1.44.44.31.56.69.44.31.68.82q.28-.1.19.18.54.28.37 1.25l-1.18 1.31-1.06.94-.82.94-2.18 2.06-4.32 4.56-.68.44-3.07 3.19-.93.81-2.44 2.56-.5.26h-.88l-.37-.13-.44-.44-.56-.69q-.28.1-.19-.18l-2.38-2.25-.18-.31-.69-.57-.56-.69-.31-.18-.19-.32-.94-.68-.69-.82q-.28.1-.18-.18l-2.32-2.44-2.81-2.56-1.44-1.56-.69-.57-2-2.12-.37-.5v-.5l.25-.5 1.69-1.69q.28.09.19-.19.43-.15.37-.56h.19l.5-.37 2.06-2.07.12-.43h.19l.81-.69.69-.81.31-.19 1.19-1.31.81-.69.19-.31.81-.69.32-.57.56-.24v-.19l.56-.57.56-.43.32-.44.68-.56.44-.57.56-.43.26-.57h.18l2.13-2 .75-.5z";
|
|
27
|
+
declare const SERVER_MARK_TICK_PATH = "M30.12 16.88l-.24.12-.38.62-2.5 2.63-1.75 1.63-1.25 1.37-.25.5h-.13l-.87.87q.13.26-.13.13l-.74.87-1.26 1-.37-.12-.63-.5-.5-.5-.5-.5-.5-.5-1.37-1.25-.75-.25h-.38l-.62.25q-.75.37-1 1.25v1.12l.25.63.5.63.37.12 2.63 3 .5.75 1.63 1.25h1l1-.75.37-.5.63-.5.37-.5.63-.5.5-.63.37-.24.63-.76.5-.37.37-.5.63-.5.24-.37.88-.76.38-.62.5-.38.37-.5.37-.24q.38-.38.63-.88l.75-.5.12-.25.76-.63 1.12-1.12q.25-.25.12-.75l.13-.13-.13-.74-.5-.63-.74-.75q-.63.12-.63-.12h-1.13z";
|
|
28
|
+
declare const SETTINGS_RING_CENTRE: readonly [24.05, 24.9];
|
|
29
|
+
declare const SETTINGS_RING_RADIUS = 9.85;
|
|
30
|
+
declare const SETTINGS_RING_WIDTH = 1.9;
|
|
31
|
+
declare const FIXTURE_VARIANT_SEPARATOR = "-";
|
|
32
|
+
declare const INTERACTION_KEY_LABEL = "F";
|
|
33
|
+
declare const CONSTELLATION_NODE_PLACES: readonly {
|
|
34
|
+
left: number;
|
|
35
|
+
top: number;
|
|
36
|
+
}[];
|
|
37
|
+
declare const INTERACTION_HOVER_MS = 50;
|
|
38
|
+
declare const INTERACTION_REST_MS = 100;
|
|
39
|
+
declare const INTERACTION_PILL_REST_MS = 200;
|
|
40
|
+
declare const INTERACTION_PRESS_MS = 167;
|
|
41
|
+
declare const GAME_SMOOTHSTEP_EASING = "cubic-bezier(0.333, 0, 0.667, 1)";
|
|
42
|
+
declare const GAME_ROW_HOVER = "rgb(255 255 255 / 0.2)";
|
|
43
|
+
declare const GAME_ROW_PRESS = "rgb(255 255 255 / 0.3)";
|
|
44
|
+
declare const GAME_REPLY_REST = "rgb(0 0 0 / 0.22)";
|
|
45
|
+
declare const GAME_REPLY_HOVER = "rgb(255 255 255 / 0.85)";
|
|
46
|
+
declare const GAME_REPLY_HOVER_INK = "#3b4255";
|
|
47
|
+
declare const COOKING_ARC_CENTRE_X = 960;
|
|
48
|
+
declare const COOKING_ARC_CENTRE_Y = 832;
|
|
49
|
+
declare const COOKING_ARC_RADIUS_X = 435;
|
|
50
|
+
declare const COOKING_ARC_RADIUS_Y = 120;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { MOBILE_INTERFACE_SCALE as A, GAME_UNIT as C, INTERACTION_PILL_REST_MS as D, INTERACTION_KEY_LABEL as E, SETTINGS_RING_CENTRE as F, SETTINGS_RING_RADIUS as I, SETTINGS_RING_WIDTH as L, ORNAMENT_MIDDLE_PATH as M, SERVER_MARK_DIAMOND_PATH as N, INTERACTION_PRESS_MS as O, SERVER_MARK_TICK_PATH as P, CanvasRect as R, GAME_SMOOTHSTEP_EASING as S, INTERACTION_HOVER_MS as T, GAME_REPLY_HOVER as _, COOKING_ARC_CENTRE_Y as a, GAME_ROW_HOVER as b, FIXTURE_VARIANT_SEPARATOR as c, GAME_CANVAS_UNIT as d, GAME_CREAM as f, GAME_INK as g, GAME_GOLD as h, COOKING_ARC_CENTRE_X as i, ORNAMENT_END_PATH as j, INTERACTION_REST_MS as k, GAME_CANVAS_INSET as l, GAME_FONT_FAMILY as m, CHECK_MARK_PATH as n, COOKING_ARC_RADIUS_X as o, GAME_CURSOR as p, CONSTELLATION_NODE_PLACES as r, COOKING_ARC_RADIUS_Y as s, ASCENSION_PHASE_COUNT as t, GAME_CANVAS_RECT as u, GAME_REPLY_HOVER_INK as v, GAME_WHITE as w, GAME_ROW_PRESS as x, GAME_REPLY_REST as y };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as MOBILE_INTERFACE_SCALE, C as GAME_UNIT, D as INTERACTION_PILL_REST_MS, E as INTERACTION_KEY_LABEL, F as SETTINGS_RING_CENTRE, I as SETTINGS_RING_RADIUS, L as SETTINGS_RING_WIDTH, M as ORNAMENT_MIDDLE_PATH, N as SERVER_MARK_DIAMOND_PATH, O as INTERACTION_PRESS_MS, P as SERVER_MARK_TICK_PATH, S as GAME_SMOOTHSTEP_EASING, T as INTERACTION_HOVER_MS, _ as GAME_REPLY_HOVER, a as COOKING_ARC_CENTRE_Y, b as GAME_ROW_HOVER, c as FIXTURE_VARIANT_SEPARATOR, d as GAME_CANVAS_UNIT, f as GAME_CREAM, g as GAME_INK, h as GAME_GOLD, i as COOKING_ARC_CENTRE_X, j as ORNAMENT_END_PATH, k as INTERACTION_REST_MS, l as GAME_CANVAS_INSET, m as GAME_FONT_FAMILY, n as CHECK_MARK_PATH, o as COOKING_ARC_RADIUS_X, p as GAME_CURSOR, r as CONSTELLATION_NODE_PLACES, s as COOKING_ARC_RADIUS_Y, t as ASCENSION_PHASE_COUNT, u as GAME_CANVAS_RECT, v as GAME_REPLY_HOVER_INK, w as GAME_WHITE, x as GAME_ROW_PRESS, y as GAME_REPLY_REST } from "./constants-Bt7f1_FX.js";
|
|
2
|
+
export { ASCENSION_PHASE_COUNT, CHECK_MARK_PATH, CONSTELLATION_NODE_PLACES, COOKING_ARC_CENTRE_X, COOKING_ARC_CENTRE_Y, COOKING_ARC_RADIUS_X, COOKING_ARC_RADIUS_Y, FIXTURE_VARIANT_SEPARATOR, GAME_CANVAS_INSET, GAME_CANVAS_RECT, GAME_CANVAS_UNIT, GAME_CREAM, GAME_CURSOR, GAME_FONT_FAMILY, GAME_GOLD, GAME_INK, GAME_REPLY_HOVER, GAME_REPLY_HOVER_INK, GAME_REPLY_REST, GAME_ROW_HOVER, GAME_ROW_PRESS, GAME_SMOOTHSTEP_EASING, GAME_UNIT, GAME_WHITE, INTERACTION_HOVER_MS, INTERACTION_KEY_LABEL, INTERACTION_PILL_REST_MS, INTERACTION_PRESS_MS, INTERACTION_REST_MS, MOBILE_INTERFACE_SCALE, ORNAMENT_END_PATH, ORNAMENT_MIDDLE_PATH, SERVER_MARK_DIAMOND_PATH, SERVER_MARK_TICK_PATH, SETTINGS_RING_CENTRE, SETTINGS_RING_RADIUS, SETTINGS_RING_WIDTH };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/services/constants.ts
|
|
2
|
+
const ASCENSION_PHASE_COUNT = 6;
|
|
3
|
+
const GAME_FONT_FAMILY = "\"HYWenHei 85W\", \"HYWenHei-85W\", Signika, ui-sans-serif, sans-serif";
|
|
4
|
+
const GAME_UNIT = "calc(min(100cqh / 1080, 100cqw / 1920) * var(--interface-scale))";
|
|
5
|
+
const GAME_CANVAS_UNIT = "calc(min(100cqh / 900, 100cqw / 1600) * var(--interface-scale))";
|
|
6
|
+
const GAME_CANVAS_INSET = "min(var(--unit) * 71, (100cqw - min(100cqh * 16 / 9, 100cqw)) / 2)";
|
|
7
|
+
const MOBILE_INTERFACE_SCALE = 1.25;
|
|
8
|
+
const GAME_CANVAS_RECT = {
|
|
9
|
+
anchorMax: [1, 1],
|
|
10
|
+
anchorMin: [0, 0],
|
|
11
|
+
pivot: [0, 0],
|
|
12
|
+
position: [0, 0],
|
|
13
|
+
size: [0, 0]
|
|
14
|
+
};
|
|
15
|
+
const GAME_WHITE = "#fdfdfd";
|
|
16
|
+
const GAME_CREAM = "#ece5d8";
|
|
17
|
+
const GAME_INK = "#3b4354";
|
|
18
|
+
const GAME_GOLD = "#d3bc8e";
|
|
19
|
+
const GAME_CURSOR_SIZE = 26;
|
|
20
|
+
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 15-14.5 21.1-3 44-22.9-11.5-44 3-3.6-31.9-15-62z" fill="none" stroke="#2c3a4e" stroke-opacity="0.75" stroke-width="3" stroke-linejoin="round"/><path d="M0 0q30.1 11.4 62 15-14.5 21.1-3 44z" fill="#fff"/><path d="M0 0L59 59Q36.1 47.5 15 62Q11.4 30.1 0 0Z" fill="#f4f5e0"/><path d="M26 26q21.5 6 36-11-14.5 21.1-3 44-22.9-11.5-44 3 17-14.5 11-36z" fill="url(#g)"/></svg>`)}") 1 1, auto`;
|
|
21
|
+
const ORNAMENT_MIDDLE_PATH = "M179.5 39h6l5.5 4.5 2 5 10 12 2 5 10 10 4 8v5l-4.5 5.5-13 7-4 1-3.5-2.5-3.5-4.5-2-1h-10l-7.5 5.5-15.5 17.5-2.5 1.5-6.5 7.5-10 9-3 2h-2l-21 15q-6.27 1.73-10 6l-9 2-4.5 3.5q-.5 4 2.5 4.5l9 4 4 4 17 8 8 6 9 4 14.5 12.5 6.5 7.5q2.25-.75 1.5 1.5l6.5 7.5 4.5 3.5q.63 3.87 3.5 5.5l5 3h9q1-2.5 3.5-2 .71-4.89 4.5-8l3-1 26.5-24.5 2.5-4.5 5-2 9-7 5-2 13.5-9.5 1.5-2.5q5.5-2 8.5-6.5v-3l-5-5v-3l3.5-4.5q2.25.75 1.5-1.5l5.5-6.5 6-3h11l26 14 5 5h3l6 2 3.5 3.5-1 4.5-4.5 2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-10 9-9.5 5.5-1.5 2.5h-1.5q1.13 2.67-1.5 2-4.41 4.09-11 6l-13.5 11.5-1 3 1 1v7l-5.5 7.5-9 8-9 1-18-10-3-3-6-2-4-4-9-3-3.5-3.5 2.5-4.5 11-5 8-5h2l8-4 5-5 12-5 9-8 9-3 3.5-2.5 4.5-5.5 5-3 9-8 4-2 4.5-4.5 4.5-5.5 3-1 5.5-4.5 2-4.5 3-1.5 7-10 20-22 5-10.5 2.5-1z";
|
|
22
|
+
const ORNAMENT_END_PATH = "M210.5 53h6l7.5 6.5 3.5 5.5 10.5 8.5 4.5 5.5 7 3q3.17 4.83 9 7h4l1 1 6 1 15 7h10l1 1h8l1 1h7l1 1h7.5v30.5q-.12 1.13-5.5.5l-1 1h-6l-1 1h-17q-1 2-5 1l-15 7-3 1h-6q-6.5 2.5-10 8l-15 9-9.5 9.5-4.5 7.5-7 3h-6l-3-1-12.5-10.5q.75-2.25-1.5-1.5l-6-5q-8.22-1.78-13-7l-13-4-3-3-8-3-17-3-6-4-9-1-6-3-9-1-11-4h-7l-4-2h-4l-1-1-14-2-5-2h-11q-1.25-2.25-6-1l-6.5-3.5 1-3.5 5.5-2h3l1-1h12l1-1h4l6-2 9-1 1-1h3l4-2h4l9-3h8l16-6h4l7-4q4 1 5-1h7l1-1h4l6-2 10-7 9-2 16-11 3-1 7-7 12-6z";
|
|
23
|
+
const CHECK_MARK_PATH = "M237.5 26q5.25-1.75 3.5 3.5l-6 11-5 5-4 7-4 4-9 14-3 3-1 3-4 4-1 3-12 17-7 12-9 11-5 9-14 19-1 3-4 4-7 12-8 10-1 3-4 4-2 5-3 3v2l-3.5 4.5-6 2-11-6-2.5-2.5-3.5-4.5-16-11-13.5-12.5q-1.25-5.75-5.5-8.5l-7-2-5-3-13-12-8-3h-6l-3-1-2.5-2.5v-2l3-6 26.5-36.5 5-3h5l5.5 4.5q-.75 2.25 1.5 1.5l16.5 17.5 1 3 13 13 5.5 9.5 7 1 18-13 12-12 21-18 10-10 8-6 19.5-18.5 2.5-3.5 12-9q10.85-12.15 24-22z";
|
|
24
|
+
const SERVER_MARK_DIAMOND_PATH = "M23.44 6.62l1 .63 1.44 1.31.43.56 1.69 1.44.56.69.32.19.56.68.81.69q-.09.28.19.19l1.75 2 .5.38h.19v.18l.62.75 2.94 2.94.68.56 1.32 1.44.44.31.56.69.44.31.68.82q.28-.1.19.18.54.28.37 1.25l-1.18 1.31-1.06.94-.82.94-2.18 2.06-4.32 4.56-.68.44-3.07 3.19-.93.81-2.44 2.56-.5.26h-.88l-.37-.13-.44-.44-.56-.69q-.28.1-.19-.18l-2.38-2.25-.18-.31-.69-.57-.56-.69-.31-.18-.19-.32-.94-.68-.69-.82q-.28.1-.18-.18l-2.32-2.44-2.81-2.56-1.44-1.56-.69-.57-2-2.12-.37-.5v-.5l.25-.5 1.69-1.69q.28.09.19-.19.43-.15.37-.56h.19l.5-.37 2.06-2.07.12-.43h.19l.81-.69.69-.81.31-.19 1.19-1.31.81-.69.19-.31.81-.69.32-.57.56-.24v-.19l.56-.57.56-.43.32-.44.68-.56.44-.57.56-.43.26-.57h.18l2.13-2 .75-.5z";
|
|
25
|
+
const SERVER_MARK_TICK_PATH = "M30.12 16.88l-.24.12-.38.62-2.5 2.63-1.75 1.63-1.25 1.37-.25.5h-.13l-.87.87q.13.26-.13.13l-.74.87-1.26 1-.37-.12-.63-.5-.5-.5-.5-.5-.5-.5-1.37-1.25-.75-.25h-.38l-.62.25q-.75.37-1 1.25v1.12l.25.63.5.63.37.12 2.63 3 .5.75 1.63 1.25h1l1-.75.37-.5.63-.5.37-.5.63-.5.5-.63.37-.24.63-.76.5-.37.37-.5.63-.5.24-.37.88-.76.38-.62.5-.38.37-.5.37-.24q.38-.38.63-.88l.75-.5.12-.25.76-.63 1.12-1.12q.25-.25.12-.75l.13-.13-.13-.74-.5-.63-.74-.75q-.63.12-.63-.12h-1.13z";
|
|
26
|
+
const SETTINGS_RING_CENTRE = [24.05, 24.9];
|
|
27
|
+
const SETTINGS_RING_RADIUS = 9.85;
|
|
28
|
+
const SETTINGS_RING_WIDTH = 1.9;
|
|
29
|
+
const FIXTURE_VARIANT_SEPARATOR = "-";
|
|
30
|
+
const INTERACTION_KEY_LABEL = "F";
|
|
31
|
+
const CONSTELLATION_NODE_PLACES = [
|
|
32
|
+
{
|
|
33
|
+
left: 15.25,
|
|
34
|
+
top: 116
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
left: 69.25,
|
|
38
|
+
top: 227
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
left: 105.25,
|
|
42
|
+
top: 338.75
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
left: 105.25,
|
|
46
|
+
top: 449.75
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
left: 69.25,
|
|
50
|
+
top: 560.75
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
left: -2.75,
|
|
54
|
+
top: 671.75
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
const INTERACTION_HOVER_MS = 50;
|
|
58
|
+
const INTERACTION_REST_MS = 100;
|
|
59
|
+
const INTERACTION_PILL_REST_MS = 200;
|
|
60
|
+
const INTERACTION_PRESS_MS = 167;
|
|
61
|
+
const GAME_SMOOTHSTEP_EASING = "cubic-bezier(0.333, 0, 0.667, 1)";
|
|
62
|
+
const GAME_ROW_HOVER = "rgb(255 255 255 / 0.2)";
|
|
63
|
+
const GAME_ROW_PRESS = "rgb(255 255 255 / 0.3)";
|
|
64
|
+
const GAME_REPLY_REST = "rgb(0 0 0 / 0.22)";
|
|
65
|
+
const GAME_REPLY_HOVER = "rgb(255 255 255 / 0.85)";
|
|
66
|
+
const GAME_REPLY_HOVER_INK = "#3b4255";
|
|
67
|
+
const COOKING_ARC_CENTRE_X = 960;
|
|
68
|
+
const COOKING_ARC_CENTRE_Y = 832;
|
|
69
|
+
const COOKING_ARC_RADIUS_X = 435;
|
|
70
|
+
const COOKING_ARC_RADIUS_Y = 120;
|
|
71
|
+
//#endregion
|
|
72
|
+
export { ASCENSION_PHASE_COUNT, CHECK_MARK_PATH, CONSTELLATION_NODE_PLACES, COOKING_ARC_CENTRE_X, COOKING_ARC_CENTRE_Y, COOKING_ARC_RADIUS_X, COOKING_ARC_RADIUS_Y, FIXTURE_VARIANT_SEPARATOR, GAME_CANVAS_INSET, GAME_CANVAS_RECT, GAME_CANVAS_UNIT, GAME_CREAM, GAME_CURSOR, GAME_FONT_FAMILY, GAME_GOLD, GAME_INK, GAME_REPLY_HOVER, GAME_REPLY_HOVER_INK, GAME_REPLY_REST, GAME_ROW_HOVER, GAME_ROW_PRESS, GAME_SMOOTHSTEP_EASING, GAME_UNIT, GAME_WHITE, INTERACTION_HOVER_MS, INTERACTION_KEY_LABEL, INTERACTION_PILL_REST_MS, INTERACTION_PRESS_MS, INTERACTION_REST_MS, MOBILE_INTERFACE_SCALE, ORNAMENT_END_PATH, ORNAMENT_MIDDLE_PATH, SERVER_MARK_DIAMOND_PATH, SERVER_MARK_TICK_PATH, SETTINGS_RING_CENTRE, SETTINGS_RING_RADIUS, SETTINGS_RING_WIDTH };
|