@abi-software/scaffoldvuer 0.4.0-vue3.6 → 0.4.0-vue3.7
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/.eslintrc.js +4 -11
- package/README.md +2 -1
- package/dist/scaffoldvuer.js +4039 -3931
- package/dist/scaffoldvuer.umd.cjs +170 -170
- package/dist/style.css +1 -1
- package/package.json +18 -7
- package/src/App.vue +30 -2
- package/src/app/ModelsInformation.js +58 -48
- package/src/app/ModelsTable.vue +11 -11
- package/src/app/TextureDemos.js +123 -2
- package/src/components/OpacityControls.vue +2 -2
- package/src/components/PrimitiveControls.vue +3 -3
- package/src/components/ScaffoldVuer.vue +111 -36
- package/src/components/TextureSlidesControls.vue +47 -45
- package/src/components/TreeControls.vue +1 -1
- package/src/components.d.ts +2 -0
- package/src/scripts/OrgansRenderer.js +2 -6
- package/vite.config.js +7 -0
- package/vite.static-build.js +7 -1
- package/styleguide.config.js +0 -22
|
@@ -13,8 +13,8 @@ const OrgansSceneData = function() {
|
|
|
13
13
|
this.currentSpecies = "";
|
|
14
14
|
this.metaURL = "";
|
|
15
15
|
this.viewURL = "";
|
|
16
|
-
this.currentTime = 0.0;
|
|
17
16
|
this.timeVarying = false;
|
|
17
|
+
this.currentTime = 0.0;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -43,8 +43,7 @@ const OrgansSceneData = function() {
|
|
|
43
43
|
const modelsLoader = ModelsLoaderIn;
|
|
44
44
|
this.NDCCameraControl = undefined;
|
|
45
45
|
_this.typeName = "Organ Viewer";
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
|
|
48
47
|
this.getSceneData = function() {
|
|
49
48
|
return _this.sceneData;
|
|
50
49
|
}
|
|
@@ -64,7 +63,6 @@ const OrgansSceneData = function() {
|
|
|
64
63
|
_this.scene.setMorphsTime(actualTime);
|
|
65
64
|
}
|
|
66
65
|
_this.sceneData.currentTime = value;
|
|
67
|
-
_this.currentTime = value;
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
/**
|
|
@@ -84,7 +82,6 @@ const OrgansSceneData = function() {
|
|
|
84
82
|
_this.sceneData.nerveMap.additionalReader.setTime(currentTime /
|
|
85
83
|
duration);
|
|
86
84
|
_this.sceneData.currentTime = currentTime / duration * 100.0;
|
|
87
|
-
_this.currentTime = currentTime / duration * 100.0;
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
this.getCurrentTime = function() {
|
|
@@ -463,7 +460,6 @@ const OrgansSceneData = function() {
|
|
|
463
460
|
_this.sceneData.currentPart = partName;
|
|
464
461
|
_this.sceneData.currentTime = 0.0;
|
|
465
462
|
_this.sceneData.timeVarying = false;
|
|
466
|
-
_this.currentTime = 0.0;
|
|
467
463
|
// This is used as title
|
|
468
464
|
let name = "";
|
|
469
465
|
if (speciesName)
|
package/vite.config.js
CHANGED
|
@@ -4,6 +4,7 @@ import { defineConfig } from 'vite'
|
|
|
4
4
|
import vue from '@vitejs/plugin-vue'
|
|
5
5
|
import Components from 'unplugin-vue-components/vite'
|
|
6
6
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
7
|
+
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
7
8
|
|
|
8
9
|
// https://vitejs.dev/config/
|
|
9
10
|
export default defineConfig(({ command, mode }) => {
|
|
@@ -62,6 +63,12 @@ export default defineConfig(({ command, mode }) => {
|
|
|
62
63
|
// If you want to exposes all env variables, which is not recommended
|
|
63
64
|
// 'process.env': env
|
|
64
65
|
};
|
|
66
|
+
config.plugins.push(
|
|
67
|
+
nodePolyfills({
|
|
68
|
+
// To add only specific polyfills, add them here. If no option is passed, adds all polyfills
|
|
69
|
+
include: ['path']
|
|
70
|
+
})
|
|
71
|
+
);
|
|
65
72
|
};
|
|
66
73
|
return config;
|
|
67
74
|
})
|
package/vite.static-build.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig } from 'vite'
|
|
2
2
|
import rootConfig from './vite.config.js'
|
|
3
|
+
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
3
4
|
|
|
4
5
|
// defineWorkspace provides a nice type hinting DX
|
|
5
6
|
export default defineConfig((configEnv) => {
|
|
@@ -7,6 +8,11 @@ export default defineConfig((configEnv) => {
|
|
|
7
8
|
config.build = {
|
|
8
9
|
outDir: "test-html"
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
config.plugins.push(
|
|
12
|
+
nodePolyfills({
|
|
13
|
+
// To add only specific polyfills, add them here. If no option is passed, adds all polyfills
|
|
14
|
+
include: ['path']
|
|
15
|
+
})
|
|
16
|
+
);
|
|
11
17
|
return config;
|
|
12
18
|
})
|
package/styleguide.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// set your styleguidist configuration here
|
|
3
|
-
title: 'Scaffoldvuer API reference',
|
|
4
|
-
components: 'src/components/ScaffoldVuer.vue',
|
|
5
|
-
// defaultExample: true,
|
|
6
|
-
// sections: [
|
|
7
|
-
// {
|
|
8
|
-
// name: 'First Section',
|
|
9
|
-
// components: 'src/components/**/[A-Z]*.vue'
|
|
10
|
-
// }
|
|
11
|
-
// ],
|
|
12
|
-
// webpackConfig: {
|
|
13
|
-
// // custom config goes here
|
|
14
|
-
// },
|
|
15
|
-
exampleMode: 'expand',
|
|
16
|
-
copyCodeButton: true,
|
|
17
|
-
ribbon: {
|
|
18
|
-
url: 'https://github.com/ABI-Software/scaffoldvuer',
|
|
19
|
-
text: 'Github Page'
|
|
20
|
-
},
|
|
21
|
-
styleguideDir: 'docs'
|
|
22
|
-
}
|