@3cr/viewer-browser 0.0.9 → 0.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3cr/viewer-browser",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "main": "./dist/Viewer3CR.umd.js",
5
5
  "module": "dist/Viewer3CR.umd.js",
6
6
  "homepage": "https://docs.3cr.singular.health",
@@ -34,6 +34,7 @@
34
34
  "unplugin-fonts": "^1.1.1",
35
35
  "unplugin-vue-components": "^0.26.0",
36
36
  "vite": "^5.1.5",
37
+ "vite-plugin-css-injected-by-js": "^3.5.0",
37
38
  "vite-plugin-vuetify": "^2.0.3",
38
39
  "vitest": "^1.4.0",
39
40
  "vue-tsc": "^2.0.6"
package/src/App.vue CHANGED
@@ -18,7 +18,13 @@ onMounted(async () => {
18
18
  await nextTick()
19
19
  setTimeout(async () => {
20
20
  unref(mftpWebGL3DRModal)?.alterValue(true)
21
- await instanceLoaded({})
21
+ // await instanceLoaded({
22
+ // Url:"https://webgl-3dr.singular.health/test_scans/8bdddee1-e581-485d-827d-6aa12eef2fc8/Head+Axial+Axial.3vxl",
23
+ // DecryptionKey:{
24
+ // Iv:"x856FgjpYDsRhIa3BFj5cg==",
25
+ // Key:"OWjSMiL/ewUV1V6fGybhKcTyiysTPsIMp2DjdVoOUGI="
26
+ // }
27
+ // })
22
28
  }, 1000)
23
29
  })
24
30
  defineExpose({
@@ -26,13 +32,7 @@ defineExpose({
26
32
  })
27
33
 
28
34
  async function instanceLoaded(payload: any) {
29
- await unref(mftpWebGL3DRModal)?.load({
30
- Url:"https://webgl-3dr.singular.health/test_scans/8bdddee1-e581-485d-827d-6aa12eef2fc8/Head+Axial+Axial.3vxl",
31
- DecryptionKey:{
32
- Iv:"x856FgjpYDsRhIa3BFj5cg==",
33
- Key:"OWjSMiL/ewUV1V6fGybhKcTyiysTPsIMp2DjdVoOUGI="
34
- }
35
- })
35
+ await unref(mftpWebGL3DRModal)?.load(payload)
36
36
  }
37
37
  setTimeout(() => {
38
38
  console.log(mftpWebGL3DRModal?.value)
package/vite.config.mts CHANGED
@@ -8,6 +8,7 @@ import ViteFonts from 'unplugin-fonts/vite'
8
8
  import { defineConfig } from 'vite'
9
9
  import { fileURLToPath, URL } from 'node:url'
10
10
  import {resolve} from "node:dns";
11
+ import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
11
12
 
12
13
  // https://vitejs.dev/config/
13
14
  export default defineConfig({
@@ -18,6 +19,7 @@ export default defineConfig({
18
19
  // https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
19
20
  Vuetify(),
20
21
  Components(),
22
+ cssInjectedByJsPlugin(),
21
23
  ViteFonts({
22
24
  google: {
23
25
  families: [{