@abi-software/scaffoldvuer 0.2.3-alpha → 0.3.0

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 (48) hide show
  1. package/.eslintrc.js +12 -12
  2. package/CHANGELOG.md +332 -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 +34 -34
  7. package/dist/scaffoldvuer-wc.umd.js +34 -34
  8. package/dist/scaffoldvuer-wc.umd.min.js +34 -34
  9. package/dist/scaffoldvuer.common.js +373 -364
  10. package/dist/scaffoldvuer.common.js.map +1 -1
  11. package/dist/scaffoldvuer.css +1 -1
  12. package/dist/scaffoldvuer.umd.js +373 -364
  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 +222 -222
  28. package/src/components/PrimitiveControls.vue +158 -0
  29. package/src/components/ScaffoldTooltip.vue +142 -142
  30. package/src/components/ScaffoldVuer.md +44 -44
  31. package/src/components/ScaffoldVuer.vue +2006 -1997
  32. package/src/components/TreeControls.vue +699 -699
  33. package/src/components/index.js +7 -7
  34. package/src/credential.json +12 -0
  35. package/src/main.js +14 -14
  36. package/src/scripts/BaseModule.js +80 -80
  37. package/src/scripts/RendererModule.js +289 -289
  38. package/src/scripts/WebGL.js +94 -94
  39. package/src/scripts/annotation.js +5 -5
  40. package/src/scripts/eventNotifier.js +66 -66
  41. package/src/scripts/graphicsHighlight.js +134 -134
  42. package/src/scripts/organsRenderer.js +587 -587
  43. package/src/scripts/search.js +182 -182
  44. package/src/scripts/utilities.js +146 -146
  45. package/styleguide.config.js +22 -22
  46. package/vue.config.js +41 -41
  47. package/src/components/test.pdf +0 -0
  48. package/src/searchControls.vue +0 -122
@@ -1,142 +1,142 @@
1
- <template>
2
- <div :style="position" class="region-tooltip">
3
- <el-popover
4
- ref="tooltip"
5
- v-model="display"
6
- placement="top"
7
- :visibleArrow="false"
8
- :append-to-body="false"
9
- trigger="manual"
10
- popper-class="tooltip-popper non-selectable"
11
- >
12
- <template v-popover:tooltip>
13
- <div class="tooltip-text">{{ label }}</div>
14
- <div class="tooltip-text" v-if="region">Region: {{ region }}</div>
15
- </template>
16
- </el-popover>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- /* eslint-disable no-alert, no-console */
22
- import Vue from "vue";
23
- import { Popover } from "element-ui";
24
- import lang from "element-ui/lib/locale/lang/en";
25
- import locale from "element-ui/lib/locale";
26
-
27
- locale.use(lang);
28
- Vue.use(Popover);
29
-
30
- /**
31
- * A component to control the opacity of the target object.
32
- */
33
- export default {
34
- name: "ScaffoldTooltip",
35
- props: {
36
- label: {
37
- type: String,
38
- default: "",
39
- },
40
- region: {
41
- type: String,
42
- default: "",
43
- },
44
- visible: {
45
- type: Boolean,
46
- default: false,
47
- },
48
- x: {
49
- type: Number,
50
- default: 200,
51
- },
52
- y: {
53
- type: Number,
54
- default: 200,
55
- },
56
- },
57
- data: function () {
58
- return {
59
- display: false,
60
- };
61
- },
62
- computed: {
63
- position: function () {
64
- let yOffset = 40;
65
- if (this.region) {
66
- yOffset = 55;
67
- }
68
- const x = this.x - 40;
69
- return { left: x + "px", top: this.y - yOffset + "px" };
70
- },
71
- },
72
- watch: {
73
- label: {
74
- handler: function () {
75
- if (this.visible && this.label && this.label !== "")
76
- this.display = true;
77
- else this.display = false;
78
- },
79
- immediate: true,
80
- },
81
- visible: {
82
- handler: function () {
83
- if (this.visible && this.label && this.label !== "")
84
- this.display = true;
85
- else this.display = false;
86
- },
87
- immediate: true,
88
- },
89
- },
90
- };
91
- </script>
92
-
93
- <!-- Add "scoped" attribute to limit CSS to this component only -->
94
- <style scoped lang="scss">
95
- @import "~element-ui/packages/theme-chalk/src/popover";
96
-
97
- .region-tooltip {
98
- position: absolute;
99
- height: 50px;
100
- z-index: 2;
101
- ::v-deep .tooltip-popper {
102
- padding: 2px 6px;
103
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
104
- font-size: 16px;
105
- color: $app-primary-color;
106
- background-color: #fff;
107
- border: 1px solid $app-primary-color;
108
- border-radius: 4px;
109
- white-space: nowrap;
110
- min-width: unset;
111
- pointer-events: none;
112
- top: -15px !important;
113
-
114
- &.el-popper[x-placement^="top"] {
115
- .popper__arrow {
116
- border-top-color: $app-primary-color !important;
117
- &:after {
118
- border-top-color: #fff !important;
119
- }
120
- }
121
- }
122
-
123
- &.el-popper[x-placement^="bottom"] {
124
- .popper__arrow {
125
- border-bottom-color: $app-primary-color !important;
126
- &:after {
127
- border-bottom-color: #fff !important;
128
- }
129
- }
130
- }
131
- }
132
-
133
- .tooltip-text {
134
- text-align: center;
135
- }
136
-
137
- ::v-deep .non-selectable {
138
- user-select: none;
139
- pointer-events: none;
140
- }
141
- }
142
- </style>
1
+ <template>
2
+ <div :style="position" class="region-tooltip">
3
+ <el-popover
4
+ ref="tooltip"
5
+ v-model="display"
6
+ placement="top"
7
+ :visibleArrow="false"
8
+ :append-to-body="false"
9
+ trigger="manual"
10
+ popper-class="tooltip-popper non-selectable"
11
+ >
12
+ <template v-popover:tooltip>
13
+ <div class="tooltip-text">{{ label }}</div>
14
+ <div class="tooltip-text" v-if="region">Region: {{ region }}</div>
15
+ </template>
16
+ </el-popover>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ /* eslint-disable no-alert, no-console */
22
+ import Vue from "vue";
23
+ import { Popover } from "element-ui";
24
+ import lang from "element-ui/lib/locale/lang/en";
25
+ import locale from "element-ui/lib/locale";
26
+
27
+ locale.use(lang);
28
+ Vue.use(Popover);
29
+
30
+ /**
31
+ * A component to control the opacity of the target object.
32
+ */
33
+ export default {
34
+ name: "ScaffoldTooltip",
35
+ props: {
36
+ label: {
37
+ type: String,
38
+ default: "",
39
+ },
40
+ region: {
41
+ type: String,
42
+ default: "",
43
+ },
44
+ visible: {
45
+ type: Boolean,
46
+ default: false,
47
+ },
48
+ x: {
49
+ type: Number,
50
+ default: 200,
51
+ },
52
+ y: {
53
+ type: Number,
54
+ default: 200,
55
+ },
56
+ },
57
+ data: function () {
58
+ return {
59
+ display: false,
60
+ };
61
+ },
62
+ computed: {
63
+ position: function () {
64
+ let yOffset = 40;
65
+ if (this.region) {
66
+ yOffset = 55;
67
+ }
68
+ const x = this.x - 40;
69
+ return { left: x + "px", top: this.y - yOffset + "px" };
70
+ },
71
+ },
72
+ watch: {
73
+ label: {
74
+ handler: function () {
75
+ if (this.visible && this.label && this.label !== "")
76
+ this.display = true;
77
+ else this.display = false;
78
+ },
79
+ immediate: true,
80
+ },
81
+ visible: {
82
+ handler: function () {
83
+ if (this.visible && this.label && this.label !== "")
84
+ this.display = true;
85
+ else this.display = false;
86
+ },
87
+ immediate: true,
88
+ },
89
+ },
90
+ };
91
+ </script>
92
+
93
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
94
+ <style scoped lang="scss">
95
+ @import "~element-ui/packages/theme-chalk/src/popover";
96
+
97
+ .region-tooltip {
98
+ position: absolute;
99
+ height: 50px;
100
+ z-index: 2;
101
+ ::v-deep .tooltip-popper {
102
+ padding: 2px 6px;
103
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
104
+ font-size: 16px;
105
+ color: $app-primary-color;
106
+ background-color: #fff;
107
+ border: 1px solid $app-primary-color;
108
+ border-radius: 4px;
109
+ white-space: nowrap;
110
+ min-width: unset;
111
+ pointer-events: none;
112
+ top: -15px !important;
113
+
114
+ &.el-popper[x-placement^="top"] {
115
+ .popper__arrow {
116
+ border-top-color: $app-primary-color !important;
117
+ &:after {
118
+ border-top-color: #fff !important;
119
+ }
120
+ }
121
+ }
122
+
123
+ &.el-popper[x-placement^="bottom"] {
124
+ .popper__arrow {
125
+ border-bottom-color: $app-primary-color !important;
126
+ &:after {
127
+ border-bottom-color: #fff !important;
128
+ }
129
+ }
130
+ }
131
+ }
132
+
133
+ .tooltip-text {
134
+ text-align: center;
135
+ }
136
+
137
+ ::v-deep .non-selectable {
138
+ user-select: none;
139
+ pointer-events: none;
140
+ }
141
+ }
142
+ </style>
@@ -1,44 +1,44 @@
1
- ScaffoldVuer demo:
2
- ```vue
3
- <template>
4
- <div class="wrapper">
5
- <ScaffoldVuer class="vuer"
6
- :url="url"
7
- :helpMode="helpMode"
8
- :displayMarkers="displayMarkers"
9
- :displayMinimap="displayMinimap"
10
- :minimapSettings="minimapSettings" />
11
- </div>
12
- </template>
13
-
14
- <script>
15
- export default {
16
- data: function() {
17
- return {
18
- url: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/others/29_Jan_2020/heartICN_metadata.json",
19
- helpMode: false,
20
- displayMarkers: true,
21
- displayMinimap: false,
22
- minimapSettings: {
23
- x_offset: 16,
24
- y_offset: 16,
25
- width: 128,
26
- height: 128,
27
- align: "bottom-right"
28
- },
29
- };
30
- }
31
- }
32
- </script>
33
-
34
- <style scoped>
35
- .wrapper {
36
- height:600px;
37
- }
38
- .vuer {
39
- width:100%;
40
- height:600px;
41
- }
42
- </style>
43
- ```
44
-
1
+ ScaffoldVuer demo:
2
+ ```vue
3
+ <template>
4
+ <div class="wrapper">
5
+ <ScaffoldVuer class="vuer"
6
+ :url="url"
7
+ :helpMode="helpMode"
8
+ :displayMarkers="displayMarkers"
9
+ :displayMinimap="displayMinimap"
10
+ :minimapSettings="minimapSettings" />
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ export default {
16
+ data: function() {
17
+ return {
18
+ url: "https://mapcore-bucket1.s3-us-west-2.amazonaws.com/others/29_Jan_2020/heartICN_metadata.json",
19
+ helpMode: false,
20
+ displayMarkers: true,
21
+ displayMinimap: false,
22
+ minimapSettings: {
23
+ x_offset: 16,
24
+ y_offset: 16,
25
+ width: 128,
26
+ height: 128,
27
+ align: "bottom-right"
28
+ },
29
+ };
30
+ }
31
+ }
32
+ </script>
33
+
34
+ <style scoped>
35
+ .wrapper {
36
+ height:600px;
37
+ }
38
+ .vuer {
39
+ width:100%;
40
+ height:600px;
41
+ }
42
+ </style>
43
+ ```
44
+