@abi-software/scaffoldvuer 0.2.3-alpha-2 → 0.3.1

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 (49) hide show
  1. package/.eslintrc.js +12 -12
  2. package/CHANGELOG.md +344 -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 +277 -34
  7. package/dist/scaffoldvuer-wc.umd.js +277 -34
  8. package/dist/scaffoldvuer-wc.umd.min.js +277 -34
  9. package/dist/scaffoldvuer.common.js +1252 -529
  10. package/dist/scaffoldvuer.common.js.map +1 -1
  11. package/dist/scaffoldvuer.css +1 -1
  12. package/dist/scaffoldvuer.umd.js +1252 -529
  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 +18121 -18119
  17. package/package.json +89 -89
  18. package/public/index.html +17 -17
  19. package/src/App.vue +669 -669
  20. package/src/ScaffoldVuer-wc.js +13 -13
  21. package/src/app/DropZone.vue +114 -114
  22. package/src/app/ModelsInformation.js +35 -35
  23. package/src/app/ModelsTable.vue +113 -113
  24. package/src/app/TextureDemos.js +114 -114
  25. package/src/assets/_variables.scss +43 -43
  26. package/src/assets/styles.scss +7 -7
  27. package/src/components/OpacityControls.vue +123 -222
  28. package/src/components/PrimitiveControls.vue +173 -0
  29. package/src/components/ScaffoldTooltip.vue +142 -142
  30. package/src/components/ScaffoldVuer.md +44 -44
  31. package/src/components/ScaffoldVuer.vue +2007 -2007
  32. package/src/components/TextureSlidesControls.vue +272 -0
  33. package/src/components/TreeControls.vue +707 -699
  34. package/src/components/index.js +7 -7
  35. package/src/credential.json +12 -0
  36. package/src/main.js +14 -14
  37. package/src/scripts/BaseModule.js +80 -80
  38. package/src/scripts/RendererModule.js +289 -289
  39. package/src/scripts/WebGL.js +94 -94
  40. package/src/scripts/annotation.js +5 -5
  41. package/src/scripts/eventNotifier.js +66 -66
  42. package/src/scripts/graphicsHighlight.js +134 -134
  43. package/src/scripts/organsRenderer.js +587 -587
  44. package/src/scripts/search.js +182 -182
  45. package/src/scripts/utilities.js +146 -146
  46. package/styleguide.config.js +22 -22
  47. package/vue.config.js +41 -41
  48. package/src/components/test.pdf +0 -0
  49. package/src/searchControls.vue +0 -122
@@ -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
+ };
@@ -0,0 +1,12 @@
1
+ {
2
+ "type": "service_account",
3
+ "project_id": "scaffold-models-1598402284168",
4
+ "private_key_id": "d97f27e0d164aa69fb8995342447407b1a8af037",
5
+ "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCSU0/CnYgiP254\ntvAZzosYTwFZ69KqZYNfWOjWRRB5wKr+itLGpi25WcO2wR4YtXiTXk9htaYd9hSM\n90LEH5+aqhvMovmDltpLRRfL0qg4jf/AlmL11lmbj715Rsko6ADD1fQfnl5leYLb\nikbkCBCdedAOZmC0Px9RuMV+5N440dE7PejBc6UGGCouTHzXeuT/8KigBTKLNk3x\nLu1v0Aw07iJLKAXQKGNKKxRuBVoc/WcVRqTfs7HWQcxFYpIg4MmRoa8MKJujZPwR\nCLRHktCo4Sip32By7LFapjkhjV0ImUq+B/gOctBIt/MC445lxaW8Z6iC0jPOhSRi\nRRjhY2+3AgMBAAECggEAQQxEMtHxCLiGFafNiMtmzkGg6iaJmjJSenp913MQZe+e\nlFWGacTKItGizYWAKZ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nMNtZLJqCopHfmZAZmYmVeD\nnpDz9B9nJF0MM0JRYdKEOXzp+HsL8zovt+sKxYeRXq2l4oxJiqIpeLvhvNeHURnB\n10Rl+BuUU2qmilM3kuWIA48=\n-----END PRIVATE KEY-----\n",
6
+ "client_email": "scaffoldvuer@scaffold-models-1598402284168.iam.gserviceaccount.com",
7
+ "client_id": "112229511591019595252",
8
+ "auth_uri": "https://accounts.google.com/o/oauth2/auth",
9
+ "token_uri": "https://oauth2.googleapis.com/token",
10
+ "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
11
+ "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/scaffoldvuer%40scaffold-models-1598402284168.iam.gserviceaccount.com"
12
+ }
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;