@abi-software/scaffoldvuer 1.2.0-beta.0 → 1.2.1-beta.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.
- package/dist/scaffoldvuer.js +13591 -16164
- package/dist/scaffoldvuer.umd.cjs +179 -179
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/App.vue +33 -31
- package/src/components/ScaffoldTooltip.vue +2 -2
- package/src/components/{TreeControls.vue → ScaffoldTreeControls.vue} +99 -236
- package/src/components/ScaffoldVuer.vue +81 -142
- package/src/components/index.js +1 -5
- package/src/components.d.ts +1 -4
- package/vite.config.js +3 -3
- package/src/components/HelpModeDialog.vue +0 -360
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1-beta.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"*.js"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@abi-software/
|
|
44
|
+
"@abi-software/map-utilities": "^0.0.0-beta.4",
|
|
45
45
|
"@abi-software/sparc-annotation": "^0.3.1",
|
|
46
46
|
"@abi-software/svg-sprite": "^1.0.0",
|
|
47
47
|
"@element-plus/icons-vue": "^2.3.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vue": "^3.4.15",
|
|
56
56
|
"vue-router": "^4.2.5",
|
|
57
57
|
"vue3-component-svg-sprite": "^0.0.1",
|
|
58
|
-
"zincjs": "^1.
|
|
58
|
+
"zincjs": "^1.8.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@vitejs/plugin-vue": "^4.6.2",
|
package/src/App.vue
CHANGED
|
@@ -64,76 +64,76 @@
|
|
|
64
64
|
</el-row>
|
|
65
65
|
|
|
66
66
|
<el-row :gutter="20" justify="center" align="middle">
|
|
67
|
-
<el-col span="auto">
|
|
67
|
+
<el-col :span="auto">
|
|
68
68
|
<el-switch v-model="displayUI" active-text="UI" />
|
|
69
69
|
</el-col>
|
|
70
|
-
<el-col span="auto">
|
|
70
|
+
<el-col :span="auto">
|
|
71
71
|
<el-switch v-model="displayMarkers" active-text="Markers" active-icon-class="el-icon-location"
|
|
72
72
|
active-color="#8300bf" />
|
|
73
73
|
</el-col>
|
|
74
|
-
<el-col span="auto">
|
|
74
|
+
<el-col :span="auto">
|
|
75
75
|
<el-switch v-model="markerCluster" active-text="Marker Cluster" active-icon-class="el-icon-location"
|
|
76
76
|
active-color="#8300bf" />
|
|
77
77
|
</el-col>
|
|
78
|
-
<el-col span="auto">
|
|
78
|
+
<el-col :span="auto">
|
|
79
79
|
<el-switch v-model="displayMinimap" active-text="Minimap" active-icon-class="el-icon-discover"
|
|
80
80
|
active-color="#8300bf" />
|
|
81
81
|
</el-col>
|
|
82
82
|
</el-row>
|
|
83
83
|
|
|
84
84
|
<el-row :gutter="20" justify="center" align="middle">
|
|
85
|
-
<el-col span="auto">
|
|
85
|
+
<el-col :span="auto">
|
|
86
86
|
<el-switch v-model="tumbleOn" active-text="Tumble" active-color="#8300bf" />
|
|
87
87
|
</el-col>
|
|
88
|
-
<el-col span="auto">
|
|
88
|
+
<el-col :span="auto">
|
|
89
89
|
<el-row>
|
|
90
90
|
<el-col :span="8"> x: </el-col>
|
|
91
91
|
<el-col :span="16">
|
|
92
92
|
<el-input-number class="tumble-direction" controls-position="right" v-model="tumbleDirection[0]" :min="-1.0"
|
|
93
|
-
:max="1.0" :controls="false" placeholder="Please input" label="x" @change="autoTumble" />
|
|
93
|
+
:max="1.0" :controls="false" placeholder="Please input" aria-label="x" @change="autoTumble" />
|
|
94
94
|
</el-col>
|
|
95
95
|
</el-row>
|
|
96
96
|
</el-col>
|
|
97
|
-
<el-col span="auto">
|
|
97
|
+
<el-col :span="auto">
|
|
98
98
|
<el-row>
|
|
99
99
|
<el-col :span="8"> y: </el-col>
|
|
100
100
|
<el-col :span="16">
|
|
101
101
|
<el-input-number class="tumble-direction" controls-position="right" v-model="tumbleDirection[1]" :min="-1.0"
|
|
102
|
-
:max="1.0" :controls="false" placeholder="Please input" label="y" @change="autoTumble" />
|
|
102
|
+
:max="1.0" :controls="false" placeholder="Please input" aria-label="y" @change="autoTumble" />
|
|
103
103
|
</el-col>
|
|
104
104
|
</el-row>
|
|
105
105
|
</el-col>
|
|
106
106
|
</el-row>
|
|
107
107
|
|
|
108
108
|
<el-row :gutter="20" justify="center" align="middle">
|
|
109
|
-
<el-col span="auto">
|
|
109
|
+
<el-col :span="auto">
|
|
110
110
|
<el-button size="small" @click="helpMode = !helpMode">
|
|
111
111
|
Help Mode
|
|
112
112
|
</el-button>
|
|
113
113
|
</el-col>
|
|
114
|
-
<el-col span="auto">
|
|
114
|
+
<el-col :span="auto">
|
|
115
115
|
<el-button size="small" @click="screenCapture()"> Capture </el-button>
|
|
116
116
|
</el-col>
|
|
117
|
-
<el-col span="auto">
|
|
117
|
+
<el-col :span="auto">
|
|
118
118
|
<el-button size="small" @click="changeMarkers"> Change Markers </el-button>
|
|
119
119
|
</el-col>
|
|
120
120
|
</el-row>
|
|
121
121
|
|
|
122
122
|
<el-row :gutter="20" justify="center" align="middle">
|
|
123
|
-
<el-col span="auto">
|
|
123
|
+
<el-col :span="auto">
|
|
124
124
|
<el-button size="small" @click="saveSettings()">
|
|
125
125
|
Save Settings
|
|
126
126
|
</el-button>
|
|
127
127
|
</el-col>
|
|
128
|
-
<el-col span="auto">
|
|
128
|
+
<el-col :span="auto">
|
|
129
129
|
<el-button size="small" @click="restoreSettings()">
|
|
130
130
|
Restore Settings
|
|
131
131
|
</el-button>
|
|
132
132
|
</el-col>
|
|
133
|
-
<el-col span="auto">
|
|
133
|
+
<el-col :span="auto">
|
|
134
134
|
<el-button size="small" @click="exportGLB()"> Export GLB </el-button>
|
|
135
135
|
</el-col>
|
|
136
|
-
<el-col span="auto">
|
|
136
|
+
<el-col :span="auto">
|
|
137
137
|
<el-button size="small" @click="exportGLTF()"> Export GLTF </el-button>
|
|
138
138
|
</el-col>
|
|
139
139
|
</el-row>
|
|
@@ -147,35 +147,35 @@
|
|
|
147
147
|
</el-row>
|
|
148
148
|
<el-row :gutter="20" justify="center" align="middle" v-if="syncMode">
|
|
149
149
|
<el-col :span="8">
|
|
150
|
-
<el-input-number v-model="zoom" :min="1.0" :controls="false" placeholder="Please input" label="zoom" />
|
|
150
|
+
<el-input-number v-model="zoom" :min="1.0" :controls="false" placeholder="Please input" aria-label="zoom" />
|
|
151
151
|
</el-col>
|
|
152
152
|
<el-col :span="8">
|
|
153
|
-
<el-input-number v-model="pos[0]" :min="-1.0" :max="1.0" :controls="false" placeholder="Please input" label="x" />
|
|
153
|
+
<el-input-number v-model="pos[0]" :min="-1.0" :max="1.0" :controls="false" placeholder="Please input" aria-label="x" />
|
|
154
154
|
</el-col>
|
|
155
155
|
<el-col :span="8">
|
|
156
|
-
<el-input-number v-model="pos[1]" :min="-1.0" :max="1.0" :controls="false" label="y" />
|
|
156
|
+
<el-input-number v-model="pos[1]" :min="-1.0" :max="1.0" :controls="false" aria-label="y" />
|
|
157
157
|
</el-col>
|
|
158
158
|
</el-row>
|
|
159
159
|
</el-col>
|
|
160
160
|
</el-row>
|
|
161
161
|
|
|
162
162
|
<el-row :gutter="20" justify="center" align="middle">
|
|
163
|
-
<el-col span="auto">
|
|
163
|
+
<el-col :span="auto">
|
|
164
164
|
<el-switch v-model="render" active-text="Rendering" active-color="#8300bf" />
|
|
165
165
|
</el-col>
|
|
166
|
-
<el-col span="auto">
|
|
166
|
+
<el-col :span="auto">
|
|
167
167
|
<el-switch v-model="renderInfoOn" active-text="Renderer Info" active-color="#8300bf" />
|
|
168
168
|
</el-col>
|
|
169
169
|
</el-row>
|
|
170
170
|
|
|
171
171
|
<template v-if="renderInfoOn && rendererInfo">
|
|
172
172
|
<el-row :gutter="20" justify="center" align="middle">
|
|
173
|
-
<el-col v-for="(value, name) in rendererInfo.memory" :key="name" span="auto">
|
|
173
|
+
<el-col v-for="(value, name) in rendererInfo.memory" :key="name" :span="auto">
|
|
174
174
|
{{ name }} : {{ value }}
|
|
175
175
|
</el-col>
|
|
176
176
|
</el-row>
|
|
177
177
|
<el-row :gutter="20" justify="center" align="middle">
|
|
178
|
-
<el-col v-for="(value, name) in rendererInfo.render" :key="name" span="auto">
|
|
178
|
+
<el-col v-for="(value, name) in rendererInfo.render" :key="name" :span="auto">
|
|
179
179
|
{{ name }} : {{ value }}
|
|
180
180
|
</el-col>
|
|
181
181
|
</el-row>
|
|
@@ -189,41 +189,41 @@
|
|
|
189
189
|
</el-col>
|
|
190
190
|
</el-row>
|
|
191
191
|
<el-row :gutter="20" justify="center" align="middle">
|
|
192
|
-
<el-col span="auto">
|
|
192
|
+
<el-col :span="auto">
|
|
193
193
|
<el-button size="small" @click="featureTextureVolume(false)">
|
|
194
194
|
Texture volume
|
|
195
195
|
</el-button>
|
|
196
196
|
</el-col>
|
|
197
|
-
<el-col span="auto">
|
|
197
|
+
<el-col :span="auto">
|
|
198
198
|
<el-button size="small" @click="featureTextureSlides(false)">
|
|
199
199
|
Texture slides
|
|
200
200
|
</el-button>
|
|
201
201
|
</el-col>
|
|
202
|
-
<el-col span="auto">
|
|
202
|
+
<el-col :span="auto">
|
|
203
203
|
<el-button size="small" @click="featureTextureVolume(true)">
|
|
204
204
|
Body volume
|
|
205
205
|
</el-button>
|
|
206
206
|
</el-col>
|
|
207
|
-
<el-col span="auto">
|
|
207
|
+
<el-col :span="auto">
|
|
208
208
|
<el-button size="small" @click="featureTextureSlides(true)">
|
|
209
209
|
Body slides
|
|
210
210
|
</el-button>
|
|
211
211
|
</el-col>
|
|
212
|
-
<el-col span="auto">
|
|
212
|
+
<el-col :span="auto">
|
|
213
213
|
<el-button size="small" @click="featureArmSlides(true)">
|
|
214
214
|
Arm slides
|
|
215
215
|
</el-button>
|
|
216
216
|
</el-col>
|
|
217
217
|
</el-row>
|
|
218
218
|
<el-row :gutter="20" justify="center" align="middle">
|
|
219
|
-
<el-col span="auto">
|
|
219
|
+
<el-col :span="auto">
|
|
220
220
|
<el-switch
|
|
221
221
|
v-model="onClickMarkers"
|
|
222
222
|
active-text="Markers On Selection"
|
|
223
223
|
active-color="#8300bf"
|
|
224
224
|
/>
|
|
225
225
|
</el-col>
|
|
226
|
-
<el-col span="auto">
|
|
226
|
+
<el-col :span="auto">
|
|
227
227
|
<el-switch
|
|
228
228
|
v-model="wireframe"
|
|
229
229
|
active-text="Wireframe"
|
|
@@ -300,7 +300,8 @@ import {
|
|
|
300
300
|
ElSwitch as Switch,
|
|
301
301
|
} from "element-plus";
|
|
302
302
|
import { useRoute, useRouter } from 'vue-router'
|
|
303
|
-
import HelpModeDialog from '
|
|
303
|
+
import { HelpModeDialog } from '@abi-software/map-utilities'
|
|
304
|
+
import '@abi-software/map-utilities/dist/style.css'
|
|
304
305
|
|
|
305
306
|
let texture_prefix = undefined;
|
|
306
307
|
|
|
@@ -389,6 +390,7 @@ export default {
|
|
|
389
390
|
ElIconSetting: shallowRef(ElIconSetting),
|
|
390
391
|
ElIconFolderOpened: shallowRef(ElIconFolderOpened),
|
|
391
392
|
coordinatesClicked: [],
|
|
393
|
+
auto: NaN
|
|
392
394
|
};
|
|
393
395
|
},
|
|
394
396
|
watch: {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
/* eslint-disable no-alert, no-console */
|
|
37
37
|
import { ElPopover as Popover } from "element-plus";
|
|
38
38
|
import CreateTooltiipContent from "./CreateTooltipContent.vue";
|
|
39
|
-
import { Tooltip } from "@abi-software/flatmapvuer";
|
|
40
|
-
import "@abi-software/flatmapvuer/dist/style.css";
|
|
41
39
|
import { mapState } from 'pinia';
|
|
42
40
|
import { useMainStore } from "@/store/index";
|
|
41
|
+
import { Tooltip } from '@abi-software/map-utilities'
|
|
42
|
+
import '@abi-software/map-utilities/dist/style.css'
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* A component to control the opacity of the target object.
|