@abi-software/scaffoldvuer 0.2.2-beta.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.
- package/.eslintrc.js +12 -12
- package/CHANGELOG.md +316 -310
- package/LICENSE +201 -201
- package/README.md +164 -164
- package/babel.config.js +14 -14
- package/dist/scaffoldvuer-wc.common.js +183 -35
- package/dist/scaffoldvuer-wc.umd.js +183 -35
- package/dist/scaffoldvuer-wc.umd.min.js +183 -35
- package/dist/scaffoldvuer.common.js +1076 -717
- package/dist/scaffoldvuer.common.js.map +1 -1
- package/dist/scaffoldvuer.css +1 -1
- package/dist/scaffoldvuer.umd.js +1076 -717
- 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 +18119 -18121
- package/package.json +89 -89
- package/public/index.html +17 -17
- package/src/App.vue +669 -714
- package/src/ScaffoldVuer-wc.js +13 -13
- package/src/{components → app}/DropZone.vue +114 -114
- package/src/{components → app}/ModelsInformation.js +35 -35
- package/src/{components → app}/ModelsTable.vue +113 -113
- package/src/app/TextureDemos.js +114 -0
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +7 -7
- package/src/components/OpacityControls.vue +222 -222
- package/src/components/ScaffoldTooltip.vue +142 -141
- package/src/components/ScaffoldVuer.md +44 -44
- package/src/components/ScaffoldVuer.vue +1997 -1887
- package/src/components/TreeControls.vue +699 -691
- package/src/components/index.js +7 -7
- package/src/components/test.pdf +0 -0
- package/src/main.js +14 -14
- package/src/scripts/BaseModule.js +80 -80
- package/src/scripts/RendererModule.js +289 -289
- package/src/scripts/WebGL.js +94 -94
- package/src/scripts/annotation.js +5 -5
- package/src/scripts/eventNotifier.js +66 -66
- package/src/scripts/graphicsHighlight.js +134 -134
- package/src/scripts/organsRenderer.js +587 -606
- package/src/scripts/search.js +182 -153
- package/src/scripts/utilities.js +146 -43
- package/src/searchControls.vue +122 -0
- package/styleguide.config.js +22 -22
- package/vue.config.js +41 -41
- package/src/credential.json +0 -12
|
@@ -1,1887 +1,1997 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="scaffoldContainer"
|
|
4
|
-
v-loading="loading"
|
|
5
|
-
class="scaffold-container"
|
|
6
|
-
element-loading-text="Loading..."
|
|
7
|
-
element-loading-spinner="el-icon-loading"
|
|
8
|
-
element-loading-background="rgba(0, 0, 0, 0.3)"
|
|
9
|
-
>
|
|
10
|
-
<map-svg-sprite-color />
|
|
11
|
-
<scaffold-tooltip
|
|
12
|
-
:label="tData.label"
|
|
13
|
-
:region="tData.region"
|
|
14
|
-
:visible="tData.visible"
|
|
15
|
-
:x="tData.x"
|
|
16
|
-
:y="tData.y"
|
|
17
|
-
/>
|
|
18
|
-
<div
|
|
19
|
-
id="organsDisplayArea"
|
|
20
|
-
ref="display"
|
|
21
|
-
tabindex="-1"
|
|
22
|
-
style="height: 100%; width: 100%"
|
|
23
|
-
@keydown.66="backgroundChangeCallback"
|
|
24
|
-
/>
|
|
25
|
-
<div v-show="displayUI && !isTransitioning">
|
|
26
|
-
<el-popover
|
|
27
|
-
v-if="displayWarning"
|
|
28
|
-
ref="warningPopover"
|
|
29
|
-
v-model="hoverVisibilities[6].value"
|
|
30
|
-
:content="warningMessage"
|
|
31
|
-
placement="right"
|
|
32
|
-
:append-to-body="false"
|
|
33
|
-
trigger="manual"
|
|
34
|
-
popper-class="scaffold-popper message-popper right-popper non-selectable"
|
|
35
|
-
/>
|
|
36
|
-
<i
|
|
37
|
-
v-if="displayWarning"
|
|
38
|
-
v-popover:warningPopover
|
|
39
|
-
class="el-icon-warning message-icon warning-icon"
|
|
40
|
-
@mouseover="showHelpText(6)"
|
|
41
|
-
@mouseout="hideHelpText(6)"
|
|
42
|
-
>
|
|
43
|
-
<span class="message-text">Beta</span>
|
|
44
|
-
</i>
|
|
45
|
-
<el-popover
|
|
46
|
-
v-if="displayLatestChanges"
|
|
47
|
-
ref="latestChangesPopover"
|
|
48
|
-
v-model="hoverVisibilities[7].value"
|
|
49
|
-
:content="latestChangesMessage"
|
|
50
|
-
placement="right"
|
|
51
|
-
:append-to-body="false"
|
|
52
|
-
trigger="manual"
|
|
53
|
-
popper-class="scaffold-popper message-popper right-popper non-selectable"
|
|
54
|
-
/>
|
|
55
|
-
<i
|
|
56
|
-
v-if="displayLatestChanges && latestChangesMessage"
|
|
57
|
-
v-popover:latestChangesPopover
|
|
58
|
-
class="el-icon-warning message-icon latest-changesicon"
|
|
59
|
-
@mouseover="showHelpText(7)"
|
|
60
|
-
@mouseout="hideHelpText(7)"
|
|
61
|
-
>
|
|
62
|
-
<span class="message-text">What's new?</span>
|
|
63
|
-
</i>
|
|
64
|
-
<el-popover
|
|
65
|
-
ref="checkBoxPopover"
|
|
66
|
-
v-model="hoverVisibilities[5].value"
|
|
67
|
-
content="Change region visibility"
|
|
68
|
-
placement="right"
|
|
69
|
-
:append-to-body="false"
|
|
70
|
-
trigger="manual"
|
|
71
|
-
popper-class="scaffold-popper right-popper non-selectable"
|
|
72
|
-
/>
|
|
73
|
-
<tree-controls
|
|
74
|
-
ref="treeControls"
|
|
75
|
-
v-popover:checkBoxPopover
|
|
76
|
-
:help-mode="helpMode"
|
|
77
|
-
:isReady="isReady"
|
|
78
|
-
:show-colour-picker="showColourPicker"
|
|
79
|
-
@object-selected="objectSelected"
|
|
80
|
-
@object-hovered="objectHovered"
|
|
81
|
-
@drawer-toggled="drawerToggled"
|
|
82
|
-
/>
|
|
83
|
-
<div class="opacity-box">
|
|
84
|
-
<opacity-controls ref="opacityControl" />
|
|
85
|
-
</div>
|
|
86
|
-
<el-popover
|
|
87
|
-
v-if="sceneData.timeVarying"
|
|
88
|
-
ref="sliderPopover"
|
|
89
|
-
v-model="hoverVisibilities[4].value"
|
|
90
|
-
content="Move the slider to animate the region"
|
|
91
|
-
placement="top"
|
|
92
|
-
:append-to-body="false"
|
|
93
|
-
trigger="manual"
|
|
94
|
-
popper-class="scaffold-popper top-popper non-selectable"
|
|
95
|
-
/>
|
|
96
|
-
<div
|
|
97
|
-
v-if="sceneData.timeVarying"
|
|
98
|
-
v-popover:sliderPopover
|
|
99
|
-
class="time-slider-container"
|
|
100
|
-
:class="[minimisedSlider ? 'minimised' : '', sliderPosition]"
|
|
101
|
-
>
|
|
102
|
-
<el-tabs type="card">
|
|
103
|
-
<el-tab-pane label="Animate scaffold">
|
|
104
|
-
<el-row class="tab-content">
|
|
105
|
-
<map-svg-icon
|
|
106
|
-
v-if="isPlaying"
|
|
107
|
-
icon="pause"
|
|
108
|
-
class="icon-button video-button"
|
|
109
|
-
@click.native="play(false)"
|
|
110
|
-
/>
|
|
111
|
-
<map-svg-icon
|
|
112
|
-
v-else
|
|
113
|
-
icon="play"
|
|
114
|
-
class="video-button icon-button"
|
|
115
|
-
@click.native="play(true)"
|
|
116
|
-
/>
|
|
117
|
-
<el-slider
|
|
118
|
-
:min="0"
|
|
119
|
-
:max="timeMax"
|
|
120
|
-
:value="(sceneData.currentTime / 100) * timeMax"
|
|
121
|
-
:step="0.1"
|
|
122
|
-
tooltip-class="time-slider-tooltip"
|
|
123
|
-
class="slider"
|
|
124
|
-
:format-tooltip="formatTooltip"
|
|
125
|
-
:marks="timeStamps"
|
|
126
|
-
@input="timeChange($event)"
|
|
127
|
-
/>
|
|
128
|
-
</el-row>
|
|
129
|
-
</el-tab-pane>
|
|
130
|
-
<el-tab-pane label="Animation data">
|
|
131
|
-
<el-row class="tab-content">
|
|
132
|
-
<div class="animation-data">
|
|
133
|
-
Original duration:
|
|
134
|
-
<div class="purple">
|
|
135
|
-
{{ orginalDuration }}
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
<div class="animation-data">
|
|
139
|
-
Animation duration:
|
|
140
|
-
<div class="purple">
|
|
141
|
-
{{ animateDuration }}
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
<div class="animation-data">
|
|
145
|
-
Playback speed
|
|
146
|
-
<el-select
|
|
147
|
-
:popper-append-to-body="true"
|
|
148
|
-
:value="currentSpeed"
|
|
149
|
-
placeholder="Select"
|
|
150
|
-
class="select-box"
|
|
151
|
-
popper-class="scaffold_viewer_dropdown"
|
|
152
|
-
@change="speedChanged($event)"
|
|
153
|
-
>
|
|
154
|
-
<el-option
|
|
155
|
-
v-for="item in playSpeed"
|
|
156
|
-
:key="item.value"
|
|
157
|
-
:label="item.label"
|
|
158
|
-
:value="item.value"
|
|
159
|
-
/>
|
|
160
|
-
</el-select>
|
|
161
|
-
</div>
|
|
162
|
-
</el-row>
|
|
163
|
-
</el-tab-pane>
|
|
164
|
-
</el-tabs>
|
|
165
|
-
</div>
|
|
166
|
-
<div class="bottom-right-control">
|
|
167
|
-
<el-popover
|
|
168
|
-
v-model="hoverVisibilities[0].value"
|
|
169
|
-
content="Zoom in"
|
|
170
|
-
placement="left"
|
|
171
|
-
:append-to-body="false"
|
|
172
|
-
trigger="manual"
|
|
173
|
-
popper-class="scaffold-popper left-popper non-selectable"
|
|
174
|
-
>
|
|
175
|
-
<map-svg-icon
|
|
176
|
-
slot="reference"
|
|
177
|
-
icon="zoomIn"
|
|
178
|
-
class="icon-button zoomIn"
|
|
179
|
-
@click.native="zoomIn()"
|
|
180
|
-
@mouseover.native="showHelpText(0)"
|
|
181
|
-
@mouseout.native="hideHelpText(0)"
|
|
182
|
-
/>
|
|
183
|
-
</el-popover>
|
|
184
|
-
<el-popover
|
|
185
|
-
v-model="hoverVisibilities[1].value"
|
|
186
|
-
content="Zoom out"
|
|
187
|
-
placement="top-end"
|
|
188
|
-
:append-to-body="false"
|
|
189
|
-
trigger="manual"
|
|
190
|
-
popper-class="scaffold-popper popper-zoomout non-selectable"
|
|
191
|
-
>
|
|
192
|
-
<map-svg-icon
|
|
193
|
-
slot="reference"
|
|
194
|
-
icon="zoomOut"
|
|
195
|
-
class="icon-button zoomOut"
|
|
196
|
-
@click.native="zoomOut()"
|
|
197
|
-
@mouseover.native="showHelpText(1)"
|
|
198
|
-
@mouseout.native="hideHelpText(1)"
|
|
199
|
-
/>
|
|
200
|
-
</el-popover>
|
|
201
|
-
<el-popover
|
|
202
|
-
v-model="hoverVisibilities[2].value"
|
|
203
|
-
placement="top"
|
|
204
|
-
:append-to-body="false"
|
|
205
|
-
trigger="manual"
|
|
206
|
-
popper-class="scaffold-popper non-selectable"
|
|
207
|
-
>
|
|
208
|
-
<div>
|
|
209
|
-
Fit to
|
|
210
|
-
<br />
|
|
211
|
-
window
|
|
212
|
-
</div>
|
|
213
|
-
<map-svg-icon
|
|
214
|
-
slot="reference"
|
|
215
|
-
icon="fitWindow"
|
|
216
|
-
class="icon-button fitWindow"
|
|
217
|
-
@click.native="fitWindow()"
|
|
218
|
-
@mouseover.native="showHelpText(2)"
|
|
219
|
-
@mouseout.native="hideHelpText(2)"
|
|
220
|
-
/>
|
|
221
|
-
</el-popover>
|
|
222
|
-
</div>
|
|
223
|
-
<el-popover
|
|
224
|
-
ref="open-map-popover"
|
|
225
|
-
placement="top-start"
|
|
226
|
-
width="128"
|
|
227
|
-
:append-to-body="false"
|
|
228
|
-
trigger="click"
|
|
229
|
-
popper-class="open-map-popper"
|
|
230
|
-
>
|
|
231
|
-
<el-row v-for="item in openMapOptions" :key="item.key">
|
|
232
|
-
<el-button
|
|
233
|
-
type="primary"
|
|
234
|
-
plain
|
|
235
|
-
@click="$emit('open-map', item.key)"
|
|
236
|
-
>
|
|
237
|
-
{{item.display}}
|
|
238
|
-
</el-button>
|
|
239
|
-
</el-row>
|
|
240
|
-
</el-popover>
|
|
241
|
-
<el-popover
|
|
242
|
-
ref="backgroundPopover"
|
|
243
|
-
placement="top-start"
|
|
244
|
-
width="128"
|
|
245
|
-
:append-to-body="false"
|
|
246
|
-
trigger="click"
|
|
247
|
-
popper-class="background-popper non-selectable"
|
|
248
|
-
>
|
|
249
|
-
<el-row class="backgroundText"> Change background </el-row>
|
|
250
|
-
<el-row class="backgroundChooser">
|
|
251
|
-
<div
|
|
252
|
-
v-for="item in availableBackground"
|
|
253
|
-
:key="item"
|
|
254
|
-
:class="[
|
|
255
|
-
'backgroundChoice',
|
|
256
|
-
item,
|
|
257
|
-
item == currentBackground ? 'active' : '',
|
|
258
|
-
]"
|
|
259
|
-
@click="backgroundChangeCallback(item)"
|
|
260
|
-
/>
|
|
261
|
-
</el-row>
|
|
262
|
-
</el-popover>
|
|
263
|
-
<div
|
|
264
|
-
class="settings-group"
|
|
265
|
-
:class="{ open: drawerOpen, close: !drawerOpen }"
|
|
266
|
-
>
|
|
267
|
-
<el-row>
|
|
268
|
-
<el-popover
|
|
269
|
-
v-model="hoverVisibilities[8].value"
|
|
270
|
-
content="Open new map"
|
|
271
|
-
placement="right"
|
|
272
|
-
:append-to-body="false"
|
|
273
|
-
trigger="manual"
|
|
274
|
-
popper-class="scaffold-popper right-popper non-selectable"
|
|
275
|
-
>
|
|
276
|
-
<map-svg-icon
|
|
277
|
-
v-if="enableOpenMapUI && openMapOptions.length > 0"
|
|
278
|
-
slot="reference"
|
|
279
|
-
v-popover:open-map-popover
|
|
280
|
-
icon="openMap"
|
|
281
|
-
class="icon-button"
|
|
282
|
-
@mouseover.native="showHelpText(8)"
|
|
283
|
-
@mouseout.native="hideHelpText(8)"
|
|
284
|
-
/>
|
|
285
|
-
</el-popover>
|
|
286
|
-
</el-row>
|
|
287
|
-
<el-row>
|
|
288
|
-
<el-popover
|
|
289
|
-
v-model="hoverVisibilities[3].value"
|
|
290
|
-
content="Change background color"
|
|
291
|
-
placement="right"
|
|
292
|
-
:append-to-body="false"
|
|
293
|
-
trigger="manual"
|
|
294
|
-
popper-class="scaffold-popper right-popper non-selectable"
|
|
295
|
-
>
|
|
296
|
-
<map-svg-icon
|
|
297
|
-
slot="reference"
|
|
298
|
-
v-popover:backgroundPopover
|
|
299
|
-
icon="changeBckgd"
|
|
300
|
-
class="icon-button"
|
|
301
|
-
@mouseover.native="showHelpText(3)"
|
|
302
|
-
@mouseout.native="hideHelpText(3)"
|
|
303
|
-
/>
|
|
304
|
-
</el-popover>
|
|
305
|
-
</el-row>
|
|
306
|
-
</div>
|
|
307
|
-
</div>
|
|
308
|
-
</div>
|
|
309
|
-
</template>
|
|
310
|
-
|
|
311
|
-
<script>
|
|
312
|
-
/* eslint-disable no-alert, no-console */
|
|
313
|
-
import Vue from "vue";
|
|
314
|
-
import OpacityControls from "./OpacityControls";
|
|
315
|
-
import ScaffoldTooltip from "./ScaffoldTooltip";
|
|
316
|
-
import TreeControls from "./TreeControls";
|
|
317
|
-
import { MapSvgIcon, MapSvgSpriteColor } from "@abi-software/svg-sprite";
|
|
318
|
-
import { findObjectsWithNames,
|
|
319
|
-
import { SearchIndex } from "../scripts/search.js";
|
|
320
|
-
import {
|
|
321
|
-
Button,
|
|
322
|
-
Col,
|
|
323
|
-
Loading,
|
|
324
|
-
Option,
|
|
325
|
-
Popover,
|
|
326
|
-
Row,
|
|
327
|
-
Select,
|
|
328
|
-
Slider,
|
|
329
|
-
TabPane,
|
|
330
|
-
Tabs,
|
|
331
|
-
} from "element-ui";
|
|
332
|
-
import lang from "element-ui/lib/locale/lang/en";
|
|
333
|
-
import locale from "element-ui/lib/locale";
|
|
334
|
-
|
|
335
|
-
locale.use(lang);
|
|
336
|
-
Vue.use(Button);
|
|
337
|
-
Vue.use(Col);
|
|
338
|
-
Vue.use(Loading.directive);
|
|
339
|
-
Vue.use(Option);
|
|
340
|
-
Vue.use(Popover);
|
|
341
|
-
Vue.use(Row);
|
|
342
|
-
Vue.use(Select);
|
|
343
|
-
Vue.use(Slider);
|
|
344
|
-
Vue.use(TabPane);
|
|
345
|
-
Vue.use(Tabs);
|
|
346
|
-
|
|
347
|
-
const OrgansViewer = require("../scripts/organsRenderer").OrgansViewer;
|
|
348
|
-
const EventNotifier = require("../scripts/eventNotifier").EventNotifier;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* A vue component of the scaffold viewer.
|
|
352
|
-
*
|
|
353
|
-
* @requires ./OpacityControls.vue
|
|
354
|
-
* @requires ./TreeControls.vue
|
|
355
|
-
*/
|
|
356
|
-
export default {
|
|
357
|
-
name: "ScaffoldVuer",
|
|
358
|
-
components: {
|
|
359
|
-
MapSvgIcon,
|
|
360
|
-
MapSvgSpriteColor,
|
|
361
|
-
OpacityControls,
|
|
362
|
-
ScaffoldTooltip,
|
|
363
|
-
TreeControls,
|
|
364
|
-
},
|
|
365
|
-
props: {
|
|
366
|
-
/**
|
|
367
|
-
* URL of the zincjs metadata. This value will be ignored if a valid
|
|
368
|
-
* state prop is also provided.
|
|
369
|
-
* If the url needs to be updated with state present, please use
|
|
370
|
-
* the setURL method.
|
|
371
|
-
*/
|
|
372
|
-
url: {
|
|
373
|
-
type: String,
|
|
374
|
-
default: "",
|
|
375
|
-
},
|
|
376
|
-
/**
|
|
377
|
-
* Show the colour control of set to true.
|
|
378
|
-
*/
|
|
379
|
-
showColourPicker: {
|
|
380
|
-
type: Boolean,
|
|
381
|
-
default: false,
|
|
382
|
-
},
|
|
383
|
-
/**
|
|
384
|
-
* Flag to show/hide the UI.
|
|
385
|
-
*/
|
|
386
|
-
displayUI: {
|
|
387
|
-
type: Boolean,
|
|
388
|
-
default: true,
|
|
389
|
-
},
|
|
390
|
-
/**
|
|
391
|
-
* Display all graphics at start.
|
|
392
|
-
*
|
|
393
|
-
* This setting only works when traditional is set to false.
|
|
394
|
-
*/
|
|
395
|
-
displayAtStartUp: {
|
|
396
|
-
type: Boolean,
|
|
397
|
-
default: true,
|
|
398
|
-
},
|
|
399
|
-
/**
|
|
400
|
-
* Use for toggling the help tooltips.
|
|
401
|
-
*/
|
|
402
|
-
helpMode: {
|
|
403
|
-
type: Boolean,
|
|
404
|
-
default: false,
|
|
405
|
-
},
|
|
406
|
-
/**
|
|
407
|
-
* Use for show/display beta warning icon.
|
|
408
|
-
*/
|
|
409
|
-
displayWarning: {
|
|
410
|
-
type: Boolean,
|
|
411
|
-
default: true,
|
|
412
|
-
},
|
|
413
|
-
/**
|
|
414
|
-
* Warning message for the hovered over text
|
|
415
|
-
* on the warning icon.
|
|
416
|
-
*/
|
|
417
|
-
warningMessage: {
|
|
418
|
-
type: String,
|
|
419
|
-
default: "Beta feature - under active development",
|
|
420
|
-
},
|
|
421
|
-
displayLatestChanges: {
|
|
422
|
-
type: Boolean,
|
|
423
|
-
default: false,
|
|
424
|
-
},
|
|
425
|
-
latestChangesMessage: {
|
|
426
|
-
type: String,
|
|
427
|
-
default: "New feature - Local search is now available",
|
|
428
|
-
},
|
|
429
|
-
/**
|
|
430
|
-
* Show/hide pickable markers for regions.
|
|
431
|
-
*/
|
|
432
|
-
displayMarkers: {
|
|
433
|
-
type: Boolean,
|
|
434
|
-
default: false,
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
{ value: false },
|
|
542
|
-
{ value: false },
|
|
543
|
-
{ value: false },
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
},
|
|
607
|
-
immediate: true,
|
|
608
|
-
},
|
|
609
|
-
|
|
610
|
-
handler: function (
|
|
611
|
-
if (
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
},
|
|
622
|
-
|
|
623
|
-
handler: function (
|
|
624
|
-
this.
|
|
625
|
-
},
|
|
626
|
-
immediate: true,
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
},
|
|
655
|
-
|
|
656
|
-
this.
|
|
657
|
-
},
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
this
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
this.
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
this.$
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
this.$module.
|
|
706
|
-
.
|
|
707
|
-
.
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
this
|
|
716
|
-
|
|
717
|
-
);
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
},
|
|
729
|
-
/**
|
|
730
|
-
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
this.
|
|
738
|
-
|
|
739
|
-
this.
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
*
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
this
|
|
772
|
-
|
|
773
|
-
},
|
|
774
|
-
/**
|
|
775
|
-
* Function to
|
|
776
|
-
*
|
|
777
|
-
*
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
if (this.$
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
},
|
|
794
|
-
/**
|
|
795
|
-
* Function
|
|
796
|
-
*
|
|
797
|
-
*
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
this
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
if (
|
|
946
|
-
if (
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
this.
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
*
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
/**
|
|
1062
|
-
*
|
|
1063
|
-
*
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
*
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
return false;
|
|
1228
|
-
},
|
|
1229
|
-
/**
|
|
1230
|
-
*
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
this.
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
this
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
this.$module.
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
*
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
return this.$
|
|
1345
|
-
},
|
|
1346
|
-
/**
|
|
1347
|
-
*
|
|
1348
|
-
*
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
if (
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
this.
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
*
|
|
1403
|
-
*/
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
this.
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
@
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
.
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
.
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
.
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
::v-deep .
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
.
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
.
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
border-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
height:
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
.
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
border:
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
.
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="scaffoldContainer"
|
|
4
|
+
v-loading="loading"
|
|
5
|
+
class="scaffold-container"
|
|
6
|
+
element-loading-text="Loading..."
|
|
7
|
+
element-loading-spinner="el-icon-loading"
|
|
8
|
+
element-loading-background="rgba(0, 0, 0, 0.3)"
|
|
9
|
+
>
|
|
10
|
+
<map-svg-sprite-color />
|
|
11
|
+
<scaffold-tooltip
|
|
12
|
+
:label="tData.label"
|
|
13
|
+
:region="tData.region"
|
|
14
|
+
:visible="tData.visible"
|
|
15
|
+
:x="tData.x"
|
|
16
|
+
:y="tData.y"
|
|
17
|
+
/>
|
|
18
|
+
<div
|
|
19
|
+
id="organsDisplayArea"
|
|
20
|
+
ref="display"
|
|
21
|
+
tabindex="-1"
|
|
22
|
+
style="height: 100%; width: 100%"
|
|
23
|
+
@keydown.66="backgroundChangeCallback"
|
|
24
|
+
/>
|
|
25
|
+
<div v-show="displayUI && !isTransitioning">
|
|
26
|
+
<el-popover
|
|
27
|
+
v-if="displayWarning"
|
|
28
|
+
ref="warningPopover"
|
|
29
|
+
v-model="hoverVisibilities[6].value"
|
|
30
|
+
:content="warningMessage"
|
|
31
|
+
placement="right"
|
|
32
|
+
:append-to-body="false"
|
|
33
|
+
trigger="manual"
|
|
34
|
+
popper-class="scaffold-popper message-popper right-popper non-selectable"
|
|
35
|
+
/>
|
|
36
|
+
<i
|
|
37
|
+
v-if="displayWarning"
|
|
38
|
+
v-popover:warningPopover
|
|
39
|
+
class="el-icon-warning message-icon warning-icon"
|
|
40
|
+
@mouseover="showHelpText(6)"
|
|
41
|
+
@mouseout="hideHelpText(6)"
|
|
42
|
+
>
|
|
43
|
+
<span class="message-text">Beta</span>
|
|
44
|
+
</i>
|
|
45
|
+
<el-popover
|
|
46
|
+
v-if="displayLatestChanges"
|
|
47
|
+
ref="latestChangesPopover"
|
|
48
|
+
v-model="hoverVisibilities[7].value"
|
|
49
|
+
:content="latestChangesMessage"
|
|
50
|
+
placement="right"
|
|
51
|
+
:append-to-body="false"
|
|
52
|
+
trigger="manual"
|
|
53
|
+
popper-class="scaffold-popper message-popper right-popper non-selectable"
|
|
54
|
+
/>
|
|
55
|
+
<i
|
|
56
|
+
v-if="displayLatestChanges && latestChangesMessage"
|
|
57
|
+
v-popover:latestChangesPopover
|
|
58
|
+
class="el-icon-warning message-icon latest-changesicon"
|
|
59
|
+
@mouseover="showHelpText(7)"
|
|
60
|
+
@mouseout="hideHelpText(7)"
|
|
61
|
+
>
|
|
62
|
+
<span class="message-text">What's new?</span>
|
|
63
|
+
</i>
|
|
64
|
+
<el-popover
|
|
65
|
+
ref="checkBoxPopover"
|
|
66
|
+
v-model="hoverVisibilities[5].value"
|
|
67
|
+
content="Change region visibility"
|
|
68
|
+
placement="right"
|
|
69
|
+
:append-to-body="false"
|
|
70
|
+
trigger="manual"
|
|
71
|
+
popper-class="scaffold-popper right-popper non-selectable"
|
|
72
|
+
/>
|
|
73
|
+
<tree-controls
|
|
74
|
+
ref="treeControls"
|
|
75
|
+
v-popover:checkBoxPopover
|
|
76
|
+
:help-mode="helpMode"
|
|
77
|
+
:isReady="isReady"
|
|
78
|
+
:show-colour-picker="showColourPicker"
|
|
79
|
+
@object-selected="objectSelected"
|
|
80
|
+
@object-hovered="objectHovered"
|
|
81
|
+
@drawer-toggled="drawerToggled"
|
|
82
|
+
/>
|
|
83
|
+
<div class="opacity-box">
|
|
84
|
+
<opacity-controls ref="opacityControl" />
|
|
85
|
+
</div>
|
|
86
|
+
<el-popover
|
|
87
|
+
v-if="sceneData.timeVarying"
|
|
88
|
+
ref="sliderPopover"
|
|
89
|
+
v-model="hoverVisibilities[4].value"
|
|
90
|
+
content="Move the slider to animate the region"
|
|
91
|
+
placement="top"
|
|
92
|
+
:append-to-body="false"
|
|
93
|
+
trigger="manual"
|
|
94
|
+
popper-class="scaffold-popper top-popper non-selectable"
|
|
95
|
+
/>
|
|
96
|
+
<div
|
|
97
|
+
v-if="sceneData.timeVarying"
|
|
98
|
+
v-popover:sliderPopover
|
|
99
|
+
class="time-slider-container"
|
|
100
|
+
:class="[minimisedSlider ? 'minimised' : '', sliderPosition]"
|
|
101
|
+
>
|
|
102
|
+
<el-tabs type="card">
|
|
103
|
+
<el-tab-pane label="Animate scaffold">
|
|
104
|
+
<el-row class="tab-content">
|
|
105
|
+
<map-svg-icon
|
|
106
|
+
v-if="isPlaying"
|
|
107
|
+
icon="pause"
|
|
108
|
+
class="icon-button video-button"
|
|
109
|
+
@click.native="play(false)"
|
|
110
|
+
/>
|
|
111
|
+
<map-svg-icon
|
|
112
|
+
v-else
|
|
113
|
+
icon="play"
|
|
114
|
+
class="video-button icon-button"
|
|
115
|
+
@click.native="play(true)"
|
|
116
|
+
/>
|
|
117
|
+
<el-slider
|
|
118
|
+
:min="0"
|
|
119
|
+
:max="timeMax"
|
|
120
|
+
:value="(sceneData.currentTime / 100) * timeMax"
|
|
121
|
+
:step="0.1"
|
|
122
|
+
tooltip-class="time-slider-tooltip"
|
|
123
|
+
class="slider"
|
|
124
|
+
:format-tooltip="formatTooltip"
|
|
125
|
+
:marks="timeStamps"
|
|
126
|
+
@input="timeChange($event)"
|
|
127
|
+
/>
|
|
128
|
+
</el-row>
|
|
129
|
+
</el-tab-pane>
|
|
130
|
+
<el-tab-pane label="Animation data">
|
|
131
|
+
<el-row class="tab-content">
|
|
132
|
+
<div class="animation-data">
|
|
133
|
+
Original duration:
|
|
134
|
+
<div class="purple">
|
|
135
|
+
{{ orginalDuration }}
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="animation-data">
|
|
139
|
+
Animation duration:
|
|
140
|
+
<div class="purple">
|
|
141
|
+
{{ animateDuration }}
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="animation-data">
|
|
145
|
+
Playback speed
|
|
146
|
+
<el-select
|
|
147
|
+
:popper-append-to-body="true"
|
|
148
|
+
:value="currentSpeed"
|
|
149
|
+
placeholder="Select"
|
|
150
|
+
class="select-box"
|
|
151
|
+
popper-class="scaffold_viewer_dropdown"
|
|
152
|
+
@change="speedChanged($event)"
|
|
153
|
+
>
|
|
154
|
+
<el-option
|
|
155
|
+
v-for="item in playSpeed"
|
|
156
|
+
:key="item.value"
|
|
157
|
+
:label="item.label"
|
|
158
|
+
:value="item.value"
|
|
159
|
+
/>
|
|
160
|
+
</el-select>
|
|
161
|
+
</div>
|
|
162
|
+
</el-row>
|
|
163
|
+
</el-tab-pane>
|
|
164
|
+
</el-tabs>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="bottom-right-control">
|
|
167
|
+
<el-popover
|
|
168
|
+
v-model="hoverVisibilities[0].value"
|
|
169
|
+
content="Zoom in"
|
|
170
|
+
placement="left"
|
|
171
|
+
:append-to-body="false"
|
|
172
|
+
trigger="manual"
|
|
173
|
+
popper-class="scaffold-popper left-popper non-selectable"
|
|
174
|
+
>
|
|
175
|
+
<map-svg-icon
|
|
176
|
+
slot="reference"
|
|
177
|
+
icon="zoomIn"
|
|
178
|
+
class="icon-button zoomIn"
|
|
179
|
+
@click.native="zoomIn()"
|
|
180
|
+
@mouseover.native="showHelpText(0)"
|
|
181
|
+
@mouseout.native="hideHelpText(0)"
|
|
182
|
+
/>
|
|
183
|
+
</el-popover>
|
|
184
|
+
<el-popover
|
|
185
|
+
v-model="hoverVisibilities[1].value"
|
|
186
|
+
content="Zoom out"
|
|
187
|
+
placement="top-end"
|
|
188
|
+
:append-to-body="false"
|
|
189
|
+
trigger="manual"
|
|
190
|
+
popper-class="scaffold-popper popper-zoomout non-selectable"
|
|
191
|
+
>
|
|
192
|
+
<map-svg-icon
|
|
193
|
+
slot="reference"
|
|
194
|
+
icon="zoomOut"
|
|
195
|
+
class="icon-button zoomOut"
|
|
196
|
+
@click.native="zoomOut()"
|
|
197
|
+
@mouseover.native="showHelpText(1)"
|
|
198
|
+
@mouseout.native="hideHelpText(1)"
|
|
199
|
+
/>
|
|
200
|
+
</el-popover>
|
|
201
|
+
<el-popover
|
|
202
|
+
v-model="hoverVisibilities[2].value"
|
|
203
|
+
placement="top"
|
|
204
|
+
:append-to-body="false"
|
|
205
|
+
trigger="manual"
|
|
206
|
+
popper-class="scaffold-popper non-selectable"
|
|
207
|
+
>
|
|
208
|
+
<div>
|
|
209
|
+
Fit to
|
|
210
|
+
<br />
|
|
211
|
+
window
|
|
212
|
+
</div>
|
|
213
|
+
<map-svg-icon
|
|
214
|
+
slot="reference"
|
|
215
|
+
icon="fitWindow"
|
|
216
|
+
class="icon-button fitWindow"
|
|
217
|
+
@click.native="fitWindow()"
|
|
218
|
+
@mouseover.native="showHelpText(2)"
|
|
219
|
+
@mouseout.native="hideHelpText(2)"
|
|
220
|
+
/>
|
|
221
|
+
</el-popover>
|
|
222
|
+
</div>
|
|
223
|
+
<el-popover
|
|
224
|
+
ref="open-map-popover"
|
|
225
|
+
placement="top-start"
|
|
226
|
+
width="128"
|
|
227
|
+
:append-to-body="false"
|
|
228
|
+
trigger="click"
|
|
229
|
+
popper-class="open-map-popper"
|
|
230
|
+
>
|
|
231
|
+
<el-row v-for="item in openMapOptions" :key="item.key">
|
|
232
|
+
<el-button
|
|
233
|
+
type="primary"
|
|
234
|
+
plain
|
|
235
|
+
@click="$emit('open-map', item.key)"
|
|
236
|
+
>
|
|
237
|
+
{{ item.display }}
|
|
238
|
+
</el-button>
|
|
239
|
+
</el-row>
|
|
240
|
+
</el-popover>
|
|
241
|
+
<el-popover
|
|
242
|
+
ref="backgroundPopover"
|
|
243
|
+
placement="top-start"
|
|
244
|
+
width="128"
|
|
245
|
+
:append-to-body="false"
|
|
246
|
+
trigger="click"
|
|
247
|
+
popper-class="background-popper non-selectable"
|
|
248
|
+
>
|
|
249
|
+
<el-row class="backgroundText"> Change background </el-row>
|
|
250
|
+
<el-row class="backgroundChooser">
|
|
251
|
+
<div
|
|
252
|
+
v-for="item in availableBackground"
|
|
253
|
+
:key="item"
|
|
254
|
+
:class="[
|
|
255
|
+
'backgroundChoice',
|
|
256
|
+
item,
|
|
257
|
+
item == currentBackground ? 'active' : '',
|
|
258
|
+
]"
|
|
259
|
+
@click="backgroundChangeCallback(item)"
|
|
260
|
+
/>
|
|
261
|
+
</el-row>
|
|
262
|
+
</el-popover>
|
|
263
|
+
<div
|
|
264
|
+
class="settings-group"
|
|
265
|
+
:class="{ open: drawerOpen, close: !drawerOpen }"
|
|
266
|
+
>
|
|
267
|
+
<el-row>
|
|
268
|
+
<el-popover
|
|
269
|
+
v-model="hoverVisibilities[8].value"
|
|
270
|
+
content="Open new map"
|
|
271
|
+
placement="right"
|
|
272
|
+
:append-to-body="false"
|
|
273
|
+
trigger="manual"
|
|
274
|
+
popper-class="scaffold-popper right-popper non-selectable"
|
|
275
|
+
>
|
|
276
|
+
<map-svg-icon
|
|
277
|
+
v-if="enableOpenMapUI && openMapOptions.length > 0"
|
|
278
|
+
slot="reference"
|
|
279
|
+
v-popover:open-map-popover
|
|
280
|
+
icon="openMap"
|
|
281
|
+
class="icon-button"
|
|
282
|
+
@mouseover.native="showHelpText(8)"
|
|
283
|
+
@mouseout.native="hideHelpText(8)"
|
|
284
|
+
/>
|
|
285
|
+
</el-popover>
|
|
286
|
+
</el-row>
|
|
287
|
+
<el-row>
|
|
288
|
+
<el-popover
|
|
289
|
+
v-model="hoverVisibilities[3].value"
|
|
290
|
+
content="Change background color"
|
|
291
|
+
placement="right"
|
|
292
|
+
:append-to-body="false"
|
|
293
|
+
trigger="manual"
|
|
294
|
+
popper-class="scaffold-popper right-popper non-selectable"
|
|
295
|
+
>
|
|
296
|
+
<map-svg-icon
|
|
297
|
+
slot="reference"
|
|
298
|
+
v-popover:backgroundPopover
|
|
299
|
+
icon="changeBckgd"
|
|
300
|
+
class="icon-button"
|
|
301
|
+
@mouseover.native="showHelpText(3)"
|
|
302
|
+
@mouseout.native="hideHelpText(3)"
|
|
303
|
+
/>
|
|
304
|
+
</el-popover>
|
|
305
|
+
</el-row>
|
|
306
|
+
</div>
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
309
|
+
</template>
|
|
310
|
+
|
|
311
|
+
<script>
|
|
312
|
+
/* eslint-disable no-alert, no-console */
|
|
313
|
+
import Vue from "vue";
|
|
314
|
+
import OpacityControls from "./OpacityControls";
|
|
315
|
+
import ScaffoldTooltip from "./ScaffoldTooltip";
|
|
316
|
+
import TreeControls from "./TreeControls";
|
|
317
|
+
import { MapSvgIcon, MapSvgSpriteColor } from "@abi-software/svg-sprite";
|
|
318
|
+
import { findObjectsWithNames, getObjectsFromAnnotations } from "../scripts/utilities.js";
|
|
319
|
+
import { SearchIndex } from "../scripts/search.js";
|
|
320
|
+
import {
|
|
321
|
+
Button,
|
|
322
|
+
Col,
|
|
323
|
+
Loading,
|
|
324
|
+
Option,
|
|
325
|
+
Popover,
|
|
326
|
+
Row,
|
|
327
|
+
Select,
|
|
328
|
+
Slider,
|
|
329
|
+
TabPane,
|
|
330
|
+
Tabs,
|
|
331
|
+
} from "element-ui";
|
|
332
|
+
import lang from "element-ui/lib/locale/lang/en";
|
|
333
|
+
import locale from "element-ui/lib/locale";
|
|
334
|
+
|
|
335
|
+
locale.use(lang);
|
|
336
|
+
Vue.use(Button);
|
|
337
|
+
Vue.use(Col);
|
|
338
|
+
Vue.use(Loading.directive);
|
|
339
|
+
Vue.use(Option);
|
|
340
|
+
Vue.use(Popover);
|
|
341
|
+
Vue.use(Row);
|
|
342
|
+
Vue.use(Select);
|
|
343
|
+
Vue.use(Slider);
|
|
344
|
+
Vue.use(TabPane);
|
|
345
|
+
Vue.use(Tabs);
|
|
346
|
+
|
|
347
|
+
const OrgansViewer = require("../scripts/organsRenderer").OrgansViewer;
|
|
348
|
+
const EventNotifier = require("../scripts/eventNotifier").EventNotifier;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* A vue component of the scaffold viewer.
|
|
352
|
+
*
|
|
353
|
+
* @requires ./OpacityControls.vue
|
|
354
|
+
* @requires ./TreeControls.vue
|
|
355
|
+
*/
|
|
356
|
+
export default {
|
|
357
|
+
name: "ScaffoldVuer",
|
|
358
|
+
components: {
|
|
359
|
+
MapSvgIcon,
|
|
360
|
+
MapSvgSpriteColor,
|
|
361
|
+
OpacityControls,
|
|
362
|
+
ScaffoldTooltip,
|
|
363
|
+
TreeControls,
|
|
364
|
+
},
|
|
365
|
+
props: {
|
|
366
|
+
/**
|
|
367
|
+
* URL of the zincjs metadata. This value will be ignored if a valid
|
|
368
|
+
* state prop is also provided.
|
|
369
|
+
* If the url needs to be updated with state present, please use
|
|
370
|
+
* the setURL method.
|
|
371
|
+
*/
|
|
372
|
+
url: {
|
|
373
|
+
type: String,
|
|
374
|
+
default: "",
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
* Show the colour control of set to true.
|
|
378
|
+
*/
|
|
379
|
+
showColourPicker: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
default: false,
|
|
382
|
+
},
|
|
383
|
+
/**
|
|
384
|
+
* Flag to show/hide the UI.
|
|
385
|
+
*/
|
|
386
|
+
displayUI: {
|
|
387
|
+
type: Boolean,
|
|
388
|
+
default: true,
|
|
389
|
+
},
|
|
390
|
+
/**
|
|
391
|
+
* Display all graphics at start.
|
|
392
|
+
*
|
|
393
|
+
* This setting only works when traditional is set to false.
|
|
394
|
+
*/
|
|
395
|
+
displayAtStartUp: {
|
|
396
|
+
type: Boolean,
|
|
397
|
+
default: true,
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* Use for toggling the help tooltips.
|
|
401
|
+
*/
|
|
402
|
+
helpMode: {
|
|
403
|
+
type: Boolean,
|
|
404
|
+
default: false,
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
* Use for show/display beta warning icon.
|
|
408
|
+
*/
|
|
409
|
+
displayWarning: {
|
|
410
|
+
type: Boolean,
|
|
411
|
+
default: true,
|
|
412
|
+
},
|
|
413
|
+
/**
|
|
414
|
+
* Warning message for the hovered over text
|
|
415
|
+
* on the warning icon.
|
|
416
|
+
*/
|
|
417
|
+
warningMessage: {
|
|
418
|
+
type: String,
|
|
419
|
+
default: "Beta feature - under active development",
|
|
420
|
+
},
|
|
421
|
+
displayLatestChanges: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
default: false,
|
|
424
|
+
},
|
|
425
|
+
latestChangesMessage: {
|
|
426
|
+
type: String,
|
|
427
|
+
default: "New feature - Local search is now available",
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
* Show/hide pickable markers for regions.
|
|
431
|
+
*/
|
|
432
|
+
displayMarkers: {
|
|
433
|
+
type: Boolean,
|
|
434
|
+
default: false,
|
|
435
|
+
},
|
|
436
|
+
markerLabels : {
|
|
437
|
+
type: Array,
|
|
438
|
+
default: function () {
|
|
439
|
+
return []
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
/**
|
|
443
|
+
* Show/hide minimap.
|
|
444
|
+
*/
|
|
445
|
+
displayMinimap: {
|
|
446
|
+
type: Boolean,
|
|
447
|
+
default: false,
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
* Format of the input URL
|
|
451
|
+
*/
|
|
452
|
+
format: {
|
|
453
|
+
type: String,
|
|
454
|
+
default: "metadata",
|
|
455
|
+
},
|
|
456
|
+
/**
|
|
457
|
+
* Settings for minimap position, size and alignment.
|
|
458
|
+
*/
|
|
459
|
+
minimapSettings: {
|
|
460
|
+
type: Object,
|
|
461
|
+
default: function () {
|
|
462
|
+
return {
|
|
463
|
+
x_offset: 16,
|
|
464
|
+
y_offset: 16,
|
|
465
|
+
width: 128,
|
|
466
|
+
height: 128,
|
|
467
|
+
align: "top-right",
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
/**
|
|
472
|
+
* Flag to determine rather open map UI should be
|
|
473
|
+
* presented or not.
|
|
474
|
+
*/
|
|
475
|
+
enableOpenMapUI: {
|
|
476
|
+
type: Boolean,
|
|
477
|
+
default: false,
|
|
478
|
+
},
|
|
479
|
+
openMapOptions: {
|
|
480
|
+
type: Array,
|
|
481
|
+
default: function () {
|
|
482
|
+
return [
|
|
483
|
+
{
|
|
484
|
+
display: "Open AC Map",
|
|
485
|
+
key: "AC"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
display: "Open FC Map",
|
|
489
|
+
key: "FC"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
display: "Open 3D Human Map",
|
|
493
|
+
key: "3D"
|
|
494
|
+
},
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
* State containing state of the scaffold.
|
|
500
|
+
*/
|
|
501
|
+
state: {
|
|
502
|
+
type: Object,
|
|
503
|
+
default: undefined,
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
* Optional prop for the name of the region to focus on,
|
|
507
|
+
* this option is ignored if state or viewURL is also provided.
|
|
508
|
+
*/
|
|
509
|
+
region: {
|
|
510
|
+
type: String,
|
|
511
|
+
default: "",
|
|
512
|
+
},
|
|
513
|
+
/**
|
|
514
|
+
* Optional prop for an URL of containing information of a viewport.
|
|
515
|
+
* This option is ignored if state is also provided.
|
|
516
|
+
* It will use the provided URL as base if a relative parth is provided.
|
|
517
|
+
*/
|
|
518
|
+
viewURL: {
|
|
519
|
+
type: String,
|
|
520
|
+
default: "",
|
|
521
|
+
},
|
|
522
|
+
/**
|
|
523
|
+
* Settings for turning on/off rendering
|
|
524
|
+
*/
|
|
525
|
+
render: {
|
|
526
|
+
type: Boolean,
|
|
527
|
+
default: true,
|
|
528
|
+
},
|
|
529
|
+
},
|
|
530
|
+
data: function () {
|
|
531
|
+
return {
|
|
532
|
+
sceneData: this.$module.sceneData,
|
|
533
|
+
isPlaying: false,
|
|
534
|
+
isReady: false,
|
|
535
|
+
/**
|
|
536
|
+
* This is set when scene is transitioning.
|
|
537
|
+
*/
|
|
538
|
+
isTransitioning: false,
|
|
539
|
+
tooltipAppendToBody: false,
|
|
540
|
+
hoverVisibilities: [
|
|
541
|
+
{ value: false },
|
|
542
|
+
{ value: false },
|
|
543
|
+
{ value: false },
|
|
544
|
+
{ value: false },
|
|
545
|
+
{ value: false },
|
|
546
|
+
{ value: false },
|
|
547
|
+
{ value: false },
|
|
548
|
+
{ value: false },
|
|
549
|
+
{ value: false },
|
|
550
|
+
],
|
|
551
|
+
inHelp: false,
|
|
552
|
+
loading: false,
|
|
553
|
+
duration: 3000,
|
|
554
|
+
drawerOpen: true,
|
|
555
|
+
currentBackground: "white",
|
|
556
|
+
availableBackground: ["white", "lightskyblue", "black"],
|
|
557
|
+
minimisedSlider: false,
|
|
558
|
+
sliderPosition: "",
|
|
559
|
+
timeMax: 100,
|
|
560
|
+
orginalDuration: "",
|
|
561
|
+
animateDuration: "6secs",
|
|
562
|
+
playSpeed: [
|
|
563
|
+
{
|
|
564
|
+
value: 0.1,
|
|
565
|
+
label: "0.1x",
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
value: 0.5,
|
|
569
|
+
label: "0.5x",
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
value: 1,
|
|
573
|
+
label: "1x",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
value: 2,
|
|
577
|
+
label: "2x",
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
value: 5,
|
|
581
|
+
label: "5x",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
value: 10,
|
|
585
|
+
label: "10x",
|
|
586
|
+
},
|
|
587
|
+
],
|
|
588
|
+
currentSpeed: 1,
|
|
589
|
+
timeStamps: {},
|
|
590
|
+
defaultCheckedKeys: [],
|
|
591
|
+
tData: {
|
|
592
|
+
label: "",
|
|
593
|
+
region: "",
|
|
594
|
+
visible: false,
|
|
595
|
+
x: 200,
|
|
596
|
+
y: 200,
|
|
597
|
+
},
|
|
598
|
+
fileFormat: "metadata",
|
|
599
|
+
previousMarkerLabels: [],
|
|
600
|
+
};
|
|
601
|
+
},
|
|
602
|
+
watch: {
|
|
603
|
+
format: {
|
|
604
|
+
handler: function (value) {
|
|
605
|
+
this.fileFormat = value;
|
|
606
|
+
},
|
|
607
|
+
immediate: true,
|
|
608
|
+
},
|
|
609
|
+
url: {
|
|
610
|
+
handler: function (newValue) {
|
|
611
|
+
if (this.state === undefined || this.state.url === undefined)
|
|
612
|
+
this.setURL(newValue);
|
|
613
|
+
},
|
|
614
|
+
immediate: true,
|
|
615
|
+
},
|
|
616
|
+
region: {
|
|
617
|
+
handler: function (region) {
|
|
618
|
+
if (!(this.state || this.viewURL)) this.setFocusedRegion(region);
|
|
619
|
+
},
|
|
620
|
+
immediate: true,
|
|
621
|
+
},
|
|
622
|
+
state: {
|
|
623
|
+
handler: function (state) {
|
|
624
|
+
this.setState(state);
|
|
625
|
+
},
|
|
626
|
+
immediate: true,
|
|
627
|
+
deep: true,
|
|
628
|
+
},
|
|
629
|
+
viewURL: {
|
|
630
|
+
handler: function (viewURL) {
|
|
631
|
+
this.updateViewURL(viewURL);
|
|
632
|
+
},
|
|
633
|
+
immediate: true,
|
|
634
|
+
},
|
|
635
|
+
helpMode: function (val) {
|
|
636
|
+
this.setHelpMode(val);
|
|
637
|
+
},
|
|
638
|
+
displayMarkers: function (val) {
|
|
639
|
+
this.$module.scene.displayMarkers = val;
|
|
640
|
+
//Update pickable objects
|
|
641
|
+
this.$module.scene.forcePickableObjectsUpdate = true;
|
|
642
|
+
},
|
|
643
|
+
displayMinimap: function (val) {
|
|
644
|
+
this.$module.scene.displayMinimap = val;
|
|
645
|
+
},
|
|
646
|
+
"sceneData.currentTime": function () {
|
|
647
|
+
/**
|
|
648
|
+
* Triggers when scene time changes.
|
|
649
|
+
*
|
|
650
|
+
* @property {number} time Current build-in time of scene.
|
|
651
|
+
* of selected object.
|
|
652
|
+
*/
|
|
653
|
+
this.$emit("timeChanged", this.sceneData.currentTime);
|
|
654
|
+
},
|
|
655
|
+
duration: function () {
|
|
656
|
+
this.$module.scene.setDuration(this.duration);
|
|
657
|
+
},
|
|
658
|
+
minimapSettings: {
|
|
659
|
+
deep: true,
|
|
660
|
+
handler: "updateMinimapScissor",
|
|
661
|
+
},
|
|
662
|
+
render: function (val) {
|
|
663
|
+
this.toggleRendering(val);
|
|
664
|
+
},
|
|
665
|
+
markerLabels: function(labels) {
|
|
666
|
+
console.log("marker labels changed", labels)
|
|
667
|
+
this.previousMarkerLabels.forEach((pml)=>{
|
|
668
|
+
this.setMarkerModeForObjectsWithName(pml, "off");
|
|
669
|
+
})
|
|
670
|
+
labels.forEach((l)=>{
|
|
671
|
+
this.setMarkerModeForObjectsWithName(l, "on");
|
|
672
|
+
})
|
|
673
|
+
this.previousMarkerLabels = labels
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
beforeCreate: function () {
|
|
677
|
+
this.$module = new OrgansViewer();
|
|
678
|
+
this.selectedObjects = [];
|
|
679
|
+
this.hoveredObjects = [];
|
|
680
|
+
this.currentBackground = "white";
|
|
681
|
+
this._currentURL = undefined;
|
|
682
|
+
this.availableBackground = ["white", "black", "lightskyblue"];
|
|
683
|
+
this.$_searchIndex = new SearchIndex();
|
|
684
|
+
},
|
|
685
|
+
mounted: function () {
|
|
686
|
+
this.$refs.treeControls.setModule(this.$module);
|
|
687
|
+
let eventNotifier = new EventNotifier();
|
|
688
|
+
eventNotifier.subscribe(this, this.eventNotifierCallback);
|
|
689
|
+
this.$module.addNotifier(eventNotifier);
|
|
690
|
+
this.$module.addOrganPartAddedCallback(this.zincObjectAdded);
|
|
691
|
+
this.$module.initialiseRenderer(this.$refs.display);
|
|
692
|
+
this.toggleRendering(this.render);
|
|
693
|
+
this.ro = new ResizeObserver(this.adjustLayout).observe(
|
|
694
|
+
this.$refs.scaffoldContainer
|
|
695
|
+
);
|
|
696
|
+
this.defaultRate = this.$module.getPlayRate();
|
|
697
|
+
},
|
|
698
|
+
beforeDestroy: function () {
|
|
699
|
+
if (this.ro) this.ro.disconnect();
|
|
700
|
+
this.$module.destroy();
|
|
701
|
+
this.$module = undefined;
|
|
702
|
+
},
|
|
703
|
+
methods: {
|
|
704
|
+
addZincObject: function (zincObject) {
|
|
705
|
+
if (this.$module.scene) {
|
|
706
|
+
this.$module.scene.addZincObject(zincObject);
|
|
707
|
+
this.zincObjectAdded(zincObject);
|
|
708
|
+
if (this.$refs.treeControls) this.$refs.treeControls.zincObjectAdded(zincObject);
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
/**
|
|
712
|
+
* This is called when a new zinc object is read into the scene.
|
|
713
|
+
*/
|
|
714
|
+
zincObjectAdded: function (zincObject) {
|
|
715
|
+
this.loading = false;
|
|
716
|
+
this.$_searchIndex.addZincObject(zincObject, zincObject.uuid);
|
|
717
|
+
this.$emit("zinc-object-added", zincObject);
|
|
718
|
+
},
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
*/
|
|
722
|
+
addRegionsToSearchIndex: function () {
|
|
723
|
+
const rootRegion = this.$module.scene.getRootRegion();
|
|
724
|
+
const regions = rootRegion.getChildRegions(true);
|
|
725
|
+
regions.forEach(region => {
|
|
726
|
+
this.$_searchIndex.addRegion(region, region.uuid);
|
|
727
|
+
});
|
|
728
|
+
},
|
|
729
|
+
/**
|
|
730
|
+
* This is called when Change backgspeedround colour button
|
|
731
|
+
* is pressed an causes the backgrouColornd colour to be changed
|
|
732
|
+
* to one of the three preset colour: white, black and
|
|
733
|
+
* lightskyblue.
|
|
734
|
+
*/
|
|
735
|
+
backgroundChangeCallback: function (colour) {
|
|
736
|
+
this.currentBackground = colour;
|
|
737
|
+
this.$module.zincRenderer
|
|
738
|
+
.getThreeJSRenderer()
|
|
739
|
+
.setClearColor(this.currentBackground, 1);
|
|
740
|
+
},
|
|
741
|
+
/**
|
|
742
|
+
* This is called by captueeScreenshot and after the last render
|
|
743
|
+
* loop, it download a screenshot of the current scene with no UI.
|
|
744
|
+
*/
|
|
745
|
+
captureScreenshotCallback: function () {
|
|
746
|
+
//Remove the callback, only needs to happen once
|
|
747
|
+
this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
748
|
+
this.captureID
|
|
749
|
+
);
|
|
750
|
+
let screenshot = this.$module.zincRenderer
|
|
751
|
+
.getThreeJSRenderer()
|
|
752
|
+
.domElement.toDataURL("image/png");
|
|
753
|
+
let hrefElement = document.createElement("a");
|
|
754
|
+
document.body.append(hrefElement);
|
|
755
|
+
if (!this.captureFilename) hrefElement.download = `screenshot.png`;
|
|
756
|
+
else hrefElement.download = this.captureFilename;
|
|
757
|
+
hrefElement.href = screenshot;
|
|
758
|
+
hrefElement.click();
|
|
759
|
+
hrefElement.remove();
|
|
760
|
+
},
|
|
761
|
+
/**
|
|
762
|
+
* Function for capturing a screenshot of the current rendering.
|
|
763
|
+
*
|
|
764
|
+
* @param {String} filename filename given to the screenshot.
|
|
765
|
+
*
|
|
766
|
+
* @public
|
|
767
|
+
*/
|
|
768
|
+
captureScreenshot: function (filename) {
|
|
769
|
+
this.captureFilename = filename;
|
|
770
|
+
this.captureID = this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
771
|
+
this.captureScreenshotCallback
|
|
772
|
+
);
|
|
773
|
+
},
|
|
774
|
+
/**
|
|
775
|
+
* Function to clear current scene, the tree controls and the search index.
|
|
776
|
+
*
|
|
777
|
+
* @public
|
|
778
|
+
*/
|
|
779
|
+
clearScene: function () {
|
|
780
|
+
if (this.$refs.treeControls) this.$refs.treeControls.clear();
|
|
781
|
+
if (this.$_searchIndex) this.$_searchIndex.removeAll();
|
|
782
|
+
if (this.$module.scene) this.$module.scene.clearAll();
|
|
783
|
+
},
|
|
784
|
+
formatTooltip(val) {
|
|
785
|
+
if (this.timeMax >= 1000) {
|
|
786
|
+
if (val) {
|
|
787
|
+
let sec = ((val % 60000) / 1000).toFixed(2) + "s";
|
|
788
|
+
let min = val > 60000 ? (val / 60000).toFixed(0) + "m " : "";
|
|
789
|
+
return min + sec;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return val ? val.toFixed(2) + " ms" : "0 ms";
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* Function to reset the view to default.
|
|
796
|
+
* Also called when the associated button is pressed.
|
|
797
|
+
*
|
|
798
|
+
* @public
|
|
799
|
+
*/
|
|
800
|
+
fitWindow: function () {
|
|
801
|
+
if (this.$module.scene) {
|
|
802
|
+
this.$module.scene.viewAll();
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
* Function to zoom in.
|
|
807
|
+
* Also called when the associated button is pressed.
|
|
808
|
+
*
|
|
809
|
+
* @public
|
|
810
|
+
*/
|
|
811
|
+
zoomIn: function () {
|
|
812
|
+
if (this.$module.scene) {
|
|
813
|
+
this.$module.scene.changeZoomByScrollRateUnit(-1);
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
/**
|
|
817
|
+
* Function to zoom out.
|
|
818
|
+
* Also called when the associated button is pressed.
|
|
819
|
+
*
|
|
820
|
+
* @public
|
|
821
|
+
*/
|
|
822
|
+
zoomOut: function () {
|
|
823
|
+
if (this.$module.scene) {
|
|
824
|
+
this.$module.scene.changeZoomByScrollRateUnit(1);
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
/**
|
|
828
|
+
* Function to change the current play speed.
|
|
829
|
+
*
|
|
830
|
+
* @public
|
|
831
|
+
*/
|
|
832
|
+
speedChanged: function (speed) {
|
|
833
|
+
this.currentSpeed = speed;
|
|
834
|
+
this.$module.setPlayRate(this.defaultRate * this.currentSpeed);
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
* Function used to stop the free spin
|
|
838
|
+
*
|
|
839
|
+
* @public
|
|
840
|
+
*/
|
|
841
|
+
stopFreeSpin: function () {
|
|
842
|
+
let cameracontrol = this.$module.scene.getZincCameraControls();
|
|
843
|
+
cameracontrol.stopAutoTumble();
|
|
844
|
+
this.isTransitioning = false;
|
|
845
|
+
},
|
|
846
|
+
findObjectsWithGroupName: function (name) {
|
|
847
|
+
let objects = [];
|
|
848
|
+
if (name && name != "" && this.$module.scene) {
|
|
849
|
+
objects = this.$module.scene.findObjectsWithGroupName(name);
|
|
850
|
+
}
|
|
851
|
+
return objects;
|
|
852
|
+
},
|
|
853
|
+
/**
|
|
854
|
+
* Focus on named region
|
|
855
|
+
*/
|
|
856
|
+
viewRegion: function (names) {
|
|
857
|
+
const rootRegion = this.$module.scene.getRootRegion();
|
|
858
|
+
const groups = Array.isArray(names) ? names : [names];
|
|
859
|
+
const objects = findObjectsWithNames(rootRegion, groups, "", true);
|
|
860
|
+
let box = this.$module.scene.getBoundingBoxOfZincObjects(objects);
|
|
861
|
+
if (box) {
|
|
862
|
+
if (this.$module.isSyncControl()) {
|
|
863
|
+
this.$module.setSyncControlZoomToBox(box);
|
|
864
|
+
} else {
|
|
865
|
+
const dist =
|
|
866
|
+
this.$module.scene.camera.far - this.$module.scene.camera.near;
|
|
867
|
+
this.$module.scene.viewAllWithBoundingBox(box);
|
|
868
|
+
this.$module.scene.camera.far = this.$module.scene.camera.near + dist;
|
|
869
|
+
this.$module.scene.camera.updateProjectionMatrix();
|
|
870
|
+
}
|
|
871
|
+
return true;
|
|
872
|
+
}
|
|
873
|
+
return false;
|
|
874
|
+
},
|
|
875
|
+
setFocusedRegion: function (name) {
|
|
876
|
+
if (name) {
|
|
877
|
+
if (this.isReady) {
|
|
878
|
+
this.viewRegion(name);
|
|
879
|
+
} else {
|
|
880
|
+
this.$module.setFinishDownloadCallback(
|
|
881
|
+
this.setURLFinishCallback({ region: name })
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
updateViewURL: function (viewURL) {
|
|
887
|
+
if (viewURL) {
|
|
888
|
+
if (this.isReady) {
|
|
889
|
+
const url = new URL(viewURL, this.url);
|
|
890
|
+
this.$module.scene.loadViewURL(url);
|
|
891
|
+
} else {
|
|
892
|
+
this.$module.setFinishDownloadCallback(
|
|
893
|
+
this.setURLFinishCallback({ viewURL: viewURL })
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
getRendererInfo: function () {
|
|
899
|
+
if (this.$module.zincRenderer) {
|
|
900
|
+
return this.$module.zincRenderer.getThreeJSRenderer().info;
|
|
901
|
+
}
|
|
902
|
+
return undefined;
|
|
903
|
+
},
|
|
904
|
+
/**
|
|
905
|
+
* Function used to rotate the scene.
|
|
906
|
+
* Also called when the associated button is pressed.
|
|
907
|
+
*
|
|
908
|
+
* @public
|
|
909
|
+
*/
|
|
910
|
+
freeSpin: function () {
|
|
911
|
+
if (this.$module.scene) {
|
|
912
|
+
let cameracontrol = this.$module.scene.getZincCameraControls();
|
|
913
|
+
this.isTransitioning = true;
|
|
914
|
+
cameracontrol.enableAutoTumble();
|
|
915
|
+
cameracontrol.autoTumble([1.0, 0.0], Math.PI, true);
|
|
916
|
+
setTimeout(this.stopFreeSpin, 4000);
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
/**
|
|
920
|
+
* Callback when a region is selected/highlighted.
|
|
921
|
+
* It will also update other controls.
|
|
922
|
+
*
|
|
923
|
+
*/
|
|
924
|
+
eventNotifierCallback: function (event) {
|
|
925
|
+
const names = [];
|
|
926
|
+
let zincObjects = [];
|
|
927
|
+
const region = undefined;
|
|
928
|
+
if (event.eventType == 1 || event.eventType == 2) {
|
|
929
|
+
event.identifiers.forEach((identifier) => {
|
|
930
|
+
if (identifier) {
|
|
931
|
+
let id = identifier.data.id
|
|
932
|
+
? identifier.data.id
|
|
933
|
+
: identifier.data.group;
|
|
934
|
+
names.push(id);
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
zincObjects = event.zincObjects;
|
|
938
|
+
}
|
|
939
|
+
/*
|
|
940
|
+
* Event Type 1: Selected
|
|
941
|
+
* Event Type 2: Highlighted
|
|
942
|
+
* Event Type 1: Move
|
|
943
|
+
*/
|
|
944
|
+
if (event.eventType == 1) {
|
|
945
|
+
if (this.$refs.treeControls) {
|
|
946
|
+
if (names.length > 0) {
|
|
947
|
+
//this.$refs.treeControls.changeActiveByNames(names, region, false);
|
|
948
|
+
this.$refs.treeControls.updateActiveUI(zincObjects);
|
|
949
|
+
} else {
|
|
950
|
+
this.hideRegionTooltip();
|
|
951
|
+
this.$refs.treeControls.removeActive(true);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
// Triggers when an object has been selected
|
|
955
|
+
this.$emit("scaffold-selected", event.identifiers);
|
|
956
|
+
} else if (event.eventType == 2) {
|
|
957
|
+
if (this.selectedObjects.length === 0) {
|
|
958
|
+
this.hideRegionTooltip();
|
|
959
|
+
// const offsets = this.$refs.scaffoldContainer.getBoundingClientRect();
|
|
960
|
+
if (this.$refs.treeControls) {
|
|
961
|
+
if (names.length > 0) {
|
|
962
|
+
//this.$refs.treeControls.changeHoverByNames(names, region, false);
|
|
963
|
+
this.$refs.treeControls.updateHoverUI(zincObjects);
|
|
964
|
+
} else {
|
|
965
|
+
this.$refs.treeControls.removeHover(true);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
if (event.identifiers.length > 0 && event.identifiers[0]) {
|
|
969
|
+
let id = event.identifiers[0].data.id
|
|
970
|
+
? event.identifiers[0].data.id
|
|
971
|
+
: event.identifiers[0].data.group;
|
|
972
|
+
if (event.identifiers[0].coords) {
|
|
973
|
+
this.tData.visible = true;
|
|
974
|
+
this.tData.label = id;
|
|
975
|
+
if (event.identifiers[0].data.region)
|
|
976
|
+
this.tData.region = event.identifiers[0].data.region;
|
|
977
|
+
else this.tData.region = undefined;
|
|
978
|
+
this.tData.x = event.identifiers[0].coords.x;
|
|
979
|
+
this.tData.y = event.identifiers[0].coords.y;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
// Triggers when an object has been highlighted
|
|
983
|
+
this.$emit("scaffold-highlighted", event.identifiers);
|
|
984
|
+
}
|
|
985
|
+
} else if (event.eventType == 3) {
|
|
986
|
+
//MOVE
|
|
987
|
+
if (event.identifiers.length > 0 && event.identifiers[0]) {
|
|
988
|
+
if (event.identifiers[0].coords) {
|
|
989
|
+
const offsets =
|
|
990
|
+
this.$refs.scaffoldContainer.getBoundingClientRect();
|
|
991
|
+
this.tData.x = event.identifiers[0].coords.x - offsets.left;
|
|
992
|
+
this.tData.y = event.identifiers[0].coords.y - offsets.top;
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
* Get the coordinates of the current selected region.
|
|
999
|
+
*
|
|
1000
|
+
* @public
|
|
1001
|
+
*/
|
|
1002
|
+
getCoordinatesOfSelected: function () {
|
|
1003
|
+
if (this.selectedObjects && this.selectedObjects.length > 0) {
|
|
1004
|
+
return this.$module.scene.getObjectsScreenXY(this.selectedObjects);
|
|
1005
|
+
}
|
|
1006
|
+
return undefined;
|
|
1007
|
+
},
|
|
1008
|
+
/**
|
|
1009
|
+
* Return an object containing the window coordinates of the
|
|
1010
|
+
* current selected region which will be updated after each render
|
|
1011
|
+
* loop.
|
|
1012
|
+
*
|
|
1013
|
+
* @public
|
|
1014
|
+
*/
|
|
1015
|
+
getDynamicSelectedCoordinates: function () {
|
|
1016
|
+
return this.$module.selectedScreenCoordinates;
|
|
1017
|
+
},
|
|
1018
|
+
/**
|
|
1019
|
+
* Callback when time is changed through the UI.
|
|
1020
|
+
*/
|
|
1021
|
+
timeChange: function (event) {
|
|
1022
|
+
let normalizedTime = (event / this.timeMax) * 100;
|
|
1023
|
+
if (normalizedTime != this.sceneData.currentTime)
|
|
1024
|
+
this.$module.updateTime(normalizedTime);
|
|
1025
|
+
},
|
|
1026
|
+
/**
|
|
1027
|
+
* A callback used by children components. Set the selected zinc object
|
|
1028
|
+
*
|
|
1029
|
+
* @param {object} object Zinc object
|
|
1030
|
+
*/
|
|
1031
|
+
objectSelected: function (objects, propagate) {
|
|
1032
|
+
this.selectedObjects = objects;
|
|
1033
|
+
if (this.selectedObjects && this.selectedObjects.length > 0)
|
|
1034
|
+
this.$refs.opacityControl.setObject(this.selectedObjects[0]);
|
|
1035
|
+
this.$module.setSelectedByZincObjects(objects, undefined, propagate);
|
|
1036
|
+
},
|
|
1037
|
+
/**
|
|
1038
|
+
* A callback used by children components. Set the highlighted zinc object
|
|
1039
|
+
*
|
|
1040
|
+
* @param {object} object Zinc object
|
|
1041
|
+
*/
|
|
1042
|
+
objectHovered: function (objects, propagate) {
|
|
1043
|
+
this.hoveredObjects = objects;
|
|
1044
|
+
this.$module.setHighlightedByZincObjects(objects, undefined, propagate);
|
|
1045
|
+
},
|
|
1046
|
+
/**
|
|
1047
|
+
* Set the selected by name.
|
|
1048
|
+
*
|
|
1049
|
+
* @param {} name Name of the group
|
|
1050
|
+
*/
|
|
1051
|
+
changeActiveByName: function (names, region, propagate) {
|
|
1052
|
+
const isArray = Array.isArray(names);
|
|
1053
|
+
if (names === undefined || (isArray && names.length === 0)) {
|
|
1054
|
+
this.$refs.treeControls.removeActive(propagate);
|
|
1055
|
+
} else {
|
|
1056
|
+
let array = names;
|
|
1057
|
+
if (!isArray) array = [array];
|
|
1058
|
+
this.$refs.treeControls.changeActiveByNames(array, region, propagate);
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
/**
|
|
1062
|
+
* Set the highlighted by name.
|
|
1063
|
+
*
|
|
1064
|
+
* @param {name} name Name of the group
|
|
1065
|
+
*/
|
|
1066
|
+
changeHighlightedByName: function (names, region, propagate) {
|
|
1067
|
+
const isArray = Array.isArray(names);
|
|
1068
|
+
if (names === undefined || (isArray && names.length === 0)) {
|
|
1069
|
+
this.$refs.treeControls.removeHover(propagate);
|
|
1070
|
+
} else {
|
|
1071
|
+
let array = names;
|
|
1072
|
+
if (!isArray) array = [array];
|
|
1073
|
+
this.$refs.treeControls.changeHoverByNames(array, region, propagate);
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
/**
|
|
1077
|
+
* Start the animation.
|
|
1078
|
+
*
|
|
1079
|
+
* @param {object} object Zinc object
|
|
1080
|
+
*/
|
|
1081
|
+
play: function (flag) {
|
|
1082
|
+
this.$module.playAnimation(flag);
|
|
1083
|
+
this.isPlaying = flag;
|
|
1084
|
+
//Hide tooltip as location may
|
|
1085
|
+
//this.hideRegionTooltip();
|
|
1086
|
+
},
|
|
1087
|
+
/**
|
|
1088
|
+
* Function to toggle on/off overlay help.
|
|
1089
|
+
*/
|
|
1090
|
+
setHelpMode: function (helpMode) {
|
|
1091
|
+
if (helpMode) {
|
|
1092
|
+
this.inHelp = true;
|
|
1093
|
+
this.hoverVisibilities.forEach((item) => {
|
|
1094
|
+
item.value = true;
|
|
1095
|
+
});
|
|
1096
|
+
} else {
|
|
1097
|
+
this.inHelp = false;
|
|
1098
|
+
this.hoverVisibilities.forEach((item) => {
|
|
1099
|
+
item.value = false;
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
/**
|
|
1104
|
+
* Callback function used by showRegionTooltip in the case when the tooltip
|
|
1105
|
+
* is out of view.
|
|
1106
|
+
*/
|
|
1107
|
+
displayTooltipOfObjectsCallback: function (
|
|
1108
|
+
name,
|
|
1109
|
+
objects,
|
|
1110
|
+
regionPath,
|
|
1111
|
+
resetView,
|
|
1112
|
+
liveUpdates
|
|
1113
|
+
) {
|
|
1114
|
+
const instance = this;
|
|
1115
|
+
return function () {
|
|
1116
|
+
instance.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
1117
|
+
instance.$_regionTooltipCallback
|
|
1118
|
+
);
|
|
1119
|
+
instance.$_regionTooltipCallback = undefined;
|
|
1120
|
+
instance.displayTooltipOfObjects(name, objects, regionPath, resetView, liveUpdates);
|
|
1121
|
+
};
|
|
1122
|
+
},
|
|
1123
|
+
liveUpdateTooltipPosition: function () {
|
|
1124
|
+
if (this.$module.selectedCenter) {
|
|
1125
|
+
this.tData.x = this.$module.selectedScreenCoordinates.x;
|
|
1126
|
+
this.tData.y = this.$module.selectedScreenCoordinates.y;
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
displayTooltipOfObjects: function (name, objects, regionPath, resetView, liveUpdates) {
|
|
1130
|
+
if (objects.length > 0) {
|
|
1131
|
+
let coords = objects[0].getClosestVertexDOMElementCoords(
|
|
1132
|
+
this.$module.scene
|
|
1133
|
+
);
|
|
1134
|
+
if (coords) {
|
|
1135
|
+
//The coords is not in view, view all if resetView flag is true
|
|
1136
|
+
if (!coords.inView) {
|
|
1137
|
+
this.hideRegionTooltip();
|
|
1138
|
+
if (resetView) {
|
|
1139
|
+
this.$module.scene.viewAll();
|
|
1140
|
+
//Use the post render callback to make sure the scene has been updated
|
|
1141
|
+
//before getting the position of the tooltip.
|
|
1142
|
+
if (this.$_regionTooltipCallback) {
|
|
1143
|
+
this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
1144
|
+
this.$_regionTooltipCallback
|
|
1145
|
+
);
|
|
1146
|
+
}
|
|
1147
|
+
this.$_regionTooltipCallback =
|
|
1148
|
+
this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
1149
|
+
this.displayTooltipOfObjectsCallback(
|
|
1150
|
+
name,
|
|
1151
|
+
objects,
|
|
1152
|
+
regionPath,
|
|
1153
|
+
resetView,
|
|
1154
|
+
liveUpdates
|
|
1155
|
+
)
|
|
1156
|
+
);
|
|
1157
|
+
}
|
|
1158
|
+
} else {
|
|
1159
|
+
this.tData.visible = true;
|
|
1160
|
+
this.tData.label = name;
|
|
1161
|
+
this.tData.x = coords.position.x;
|
|
1162
|
+
this.tData.y = coords.position.y;
|
|
1163
|
+
this.tData.region = regionPath;
|
|
1164
|
+
if (this.$_liveCoordinatesUpdated) {
|
|
1165
|
+
this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
1166
|
+
this.$_liveCoordinatesUpdated
|
|
1167
|
+
);
|
|
1168
|
+
}
|
|
1169
|
+
if (liveUpdates) {
|
|
1170
|
+
this.$module.setupLiveCoordinates(objects);
|
|
1171
|
+
this.$_liveCoordinatesUpdated =
|
|
1172
|
+
this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
1173
|
+
this.liveUpdateTooltipPosition
|
|
1174
|
+
);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
return true;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
this.hideRegionTooltip();
|
|
1181
|
+
return false;
|
|
1182
|
+
},
|
|
1183
|
+
/**
|
|
1184
|
+
* Display the tooltip used for displaying search result.
|
|
1185
|
+
* When resetView is set to true, it will
|
|
1186
|
+
* reset view if the tooltip is not in view.
|
|
1187
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
1188
|
+
* at every rendering loop.
|
|
1189
|
+
*/
|
|
1190
|
+
showRegionTooltipWithObjects: function (label, zincObjects, regionPath, resetView, liveUpdates) {
|
|
1191
|
+
if (label && zincObjects && zincObjects.length > 0 && this.$module.scene) {
|
|
1192
|
+
return this.displayTooltipOfObjects(
|
|
1193
|
+
label,
|
|
1194
|
+
zincObjects,
|
|
1195
|
+
regionPath,
|
|
1196
|
+
resetView,
|
|
1197
|
+
liveUpdates
|
|
1198
|
+
);
|
|
1199
|
+
}
|
|
1200
|
+
this.hideRegionTooltip();
|
|
1201
|
+
return false;
|
|
1202
|
+
},
|
|
1203
|
+
/**
|
|
1204
|
+
* Display the tooltip. When resetView is set to true, it will
|
|
1205
|
+
* reset view if the tooltip is not in view.
|
|
1206
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
1207
|
+
* at every rendering loop.
|
|
1208
|
+
*/
|
|
1209
|
+
showRegionTooltip: function (name, resetView, liveUpdates) {
|
|
1210
|
+
if (name && this.$module.scene) {
|
|
1211
|
+
const rootRegion = this.$module.scene.getRootRegion();
|
|
1212
|
+
const groups = [name];
|
|
1213
|
+
const objects = findObjectsWithNames(rootRegion, groups, "", true);
|
|
1214
|
+
let regionPath = undefined;
|
|
1215
|
+
if (objects && objects.length > 0) {
|
|
1216
|
+
regionPath = objects[0].getRegion().getFullPath();
|
|
1217
|
+
}
|
|
1218
|
+
return this.showRegionTooltipWithObjects(
|
|
1219
|
+
name,
|
|
1220
|
+
objects,
|
|
1221
|
+
regionPath,
|
|
1222
|
+
resetView,
|
|
1223
|
+
liveUpdates
|
|
1224
|
+
);
|
|
1225
|
+
}
|
|
1226
|
+
this.hideRegionTooltip();
|
|
1227
|
+
return false;
|
|
1228
|
+
},
|
|
1229
|
+
/**
|
|
1230
|
+
* Display the tooltip using the list of annotations.
|
|
1231
|
+
* When resetView is set to true, it will
|
|
1232
|
+
* reset view if the tooltip is not in view.
|
|
1233
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
1234
|
+
* at every rendering loop.
|
|
1235
|
+
*/
|
|
1236
|
+
showRegionTooltipWithAnnotations: function (annotations, resetView, liveUpdates) {
|
|
1237
|
+
if (this.$module.scene) {
|
|
1238
|
+
const result = getObjectsFromAnnotations(this.$module.scene, annotations);
|
|
1239
|
+
if (result && result.objects.length > 0) {
|
|
1240
|
+
return this.showRegionTooltipWithObjects(
|
|
1241
|
+
result.label,
|
|
1242
|
+
result.objects,
|
|
1243
|
+
result.regionPath,
|
|
1244
|
+
resetView,
|
|
1245
|
+
liveUpdates
|
|
1246
|
+
);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
this.hideRegionTooltip();
|
|
1250
|
+
return false;
|
|
1251
|
+
},
|
|
1252
|
+
hideRegionTooltip: function () {
|
|
1253
|
+
if (this.$_liveCoordinatesUpdated) {
|
|
1254
|
+
this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
1255
|
+
this.$_liveCoordinatesUpdated
|
|
1256
|
+
);
|
|
1257
|
+
//Unset the tracking
|
|
1258
|
+
this.$module.setupLiveCoordinates(undefined);
|
|
1259
|
+
}
|
|
1260
|
+
this.tData.visible = false;
|
|
1261
|
+
this.tData.region = undefined;
|
|
1262
|
+
},
|
|
1263
|
+
/**
|
|
1264
|
+
* Set the marker modes for objects with the provided name, mode can
|
|
1265
|
+
* be "on", "off" or "inherited".
|
|
1266
|
+
*/
|
|
1267
|
+
setMarkerModeForObjectsWithName: function (name, mode) {
|
|
1268
|
+
if (name && this.$module.scene) {
|
|
1269
|
+
const rootRegion = this.$module.scene.getRootRegion();
|
|
1270
|
+
const groups = [name];
|
|
1271
|
+
const objects = findObjectsWithNames(rootRegion, groups, "", true);
|
|
1272
|
+
objects.forEach(object => object.setMarkerMode(mode));
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
/**
|
|
1276
|
+
* Set the marker modes for objects specified by the list of annotations
|
|
1277
|
+
*/
|
|
1278
|
+
setMarkerModeWithAnnotations: function (annotations, mode) {
|
|
1279
|
+
if (this.$module.scene) {
|
|
1280
|
+
const result = getObjectsFromAnnotations(this.$module.scene, annotations);
|
|
1281
|
+
if (result && result.objects.length > 0) {
|
|
1282
|
+
result.objects.forEach(object => object.setMarkerMode(mode));
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
/**
|
|
1287
|
+
* This is called when mouse cursor enters supported elements
|
|
1288
|
+
* with help tootltips.
|
|
1289
|
+
*/
|
|
1290
|
+
showHelpText: function (helpTextNumber) {
|
|
1291
|
+
if (!this.inHelp) {
|
|
1292
|
+
this.helpTextWait = setTimeout(() => {
|
|
1293
|
+
this.hoverVisibilities[helpTextNumber].value = true;
|
|
1294
|
+
}, 500);
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
/**
|
|
1298
|
+
* This is called when mouse cursor exits supported element..
|
|
1299
|
+
*/
|
|
1300
|
+
hideHelpText: function (helpTextNumber) {
|
|
1301
|
+
if (!this.inHelp) {
|
|
1302
|
+
this.hoverVisibilities[helpTextNumber].value = false;
|
|
1303
|
+
clearTimeout(this.helpTextWait);
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
search: function (text, displayLabel) {
|
|
1307
|
+
if (this.$_searchIndex) {
|
|
1308
|
+
if (text === undefined || text === "" ||
|
|
1309
|
+
((Array.isArray(text) && text.length === 0))
|
|
1310
|
+
) {
|
|
1311
|
+
this.objectSelected([], true);
|
|
1312
|
+
return false;
|
|
1313
|
+
} else {
|
|
1314
|
+
const result = this.$_searchIndex.searchAndProcessResult(text);
|
|
1315
|
+
const zincObjects = result.zincObjects;
|
|
1316
|
+
if (zincObjects.length > 0) {
|
|
1317
|
+
this.objectSelected(zincObjects, true);
|
|
1318
|
+
if (displayLabel) {
|
|
1319
|
+
for (let i = 0; i < zincObjects.length; i++) {
|
|
1320
|
+
if (zincObjects[i] && zincObjects[i].groupName) {
|
|
1321
|
+
this.showRegionTooltipWithObjects(
|
|
1322
|
+
result.label,
|
|
1323
|
+
zincObjects,
|
|
1324
|
+
result.regionPath,
|
|
1325
|
+
true,
|
|
1326
|
+
true
|
|
1327
|
+
);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
return true;
|
|
1332
|
+
} else {
|
|
1333
|
+
this.objectSelected([], true);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
return false;
|
|
1338
|
+
},
|
|
1339
|
+
/**
|
|
1340
|
+
* Get the list of suggested terms
|
|
1341
|
+
*/
|
|
1342
|
+
fetchSuggestions: function (term) {
|
|
1343
|
+
if (this.$_searchIndex === undefined) return [];
|
|
1344
|
+
return this.$_searchIndex.auto_suggest(term);
|
|
1345
|
+
},
|
|
1346
|
+
/**
|
|
1347
|
+
* Called when minimap settings has changed. Pass the
|
|
1348
|
+
* parameters to ZincJS and marked it for update.
|
|
1349
|
+
*/
|
|
1350
|
+
updateMinimapScissor: function () {
|
|
1351
|
+
Object.keys(this.minimapSettings).forEach((key) => {
|
|
1352
|
+
this.$module.scene.minimapScissor[key] = this.minimapSettings[key];
|
|
1353
|
+
});
|
|
1354
|
+
this.$module.scene.minimapScissor.updateRequired = true;
|
|
1355
|
+
},
|
|
1356
|
+
updateSettingsfromScene: function () {
|
|
1357
|
+
this.currentSpeed = 1;
|
|
1358
|
+
this.$module.setPlayRate(this.defaultRate);
|
|
1359
|
+
this.orginalDuration =
|
|
1360
|
+
this.$module.scene.getMetadataTag("OriginalDuration");
|
|
1361
|
+
this.animateDuration = this.$module.scene.getMetadataTag("Duration");
|
|
1362
|
+
let timeStamps = this.$module.scene.getMetadataTag("TimeStamps");
|
|
1363
|
+
this.timeStamps = {};
|
|
1364
|
+
for (const key in timeStamps) {
|
|
1365
|
+
this.timeStamps[timeStamps[key]] = key;
|
|
1366
|
+
}
|
|
1367
|
+
this.timeMax = this.$module.scene.getDuration();
|
|
1368
|
+
},
|
|
1369
|
+
setURLFinishCallback: function (options) {
|
|
1370
|
+
return () => {
|
|
1371
|
+
if (options) {
|
|
1372
|
+
if (options.viewport) {
|
|
1373
|
+
this.$module.scene
|
|
1374
|
+
.getZincCameraControls()
|
|
1375
|
+
.setCurrentCameraSettings(options.viewport);
|
|
1376
|
+
} else if (options.viewURL && options.viewURL !== "") {
|
|
1377
|
+
const url = new URL(options.viewURL, this.url);
|
|
1378
|
+
this.$module.scene.loadViewURL(url);
|
|
1379
|
+
} else if (options.region && options.region !== "") {
|
|
1380
|
+
this.viewRegion(options.region);
|
|
1381
|
+
}
|
|
1382
|
+
if (options.visibility) {
|
|
1383
|
+
// Some UIs may not be ready at this time.
|
|
1384
|
+
this.$nextTick(() => {
|
|
1385
|
+
this.$refs.treeControls.setState(options.visibility);
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
this.updateSettingsfromScene();
|
|
1390
|
+
this.$module.updateTime(0.01);
|
|
1391
|
+
this.$module.updateTime(0);
|
|
1392
|
+
this.$module.unsetFinishDownloadCallback();
|
|
1393
|
+
this.addRegionsToSearchIndex();
|
|
1394
|
+
this.$emit("on-ready");
|
|
1395
|
+
this.isReady = true;
|
|
1396
|
+
};
|
|
1397
|
+
},
|
|
1398
|
+
/**
|
|
1399
|
+
* Function used for getting the current states of the scene. This exported states
|
|
1400
|
+
* can be imported using the importStates method.
|
|
1401
|
+
*
|
|
1402
|
+
* @public
|
|
1403
|
+
*/
|
|
1404
|
+
getState: function () {
|
|
1405
|
+
let state = {
|
|
1406
|
+
format: this.fileFormat,
|
|
1407
|
+
url: this._currentURL,
|
|
1408
|
+
viewport: undefined,
|
|
1409
|
+
visibility: undefined,
|
|
1410
|
+
};
|
|
1411
|
+
if (this.$refs.treeControls)
|
|
1412
|
+
state.visibility = this.$refs.treeControls.getState();
|
|
1413
|
+
if (this.$module.scene) {
|
|
1414
|
+
let zincCameraControls = this.$module.scene.getZincCameraControls();
|
|
1415
|
+
state.viewport = zincCameraControls.getCurrentViewport();
|
|
1416
|
+
}
|
|
1417
|
+
return state;
|
|
1418
|
+
},
|
|
1419
|
+
/**
|
|
1420
|
+
* Function used for importing the states of the scene. This exported states
|
|
1421
|
+
* can be imported using the read states method.
|
|
1422
|
+
*
|
|
1423
|
+
* @public
|
|
1424
|
+
*/
|
|
1425
|
+
setState: function (state) {
|
|
1426
|
+
if (state) {
|
|
1427
|
+
if (state.url && state.url !== this._currentURL) {
|
|
1428
|
+
this.setURLAndState(state.url, {
|
|
1429
|
+
fileFormat: state.fileFormat,
|
|
1430
|
+
viewport: state.viewport,
|
|
1431
|
+
visibility: state.visibility,
|
|
1432
|
+
});
|
|
1433
|
+
} else {
|
|
1434
|
+
if (state.viewport || state.visibility) {
|
|
1435
|
+
if (this.isReady && this.$module.scene) {
|
|
1436
|
+
if (state.viewport)
|
|
1437
|
+
this.$module.scene
|
|
1438
|
+
.getZincCameraControls()
|
|
1439
|
+
.setCurrentCameraSettings(state.viewport);
|
|
1440
|
+
if (state.visibility)
|
|
1441
|
+
this.$refs.treeControls.setState(state.visibility);
|
|
1442
|
+
} else {
|
|
1443
|
+
this.$module.setFinishDownloadCallback(
|
|
1444
|
+
this.setURLFinishCallback({
|
|
1445
|
+
viewport: state.viewport,
|
|
1446
|
+
visibility: state.visibility,
|
|
1447
|
+
})
|
|
1448
|
+
);
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
exportGLTF: function (binary) {
|
|
1455
|
+
return this.$module.scene.exportGLTF(binary);
|
|
1456
|
+
},
|
|
1457
|
+
/**
|
|
1458
|
+
* Function used for reading in new scaffold metadata and a custom
|
|
1459
|
+
* viewport. This function will ignore the state prop and
|
|
1460
|
+
* read in the new url.
|
|
1461
|
+
*
|
|
1462
|
+
* @public
|
|
1463
|
+
*/
|
|
1464
|
+
setURLAndState: function (newValue, state) {
|
|
1465
|
+
if (newValue != this._currentURL) {
|
|
1466
|
+
if (state && state.format) this.fileFormat = state.format;
|
|
1467
|
+
let viewport = state && state.viewport ? state.viewport : undefined;
|
|
1468
|
+
let visibility =
|
|
1469
|
+
state && state.visibility ? state.visibility : undefined;
|
|
1470
|
+
this._currentURL = newValue;
|
|
1471
|
+
if (this.$refs.treeControls) this.$refs.treeControls.clear();
|
|
1472
|
+
this.loading = true;
|
|
1473
|
+
this.isReady = false;
|
|
1474
|
+
this.$_searchIndex.removeAll();
|
|
1475
|
+
this.hideRegionTooltip();
|
|
1476
|
+
this.$module.setFinishDownloadCallback(
|
|
1477
|
+
this.setURLFinishCallback({
|
|
1478
|
+
viewport: viewport,
|
|
1479
|
+
region: this.region,
|
|
1480
|
+
viewURL: this.viewURL,
|
|
1481
|
+
visibility: visibility,
|
|
1482
|
+
})
|
|
1483
|
+
);
|
|
1484
|
+
if (this.fileFormat === "gltf") {
|
|
1485
|
+
this.$module.loadGLTFFromURL(newValue, "scene", true);
|
|
1486
|
+
} else {
|
|
1487
|
+
this.$module.loadOrgansFromURL(
|
|
1488
|
+
newValue,
|
|
1489
|
+
undefined,
|
|
1490
|
+
undefined,
|
|
1491
|
+
"scene",
|
|
1492
|
+
undefined,
|
|
1493
|
+
true
|
|
1494
|
+
);
|
|
1495
|
+
}
|
|
1496
|
+
this.$module.scene.displayMarkers = this.displayMarkers;
|
|
1497
|
+
this.$module.scene.forcePickableObjectsUpdate = true;
|
|
1498
|
+
this.$module.scene.displayMinimap = this.displayMinimap;
|
|
1499
|
+
this.updateMinimapScissor();
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
/**
|
|
1503
|
+
* Function used for reading in new scaffold metadata. This function will ignore
|
|
1504
|
+
* the state prop and read in the new url.
|
|
1505
|
+
*
|
|
1506
|
+
* @public
|
|
1507
|
+
*/
|
|
1508
|
+
setURL: function (newValue) {
|
|
1509
|
+
this.setURLAndState(newValue, undefined);
|
|
1510
|
+
},
|
|
1511
|
+
/**
|
|
1512
|
+
* Callback when drawer is toggled.
|
|
1513
|
+
*/
|
|
1514
|
+
drawerToggled: function (flag) {
|
|
1515
|
+
this.drawerOpen = flag;
|
|
1516
|
+
this.adjustLayout();
|
|
1517
|
+
},
|
|
1518
|
+
/**
|
|
1519
|
+
* Callback using ResizeObserver.
|
|
1520
|
+
*/
|
|
1521
|
+
adjustLayout: function () {
|
|
1522
|
+
let width = this.$refs.scaffoldContainer.clientWidth;
|
|
1523
|
+
this.minimisedSlider = width < 812;
|
|
1524
|
+
if (this.minimisedSlider) {
|
|
1525
|
+
this.sliderPosition = this.drawerOpen ? "right" : "left";
|
|
1526
|
+
} else {
|
|
1527
|
+
this.sliderPosition = "";
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
toggleRendering: function (flag) {
|
|
1531
|
+
if (this.$module.zincRenderer) {
|
|
1532
|
+
if (flag) {
|
|
1533
|
+
this.$module.zincRenderer.animate();
|
|
1534
|
+
} else {
|
|
1535
|
+
this.$module.zincRenderer.stopAnimate();
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
forceResize: function () {
|
|
1540
|
+
if (this.$module.zincRenderer) {
|
|
1541
|
+
this.$module.zincRenderer.onWindowResize();
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
syncControlCallback: function () {
|
|
1545
|
+
const payload = this.$module.NDCCameraControl.getPanZoom();
|
|
1546
|
+
if (this.tData.visible) {
|
|
1547
|
+
this.showRegionTooltip(this.tData.label, true, true);
|
|
1548
|
+
}
|
|
1549
|
+
this.$emit("scaffold-navigated", payload);
|
|
1550
|
+
},
|
|
1551
|
+
/**
|
|
1552
|
+
* Rotate mode - "none", "horizontal", "vertical", "free" but
|
|
1553
|
+
* it will be ignored if flag is set to false.
|
|
1554
|
+
*/
|
|
1555
|
+
toggleSyncControl: function (flag, rotateMode) {
|
|
1556
|
+
this.$module.toggleSyncControl(flag, rotateMode);
|
|
1557
|
+
this.$module.setSyncControlCallback(this.syncControlCallback);
|
|
1558
|
+
},
|
|
1559
|
+
},
|
|
1560
|
+
};
|
|
1561
|
+
</script>
|
|
1562
|
+
|
|
1563
|
+
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
1564
|
+
<style scoped lang="scss">
|
|
1565
|
+
@import "~element-ui/packages/theme-chalk/src/button";
|
|
1566
|
+
@import "~element-ui/packages/theme-chalk/src/col";
|
|
1567
|
+
@import "~element-ui/packages/theme-chalk/src/loading";
|
|
1568
|
+
@import "~element-ui/packages/theme-chalk/src/option";
|
|
1569
|
+
@import "~element-ui/packages/theme-chalk/src/popover";
|
|
1570
|
+
@import "~element-ui/packages/theme-chalk/src/row";
|
|
1571
|
+
@import "~element-ui/packages/theme-chalk/src/select";
|
|
1572
|
+
@import "~element-ui/packages/theme-chalk/src/slider";
|
|
1573
|
+
@import "~element-ui/packages/theme-chalk/src/tabs";
|
|
1574
|
+
@import "~element-ui/packages/theme-chalk/src/tab-pane";
|
|
1575
|
+
|
|
1576
|
+
.message-icon {
|
|
1577
|
+
position: absolute;
|
|
1578
|
+
top: 15px;
|
|
1579
|
+
left: 37px;
|
|
1580
|
+
text-align: left;
|
|
1581
|
+
font-size: 25px;
|
|
1582
|
+
color: $warning;
|
|
1583
|
+
|
|
1584
|
+
&:hover {
|
|
1585
|
+
cursor: pointer;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.warning-icon {
|
|
1590
|
+
color: $warning;
|
|
1591
|
+
top: 15px;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.latest-changesicon {
|
|
1595
|
+
color: $success;
|
|
1596
|
+
top: 45px;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
.message-text {
|
|
1600
|
+
font-size: 15px;
|
|
1601
|
+
vertical-align: 5px;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
::v-deep .message-popper {
|
|
1605
|
+
padding: 9px 10px;
|
|
1606
|
+
min-width: 150px;
|
|
1607
|
+
font-size: 12px;
|
|
1608
|
+
color: #fff;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
#organsDisplayArea {
|
|
1612
|
+
&:focus {
|
|
1613
|
+
outline: none !important;
|
|
1614
|
+
border: 0px;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.scaffold-container {
|
|
1619
|
+
height: 100%;
|
|
1620
|
+
width: 100%;
|
|
1621
|
+
position: relative;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
.time-slider-container {
|
|
1625
|
+
text-align: left;
|
|
1626
|
+
position: absolute;
|
|
1627
|
+
right: 155px;
|
|
1628
|
+
width: calc(100% - 530px);
|
|
1629
|
+
bottom: 16px;
|
|
1630
|
+
transition: all 1s ease;
|
|
1631
|
+
outline: none;
|
|
1632
|
+
|
|
1633
|
+
&.minimised {
|
|
1634
|
+
width: calc(40%);
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
&.left {
|
|
1638
|
+
right: 155px;
|
|
1639
|
+
width: calc(100% - 250px);
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
&.right {
|
|
1643
|
+
right: 8px;
|
|
1644
|
+
bottom: 54px;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.slider-display-text {
|
|
1649
|
+
height: 20px;
|
|
1650
|
+
color: rgb(48, 49, 51);
|
|
1651
|
+
font-size: 14px;
|
|
1652
|
+
font-weight: normal;
|
|
1653
|
+
line-height: 20px;
|
|
1654
|
+
padding-left: 8px;
|
|
1655
|
+
text-shadow: -1px -1px #fff, 1px -1px #fff, -1px 1px #fff, 1px -1px #fff;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
.tab-content {
|
|
1659
|
+
display: flex;
|
|
1660
|
+
height: 34px;
|
|
1661
|
+
padding-top: 8px;
|
|
1662
|
+
font-size: 14px;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.tab-content ::v-deep .el-slider__marks-text {
|
|
1666
|
+
margin-top: 12px;
|
|
1667
|
+
margin-left: 8px;
|
|
1668
|
+
font-size: 10px;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
.tab-content ::v-deep .el-slider__stop {
|
|
1672
|
+
width: 10px;
|
|
1673
|
+
height: 10px;
|
|
1674
|
+
top: -1px;
|
|
1675
|
+
border: solid 1px $app-primary-color;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
.animation-data {
|
|
1679
|
+
margin-left: 8px;
|
|
1680
|
+
line-height: 26px;
|
|
1681
|
+
display: flex;
|
|
1682
|
+
|
|
1683
|
+
:not(:first-child) {
|
|
1684
|
+
margin-left: 8px;
|
|
1685
|
+
}
|
|
1686
|
+
.purple {
|
|
1687
|
+
padding-left: 2px;
|
|
1688
|
+
color: $app-primary-color;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
.slider {
|
|
1692
|
+
margin-left: 30px;
|
|
1693
|
+
width: calc(100% - 88px);
|
|
1694
|
+
margin-top: -7px;
|
|
1695
|
+
|
|
1696
|
+
::v-deep .el-slider__runway {
|
|
1697
|
+
height: 10px;
|
|
1698
|
+
margin: 14px 0;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
::v-deep .el-slider__button-wrapper {
|
|
1702
|
+
top: -13px;
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
.zoomOut {
|
|
1707
|
+
padding-left: 8px;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.fitWindow {
|
|
1711
|
+
padding-left: 8px;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
::v-deep .non-selectable {
|
|
1715
|
+
user-select: none;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
::v-deep .background-popper {
|
|
1719
|
+
padding: 5px 12px;
|
|
1720
|
+
background-color: #ffffff;
|
|
1721
|
+
border: 1px solid $app-primary-color;
|
|
1722
|
+
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
|
|
1723
|
+
height: 72px;
|
|
1724
|
+
width: 128px;
|
|
1725
|
+
min-width: 128px;
|
|
1726
|
+
|
|
1727
|
+
&.el-popper[x-placement^="top"] {
|
|
1728
|
+
.popper__arrow {
|
|
1729
|
+
border-top-color: $app-primary-color !important;
|
|
1730
|
+
&:after {
|
|
1731
|
+
border-top-color: #fff !important;
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
::v-deep .open-map-popper {
|
|
1738
|
+
padding-top: 5px;
|
|
1739
|
+
padding-bottom: 5px;
|
|
1740
|
+
background-color: #ffffff;
|
|
1741
|
+
border: 1px solid $app-primary-color;
|
|
1742
|
+
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
|
|
1743
|
+
width: 178px;
|
|
1744
|
+
min-width: 178px;
|
|
1745
|
+
|
|
1746
|
+
.el-row ~ .el-row {
|
|
1747
|
+
margin-top: 8px;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
.el-button {
|
|
1751
|
+
padding-top:5px;
|
|
1752
|
+
padding-bottom:5px;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
&.el-popper[x-placement^="top"] {
|
|
1756
|
+
.popper__arrow {
|
|
1757
|
+
border-top-color: $app-primary-color !important;
|
|
1758
|
+
&:after {
|
|
1759
|
+
border-top-color: #fff !important;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
.settings-group {
|
|
1766
|
+
bottom: 16px;
|
|
1767
|
+
position: absolute;
|
|
1768
|
+
transition: all 1s ease;
|
|
1769
|
+
|
|
1770
|
+
&.open {
|
|
1771
|
+
left: 322px;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
&.close {
|
|
1775
|
+
left: 24px;
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
.backgroundText {
|
|
1780
|
+
color: rgb(48, 49, 51);
|
|
1781
|
+
font-size: 14px;
|
|
1782
|
+
font-weight: normal;
|
|
1783
|
+
line-height: 20px;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
.backgroundChooser {
|
|
1787
|
+
display: flex;
|
|
1788
|
+
margin-top: 16px;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.backgroundChoice {
|
|
1792
|
+
width: 20px;
|
|
1793
|
+
height: 20px;
|
|
1794
|
+
border: 1px solid rgb(144, 147, 153);
|
|
1795
|
+
margin-left: 20px;
|
|
1796
|
+
|
|
1797
|
+
&.active {
|
|
1798
|
+
border: 2px solid $app-primary-color;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
&:hover {
|
|
1802
|
+
cursor: pointer;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
&.white {
|
|
1806
|
+
background-color: white;
|
|
1807
|
+
margin-left: 10px;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
&.black {
|
|
1811
|
+
background-color: black;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
&.lightskyblue {
|
|
1815
|
+
background-color: lightskyblue;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
.icon-button {
|
|
1820
|
+
height: 24px !important;
|
|
1821
|
+
width: 24px !important;
|
|
1822
|
+
|
|
1823
|
+
&:hover {
|
|
1824
|
+
cursor: pointer;
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
.bottom-right-control {
|
|
1829
|
+
position: absolute;
|
|
1830
|
+
right: 16px;
|
|
1831
|
+
bottom: 16px;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.video-button {
|
|
1835
|
+
margin-left: 8px;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.time-slider-container {
|
|
1839
|
+
::v-deep .el-tabs__header {
|
|
1840
|
+
margin: 0px;
|
|
1841
|
+
border-bottom: 1px solid rgb(144, 147, 153);
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.el-row {
|
|
1845
|
+
margin-bottom: 5px;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
::v-deep .el-tabs__content {
|
|
1849
|
+
border-left: 1px solid rgb(144, 147, 153);
|
|
1850
|
+
border-bottom: 1px solid rgb(144, 147, 153);
|
|
1851
|
+
border-right: 1px solid rgb(144, 147, 153);
|
|
1852
|
+
border-radius: 0px 0px 4px 4px;
|
|
1853
|
+
background-color: white;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
::v-deep .el-tabs--card {
|
|
1857
|
+
> .el-tabs__header {
|
|
1858
|
+
.el-tabs__nav {
|
|
1859
|
+
border: 1px solid rgb(144, 147, 153);
|
|
1860
|
+
border-bottom: none;
|
|
1861
|
+
border-radius: 4px 4px 0px 0px;
|
|
1862
|
+
background-color: white;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
.el-tabs__item {
|
|
1866
|
+
height: 24px;
|
|
1867
|
+
line-height: 24px;
|
|
1868
|
+
padding: 0 8px !important;
|
|
1869
|
+
border-bottom: 1px solid;
|
|
1870
|
+
border-left: 1px solid rgb(144, 147, 153);
|
|
1871
|
+
&:first-child {
|
|
1872
|
+
border-left: none;
|
|
1873
|
+
}
|
|
1874
|
+
&.is-active {
|
|
1875
|
+
border-bottom: 1px solid white;
|
|
1876
|
+
color: rgb(48, 49, 51);
|
|
1877
|
+
}
|
|
1878
|
+
&:hover {
|
|
1879
|
+
color: $app-primary-color;
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
::v-deep .scaffold-popper {
|
|
1887
|
+
padding: 6px 4px;
|
|
1888
|
+
font-size: 12px;
|
|
1889
|
+
color: rgb(48, 49, 51);
|
|
1890
|
+
background-color: #f3ecf6;
|
|
1891
|
+
border: 1px solid $app-primary-color;
|
|
1892
|
+
white-space: nowrap;
|
|
1893
|
+
min-width: unset;
|
|
1894
|
+
pointer-events: none;
|
|
1895
|
+
|
|
1896
|
+
&.left-popper {
|
|
1897
|
+
.popper__arrow {
|
|
1898
|
+
border-left-color: $app-primary-color !important;
|
|
1899
|
+
&:after {
|
|
1900
|
+
border-left-color: #f3ecf6 !important;
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
&.right-popper {
|
|
1906
|
+
.popper__arrow {
|
|
1907
|
+
border-right-color: $app-primary-color !important;
|
|
1908
|
+
&:after {
|
|
1909
|
+
border-right-color: #f3ecf6 !important;
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
&.el-popper[x-placement^="top"] {
|
|
1915
|
+
.popper__arrow {
|
|
1916
|
+
border-top-color: $app-primary-color !important;
|
|
1917
|
+
&:after {
|
|
1918
|
+
border-top-color: #f3ecf6 !important;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
::v-deep .el-slider__button {
|
|
1925
|
+
border: 2px solid $app-primary-color;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
::v-deep .el-slider__bar {
|
|
1929
|
+
background-color: $app-primary-color;
|
|
1930
|
+
height: 10px;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
::v-deep .el-loading-spinner {
|
|
1934
|
+
i,
|
|
1935
|
+
.el-loading-text {
|
|
1936
|
+
color: $app-primary-color;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
::v-deep .popper-zoomout {
|
|
1941
|
+
padding-right: 11px;
|
|
1942
|
+
left: -21px !important;
|
|
1943
|
+
.popper__arrow {
|
|
1944
|
+
left: 53px !important;
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
.select-box {
|
|
1949
|
+
width: 57px;
|
|
1950
|
+
border-radius: 4px;
|
|
1951
|
+
border: 1px solid rgb(144, 147, 153);
|
|
1952
|
+
background-color: var(--white);
|
|
1953
|
+
font-weight: 500;
|
|
1954
|
+
color: rgb(48, 49, 51);
|
|
1955
|
+
margin-left: 8px;
|
|
1956
|
+
|
|
1957
|
+
::v-deep .el-input__inner {
|
|
1958
|
+
color: $app-primary-color;
|
|
1959
|
+
height: 22px;
|
|
1960
|
+
padding-left: 8px;
|
|
1961
|
+
padding-right: 8px;
|
|
1962
|
+
border: none;
|
|
1963
|
+
font-family: "Asap", sans-serif;
|
|
1964
|
+
line-height: 22px;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
::v-deep .el-input,
|
|
1968
|
+
::v-deep .el-input__icon {
|
|
1969
|
+
line-height: 22px;
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
</style>
|
|
1973
|
+
|
|
1974
|
+
<style lang="scss">
|
|
1975
|
+
.time-slider-tooltip {
|
|
1976
|
+
padding: 6px 4px !important;
|
|
1977
|
+
font-family: "Asap", sans-serif;
|
|
1978
|
+
font-size: 12px !important;
|
|
1979
|
+
color: rgb(48, 49, 51) !important;
|
|
1980
|
+
background-color: #f3ecf6 !important;
|
|
1981
|
+
border: 1px solid $app-primary-color !important;
|
|
1982
|
+
white-space: nowrap !important;
|
|
1983
|
+
min-width: unset !important;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
.scaffold_viewer_dropdown .el-select-dropdown__item {
|
|
1987
|
+
white-space: nowrap;
|
|
1988
|
+
text-align: left;
|
|
1989
|
+
font-family: "Asap", sans-serif;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
.opacity-box {
|
|
1993
|
+
right: 0px;
|
|
1994
|
+
bottom: 200px;
|
|
1995
|
+
position: absolute;
|
|
1996
|
+
}
|
|
1997
|
+
</style>
|