@hkdigital/lib-core 0.5.6 → 0.5.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.
|
@@ -170,16 +170,16 @@
|
|
|
170
170
|
});
|
|
171
171
|
|
|
172
172
|
$effect(() => {
|
|
173
|
-
console.debug('getIsLandscape effect running', {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
});
|
|
173
|
+
// console.debug('getIsLandscape effect running', {
|
|
174
|
+
// isPwa,
|
|
175
|
+
// isAppleMobile,
|
|
176
|
+
// windowWidth,
|
|
177
|
+
// windowHeight,
|
|
178
|
+
// debouncedWindowWidth,
|
|
179
|
+
// debouncedWindowHeight,
|
|
180
|
+
// iosWindowWidth,
|
|
181
|
+
// iosWindowHeight
|
|
182
|
+
// });
|
|
183
183
|
|
|
184
184
|
if (isPwa && isAppleMobile) {
|
|
185
185
|
// For iOS PWA, use iOS-specific dimensions
|
|
@@ -190,9 +190,9 @@
|
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
$inspect('isLandscape', isLandscape);
|
|
194
|
-
$inspect('windowWidth/Height', windowWidth, windowHeight);
|
|
195
|
-
$inspect('iosWindowWidth/Height', iosWindowWidth, iosWindowHeight);
|
|
193
|
+
// $inspect('isLandscape', isLandscape);
|
|
194
|
+
// $inspect('windowWidth/Height', windowWidth, windowHeight);
|
|
195
|
+
// $inspect('iosWindowWidth/Height', iosWindowWidth, iosWindowHeight);
|
|
196
196
|
|
|
197
197
|
// Update game dimensions based on window size and orientation
|
|
198
198
|
$effect(() => {
|
|
@@ -277,13 +277,13 @@
|
|
|
277
277
|
iosWindowWidth = window.innerWidth;
|
|
278
278
|
iosWindowHeight = window.innerHeight;
|
|
279
279
|
}
|
|
280
|
-
console.debug('updateIosWidthHeight', {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
});
|
|
280
|
+
// console.debug('updateIosWidthHeight', {
|
|
281
|
+
// angle,
|
|
282
|
+
// 'window.innerWidth': window.innerWidth,
|
|
283
|
+
// 'window.innerHeight': window.innerHeight,
|
|
284
|
+
// iosWindowWidth,
|
|
285
|
+
// iosWindowHeight
|
|
286
|
+
// });
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
|
|
@@ -427,7 +427,10 @@
|
|
|
427
427
|
<!-- margin: /* top | right | bottom | left */ -->
|
|
428
428
|
|
|
429
429
|
{#if gameHeight}
|
|
430
|
-
<div
|
|
430
|
+
<div
|
|
431
|
+
class:center
|
|
432
|
+
style:height={center ? `${iosWindowHeight ?? windowHeight}px` : undefined}
|
|
433
|
+
>
|
|
431
434
|
<div
|
|
432
435
|
data-component="game-box"
|
|
433
436
|
data-orientation={isLandscape ? 'landscape' : 'portrait'}
|