@hkdigital/lib-sveltekit 0.1.34 → 0.1.36

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.
@@ -78,6 +78,13 @@
78
78
  const availWidth = windowWidth - marginLeft - marginRight;
79
79
  const availHeight = windowHeight - marginTop - marginBottom;
80
80
 
81
+ console.log('GameBox margins:', {
82
+ marginLeft,
83
+ marginRight,
84
+ marginTop,
85
+ marginBottom
86
+ });
87
+
81
88
  let gameAspect;
82
89
 
83
90
  if (availWidth > availHeight) {
@@ -153,6 +160,10 @@
153
160
  style:height="{gameHeight}px"
154
161
  style:--game-width={gameWidth}
155
162
  style:--game-height={gameHeight}
163
+ style:margin-left={marginLeft}
164
+ style:margin-right={marginRight}
165
+ style:margin-top={marginTop}
166
+ style:margin-bottom={marginBottom}
156
167
  {style}
157
168
  >
158
169
  {#if isLandscape}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"