mlv2boii 1.0.2 → 1.0.3

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 (2) hide show
  1. package/loader.svg +17 -10
  2. package/package.json +1 -1
package/loader.svg CHANGED
@@ -1,10 +1,13 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg"
2
2
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
3
- width="100%"
4
- height="100%"
5
- viewBox="0 0 1000 1000">
3
+ width="100vw"
4
+ height="100vh"
5
+ viewBox="0 0 100 100"
6
+ preserveAspectRatio="none"
7
+ style="position:fixed;top:0;left:0;width:100vw;height:100vh;margin:0;padding:0;">
8
+
9
+ <foreignObject x="0" y="0" width="100" height="100">
6
10
 
7
- <foreignObject width="100%" height="100%" x="0" y="0">
8
11
  <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
9
12
  style="width:100%;height:100%;margin:0;padding:0;">
10
13
 
@@ -16,14 +19,19 @@
16
19
  margin: 0;
17
20
  padding: 0;
18
21
  overflow: hidden;
22
+ background: #000;
19
23
  }
20
24
 
21
25
  iframe {
22
26
  position: fixed;
23
- inset: 0;
24
- width: 100%;
25
- height: 100%;
27
+ top: 0;
28
+ left: 0;
29
+ width: 100vw;
30
+ height: 100vh;
26
31
  border: 0;
32
+ margin: 0;
33
+ padding: 0;
34
+ display: block;
27
35
  }
28
36
  </style>
29
37
  </head>
@@ -40,9 +48,7 @@
40
48
  );
41
49
 
42
50
  if (!response.ok) {
43
- throw new Error(
44
- 'HTTP ' + response.status
45
- );
51
+ throw new Error('HTTP ' + response.status);
46
52
  }
47
53
 
48
54
  const html = await response.text();
@@ -64,5 +70,6 @@
64
70
  </body>
65
71
 
66
72
  </xhtml:html>
73
+
67
74
  </foreignObject>
68
75
  </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlv2boii",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {