@pretty-chitty/core 2.3.6 → 2.3.7

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.
Files changed (142) hide show
  1. package/dist/1ea77c9e193d437b9bfa.woff +0 -0
  2. package/dist/2282b9ff81c2cd7cf5b4.mp3 +0 -0
  3. package/dist/22a445dd65cce94defdd.woff2 +0 -0
  4. package/dist/2b94f846c05846d73536.mp3 +0 -0
  5. package/dist/32d6296b80e676d66bda.woff +0 -0
  6. package/dist/36e7e033bfef7b32bf3c.mp3 +0 -0
  7. package/dist/37f3b2ddcbe588b2aaa5.jpg +0 -0
  8. package/dist/3f0fb9058a03e14ad2fa.jpg +0 -0
  9. package/dist/412050b824afb24fef88.mp3 +0 -0
  10. package/dist/468cf705a21091e5f755.mp3 +0 -0
  11. package/dist/47a823ae095f5f4cfd82.woff +0 -0
  12. package/dist/5062c95fb3c68af2ee2e.woff2 +0 -0
  13. package/dist/5aecd40f51b84ffb6efa.woff2 +0 -0
  14. package/dist/5d184fc5808150d51726.mp3 +0 -0
  15. package/dist/60b937eec087d648c831.woff2 +0 -0
  16. package/dist/63da6d06ce0ff84b8b2c.mp3 +0 -0
  17. package/dist/63f3d4f28784375801ac.woff +0 -0
  18. package/dist/669804475e1d5e52a4f5.mp3 +0 -0
  19. package/dist/6a6d042ba2a9290aba9c.woff2 +0 -0
  20. package/dist/72e60d1c7f7c603f31d6.woff +0 -0
  21. package/dist/788c3dfe27f9734edff5.mp3 +0 -0
  22. package/dist/7e339dfbea59fe54f2e3.png +0 -0
  23. package/dist/7ecd698217d211cad841.mp3 +0 -0
  24. package/dist/8c8f3dcefaec6a40d787.mp3 +0 -0
  25. package/dist/8d29c92c7f9ca79d8a5c.mp3 +0 -0
  26. package/dist/8ea5f16c95238d2ff902.mp3 +0 -0
  27. package/dist/97e19a7d82ab67080019.mp3 +0 -0
  28. package/dist/98373f88bbc3b8237b09.mp3 +0 -0
  29. package/dist/98c71bee993adc81d5be.mp3 +0 -0
  30. package/dist/a09db3cc936e581f320a.mp3 +0 -0
  31. package/dist/a51c64560480e6fdae0d.mp3 +0 -0
  32. package/dist/ad2392bc6cdf9bb1b5fd.mp3 +0 -0
  33. package/dist/b3708bfbeff0d340bdef.mp3 +0 -0
  34. package/dist/b81893c113e684d9eec4.woff +0 -0
  35. package/dist/bc6bc3d7802469910f83.mp3 +0 -0
  36. package/dist/bde37bf538e175149c3b.mp3 +0 -0
  37. package/dist/d6b5a560b17d31cd3c7c.mp3 +0 -0
  38. package/dist/dd3231a4b15c4f8f2b94.mp3 +0 -0
  39. package/dist/f63358bf5b9e4f8d7f79.mp3 +0 -0
  40. package/dist/fc02be176de567378fa4.woff2 +0 -0
  41. package/dist/fe1535c25dc5d879c085.mp3 +0 -0
  42. package/dist/index.html +12 -0
  43. package/dist/main.034dfcc6b83fdd218994.hot-update.js +265 -0
  44. package/dist/main.034dfcc6b83fdd218994.hot-update.js.map +1 -0
  45. package/dist/main.034dfcc6b83fdd218994.hot-update.json +1 -0
  46. package/dist/main.0c0a98b3b3e1e004beb2.hot-update.js +265 -0
  47. package/dist/main.0c0a98b3b3e1e004beb2.hot-update.js.map +1 -0
  48. package/dist/main.0c0a98b3b3e1e004beb2.hot-update.json +1 -0
  49. package/dist/main.13daf8cac0f0a3231f6a.hot-update.js +190 -0
  50. package/dist/main.13daf8cac0f0a3231f6a.hot-update.js.map +1 -0
  51. package/dist/main.13daf8cac0f0a3231f6a.hot-update.json +1 -0
  52. package/dist/main.14e055541f09be93a122.hot-update.js +321 -0
  53. package/dist/main.14e055541f09be93a122.hot-update.js.map +1 -0
  54. package/dist/main.14e055541f09be93a122.hot-update.json +1 -0
  55. package/dist/main.26499c88c63113e7a3f8.hot-update.js +190 -0
  56. package/dist/main.26499c88c63113e7a3f8.hot-update.js.map +1 -0
  57. package/dist/main.26499c88c63113e7a3f8.hot-update.json +1 -0
  58. package/dist/main.2c3a3f1928ea25c4b79a.hot-update.js +11 -0
  59. package/dist/main.2c3a3f1928ea25c4b79a.hot-update.js.map +1 -0
  60. package/dist/main.2c3a3f1928ea25c4b79a.hot-update.json +1 -0
  61. package/dist/main.324b63996b3b36daf5af.hot-update.js +603 -0
  62. package/dist/main.324b63996b3b36daf5af.hot-update.js.map +1 -0
  63. package/dist/main.324b63996b3b36daf5af.hot-update.json +1 -0
  64. package/dist/main.4b0f7799388b5de9908d.hot-update.js +265 -0
  65. package/dist/main.4b0f7799388b5de9908d.hot-update.js.map +1 -0
  66. package/dist/main.4b0f7799388b5de9908d.hot-update.json +1 -0
  67. package/dist/main.6424291443afea7eb7ac.hot-update.js +187 -0
  68. package/dist/main.6424291443afea7eb7ac.hot-update.js.map +1 -0
  69. package/dist/main.6424291443afea7eb7ac.hot-update.json +1 -0
  70. package/dist/main.69127e32a0c76b421f15.hot-update.js +392 -0
  71. package/dist/main.69127e32a0c76b421f15.hot-update.js.map +1 -0
  72. package/dist/main.69127e32a0c76b421f15.hot-update.json +1 -0
  73. package/dist/main.755d91e1a6c7e6bd6702.hot-update.js +265 -0
  74. package/dist/main.755d91e1a6c7e6bd6702.hot-update.js.map +1 -0
  75. package/dist/main.755d91e1a6c7e6bd6702.hot-update.json +1 -0
  76. package/dist/main.75a666c9d30baa58c5ec.hot-update.js +265 -0
  77. package/dist/main.75a666c9d30baa58c5ec.hot-update.js.map +1 -0
  78. package/dist/main.75a666c9d30baa58c5ec.hot-update.json +1 -0
  79. package/dist/main.828f4c348446c6c3640d.hot-update.js +11 -0
  80. package/dist/main.828f4c348446c6c3640d.hot-update.js.map +1 -0
  81. package/dist/main.828f4c348446c6c3640d.hot-update.json +1 -0
  82. package/dist/main.8459249b2915a8823bd3.hot-update.js +321 -0
  83. package/dist/main.8459249b2915a8823bd3.hot-update.js.map +1 -0
  84. package/dist/main.8459249b2915a8823bd3.hot-update.json +1 -0
  85. package/dist/main.87f757c2602cac7001cb.hot-update.js +382 -0
  86. package/dist/main.87f757c2602cac7001cb.hot-update.js.map +1 -0
  87. package/dist/main.87f757c2602cac7001cb.hot-update.json +1 -0
  88. package/dist/main.8aa248086ab27072c348.hot-update.js +265 -0
  89. package/dist/main.8aa248086ab27072c348.hot-update.js.map +1 -0
  90. package/dist/main.8aa248086ab27072c348.hot-update.json +1 -0
  91. package/dist/main.8ce461bf769f3943b7ed.hot-update.js +265 -0
  92. package/dist/main.8ce461bf769f3943b7ed.hot-update.js.map +1 -0
  93. package/dist/main.8ce461bf769f3943b7ed.hot-update.json +1 -0
  94. package/dist/main.9fdbde5beb7c70940250.hot-update.js +392 -0
  95. package/dist/main.9fdbde5beb7c70940250.hot-update.js.map +1 -0
  96. package/dist/main.9fdbde5beb7c70940250.hot-update.json +1 -0
  97. package/dist/main.af59faaae348c919e033.hot-update.js +11 -0
  98. package/dist/main.af59faaae348c919e033.hot-update.js.map +1 -0
  99. package/dist/main.af59faaae348c919e033.hot-update.json +1 -0
  100. package/dist/main.b11900976593b0e609ee.hot-update.js +187 -0
  101. package/dist/main.b11900976593b0e609ee.hot-update.js.map +1 -0
  102. package/dist/main.b11900976593b0e609ee.hot-update.json +1 -0
  103. package/dist/main.b57518d376449c846971.hot-update.js +265 -0
  104. package/dist/main.b57518d376449c846971.hot-update.js.map +1 -0
  105. package/dist/main.b57518d376449c846971.hot-update.json +1 -0
  106. package/dist/main.b5fa8b91f66c4a67740b.hot-update.js +265 -0
  107. package/dist/main.b5fa8b91f66c4a67740b.hot-update.js.map +1 -0
  108. package/dist/main.b5fa8b91f66c4a67740b.hot-update.json +1 -0
  109. package/dist/main.bdb9e6ab1d13cf4250e8.hot-update.js +265 -0
  110. package/dist/main.bdb9e6ab1d13cf4250e8.hot-update.js.map +1 -0
  111. package/dist/main.bdb9e6ab1d13cf4250e8.hot-update.json +1 -0
  112. package/dist/main.c9b051fce9f983306d51.hot-update.js +265 -0
  113. package/dist/main.c9b051fce9f983306d51.hot-update.js.map +1 -0
  114. package/dist/main.c9b051fce9f983306d51.hot-update.json +1 -0
  115. package/dist/main.d03d8e0bfcbd86932c58.hot-update.js +638 -0
  116. package/dist/main.d03d8e0bfcbd86932c58.hot-update.js.map +1 -0
  117. package/dist/main.d03d8e0bfcbd86932c58.hot-update.json +1 -0
  118. package/dist/main.d3b74a9a35325f35373d.hot-update.js +265 -0
  119. package/dist/main.d3b74a9a35325f35373d.hot-update.js.map +1 -0
  120. package/dist/main.d3b74a9a35325f35373d.hot-update.json +1 -0
  121. package/dist/main.d61b231278a9c69df2f8.hot-update.js +265 -0
  122. package/dist/main.d61b231278a9c69df2f8.hot-update.js.map +1 -0
  123. package/dist/main.d61b231278a9c69df2f8.hot-update.json +1 -0
  124. package/dist/pretty-chitty.js +243813 -0
  125. package/dist/pretty-chitty.js.map +1 -0
  126. package/package.json +1 -1
  127. package/src/library/components/ActionLogDisplay.tsx +1 -1
  128. package/src/library/components/ActionLogSidebar.tsx +1 -1
  129. package/src/library/components/BottomBar.tsx +2 -0
  130. package/src/library/components/BottomBarButton.tsx +3 -3
  131. package/src/library/components/MatchViewer.tsx +23 -9
  132. package/src/library/components/Panel/MultiPanel.tsx +7 -6
  133. package/src/library/components/Panel/PanelContents.tsx +4 -2
  134. package/src/library/components/Panel/SinglePanel.tsx +7 -6
  135. package/src/library/components/SettingsDisplay.tsx +152 -90
  136. package/src/library/components/TopBar.tsx +2 -0
  137. package/src/library/components/TopBarPlayers.tsx +4 -2
  138. package/src/library/game/DisplaySettings.test.ts +80 -0
  139. package/src/library/game/DisplaySettings.ts +153 -0
  140. package/src/library/game/GameTheme.ts +10 -0
  141. package/src/library/hooks/useDisplaySettings.tsx +58 -0
  142. package/src/library/hooks/usePanelScale.tsx +0 -23
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>A Pretty, Chitty Game Engine</title>
7
+ <script defer src="pretty-chitty.js"></script></head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <!-- Webpack will output your JavaScript here -->
11
+ </body>
12
+ </html>
@@ -0,0 +1,265 @@
1
+ "use strict";
2
+ self["webpackHotUpdate_pretty_chitty_core"]("main",{
3
+
4
+ /***/ "./src/library/game/DisplaySettings.ts":
5
+ /*!*********************************************!*\
6
+ !*** ./src/library/game/DisplaySettings.ts ***!
7
+ \*********************************************/
8
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
9
+
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ ANIMATION_SPEEDS: () => (/* binding */ ANIMATION_SPEEDS),
13
+ /* harmony export */ DEFAULT_DISPLAY_SETTINGS: () => (/* binding */ DEFAULT_DISPLAY_SETTINGS),
14
+ /* harmony export */ DISPLAY_SECTIONS: () => (/* binding */ DISPLAY_SECTIONS),
15
+ /* harmony export */ DISPLAY_STEP_COUNT: () => (/* binding */ DISPLAY_STEP_COUNT),
16
+ /* harmony export */ DISPLAY_STEP_LABELS: () => (/* binding */ DISPLAY_STEP_LABELS),
17
+ /* harmony export */ NORMAL_STEP: () => (/* binding */ NORMAL_STEP),
18
+ /* harmony export */ allAtStep: () => (/* binding */ allAtStep),
19
+ /* harmony export */ animationSpeedStep: () => (/* binding */ animationSpeedStep),
20
+ /* harmony export */ loadDisplaySettings: () => (/* binding */ loadDisplaySettings),
21
+ /* harmony export */ overallStep: () => (/* binding */ overallStep),
22
+ /* harmony export */ saveDisplaySettings: () => (/* binding */ saveDisplaySettings),
23
+ /* harmony export */ scaledTheme: () => (/* binding */ scaledTheme),
24
+ /* harmony export */ sectionMultiplier: () => (/* binding */ sectionMultiplier)
25
+ /* harmony export */ });
26
+ /* provided dependency */ var __react_refresh_utils__ = __webpack_require__(/*! ./node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js */ "./node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
27
+ /* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__(/*! ./node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js */ "./node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
28
+ __webpack_require__.$Refresh$.runtime = __webpack_require__(/*! ./node_modules/react-refresh/runtime.js */ "./node_modules/react-refresh/runtime.js");
29
+
30
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
31
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
32
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
33
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
34
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
35
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
37
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
38
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
39
+ /** The parts of the match screen a player can size on their own */
40
+
41
+ /** A step per section: 0 (smallest) to 4 (biggest), 2 being the game's own theme */
42
+
43
+ var DISPLAY_STEP_COUNT = 5;
44
+ var NORMAL_STEP = 2;
45
+ var DISPLAY_STEP_LABELS = ["Smallest", "Smaller", "Normal", "Bigger", "Biggest"];
46
+ var DISPLAY_SECTIONS = [{
47
+ key: "panelLayout",
48
+ label: "Panel Layout",
49
+ smallerHint: "More panels",
50
+ biggerHint: "Bigger panels"
51
+ }, {
52
+ key: "panelPadding",
53
+ label: "Panel Padding",
54
+ smallerHint: "Tighter",
55
+ biggerHint: "Roomier"
56
+ }, {
57
+ key: "topBar",
58
+ label: "Top Bar",
59
+ smallerHint: "Smaller",
60
+ biggerHint: "Bigger"
61
+ }, {
62
+ key: "actionLog",
63
+ label: "Action Log",
64
+ smallerHint: "Smaller",
65
+ biggerHint: "Bigger"
66
+ }, {
67
+ key: "bottomBar",
68
+ label: "Bottom Bar",
69
+ smallerHint: "Smaller",
70
+ biggerHint: "Bigger"
71
+ }];
72
+
73
+ /**
74
+ * What each step multiplies the theme's sizes by. Panel layout is the odd one out: it is the scale
75
+ * the layout is worked out at, where a higher scale fits more (smaller) panels on screen, so it
76
+ * runs downwards as the panels get bigger.
77
+ */
78
+ var MULTIPLIERS = {
79
+ panelLayout: [1.8, 1.35, 1, 0.8, 0.65],
80
+ panelPadding: [0.25, 0.5, 1, 1.75, 2.5],
81
+ topBar: [0.75, 0.875, 1, 1.2, 1.4],
82
+ actionLog: [0.8, 0.9, 1, 1.2, 1.4],
83
+ bottomBar: [0.7, 0.85, 1, 1.15, 1.3]
84
+ };
85
+
86
+ /**
87
+ * Animation playback speeds, slowest to fastest: one step below normal (the default) and three
88
+ * doublings above it, up to 8x.
89
+ */
90
+ var ANIMATION_SPEEDS = [0.5, 1, 2, 4, 8];
91
+ var DEFAULT_DISPLAY_SETTINGS = {
92
+ panelLayout: NORMAL_STEP,
93
+ panelPadding: NORMAL_STEP,
94
+ topBar: NORMAL_STEP,
95
+ actionLog: NORMAL_STEP,
96
+ bottomBar: NORMAL_STEP
97
+ };
98
+ var STORAGE_KEY = "displaySettings";
99
+ /** The free-form panel scale that came before these settings */
100
+ var LEGACY_PANEL_SCALE_KEY = "panelScale";
101
+ function clampStep(step) {
102
+ var n = typeof step === "number" && Number.isFinite(step) ? Math.round(step) : NORMAL_STEP;
103
+ return Math.max(0, Math.min(DISPLAY_STEP_COUNT - 1, n));
104
+ }
105
+
106
+ /** The index of the value in `values` nearest to `value`, measured as a ratio (they are all scales) */
107
+ function nearestIndex(values, value) {
108
+ var best = 0;
109
+ for (var i = 1; i < values.length; i++) {
110
+ if (Math.abs(Math.log(values[i] / value)) < Math.abs(Math.log(values[best] / value))) {
111
+ best = i;
112
+ }
113
+ }
114
+ return best;
115
+ }
116
+ function sectionMultiplier(section, settings) {
117
+ return MULTIPLIERS[section][clampStep(settings[section])];
118
+ }
119
+
120
+ /** The animation speed step nearest to a duration multiplier (1 / speed), as `ClientTimeState` keeps it */
121
+ function animationSpeedStep(durationMultiplier) {
122
+ return nearestIndex(ANIMATION_SPEEDS, 1 / (durationMultiplier || 1));
123
+ }
124
+
125
+ /** The step every section shares, or undefined when they have been set individually */
126
+ function overallStep(settings) {
127
+ var steps = DISPLAY_SECTIONS.map(function (s) {
128
+ return settings[s.key];
129
+ });
130
+ return steps.every(function (s) {
131
+ return s === steps[0];
132
+ }) ? steps[0] : undefined;
133
+ }
134
+ function allAtStep(step) {
135
+ var result = _objectSpread({}, DEFAULT_DISPLAY_SETTINGS);
136
+ var _iterator = _createForOfIteratorHelper(DISPLAY_SECTIONS),
137
+ _step;
138
+ try {
139
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
140
+ var key = _step.value.key;
141
+ result[key] = clampStep(step);
142
+ }
143
+ } catch (err) {
144
+ _iterator.e(err);
145
+ } finally {
146
+ _iterator.f();
147
+ }
148
+ return result;
149
+ }
150
+ function loadDisplaySettings(storage) {
151
+ var result = _objectSpread({}, DEFAULT_DISPLAY_SETTINGS);
152
+ try {
153
+ var _storage$getItem;
154
+ var raw = storage === null || storage === void 0 ? void 0 : storage.getItem(STORAGE_KEY);
155
+ if (raw) {
156
+ var parsed = JSON.parse(raw);
157
+ var _iterator2 = _createForOfIteratorHelper(DISPLAY_SECTIONS),
158
+ _step2;
159
+ try {
160
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
161
+ var key = _step2.value.key;
162
+ result[key] = clampStep(parsed === null || parsed === void 0 ? void 0 : parsed[key]);
163
+ }
164
+ } catch (err) {
165
+ _iterator2.e(err);
166
+ } finally {
167
+ _iterator2.f();
168
+ }
169
+ return result;
170
+ }
171
+ var legacyScale = parseFloat((_storage$getItem = storage === null || storage === void 0 ? void 0 : storage.getItem(LEGACY_PANEL_SCALE_KEY)) !== null && _storage$getItem !== void 0 ? _storage$getItem : "");
172
+ if (legacyScale > 0) {
173
+ result.panelLayout = nearestIndex(MULTIPLIERS.panelLayout, legacyScale);
174
+ }
175
+ } catch (_unused) {
176
+ // unreadable storage: everything stays at the game's own sizes
177
+ }
178
+ return result;
179
+ }
180
+ function saveDisplaySettings(storage, settings) {
181
+ try {
182
+ storage === null || storage === void 0 || storage.setItem(STORAGE_KEY, JSON.stringify(settings));
183
+ } catch (_unused2) {
184
+ // storage unavailable: the setting lasts until the page closes
185
+ }
186
+ }
187
+
188
+ /**
189
+ * A copy of `theme` with the sizes that belong to `section` multiplied by the player's setting for
190
+ * it. Returns `theme` itself when the section is at its normal size.
191
+ */
192
+ function scaledTheme(theme, section, settings) {
193
+ var m = sectionMultiplier(section, settings);
194
+ if (m === 1 || section === "panelLayout") {
195
+ return theme;
196
+ }
197
+ // Copy the fields onto the same prototype, so getters (fontFamily) and methods still work and
198
+ // no setter runs
199
+ var result = Object.assign(Object.create(Object.getPrototypeOf(theme)), theme);
200
+ switch (section) {
201
+ case "panelPadding":
202
+ result.panelSpacing = theme.getPanelSpacing() * m;
203
+ break;
204
+ case "topBar":
205
+ result.topBarHeight = theme.topBarHeight * m;
206
+ result.fontScalar = theme.fontScalar * m;
207
+ result.spacing = theme.spacing * m;
208
+ break;
209
+ case "actionLog":
210
+ result.fontScalar = theme.fontScalar * m;
211
+ result.actionLogSidebarWidth = theme.actionLogSidebarWidth * m;
212
+ break;
213
+ case "bottomBar":
214
+ result.bottomBarHeight = theme.bottomBarHeight * m;
215
+ result.bottomBarFontScalar = theme.bottomBarFontScalar * m;
216
+ result.bottomBarIconSize = theme.bottomBarIconSize * m;
217
+ result.spacing = theme.spacing * m;
218
+ break;
219
+ }
220
+ return result;
221
+ }
222
+
223
+ const $ReactRefreshModuleId$ = __webpack_require__.$Refresh$.moduleId;
224
+ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
225
+ $ReactRefreshModuleId$
226
+ );
227
+
228
+ function $ReactRefreshModuleRuntime$(exports) {
229
+ if (true) {
230
+ let errorOverlay;
231
+ if (typeof __react_refresh_error_overlay__ !== 'undefined') {
232
+ errorOverlay = __react_refresh_error_overlay__;
233
+ }
234
+ let testMode;
235
+ if (typeof __react_refresh_test__ !== 'undefined') {
236
+ testMode = __react_refresh_test__;
237
+ }
238
+ return __react_refresh_utils__.executeRuntime(
239
+ exports,
240
+ $ReactRefreshModuleId$,
241
+ module.hot,
242
+ errorOverlay,
243
+ testMode
244
+ );
245
+ }
246
+ }
247
+
248
+ if (typeof Promise !== 'undefined' && $ReactRefreshCurrentExports$ instanceof Promise) {
249
+ $ReactRefreshCurrentExports$.then($ReactRefreshModuleRuntime$);
250
+ } else {
251
+ $ReactRefreshModuleRuntime$($ReactRefreshCurrentExports$);
252
+ }
253
+
254
+ /***/ })
255
+
256
+ },
257
+ /******/ function(__webpack_require__) { // webpackRuntimeModules
258
+ /******/ /* webpack/runtime/getFullHash */
259
+ /******/ (() => {
260
+ /******/ __webpack_require__.h = () => ("75a666c9d30baa58c5ec")
261
+ /******/ })();
262
+ /******/
263
+ /******/ }
264
+ );
265
+ //# sourceMappingURL=main.034dfcc6b83fdd218994.hot-update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.034dfcc6b83fdd218994.hot-update.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAGA;;AAGO,IAAMA,kBAAkB,GAAG,CAAC;AAC5B,IAAMC,WAAW,GAAG,CAAC;AACrB,IAAMC,mBAAmB,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,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src/library/game/DisplaySettings.ts","webpack://@pretty-chitty/core/webpack/runtime/getFullHash"],"sourcesContent":["import { GameTheme } from \"./GameTheme\";\n\n/** The parts of the match screen a player can size on their own */\nexport type DisplaySection = \"panelLayout\" | \"panelPadding\" | \"topBar\" | \"actionLog\" | \"bottomBar\";\n\n/** A step per section: 0 (smallest) to 4 (biggest), 2 being the game's own theme */\nexport type DisplaySettings = Record<DisplaySection, number>;\n\nexport const DISPLAY_STEP_COUNT = 5;\nexport const NORMAL_STEP = 2;\nexport const DISPLAY_STEP_LABELS = [\"Smallest\", \"Smaller\", \"Normal\", \"Bigger\", \"Biggest\"];\n\nexport const DISPLAY_SECTIONS: { key: DisplaySection; label: string; smallerHint: string; biggerHint: string }[] = [\n { key: \"panelLayout\", label: \"Panel Layout\", smallerHint: \"More panels\", biggerHint: \"Bigger panels\" },\n { key: \"panelPadding\", label: \"Panel Padding\", smallerHint: \"Tighter\", biggerHint: \"Roomier\" },\n { key: \"topBar\", label: \"Top Bar\", smallerHint: \"Smaller\", biggerHint: \"Bigger\" },\n { key: \"actionLog\", label: \"Action Log\", smallerHint: \"Smaller\", biggerHint: \"Bigger\" },\n { key: \"bottomBar\", label: \"Bottom Bar\", smallerHint: \"Smaller\", biggerHint: \"Bigger\" },\n];\n\n/**\n * What each step multiplies the theme's sizes by. Panel layout is the odd one out: it is the scale\n * the layout is worked out at, where a higher scale fits more (smaller) panels on screen, so it\n * runs downwards as the panels get bigger.\n */\nconst MULTIPLIERS: Record<DisplaySection, number[]> = {\n panelLayout: [1.8, 1.35, 1, 0.8, 0.65],\n panelPadding: [0.25, 0.5, 1, 1.75, 2.5],\n topBar: [0.75, 0.875, 1, 1.2, 1.4],\n actionLog: [0.8, 0.9, 1, 1.2, 1.4],\n bottomBar: [0.7, 0.85, 1, 1.15, 1.3],\n};\n\n/**\n * Animation playback speeds, slowest to fastest: one step below normal (the default) and three\n * doublings above it, up to 8x.\n */\nexport const ANIMATION_SPEEDS = [0.5, 1, 2, 4, 8];\n\nexport const DEFAULT_DISPLAY_SETTINGS: DisplaySettings = {\n panelLayout: NORMAL_STEP,\n panelPadding: NORMAL_STEP,\n topBar: NORMAL_STEP,\n actionLog: NORMAL_STEP,\n bottomBar: NORMAL_STEP,\n};\n\nconst STORAGE_KEY = \"displaySettings\";\n/** The free-form panel scale that came before these settings */\nconst LEGACY_PANEL_SCALE_KEY = \"panelScale\";\n\nfunction clampStep(step: unknown): number {\n const n = typeof step === \"number\" && Number.isFinite(step) ? Math.round(step) : NORMAL_STEP;\n return Math.max(0, Math.min(DISPLAY_STEP_COUNT - 1, n));\n}\n\n/** The index of the value in `values` nearest to `value`, measured as a ratio (they are all scales) */\nfunction nearestIndex(values: number[], value: number): number {\n let best = 0;\n for (let i = 1; i < values.length; i++) {\n if (Math.abs(Math.log(values[i] / value)) < Math.abs(Math.log(values[best] / value))) {\n best = i;\n }\n }\n return best;\n}\n\nexport function sectionMultiplier(section: DisplaySection, settings: DisplaySettings): number {\n return MULTIPLIERS[section][clampStep(settings[section])];\n}\n\n/** The animation speed step nearest to a duration multiplier (1 / speed), as `ClientTimeState` keeps it */\nexport function animationSpeedStep(durationMultiplier: number): number {\n return nearestIndex(ANIMATION_SPEEDS, 1 / (durationMultiplier || 1));\n}\n\n/** The step every section shares, or undefined when they have been set individually */\nexport function overallStep(settings: DisplaySettings): number | undefined {\n const steps = DISPLAY_SECTIONS.map((s) => settings[s.key]);\n return steps.every((s) => s === steps[0]) ? steps[0] : undefined;\n}\n\nexport function allAtStep(step: number): DisplaySettings {\n const result = { ...DEFAULT_DISPLAY_SETTINGS };\n for (const { key } of DISPLAY_SECTIONS) {\n result[key] = clampStep(step);\n }\n return result;\n}\n\nexport function loadDisplaySettings(storage: Pick<Storage, \"getItem\"> | undefined): DisplaySettings {\n const result = { ...DEFAULT_DISPLAY_SETTINGS };\n try {\n const raw = storage?.getItem(STORAGE_KEY);\n if (raw) {\n const parsed = JSON.parse(raw);\n for (const { key } of DISPLAY_SECTIONS) {\n result[key] = clampStep(parsed?.[key]);\n }\n return result;\n }\n const legacyScale = parseFloat(storage?.getItem(LEGACY_PANEL_SCALE_KEY) ?? \"\");\n if (legacyScale > 0) {\n result.panelLayout = nearestIndex(MULTIPLIERS.panelLayout, legacyScale);\n }\n } catch {\n // unreadable storage: everything stays at the game's own sizes\n }\n return result;\n}\n\nexport function saveDisplaySettings(storage: Pick<Storage, \"setItem\"> | undefined, settings: DisplaySettings) {\n try {\n storage?.setItem(STORAGE_KEY, JSON.stringify(settings));\n } catch {\n // storage unavailable: the setting lasts until the page closes\n }\n}\n\n/**\n * A copy of `theme` with the sizes that belong to `section` multiplied by the player's setting for\n * it. Returns `theme` itself when the section is at its normal size.\n */\nexport function scaledTheme(theme: GameTheme, section: DisplaySection, settings: DisplaySettings): GameTheme {\n const m = sectionMultiplier(section, settings);\n if (m === 1 || section === \"panelLayout\") {\n return theme;\n }\n // Copy the fields onto the same prototype, so getters (fontFamily) and methods still work and\n // no setter runs\n const result: GameTheme = Object.assign(Object.create(Object.getPrototypeOf(theme)), theme);\n switch (section) {\n case \"panelPadding\":\n result.panelSpacing = theme.getPanelSpacing() * m;\n break;\n case \"topBar\":\n result.topBarHeight = theme.topBarHeight * m;\n result.fontScalar = theme.fontScalar * m;\n result.spacing = theme.spacing * m;\n break;\n case \"actionLog\":\n result.fontScalar = theme.fontScalar * m;\n result.actionLogSidebarWidth = theme.actionLogSidebarWidth * m;\n break;\n case \"bottomBar\":\n result.bottomBarHeight = theme.bottomBarHeight * m;\n result.bottomBarFontScalar = theme.bottomBarFontScalar * m;\n result.bottomBarIconSize = theme.bottomBarIconSize * m;\n result.spacing = theme.spacing * m;\n break;\n }\n return result;\n}\n","__webpack_require__.h = () => (\"75a666c9d30baa58c5ec\")"],"names":["DISPLAY_STEP_COUNT","NORMAL_STEP","DISPLAY_STEP_LABELS","DISPLAY_SECTIONS","key","label","smallerHint","biggerHint","MULTIPLIERS","panelLayout","panelPadding","topBar","actionLog","bottomBar","ANIMATION_SPEEDS","DEFAULT_DISPLAY_SETTINGS","STORAGE_KEY","LEGACY_PANEL_SCALE_KEY","clampStep","step","n","Number","isFinite","Math","round","max","min","nearestIndex","values","value","best","i","length","abs","log","sectionMultiplier","section","settings","animationSpeedStep","durationMultiplier","overallStep","steps","map","s","every","undefined","allAtStep","result","_objectSpread","_iterator","_createForOfIteratorHelper","_step","done","err","e","f","loadDisplaySettings","storage","_storage$getItem","raw","getItem","parsed","JSON","parse","_iterator2","_step2","legacyScale","parseFloat","_unused","saveDisplaySettings","setItem","stringify","_unused2","scaledTheme","theme","m","Object","assign","create","getPrototypeOf","panelSpacing","getPanelSpacing","topBarHeight","fontScalar","spacing","actionLogSidebarWidth","bottomBarHeight","bottomBarFontScalar","bottomBarIconSize"],"sourceRoot":""}
@@ -0,0 +1 @@
1
+ {"c":["main"],"r":[],"m":[]}