@3cr/viewer-browser 0.0.51 → 0.0.52
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.
- package/README2.md +201 -0
- package/dist/Viewer3CR.js +1 -1
- package/dist/Viewer3CR.mjs +3 -1
- package/dist/Viewer3CR.umd.js +1 -1
- package/index.html +1 -1
- package/index.ts +9 -2
- package/package.json +1 -1
- package/playground/index.html +1 -1
- package/.vite/deps/_metadata.json +0 -8
- package/.vite/deps/package.json +0 -3
package/index.html
CHANGED
package/index.ts
CHANGED
|
@@ -15,11 +15,18 @@ export interface MftpDecryptionKey {
|
|
|
15
15
|
|
|
16
16
|
let mountedApp: ComponentPublicInstance | undefined = undefined
|
|
17
17
|
|
|
18
|
-
export async function registerViewer(version: string
|
|
18
|
+
export async function registerViewer(version: string) {
|
|
19
|
+
const newElement = document.createElement('div')
|
|
20
|
+
|
|
21
|
+
newElement.style.width = "0";
|
|
22
|
+
newElement.style.height = "0";
|
|
23
|
+
|
|
24
|
+
document.body.appendChild(newElement);
|
|
25
|
+
|
|
19
26
|
const app = createApp(BrowserViewer)
|
|
20
27
|
registerPlugins(app)
|
|
21
28
|
|
|
22
|
-
mountedApp = app.mount(
|
|
29
|
+
mountedApp = app.mount(newElement);
|
|
23
30
|
await registerVersion(version);
|
|
24
31
|
}
|
|
25
32
|
|
package/package.json
CHANGED
package/playground/index.html
CHANGED
package/.vite/deps/package.json
DELETED