@hkdigital/lib-sveltekit 0.1.33 → 0.1.35

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.
@@ -153,6 +153,10 @@
153
153
  style:height="{gameHeight}px"
154
154
  style:--game-width={gameWidth}
155
155
  style:--game-height={gameHeight}
156
+ style:margin-left={marginLeft}
157
+ style:margin-right={marginRight}
158
+ style:margin-top={marginTop}
159
+ style:margin-bottom={marginBottom}
156
160
  {style}
157
161
  >
158
162
  {#if isLandscape}
@@ -22,8 +22,10 @@ export function waitForRender(callback) {
22
22
  return new Promise((resolve) => {
23
23
  requestAnimationFrame(() => {
24
24
  requestAnimationFrame(() => {
25
- callback();
26
- resolve();
25
+ setTimeout(() => {
26
+ callback();
27
+ resolve();
28
+ }, 50);
27
29
  });
28
30
  });
29
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"