@abi-software/scaffoldvuer 0.1.52-beta.1 → 0.1.52-beta.2
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.common.js +42 -27
- package/dist/scaffoldvuer.common.js.map +1 -1
- package/dist/scaffoldvuer.css +1 -1
- package/dist/scaffoldvuer.umd.js +42 -27
- package/dist/scaffoldvuer.umd.js.map +1 -1
- package/dist/scaffoldvuer.umd.min.js +1 -1
- package/dist/scaffoldvuer.umd.min.js.map +1 -1
- package/package-lock.json +7 -7
- package/package.json +2 -2
- package/src/App.vue +34 -4
- package/src/components/ScaffoldVuer.vue +5 -1
- package/src/scripts/organsRenderer.js +12 -1
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "0.1.52-beta.
|
|
3
|
+
"version": "0.1.52-beta.2",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -18732,9 +18732,9 @@
|
|
|
18732
18732
|
"integrity": "sha512-OSPPKcGvFSiGkG3jFrwwC76PBV/ZSrGxpBbg28bW8s9GU8r/y2spNGtEXHEb/CVqo0Ctf5Lx2rVaxQZB6OasaA=="
|
|
18733
18733
|
},
|
|
18734
18734
|
"three-spritetext": {
|
|
18735
|
-
"version": "1.6.
|
|
18736
|
-
"resolved": "https://registry.npmjs.org/three-spritetext/-/three-spritetext-1.6.
|
|
18737
|
-
"integrity": "sha512-
|
|
18735
|
+
"version": "1.6.4",
|
|
18736
|
+
"resolved": "https://registry.npmjs.org/three-spritetext/-/three-spritetext-1.6.4.tgz",
|
|
18737
|
+
"integrity": "sha512-KngnmDnpRe5UdnhD1N+5GrhGC9aibs5/5nnBWFH23FDSYdLIk8NUwZFtEJpXXYKjUp/jjAw4dz0vRKroz8cILg=="
|
|
18738
18738
|
},
|
|
18739
18739
|
"throttle-debounce": {
|
|
18740
18740
|
"version": "1.1.0",
|
|
@@ -21436,9 +21436,9 @@
|
|
|
21436
21436
|
}
|
|
21437
21437
|
},
|
|
21438
21438
|
"zincjs": {
|
|
21439
|
-
"version": "0.50.0-beta
|
|
21440
|
-
"resolved": "https://registry.npmjs.org/zincjs/-/zincjs-0.50.0-beta.
|
|
21441
|
-
"integrity": "sha512-
|
|
21439
|
+
"version": "0.50.0-beta-1",
|
|
21440
|
+
"resolved": "https://registry.npmjs.org/zincjs/-/zincjs-0.50.0-beta-1.tgz",
|
|
21441
|
+
"integrity": "sha512-43ilhXvbPp/2dKTh5dJsYr7FvPv+0f2pzG/zpqq/kXGZj7KWYpKsj3hpWAaQq3nl140uaQshwMGy1CTln6SlLQ==",
|
|
21442
21442
|
"requires": {
|
|
21443
21443
|
"css-element-queries": "^1.2.2",
|
|
21444
21444
|
"lodash": "^4.17.19",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "0.1.52-beta.
|
|
3
|
+
"version": "0.1.52-beta.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"vue": "^2.6.10",
|
|
34
34
|
"vue-drag-resize": "^1.3.2",
|
|
35
35
|
"vue-router": "^3.5.1",
|
|
36
|
-
"zincjs": "^0.50.0-beta.
|
|
36
|
+
"zincjs": "^0.50.0-beta.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@vue/cli-plugin-babel": "^4.0.0",
|
package/src/App.vue
CHANGED
|
@@ -111,13 +111,37 @@
|
|
|
111
111
|
<el-row :gutter="30">
|
|
112
112
|
<el-col
|
|
113
113
|
:span="7"
|
|
114
|
-
:offset="
|
|
114
|
+
:offset="2"
|
|
115
115
|
>
|
|
116
116
|
<el-switch
|
|
117
117
|
v-model="syncMode"
|
|
118
118
|
active-text="Sync Mode"
|
|
119
119
|
active-color="#8300bf"
|
|
120
120
|
/>
|
|
121
|
+
<el-row v-if="syncMode">
|
|
122
|
+
<el-input-number
|
|
123
|
+
v-model="zoom"
|
|
124
|
+
:min="1.0"
|
|
125
|
+
:controls="false"
|
|
126
|
+
placeholder="Please input"
|
|
127
|
+
label="zoom"
|
|
128
|
+
/>
|
|
129
|
+
<el-input-number
|
|
130
|
+
v-model="pos[0]"
|
|
131
|
+
:min="-1.0"
|
|
132
|
+
:max="1.0"
|
|
133
|
+
:controls="false"
|
|
134
|
+
placeholder="Please input"
|
|
135
|
+
label="x"
|
|
136
|
+
/>
|
|
137
|
+
<el-input-number
|
|
138
|
+
v-model="pos[1]"
|
|
139
|
+
:min="-1.0"
|
|
140
|
+
:max="1.0"
|
|
141
|
+
:controls="false"
|
|
142
|
+
label="y"
|
|
143
|
+
/>
|
|
144
|
+
</el-row>
|
|
121
145
|
</el-col>
|
|
122
146
|
</el-row>
|
|
123
147
|
<el-row :gutter="30">
|
|
@@ -203,7 +227,7 @@
|
|
|
203
227
|
import { ScaffoldVuer } from "./components/index.js";
|
|
204
228
|
import ModelsTable from "./components/ModelsTable.vue";
|
|
205
229
|
import Vue from "vue";
|
|
206
|
-
import { Button, Col, Icon, Input, Popover, Row, Switch } from "element-ui";
|
|
230
|
+
import { Button, Col, Icon, Input, InputNumber, Popover, Row, Switch } from "element-ui";
|
|
207
231
|
import lang from "element-ui/lib/locale/lang/en";
|
|
208
232
|
import locale from "element-ui/lib/locale";
|
|
209
233
|
|
|
@@ -212,6 +236,7 @@ Vue.use(Button);
|
|
|
212
236
|
Vue.use(Col);
|
|
213
237
|
Vue.use(Icon);
|
|
214
238
|
Vue.use(Input);
|
|
239
|
+
Vue.use(InputNumber);
|
|
215
240
|
Vue.use(Popover);
|
|
216
241
|
Vue.use(Row);
|
|
217
242
|
Vue.use(Switch);
|
|
@@ -269,7 +294,9 @@ export default {
|
|
|
269
294
|
region: "",
|
|
270
295
|
viewURL: "",
|
|
271
296
|
renderInfoOn: false,
|
|
272
|
-
rendererInfo: undefined
|
|
297
|
+
rendererInfo: undefined,
|
|
298
|
+
zoom: 1,
|
|
299
|
+
pos: [0, 0],
|
|
273
300
|
};
|
|
274
301
|
},
|
|
275
302
|
watch: {
|
|
@@ -353,7 +380,10 @@ export default {
|
|
|
353
380
|
}
|
|
354
381
|
},
|
|
355
382
|
onNavigated: function(data) {
|
|
356
|
-
console.log(data)
|
|
383
|
+
console.log(data)
|
|
384
|
+
this.zoom = data.zoom;
|
|
385
|
+
this.pos[0] = data.target[0];
|
|
386
|
+
this.pos[1] = data.target[1];
|
|
357
387
|
},
|
|
358
388
|
parseInput: function() {
|
|
359
389
|
if (this.$route.query.url !== this.input)
|
|
@@ -665,7 +665,11 @@ export default {
|
|
|
665
665
|
let objects = this.$module.scene.findObjectsWithGroupName(name);
|
|
666
666
|
let box = this.$module.scene.getBoundingBoxOfZincObjects(objects);
|
|
667
667
|
if (box) {
|
|
668
|
-
this.$module.
|
|
668
|
+
if (this.$module.isSyncControl()) {
|
|
669
|
+
this.$module.setSyncControlZoomToBox(box);
|
|
670
|
+
} else {
|
|
671
|
+
this.$module.scene.viewAllWithBoundingBox(box);
|
|
672
|
+
}
|
|
669
673
|
}
|
|
670
674
|
}
|
|
671
675
|
},
|
|
@@ -90,7 +90,18 @@ const OrgansSceneData = function() {
|
|
|
90
90
|
cameraControl.resetView();
|
|
91
91
|
this.NDCCameraControl = cameraControl.enableSyncControl();
|
|
92
92
|
} else {
|
|
93
|
-
|
|
93
|
+
cameraControl.disableSyncControl();
|
|
94
|
+
this.NDCCameraControl = undefined;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
this.isSyncControl = () => {
|
|
99
|
+
return this.NDCCameraControl !== undefined;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
this.setSyncControlZoomToBox = (box) => {
|
|
103
|
+
if (this.NDCCameraControl) {
|
|
104
|
+
this.NDCCameraControl.zoomToBox(box, 2);
|
|
94
105
|
}
|
|
95
106
|
}
|
|
96
107
|
|