@abi-software/scaffoldvuer 0.2.2 → 0.2.3-alpha

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 (47) hide show
  1. package/.eslintrc.js +12 -12
  2. package/CHANGELOG.md +316 -316
  3. package/LICENSE +201 -201
  4. package/README.md +164 -164
  5. package/babel.config.js +14 -14
  6. package/dist/scaffoldvuer-wc.common.js +183 -35
  7. package/dist/scaffoldvuer-wc.umd.js +183 -35
  8. package/dist/scaffoldvuer-wc.umd.min.js +183 -35
  9. package/dist/scaffoldvuer.common.js +1076 -717
  10. package/dist/scaffoldvuer.common.js.map +1 -1
  11. package/dist/scaffoldvuer.css +1 -1
  12. package/dist/scaffoldvuer.umd.js +1076 -717
  13. package/dist/scaffoldvuer.umd.js.map +1 -1
  14. package/dist/scaffoldvuer.umd.min.js +1 -1
  15. package/dist/scaffoldvuer.umd.min.js.map +1 -1
  16. package/package-lock.json +18119 -18121
  17. package/package.json +89 -89
  18. package/public/index.html +17 -17
  19. package/src/App.vue +669 -714
  20. package/src/ScaffoldVuer-wc.js +13 -13
  21. package/src/{components → app}/DropZone.vue +114 -114
  22. package/src/{components → app}/ModelsInformation.js +35 -35
  23. package/src/{components → app}/ModelsTable.vue +113 -113
  24. package/src/app/TextureDemos.js +114 -0
  25. package/src/assets/_variables.scss +43 -43
  26. package/src/assets/styles.scss +7 -7
  27. package/src/components/OpacityControls.vue +222 -222
  28. package/src/components/ScaffoldTooltip.vue +142 -141
  29. package/src/components/ScaffoldVuer.md +44 -44
  30. package/src/components/ScaffoldVuer.vue +1997 -1887
  31. package/src/components/TreeControls.vue +699 -691
  32. package/src/components/index.js +7 -7
  33. package/src/components/test.pdf +0 -0
  34. package/src/main.js +14 -14
  35. package/src/scripts/BaseModule.js +80 -80
  36. package/src/scripts/RendererModule.js +289 -289
  37. package/src/scripts/WebGL.js +94 -94
  38. package/src/scripts/annotation.js +5 -5
  39. package/src/scripts/eventNotifier.js +66 -66
  40. package/src/scripts/graphicsHighlight.js +134 -134
  41. package/src/scripts/organsRenderer.js +587 -606
  42. package/src/scripts/search.js +182 -153
  43. package/src/scripts/utilities.js +146 -43
  44. package/src/searchControls.vue +122 -0
  45. package/styleguide.config.js +22 -22
  46. package/vue.config.js +41 -41
  47. package/src/credential.json +0 -12
@@ -1,7 +1,7 @@
1
- // The Vue build version to load with the `import` command
2
- // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
- import ScaffoldVuer from "./ScaffoldVuer.vue";
4
-
5
- export {
6
- ScaffoldVuer
7
- };
1
+ // The Vue build version to load with the `import` command
2
+ // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
+ import ScaffoldVuer from "./ScaffoldVuer.vue";
4
+
5
+ export {
6
+ ScaffoldVuer
7
+ };
Binary file
package/src/main.js CHANGED
@@ -1,14 +1,14 @@
1
- import Vue from 'vue'
2
- import VueRouter from 'vue-router'
3
- import App from './App.vue'
4
-
5
- Vue.config.productionTip = false
6
- Vue.use(VueRouter)
7
-
8
- const router = new VueRouter({
9
- })
10
-
11
- new Vue({
12
- router,
13
- render: h => h(App),
14
- }).$mount('#app')
1
+ import Vue from 'vue'
2
+ import VueRouter from 'vue-router'
3
+ import App from './App.vue'
4
+
5
+ Vue.config.productionTip = false
6
+ Vue.use(VueRouter)
7
+
8
+ const router = new VueRouter({
9
+ })
10
+
11
+ new Vue({
12
+ router,
13
+ render: h => h(App),
14
+ }).$mount('#app')
@@ -1,80 +1,80 @@
1
- const MODULE_CHANGE = { ALL: 0, DESTROYED: 1, NAME_CHANGED: 2, SETTINGS_CHANGED: 3 };
2
-
3
- const BaseModule = function() {
4
- this.typeName = "Base Module";
5
- this.instanceName = "default";
6
- this.onChangedCallbacks = [];
7
- /** Notifier handle for informing other modules of any changes **/
8
- this.eventNotifiers = [];
9
- }
10
-
11
- BaseModule.prototype.setName = function(name) {
12
- if (name && this.instanceName !== name) {
13
- this.instanceName = name;
14
- const callbackArray = this.onChangedCallbacks.slice();
15
- for (let i = 0; i < callbackArray.length; i++) {
16
- callbackArray[i]( this, MODULE_CHANGE.NAME_CHANGED );
17
- }
18
- }
19
- }
20
-
21
- BaseModule.prototype.settingsChanged = function() {
22
- const callbackArray = this.onChangedCallbacks.slice();
23
- for (let i = 0; i < callbackArray.length; i++) {
24
- callbackArray[i]( this, MODULE_CHANGE.SETTINGS_CHANGED );
25
- }
26
- }
27
-
28
- BaseModule.prototype.exportSettings = function() {
29
- const settings = {};
30
- settings.dialog = this.typeName;
31
- settings.name = this.instanceName;
32
- return settings;
33
- }
34
-
35
- BaseModule.prototype.importSettings = function(settings) {
36
- if (settings.dialog == this.typeName) {
37
- this.setName(settings.name);
38
- return true;
39
- }
40
- return false;
41
- }
42
-
43
- BaseModule.prototype.publishChanges = function(annotations, eventType, zincObjects) {
44
- for (let i = 0; i < this.eventNotifiers.length; i++) {
45
- this.eventNotifiers[i].publish(this, eventType, annotations, zincObjects);
46
- }
47
- }
48
-
49
- BaseModule.prototype.getName = function() {
50
- return this.instanceName;
51
- }
52
-
53
- BaseModule.prototype.destroy = function() {
54
- //Make a temorary copy as the array may be altered during the loop
55
- const callbackArray = this.onChangedCallbacks.slice();
56
- for (let i = 0; i < callbackArray.length; i++) {
57
- callbackArray[i]( this, MODULE_CHANGE.DESTROYED );
58
- }
59
-
60
- delete this;
61
- }
62
-
63
- BaseModule.prototype.addChangedCallback = function(callback) {
64
- if (this.onChangedCallbacks.includes(callback) == false)
65
- this.onChangedCallbacks.push(callback);
66
- }
67
-
68
- BaseModule.prototype.removeChangedCallback = function(callback) {
69
- const index = this.onChangedCallbacks.indexOf(callback);
70
- if (index > -1) {
71
- this.onChangedCallbacks.splice(index, 1);
72
- }
73
- }
74
-
75
- BaseModule.prototype.addNotifier = function(eventNotifier) {
76
- this.eventNotifiers.push(eventNotifier);
77
- }
78
-
79
- exports.BaseModule = BaseModule;
80
- exports.MODULE_CHANGE = MODULE_CHANGE;
1
+ const MODULE_CHANGE = { ALL: 0, DESTROYED: 1, NAME_CHANGED: 2, SETTINGS_CHANGED: 3 };
2
+
3
+ const BaseModule = function() {
4
+ this.typeName = "Base Module";
5
+ this.instanceName = "default";
6
+ this.onChangedCallbacks = [];
7
+ /** Notifier handle for informing other modules of any changes **/
8
+ this.eventNotifiers = [];
9
+ }
10
+
11
+ BaseModule.prototype.setName = function(name) {
12
+ if (name && this.instanceName !== name) {
13
+ this.instanceName = name;
14
+ const callbackArray = this.onChangedCallbacks.slice();
15
+ for (let i = 0; i < callbackArray.length; i++) {
16
+ callbackArray[i]( this, MODULE_CHANGE.NAME_CHANGED );
17
+ }
18
+ }
19
+ }
20
+
21
+ BaseModule.prototype.settingsChanged = function() {
22
+ const callbackArray = this.onChangedCallbacks.slice();
23
+ for (let i = 0; i < callbackArray.length; i++) {
24
+ callbackArray[i]( this, MODULE_CHANGE.SETTINGS_CHANGED );
25
+ }
26
+ }
27
+
28
+ BaseModule.prototype.exportSettings = function() {
29
+ const settings = {};
30
+ settings.dialog = this.typeName;
31
+ settings.name = this.instanceName;
32
+ return settings;
33
+ }
34
+
35
+ BaseModule.prototype.importSettings = function(settings) {
36
+ if (settings.dialog == this.typeName) {
37
+ this.setName(settings.name);
38
+ return true;
39
+ }
40
+ return false;
41
+ }
42
+
43
+ BaseModule.prototype.publishChanges = function(annotations, eventType, zincObjects) {
44
+ for (let i = 0; i < this.eventNotifiers.length; i++) {
45
+ this.eventNotifiers[i].publish(this, eventType, annotations, zincObjects);
46
+ }
47
+ }
48
+
49
+ BaseModule.prototype.getName = function() {
50
+ return this.instanceName;
51
+ }
52
+
53
+ BaseModule.prototype.destroy = function() {
54
+ //Make a temorary copy as the array may be altered during the loop
55
+ const callbackArray = this.onChangedCallbacks.slice();
56
+ for (let i = 0; i < callbackArray.length; i++) {
57
+ callbackArray[i]( this, MODULE_CHANGE.DESTROYED );
58
+ }
59
+
60
+ delete this;
61
+ }
62
+
63
+ BaseModule.prototype.addChangedCallback = function(callback) {
64
+ if (this.onChangedCallbacks.includes(callback) == false)
65
+ this.onChangedCallbacks.push(callback);
66
+ }
67
+
68
+ BaseModule.prototype.removeChangedCallback = function(callback) {
69
+ const index = this.onChangedCallbacks.indexOf(callback);
70
+ if (index > -1) {
71
+ this.onChangedCallbacks.splice(index, 1);
72
+ }
73
+ }
74
+
75
+ BaseModule.prototype.addNotifier = function(eventNotifier) {
76
+ this.eventNotifiers.push(eventNotifier);
77
+ }
78
+
79
+ exports.BaseModule = BaseModule;
80
+ exports.MODULE_CHANGE = MODULE_CHANGE;