@abi-software/scaffoldvuer 0.2.3-alpha-2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +12 -12
- package/CHANGELOG.md +332 -316
- package/LICENSE +201 -201
- package/README.md +164 -164
- package/babel.config.js +14 -14
- package/dist/scaffoldvuer-wc.common.js +34 -34
- package/dist/scaffoldvuer-wc.umd.js +34 -34
- package/dist/scaffoldvuer-wc.umd.min.js +34 -34
- package/dist/scaffoldvuer.common.js +374 -375
- package/dist/scaffoldvuer.common.js.map +1 -1
- package/dist/scaffoldvuer.css +1 -1
- package/dist/scaffoldvuer.umd.js +374 -375
- 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 +18121 -18119
- package/package.json +89 -89
- package/public/index.html +17 -17
- package/src/App.vue +669 -669
- package/src/ScaffoldVuer-wc.js +13 -13
- package/src/app/DropZone.vue +114 -114
- package/src/app/ModelsInformation.js +35 -35
- package/src/app/ModelsTable.vue +113 -113
- package/src/app/TextureDemos.js +114 -114
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +7 -7
- package/src/components/OpacityControls.vue +222 -222
- package/src/components/PrimitiveControls.vue +158 -0
- package/src/components/ScaffoldTooltip.vue +142 -142
- package/src/components/ScaffoldVuer.md +44 -44
- package/src/components/ScaffoldVuer.vue +2006 -2007
- package/src/components/TreeControls.vue +699 -699
- package/src/components/index.js +7 -7
- package/src/credential.json +12 -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 -587
- package/src/scripts/search.js +182 -182
- package/src/scripts/utilities.js +146 -146
- package/styleguide.config.js +22 -22
- package/vue.config.js +41 -41
- package/src/components/test.pdf +0 -0
- package/src/searchControls.vue +0 -122
package/dist/scaffoldvuer.umd.js
CHANGED
|
@@ -2043,6 +2043,17 @@ module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.ex
|
|
|
2043
2043
|
|
|
2044
2044
|
module.exports = require("core-js/modules/es.array.push.js");
|
|
2045
2045
|
|
|
2046
|
+
/***/ }),
|
|
2047
|
+
|
|
2048
|
+
/***/ "258c":
|
|
2049
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2050
|
+
|
|
2051
|
+
"use strict";
|
|
2052
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_1_id_1d065206_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b950");
|
|
2053
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_1_id_1d065206_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_1_id_1d065206_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
2054
|
+
/* unused harmony reexport * */
|
|
2055
|
+
|
|
2056
|
+
|
|
2046
2057
|
/***/ }),
|
|
2047
2058
|
|
|
2048
2059
|
/***/ "299c":
|
|
@@ -2475,13 +2486,6 @@ module.exports = __webpack_require__("8bbf");
|
|
|
2475
2486
|
|
|
2476
2487
|
/***/ }),
|
|
2477
2488
|
|
|
2478
|
-
/***/ "2a5b":
|
|
2479
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2480
|
-
|
|
2481
|
-
// extracted by mini-css-extract-plugin
|
|
2482
|
-
|
|
2483
|
-
/***/ }),
|
|
2484
|
-
|
|
2485
2489
|
/***/ "2a5e":
|
|
2486
2490
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2487
2491
|
|
|
@@ -2969,13 +2973,6 @@ var removeResizeListener = exports.removeResizeListener = function removeResizeL
|
|
|
2969
2973
|
|
|
2970
2974
|
/***/ }),
|
|
2971
2975
|
|
|
2972
|
-
/***/ "4136":
|
|
2973
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2974
|
-
|
|
2975
|
-
// extracted by mini-css-extract-plugin
|
|
2976
|
-
|
|
2977
|
-
/***/ }),
|
|
2978
|
-
|
|
2979
2976
|
/***/ "417f":
|
|
2980
2977
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2981
2978
|
|
|
@@ -5872,19 +5869,19 @@ var OrgansSceneData = function OrgansSceneData() {
|
|
|
5872
5869
|
this.timeVarying = false;
|
|
5873
5870
|
};
|
|
5874
5871
|
|
|
5875
|
-
/**
|
|
5876
|
-
* Viewer of 3D-organs models. Users can toggle on/off different views. Data is
|
|
5877
|
-
* displayed instead if models are not available.
|
|
5878
|
-
*
|
|
5879
|
-
* @class
|
|
5880
|
-
* @param {PJP.ModelsLoader}
|
|
5881
|
-
* ModelsLoaderIn - defined in modelsLoade.js, providing locations of
|
|
5882
|
-
* files.
|
|
5883
|
-
* @param {String}
|
|
5884
|
-
* PanelName - Id of the target element to create the
|
|
5885
|
-
* {@link PJP.OrgansViewer} on.
|
|
5886
|
-
* @author Alan Wu
|
|
5887
|
-
* @returns {PJP.OrgansViewer}
|
|
5872
|
+
/**
|
|
5873
|
+
* Viewer of 3D-organs models. Users can toggle on/off different views. Data is
|
|
5874
|
+
* displayed instead if models are not available.
|
|
5875
|
+
*
|
|
5876
|
+
* @class
|
|
5877
|
+
* @param {PJP.ModelsLoader}
|
|
5878
|
+
* ModelsLoaderIn - defined in modelsLoade.js, providing locations of
|
|
5879
|
+
* files.
|
|
5880
|
+
* @param {String}
|
|
5881
|
+
* PanelName - Id of the target element to create the
|
|
5882
|
+
* {@link PJP.OrgansViewer} on.
|
|
5883
|
+
* @author Alan Wu
|
|
5884
|
+
* @returns {PJP.OrgansViewer}
|
|
5888
5885
|
*/
|
|
5889
5886
|
var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
5890
5887
|
var _this2 = this;
|
|
@@ -5903,8 +5900,8 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
5903
5900
|
return _this.sceneData;
|
|
5904
5901
|
};
|
|
5905
5902
|
|
|
5906
|
-
/**
|
|
5907
|
-
* Used to update internal timer in scene when time slider has changed.
|
|
5903
|
+
/**
|
|
5904
|
+
* Used to update internal timer in scene when time slider has changed.
|
|
5908
5905
|
*/
|
|
5909
5906
|
this.updateTime = function (value) {
|
|
5910
5907
|
var duration = 6000;
|
|
@@ -5917,8 +5914,8 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
5917
5914
|
_this.sceneData.currentTime = value;
|
|
5918
5915
|
};
|
|
5919
5916
|
|
|
5920
|
-
/**
|
|
5921
|
-
* Update the time slider and other renderers/scenes when time has changed.
|
|
5917
|
+
/**
|
|
5918
|
+
* Update the time slider and other renderers/scenes when time has changed.
|
|
5922
5919
|
*/
|
|
5923
5920
|
var preRenderTimeUpdate = function preRenderTimeUpdate() {
|
|
5924
5921
|
var duration = 3000;
|
|
@@ -5985,8 +5982,8 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
5985
5982
|
};
|
|
5986
5983
|
};
|
|
5987
5984
|
|
|
5988
|
-
/**
|
|
5989
|
-
* Add a callback which will be called when time has changed
|
|
5985
|
+
/**
|
|
5986
|
+
* Add a callback which will be called when time has changed
|
|
5990
5987
|
*/
|
|
5991
5988
|
this.addTimeChangedCallback = function (callback) {
|
|
5992
5989
|
if (_typeof(callback === "function")) timeChangedCallbacks.push(callback);
|
|
@@ -6049,12 +6046,12 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6049
6046
|
};
|
|
6050
6047
|
};
|
|
6051
6048
|
|
|
6052
|
-
/**
|
|
6053
|
-
* Callback function when a pickable object has been picked. It will then
|
|
6054
|
-
* call functions in tissueViewer and cellPanel to show corresponding
|
|
6055
|
-
* informations.
|
|
6056
|
-
*
|
|
6057
|
-
* @callback
|
|
6049
|
+
/**
|
|
6050
|
+
* Callback function when a pickable object has been picked. It will then
|
|
6051
|
+
* call functions in tissueViewer and cellPanel to show corresponding
|
|
6052
|
+
* informations.
|
|
6053
|
+
*
|
|
6054
|
+
* @callback
|
|
6058
6055
|
*/
|
|
6059
6056
|
var _pickingCallback = function _pickingCallback() {
|
|
6060
6057
|
return function (intersects, window_x, window_y) {
|
|
@@ -6077,10 +6074,10 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6077
6074
|
};
|
|
6078
6075
|
};
|
|
6079
6076
|
|
|
6080
|
-
/**
|
|
6081
|
-
* Callback function when a pickable object has been hovered over.
|
|
6082
|
-
*
|
|
6083
|
-
* @callback
|
|
6077
|
+
/**
|
|
6078
|
+
* Callback function when a pickable object has been hovered over.
|
|
6079
|
+
*
|
|
6080
|
+
* @callback
|
|
6084
6081
|
*/
|
|
6085
6082
|
var _hoverCallback = function _hoverCallback() {
|
|
6086
6083
|
return function (intersects, window_x, window_y) {
|
|
@@ -6127,40 +6124,40 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6127
6124
|
}
|
|
6128
6125
|
};
|
|
6129
6126
|
|
|
6130
|
-
/**
|
|
6131
|
-
* Change visibility for parts of the current scene.
|
|
6127
|
+
/**
|
|
6128
|
+
* Change visibility for parts of the current scene.
|
|
6132
6129
|
*/
|
|
6133
6130
|
this.changeGeometriesVisibility = function (name, value) {
|
|
6134
6131
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'geometries');
|
|
6135
6132
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'geometries');
|
|
6136
6133
|
};
|
|
6137
6134
|
|
|
6138
|
-
/**
|
|
6139
|
-
* Change visibility for parts of the current scene.
|
|
6135
|
+
/**
|
|
6136
|
+
* Change visibility for parts of the current scene.
|
|
6140
6137
|
*/
|
|
6141
6138
|
this.changeGlyphsetsVisibility = function (name, value) {
|
|
6142
6139
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'glyphsets');
|
|
6143
6140
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'glyphsets');
|
|
6144
6141
|
};
|
|
6145
6142
|
|
|
6146
|
-
/**
|
|
6147
|
-
* Change visibility for parts of the current scene.
|
|
6143
|
+
/**
|
|
6144
|
+
* Change visibility for parts of the current scene.
|
|
6148
6145
|
*/
|
|
6149
6146
|
this.changeLinesVisibility = function (name, value) {
|
|
6150
6147
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'lines');
|
|
6151
6148
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'lines');
|
|
6152
6149
|
};
|
|
6153
6150
|
|
|
6154
|
-
/**
|
|
6155
|
-
* Change visibility for parts of the current scene.
|
|
6151
|
+
/**
|
|
6152
|
+
* Change visibility for parts of the current scene.
|
|
6156
6153
|
*/
|
|
6157
6154
|
this.changePointsetsVisibility = function (name, value) {
|
|
6158
6155
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'pointsets');
|
|
6159
6156
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'pointsets');
|
|
6160
6157
|
};
|
|
6161
6158
|
|
|
6162
|
-
/**
|
|
6163
|
-
* Change visibility for parts of the current scene.
|
|
6159
|
+
/**
|
|
6160
|
+
* Change visibility for parts of the current scene.
|
|
6164
6161
|
*/
|
|
6165
6162
|
this.changeOrganPartsVisibility = function (name, value, typeIn) {
|
|
6166
6163
|
var type = "all";
|
|
@@ -6199,9 +6196,9 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6199
6196
|
zincObject.userData["annotation"] = annotation;
|
|
6200
6197
|
};
|
|
6201
6198
|
|
|
6202
|
-
/**
|
|
6203
|
-
* New organs geometry has been added to the scene, add UIs and make
|
|
6204
|
-
* sure the viewport is correct.
|
|
6199
|
+
/**
|
|
6200
|
+
* New organs geometry has been added to the scene, add UIs and make
|
|
6201
|
+
* sure the viewport is correct.
|
|
6205
6202
|
*/
|
|
6206
6203
|
var _addOrganPartCallback = function _addOrganPartCallback(systemName, partName, useDefautColour) {
|
|
6207
6204
|
return function (zincObject) {
|
|
@@ -6222,9 +6219,9 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6222
6219
|
};
|
|
6223
6220
|
};
|
|
6224
6221
|
|
|
6225
|
-
/**
|
|
6226
|
-
* Toggle data field displays. Data fields displays flow/pressure and <button @click="play">Play</button>
|
|
6227
|
-
* other activities of the organs.
|
|
6222
|
+
/**
|
|
6223
|
+
* Toggle data field displays. Data fields displays flow/pressure and <button @click="play">Play</button>
|
|
6224
|
+
* other activities of the organs.
|
|
6228
6225
|
*/
|
|
6229
6226
|
this.updateFieldvisibility = function (dataFields, value) {
|
|
6230
6227
|
for (var i = 0; i < dataFields.length; i++) {
|
|
@@ -6246,11 +6243,11 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6246
6243
|
}
|
|
6247
6244
|
};
|
|
6248
6245
|
|
|
6249
|
-
/**
|
|
6250
|
-
* Return an array containing name(s) of species that also contains the
|
|
6251
|
-
* currently displayed organs.
|
|
6252
|
-
*
|
|
6253
|
-
* @returns {Array} containing species name
|
|
6246
|
+
/**
|
|
6247
|
+
* Return an array containing name(s) of species that also contains the
|
|
6248
|
+
* currently displayed organs.
|
|
6249
|
+
*
|
|
6250
|
+
* @returns {Array} containing species name
|
|
6254
6251
|
*/
|
|
6255
6252
|
this.getAvailableSpecies = function (currentSpecies, currentSystem, currentPart) {
|
|
6256
6253
|
var availableSpecies = new Array();
|
|
@@ -6372,11 +6369,11 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6372
6369
|
return false;
|
|
6373
6370
|
};
|
|
6374
6371
|
|
|
6375
|
-
/**
|
|
6376
|
-
* initialise loading of the html layout for the organs panel, this is
|
|
6377
|
-
* called when the {@link PJP.OrgansViewer} is created.
|
|
6378
|
-
*
|
|
6379
|
-
* @async
|
|
6372
|
+
/**
|
|
6373
|
+
* initialise loading of the html layout for the organs panel, this is
|
|
6374
|
+
* called when the {@link PJP.OrgansViewer} is created.
|
|
6375
|
+
*
|
|
6376
|
+
* @async
|
|
6380
6377
|
*/
|
|
6381
6378
|
var initialise = function initialise() {
|
|
6382
6379
|
_this.initialiseRenderer(undefined);
|
|
@@ -6771,11 +6768,11 @@ var _toConsumableArray = __webpack_require__("448a").default;
|
|
|
6771
6768
|
__webpack_require__("2439");
|
|
6772
6769
|
var THREE = __webpack_require__("9206").THREE;
|
|
6773
6770
|
|
|
6774
|
-
/**
|
|
6775
|
-
* This module manages highlighted and selected objects in 3D modules.
|
|
6776
|
-
*
|
|
6777
|
-
* @class
|
|
6778
|
-
* @returns {exports.GraphicsHighlight}
|
|
6771
|
+
/**
|
|
6772
|
+
* This module manages highlighted and selected objects in 3D modules.
|
|
6773
|
+
*
|
|
6774
|
+
* @class
|
|
6775
|
+
* @returns {exports.GraphicsHighlight}
|
|
6779
6776
|
*/
|
|
6780
6777
|
exports.GraphicsHighlight = function () {
|
|
6781
6778
|
var currentHighlightedObjects = [];
|
|
@@ -8158,17 +8155,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
8158
8155
|
|
|
8159
8156
|
module.exports = require("core-js/modules/es.string.replace.js");
|
|
8160
8157
|
|
|
8161
|
-
/***/ }),
|
|
8162
|
-
|
|
8163
|
-
/***/ "6514":
|
|
8164
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8165
|
-
|
|
8166
|
-
"use strict";
|
|
8167
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_1_id_718c348c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4136");
|
|
8168
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_1_id_718c348c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_1_id_718c348c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
8169
|
-
/* unused harmony reexport * */
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
8158
|
/***/ }),
|
|
8173
8159
|
|
|
8174
8160
|
/***/ "6611":
|
|
@@ -15089,10 +15075,10 @@ __webpack_require__("97d3");
|
|
|
15089
15075
|
__webpack_require__("13e3");
|
|
15090
15076
|
var THREE = __webpack_require__("9206").THREE;
|
|
15091
15077
|
|
|
15092
|
-
/**
|
|
15093
|
-
* Create a {@link Zinc.Renderer} on the dom element with corresponding elementID.
|
|
15094
|
-
* @param {String} elementID - id of the target dom element.
|
|
15095
|
-
* @returns {Zinc.Renderer}
|
|
15078
|
+
/**
|
|
15079
|
+
* Create a {@link Zinc.Renderer} on the dom element with corresponding elementID.
|
|
15080
|
+
* @param {String} elementID - id of the target dom element.
|
|
15081
|
+
* @returns {Zinc.Renderer}
|
|
15096
15082
|
*/
|
|
15097
15083
|
var createRenderer = function createRenderer() {
|
|
15098
15084
|
var WEBGL = __webpack_require__("cf41").WEBGL;
|
|
@@ -15284,31 +15270,31 @@ RendererModule.prototype.viewAll = function () {
|
|
|
15284
15270
|
if (this.zincRenderer) this.zincRenderer.viewAll();
|
|
15285
15271
|
};
|
|
15286
15272
|
|
|
15287
|
-
/**
|
|
15288
|
-
* Start the animation and let the renderer to processs with
|
|
15289
|
-
* time progression
|
|
15273
|
+
/**
|
|
15274
|
+
* Start the animation and let the renderer to processs with
|
|
15275
|
+
* time progression
|
|
15290
15276
|
*/
|
|
15291
15277
|
RendererModule.prototype.playAnimation = function (flag) {
|
|
15292
15278
|
if (this.zincRenderer) this.zincRenderer.playAnimation = flag;
|
|
15293
15279
|
};
|
|
15294
15280
|
|
|
15295
|
-
/**
|
|
15296
|
-
* Set the speed of playback
|
|
15281
|
+
/**
|
|
15282
|
+
* Set the speed of playback
|
|
15297
15283
|
*/
|
|
15298
15284
|
RendererModule.prototype.setPlayRate = function (value) {
|
|
15299
15285
|
if (this.zincRenderer) this.zincRenderer.setPlayRate(value);
|
|
15300
15286
|
};
|
|
15301
15287
|
|
|
15302
|
-
/**
|
|
15303
|
-
* Get the speed of playback
|
|
15288
|
+
/**
|
|
15289
|
+
* Get the speed of playback
|
|
15304
15290
|
*/
|
|
15305
15291
|
RendererModule.prototype.getPlayRate = function (value) {
|
|
15306
15292
|
if (this.zincRenderer) return this.zincRenderer.getPlayRate();else return 0.0;
|
|
15307
15293
|
};
|
|
15308
15294
|
|
|
15309
|
-
/** Initialise everything in the renderer, including the 3D renderer,
|
|
15310
|
-
* and picker for the 3D renderer.
|
|
15311
|
-
*
|
|
15295
|
+
/** Initialise everything in the renderer, including the 3D renderer,
|
|
15296
|
+
* and picker for the 3D renderer.
|
|
15297
|
+
*
|
|
15312
15298
|
*/
|
|
15313
15299
|
RendererModule.prototype.initialiseRenderer = function (displayAreaIn) {
|
|
15314
15300
|
if (this.zincRenderer === undefined || this.rendererContainer === undefined) {
|
|
@@ -17620,6 +17606,13 @@ module.exports = require("core-js/modules/web.url.js");
|
|
|
17620
17606
|
|
|
17621
17607
|
/***/ }),
|
|
17622
17608
|
|
|
17609
|
+
/***/ "b950":
|
|
17610
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17611
|
+
|
|
17612
|
+
// extracted by mini-css-extract-plugin
|
|
17613
|
+
|
|
17614
|
+
/***/ }),
|
|
17615
|
+
|
|
17623
17616
|
/***/ "bd9f":
|
|
17624
17617
|
/***/ (function(module, exports, __webpack_require__) {
|
|
17625
17618
|
|
|
@@ -17814,6 +17807,17 @@ col.install = function (Vue) {
|
|
|
17814
17807
|
|
|
17815
17808
|
/******/ });
|
|
17816
17809
|
|
|
17810
|
+
/***/ }),
|
|
17811
|
+
|
|
17812
|
+
/***/ "c31b":
|
|
17813
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17814
|
+
|
|
17815
|
+
"use strict";
|
|
17816
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_0_id_1d065206_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dbc4");
|
|
17817
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_0_id_1d065206_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_0_id_1d065206_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
17818
|
+
/* unused harmony reexport * */
|
|
17819
|
+
|
|
17820
|
+
|
|
17817
17821
|
/***/ }),
|
|
17818
17822
|
|
|
17819
17823
|
/***/ "c56a":
|
|
@@ -18153,9 +18157,9 @@ module.exports = require("core-js/modules/es.number.to-fixed.js");
|
|
|
18153
18157
|
|
|
18154
18158
|
__webpack_require__("c8a6");
|
|
18155
18159
|
__webpack_require__("6378");
|
|
18156
|
-
/**
|
|
18157
|
-
* @author alteredq / http://alteredqualia.com/
|
|
18158
|
-
* @author mr.doob / http://mrdoob.com/
|
|
18160
|
+
/**
|
|
18161
|
+
* @author alteredq / http://alteredqualia.com/
|
|
18162
|
+
* @author mr.doob / http://mrdoob.com/
|
|
18159
18163
|
*/
|
|
18160
18164
|
|
|
18161
18165
|
exports.WEBGL = {
|
|
@@ -18309,6 +18313,13 @@ module.exports = require("core-js/modules/es.function.name.js");
|
|
|
18309
18313
|
|
|
18310
18314
|
/***/ }),
|
|
18311
18315
|
|
|
18316
|
+
/***/ "dbc4":
|
|
18317
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
18318
|
+
|
|
18319
|
+
// extracted by mini-css-extract-plugin
|
|
18320
|
+
|
|
18321
|
+
/***/ }),
|
|
18322
|
+
|
|
18312
18323
|
/***/ "dc50":
|
|
18313
18324
|
/***/ (function(module, exports) {
|
|
18314
18325
|
|
|
@@ -20817,17 +20828,6 @@ module.exports = require("core-js/modules/es.array.slice.js");
|
|
|
20817
20828
|
|
|
20818
20829
|
module.exports = require("core-js/modules/es.object.keys.js");
|
|
20819
20830
|
|
|
20820
|
-
/***/ }),
|
|
20821
|
-
|
|
20822
|
-
/***/ "ee47":
|
|
20823
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20824
|
-
|
|
20825
|
-
"use strict";
|
|
20826
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_0_id_718c348c_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2a5b");
|
|
20827
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_0_id_718c348c_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ScaffoldVuer_vue_vue_type_style_index_0_id_718c348c_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
20828
|
-
/* unused harmony reexport * */
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
20831
|
/***/ }),
|
|
20832
20832
|
|
|
20833
20833
|
/***/ "eedf":
|
|
@@ -22390,7 +22390,7 @@ if (typeof window !== 'undefined') {
|
|
|
22390
22390
|
// Indicate to webpack that this file can be concatenated
|
|
22391
22391
|
/* harmony default export */ var setPublicPath = (null);
|
|
22392
22392
|
|
|
22393
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
22393
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"27d54817-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ScaffoldVuer.vue?vue&type=template&id=1d065206&scoped=true&
|
|
22394
22394
|
var render = function render() {
|
|
22395
22395
|
var _vm = this,
|
|
22396
22396
|
_c = _vm._self._c;
|
|
@@ -22875,7 +22875,7 @@ var render = function render() {
|
|
|
22875
22875
|
};
|
|
22876
22876
|
var staticRenderFns = [];
|
|
22877
22877
|
|
|
22878
|
-
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue?vue&type=template&id=
|
|
22878
|
+
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue?vue&type=template&id=1d065206&scoped=true&
|
|
22879
22879
|
|
|
22880
22880
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/tabs.css
|
|
22881
22881
|
var tabs = __webpack_require__("075a");
|
|
@@ -22984,7 +22984,7 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
22984
22984
|
var external_vue_ = __webpack_require__("8bbf");
|
|
22985
22985
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
22986
22986
|
|
|
22987
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
22987
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"27d54817-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/OpacityControls.vue?vue&type=template&id=4c00a30f&scoped=true&
|
|
22988
22988
|
var OpacityControlsvue_type_template_id_4c00a30f_scoped_true_render = function render() {
|
|
22989
22989
|
var _vm = this,
|
|
22990
22990
|
_c = _vm._self._c;
|
|
@@ -23131,8 +23131,8 @@ external_vue_default.a.use(lib_icon_default.a);
|
|
|
23131
23131
|
external_vue_default.a.use(lib_main_default.a);
|
|
23132
23132
|
external_vue_default.a.use(lib_slider_default.a);
|
|
23133
23133
|
|
|
23134
|
-
/**
|
|
23135
|
-
* A component to control the opacity of the target object.
|
|
23134
|
+
/**
|
|
23135
|
+
* A component to control the opacity of the target object.
|
|
23136
23136
|
*/
|
|
23137
23137
|
/* harmony default export */ var OpacityControlsvue_type_script_lang_js_ = ({
|
|
23138
23138
|
name: "OpacityControls",
|
|
@@ -23291,7 +23291,7 @@ var component = normalizeComponent(
|
|
|
23291
23291
|
)
|
|
23292
23292
|
|
|
23293
23293
|
/* harmony default export */ var OpacityControls = (component.exports);
|
|
23294
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
23294
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"27d54817-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ScaffoldTooltip.vue?vue&type=template&id=0cbe500c&scoped=true&
|
|
23295
23295
|
var ScaffoldTooltipvue_type_template_id_0cbe500c_scoped_true_render = function render() {
|
|
23296
23296
|
var _vm = this,
|
|
23297
23297
|
_c = _vm._self._c;
|
|
@@ -23339,8 +23339,8 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
23339
23339
|
locale_default.a.use(en_default.a);
|
|
23340
23340
|
external_vue_default.a.use(lib_popover_default.a);
|
|
23341
23341
|
|
|
23342
|
-
/**
|
|
23343
|
-
* A component to control the opacity of the target object.
|
|
23342
|
+
/**
|
|
23343
|
+
* A component to control the opacity of the target object.
|
|
23344
23344
|
*/
|
|
23345
23345
|
/* harmony default export */ var ScaffoldTooltipvue_type_script_lang_js_ = ({
|
|
23346
23346
|
name: "ScaffoldTooltip",
|
|
@@ -23431,7 +23431,7 @@ var es_array_includes_js_ = __webpack_require__("85f7");
|
|
|
23431
23431
|
// EXTERNAL MODULE: external "core-js/modules/es.string.includes.js"
|
|
23432
23432
|
var es_string_includes_js_ = __webpack_require__("fd22");
|
|
23433
23433
|
|
|
23434
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
23434
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"27d54817-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TreeControls.vue?vue&type=template&id=29a4f879&scoped=true&
|
|
23435
23435
|
|
|
23436
23436
|
|
|
23437
23437
|
var TreeControlsvue_type_template_id_29a4f879_scoped_true_render = function render() {
|
|
@@ -23993,14 +23993,14 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
23993
23993
|
return 0;
|
|
23994
23994
|
};
|
|
23995
23995
|
|
|
23996
|
-
/**
|
|
23997
|
-
* A vue component for toggling visibility of various regions.
|
|
23996
|
+
/**
|
|
23997
|
+
* A vue component for toggling visibility of various regions.
|
|
23998
23998
|
*/
|
|
23999
23999
|
/* harmony default export */ var TreeControlsvue_type_script_lang_js_ = ({
|
|
24000
24000
|
name: "TreeControls",
|
|
24001
24001
|
props: {
|
|
24002
|
-
/**
|
|
24003
|
-
* Enable/disable colour picker
|
|
24002
|
+
/**
|
|
24003
|
+
* Enable/disable colour picker
|
|
24004
24004
|
*/
|
|
24005
24005
|
showColourPicker: Boolean,
|
|
24006
24006
|
isReady: Boolean
|
|
@@ -24079,8 +24079,8 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
24079
24079
|
return data;
|
|
24080
24080
|
}
|
|
24081
24081
|
},
|
|
24082
|
-
/**
|
|
24083
|
-
* This is called when a new zinc object is read into the scene.
|
|
24082
|
+
/**
|
|
24083
|
+
* This is called when a new zinc object is read into the scene.
|
|
24084
24084
|
*/
|
|
24085
24085
|
zincObjectAdded: function zincObjectAdded(zincObject) {
|
|
24086
24086
|
// Using the new uuid, the cavaet of that is graphics with
|
|
@@ -24147,16 +24147,16 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
24147
24147
|
this.removeHover(propagate);
|
|
24148
24148
|
}
|
|
24149
24149
|
},
|
|
24150
|
-
/**
|
|
24151
|
-
* Select a region by its name.
|
|
24150
|
+
/**
|
|
24151
|
+
* Select a region by its name.
|
|
24152
24152
|
*/
|
|
24153
24153
|
changeActiveByNames: function changeActiveByNames(names, regionPath, propagate) {
|
|
24154
24154
|
var rootRegion = this.$module.scene.getRootRegion();
|
|
24155
24155
|
var targetObjects = utilities_findObjectsWithNames(rootRegion, names, regionPath, true);
|
|
24156
24156
|
this.changeActiveByPrimitives(targetObjects, propagate);
|
|
24157
24157
|
},
|
|
24158
|
-
/**
|
|
24159
|
-
* Hover a region by its name.
|
|
24158
|
+
/**
|
|
24159
|
+
* Hover a region by its name.
|
|
24160
24160
|
*/
|
|
24161
24161
|
changeHoverByNames: function changeHoverByNames(names, regionPath, propagate) {
|
|
24162
24162
|
var rootRegion = this.$module.scene.getRootRegion();
|
|
@@ -24176,22 +24176,22 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
24176
24176
|
this.changeHoverByPrimitives(targetObjects, propagate);
|
|
24177
24177
|
}
|
|
24178
24178
|
},
|
|
24179
|
-
/**
|
|
24180
|
-
* Unselect the current selected region.
|
|
24179
|
+
/**
|
|
24180
|
+
* Unselect the current selected region.
|
|
24181
24181
|
*/
|
|
24182
24182
|
removeActive: function removeActive(propagate) {
|
|
24183
24183
|
this.active = [];
|
|
24184
24184
|
this.$emit("object-selected", [], propagate);
|
|
24185
24185
|
},
|
|
24186
|
-
/**
|
|
24187
|
-
* Unselect the current hover region.
|
|
24186
|
+
/**
|
|
24187
|
+
* Unselect the current hover region.
|
|
24188
24188
|
*/
|
|
24189
24189
|
removeHover: function removeHover(propagate) {
|
|
24190
24190
|
this.hover = [];
|
|
24191
24191
|
this.$emit("object-hovered", [], propagate);
|
|
24192
24192
|
},
|
|
24193
|
-
/**
|
|
24194
|
-
* Reset the controls.
|
|
24193
|
+
/**
|
|
24194
|
+
* Reset the controls.
|
|
24195
24195
|
*/
|
|
24196
24196
|
clear: function clear() {
|
|
24197
24197
|
this.active.length = 0;
|
|
@@ -24428,24 +24428,24 @@ var external_minisearch_default = /*#__PURE__*/__webpack_require__.n(external_mi
|
|
|
24428
24428
|
|
|
24429
24429
|
|
|
24430
24430
|
|
|
24431
|
-
/******************************************************************************
|
|
24432
|
-
|
|
24433
|
-
Flatmap viewer and annotation tool
|
|
24434
|
-
|
|
24435
|
-
Copyright (c) 2019 David Brooks
|
|
24436
|
-
|
|
24437
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
24438
|
-
you may not use this file except in compliance with the License.
|
|
24439
|
-
You may obtain a copy of the License at
|
|
24440
|
-
|
|
24441
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
24442
|
-
|
|
24443
|
-
Unless required by applicable law or agreed to in writing, software
|
|
24444
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
24445
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24446
|
-
See the License for the specific language governing permissions and
|
|
24447
|
-
limitations under the License.
|
|
24448
|
-
|
|
24431
|
+
/******************************************************************************
|
|
24432
|
+
|
|
24433
|
+
Flatmap viewer and annotation tool
|
|
24434
|
+
|
|
24435
|
+
Copyright (c) 2019 David Brooks
|
|
24436
|
+
|
|
24437
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
24438
|
+
you may not use this file except in compliance with the License.
|
|
24439
|
+
You may obtain a copy of the License at
|
|
24440
|
+
|
|
24441
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
24442
|
+
|
|
24443
|
+
Unless required by applicable law or agreed to in writing, software
|
|
24444
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
24445
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24446
|
+
See the License for the specific language governing permissions and
|
|
24447
|
+
limitations under the License.
|
|
24448
|
+
|
|
24449
24449
|
******************************************************************************/
|
|
24450
24450
|
|
|
24451
24451
|
//==============================================================================
|
|
@@ -24709,11 +24709,11 @@ external_vue_default.a.use(lib_tabs_default.a);
|
|
|
24709
24709
|
var OrgansViewer = __webpack_require__("53d7").OrgansViewer;
|
|
24710
24710
|
var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
24711
24711
|
|
|
24712
|
-
/**
|
|
24713
|
-
* A vue component of the scaffold viewer.
|
|
24714
|
-
*
|
|
24715
|
-
* @requires ./OpacityControls.vue
|
|
24716
|
-
* @requires ./TreeControls.vue
|
|
24712
|
+
/**
|
|
24713
|
+
* A vue component of the scaffold viewer.
|
|
24714
|
+
*
|
|
24715
|
+
* @requires ./OpacityControls.vue
|
|
24716
|
+
* @requires ./TreeControls.vue
|
|
24717
24717
|
*/
|
|
24718
24718
|
/* harmony default export */ var ScaffoldVuervue_type_script_lang_js_ = ({
|
|
24719
24719
|
name: "ScaffoldVuer",
|
|
@@ -24725,56 +24725,56 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24725
24725
|
TreeControls: TreeControls
|
|
24726
24726
|
},
|
|
24727
24727
|
props: {
|
|
24728
|
-
/**
|
|
24729
|
-
* URL of the zincjs metadata. This value will be ignored if a valid
|
|
24730
|
-
* state prop is also provided.
|
|
24731
|
-
* If the url needs to be updated with state present, please use
|
|
24732
|
-
* the setURL method.
|
|
24728
|
+
/**
|
|
24729
|
+
* URL of the zincjs metadata. This value will be ignored if a valid
|
|
24730
|
+
* state prop is also provided.
|
|
24731
|
+
* If the url needs to be updated with state present, please use
|
|
24732
|
+
* the setURL method.
|
|
24733
24733
|
*/
|
|
24734
24734
|
url: {
|
|
24735
24735
|
type: String,
|
|
24736
24736
|
default: ""
|
|
24737
24737
|
},
|
|
24738
|
-
/**
|
|
24739
|
-
* Show the colour control of set to true.
|
|
24738
|
+
/**
|
|
24739
|
+
* Show the colour control of set to true.
|
|
24740
24740
|
*/
|
|
24741
24741
|
showColourPicker: {
|
|
24742
24742
|
type: Boolean,
|
|
24743
24743
|
default: false
|
|
24744
24744
|
},
|
|
24745
|
-
/**
|
|
24746
|
-
* Flag to show/hide the UI.
|
|
24745
|
+
/**
|
|
24746
|
+
* Flag to show/hide the UI.
|
|
24747
24747
|
*/
|
|
24748
24748
|
displayUI: {
|
|
24749
24749
|
type: Boolean,
|
|
24750
24750
|
default: true
|
|
24751
24751
|
},
|
|
24752
|
-
/**
|
|
24753
|
-
* Display all graphics at start.
|
|
24754
|
-
*
|
|
24755
|
-
* This setting only works when traditional is set to false.
|
|
24752
|
+
/**
|
|
24753
|
+
* Display all graphics at start.
|
|
24754
|
+
*
|
|
24755
|
+
* This setting only works when traditional is set to false.
|
|
24756
24756
|
*/
|
|
24757
24757
|
displayAtStartUp: {
|
|
24758
24758
|
type: Boolean,
|
|
24759
24759
|
default: true
|
|
24760
24760
|
},
|
|
24761
|
-
/**
|
|
24762
|
-
* Use for toggling the help tooltips.
|
|
24761
|
+
/**
|
|
24762
|
+
* Use for toggling the help tooltips.
|
|
24763
24763
|
*/
|
|
24764
24764
|
helpMode: {
|
|
24765
24765
|
type: Boolean,
|
|
24766
24766
|
default: false
|
|
24767
24767
|
},
|
|
24768
|
-
/**
|
|
24769
|
-
* Use for show/display beta warning icon.
|
|
24768
|
+
/**
|
|
24769
|
+
* Use for show/display beta warning icon.
|
|
24770
24770
|
*/
|
|
24771
24771
|
displayWarning: {
|
|
24772
24772
|
type: Boolean,
|
|
24773
24773
|
default: true
|
|
24774
24774
|
},
|
|
24775
|
-
/**
|
|
24776
|
-
* Warning message for the hovered over text
|
|
24777
|
-
* on the warning icon.
|
|
24775
|
+
/**
|
|
24776
|
+
* Warning message for the hovered over text
|
|
24777
|
+
* on the warning icon.
|
|
24778
24778
|
*/
|
|
24779
24779
|
warningMessage: {
|
|
24780
24780
|
type: String,
|
|
@@ -24788,8 +24788,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24788
24788
|
type: String,
|
|
24789
24789
|
default: "New feature - Local search is now available"
|
|
24790
24790
|
},
|
|
24791
|
-
/**
|
|
24792
|
-
* Show/hide pickable markers for regions.
|
|
24791
|
+
/**
|
|
24792
|
+
* Show/hide pickable markers for regions.
|
|
24793
24793
|
*/
|
|
24794
24794
|
displayMarkers: {
|
|
24795
24795
|
type: Boolean,
|
|
@@ -24801,22 +24801,22 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24801
24801
|
return [];
|
|
24802
24802
|
}
|
|
24803
24803
|
},
|
|
24804
|
-
/**
|
|
24805
|
-
* Show/hide minimap.
|
|
24804
|
+
/**
|
|
24805
|
+
* Show/hide minimap.
|
|
24806
24806
|
*/
|
|
24807
24807
|
displayMinimap: {
|
|
24808
24808
|
type: Boolean,
|
|
24809
24809
|
default: false
|
|
24810
24810
|
},
|
|
24811
|
-
/**
|
|
24812
|
-
* Format of the input URL
|
|
24811
|
+
/**
|
|
24812
|
+
* Format of the input URL
|
|
24813
24813
|
*/
|
|
24814
24814
|
format: {
|
|
24815
24815
|
type: String,
|
|
24816
24816
|
default: "metadata"
|
|
24817
24817
|
},
|
|
24818
|
-
/**
|
|
24819
|
-
* Settings for minimap position, size and alignment.
|
|
24818
|
+
/**
|
|
24819
|
+
* Settings for minimap position, size and alignment.
|
|
24820
24820
|
*/
|
|
24821
24821
|
minimapSettings: {
|
|
24822
24822
|
type: Object,
|
|
@@ -24830,9 +24830,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24830
24830
|
};
|
|
24831
24831
|
}
|
|
24832
24832
|
},
|
|
24833
|
-
/**
|
|
24834
|
-
* Flag to determine rather open map UI should be
|
|
24835
|
-
* presented or not.
|
|
24833
|
+
/**
|
|
24834
|
+
* Flag to determine rather open map UI should be
|
|
24835
|
+
* presented or not.
|
|
24836
24836
|
*/
|
|
24837
24837
|
enableOpenMapUI: {
|
|
24838
24838
|
type: Boolean,
|
|
@@ -24853,32 +24853,32 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24853
24853
|
}];
|
|
24854
24854
|
}
|
|
24855
24855
|
},
|
|
24856
|
-
/**
|
|
24857
|
-
* State containing state of the scaffold.
|
|
24856
|
+
/**
|
|
24857
|
+
* State containing state of the scaffold.
|
|
24858
24858
|
*/
|
|
24859
24859
|
state: {
|
|
24860
24860
|
type: Object,
|
|
24861
24861
|
default: undefined
|
|
24862
24862
|
},
|
|
24863
|
-
/**
|
|
24864
|
-
* Optional prop for the name of the region to focus on,
|
|
24865
|
-
* this option is ignored if state or viewURL is also provided.
|
|
24863
|
+
/**
|
|
24864
|
+
* Optional prop for the name of the region to focus on,
|
|
24865
|
+
* this option is ignored if state or viewURL is also provided.
|
|
24866
24866
|
*/
|
|
24867
24867
|
region: {
|
|
24868
24868
|
type: String,
|
|
24869
24869
|
default: ""
|
|
24870
24870
|
},
|
|
24871
|
-
/**
|
|
24872
|
-
* Optional prop for an URL of containing information of a viewport.
|
|
24873
|
-
* This option is ignored if state is also provided.
|
|
24874
|
-
* It will use the provided URL as base if a relative parth is provided.
|
|
24871
|
+
/**
|
|
24872
|
+
* Optional prop for an URL of containing information of a viewport.
|
|
24873
|
+
* This option is ignored if state is also provided.
|
|
24874
|
+
* It will use the provided URL as base if a relative parth is provided.
|
|
24875
24875
|
*/
|
|
24876
24876
|
viewURL: {
|
|
24877
24877
|
type: String,
|
|
24878
24878
|
default: ""
|
|
24879
24879
|
},
|
|
24880
|
-
/**
|
|
24881
|
-
* Settings for turning on/off rendering
|
|
24880
|
+
/**
|
|
24881
|
+
* Settings for turning on/off rendering
|
|
24882
24882
|
*/
|
|
24883
24883
|
render: {
|
|
24884
24884
|
type: Boolean,
|
|
@@ -24890,8 +24890,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24890
24890
|
sceneData: this.$module.sceneData,
|
|
24891
24891
|
isPlaying: false,
|
|
24892
24892
|
isReady: false,
|
|
24893
|
-
/**
|
|
24894
|
-
* This is set when scene is transitioning.
|
|
24893
|
+
/**
|
|
24894
|
+
* This is set when scene is transitioning.
|
|
24895
24895
|
*/
|
|
24896
24896
|
isTransitioning: false,
|
|
24897
24897
|
tooltipAppendToBody: false,
|
|
@@ -25002,11 +25002,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25002
25002
|
this.$module.scene.displayMinimap = val;
|
|
25003
25003
|
},
|
|
25004
25004
|
"sceneData.currentTime": function sceneDataCurrentTime() {
|
|
25005
|
-
/**
|
|
25006
|
-
* Triggers when scene time changes.
|
|
25007
|
-
*
|
|
25008
|
-
* @property {number} time Current build-in time of scene.
|
|
25009
|
-
* of selected object.
|
|
25005
|
+
/**
|
|
25006
|
+
* Triggers when scene time changes.
|
|
25007
|
+
*
|
|
25008
|
+
* @property {number} time Current build-in time of scene.
|
|
25009
|
+
* of selected object.
|
|
25010
25010
|
*/
|
|
25011
25011
|
this.$emit("timeChanged", this.sceneData.currentTime);
|
|
25012
25012
|
},
|
|
@@ -25022,7 +25022,6 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25022
25022
|
},
|
|
25023
25023
|
markerLabels: function markerLabels(labels) {
|
|
25024
25024
|
var _this = this;
|
|
25025
|
-
console.log("marker labels changed", labels);
|
|
25026
25025
|
this.previousMarkerLabels.forEach(function (pml) {
|
|
25027
25026
|
_this.setMarkerModeForObjectsWithName(pml, "off");
|
|
25028
25027
|
});
|
|
@@ -25065,16 +25064,16 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25065
25064
|
if (this.$refs.treeControls) this.$refs.treeControls.zincObjectAdded(zincObject);
|
|
25066
25065
|
}
|
|
25067
25066
|
},
|
|
25068
|
-
/**
|
|
25069
|
-
* This is called when a new zinc object is read into the scene.
|
|
25067
|
+
/**
|
|
25068
|
+
* This is called when a new zinc object is read into the scene.
|
|
25070
25069
|
*/
|
|
25071
25070
|
zincObjectAdded: function zincObjectAdded(zincObject) {
|
|
25072
25071
|
this.loading = false;
|
|
25073
25072
|
this.$_searchIndex.addZincObject(zincObject, zincObject.uuid);
|
|
25074
25073
|
this.$emit("zinc-object-added", zincObject);
|
|
25075
25074
|
},
|
|
25076
|
-
/**
|
|
25077
|
-
*
|
|
25075
|
+
/**
|
|
25076
|
+
*
|
|
25078
25077
|
*/
|
|
25079
25078
|
addRegionsToSearchIndex: function addRegionsToSearchIndex() {
|
|
25080
25079
|
var _this2 = this;
|
|
@@ -25084,19 +25083,19 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25084
25083
|
_this2.$_searchIndex.addRegion(region, region.uuid);
|
|
25085
25084
|
});
|
|
25086
25085
|
},
|
|
25087
|
-
/**
|
|
25088
|
-
* This is called when Change backgspeedround colour button
|
|
25089
|
-
* is pressed an causes the backgrouColornd colour to be changed
|
|
25090
|
-
* to one of the three preset colour: white, black and
|
|
25091
|
-
* lightskyblue.
|
|
25086
|
+
/**
|
|
25087
|
+
* This is called when Change backgspeedround colour button
|
|
25088
|
+
* is pressed an causes the backgrouColornd colour to be changed
|
|
25089
|
+
* to one of the three preset colour: white, black and
|
|
25090
|
+
* lightskyblue.
|
|
25092
25091
|
*/
|
|
25093
25092
|
backgroundChangeCallback: function backgroundChangeCallback(colour) {
|
|
25094
25093
|
this.currentBackground = colour;
|
|
25095
25094
|
this.$module.zincRenderer.getThreeJSRenderer().setClearColor(this.currentBackground, 1);
|
|
25096
25095
|
},
|
|
25097
|
-
/**
|
|
25098
|
-
* This is called by captueeScreenshot and after the last render
|
|
25099
|
-
* loop, it download a screenshot of the current scene with no UI.
|
|
25096
|
+
/**
|
|
25097
|
+
* This is called by captueeScreenshot and after the last render
|
|
25098
|
+
* loop, it download a screenshot of the current scene with no UI.
|
|
25100
25099
|
*/
|
|
25101
25100
|
captureScreenshotCallback: function captureScreenshotCallback() {
|
|
25102
25101
|
//Remove the callback, only needs to happen once
|
|
@@ -25109,21 +25108,21 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25109
25108
|
hrefElement.click();
|
|
25110
25109
|
hrefElement.remove();
|
|
25111
25110
|
},
|
|
25112
|
-
/**
|
|
25113
|
-
* Function for capturing a screenshot of the current rendering.
|
|
25114
|
-
*
|
|
25115
|
-
* @param {String} filename filename given to the screenshot.
|
|
25116
|
-
*
|
|
25117
|
-
* @public
|
|
25111
|
+
/**
|
|
25112
|
+
* Function for capturing a screenshot of the current rendering.
|
|
25113
|
+
*
|
|
25114
|
+
* @param {String} filename filename given to the screenshot.
|
|
25115
|
+
*
|
|
25116
|
+
* @public
|
|
25118
25117
|
*/
|
|
25119
25118
|
captureScreenshot: function captureScreenshot(filename) {
|
|
25120
25119
|
this.captureFilename = filename;
|
|
25121
25120
|
this.captureID = this.$module.zincRenderer.addPostRenderCallbackFunction(this.captureScreenshotCallback);
|
|
25122
25121
|
},
|
|
25123
|
-
/**
|
|
25124
|
-
* Function to clear current scene, the tree controls and the search index.
|
|
25125
|
-
*
|
|
25126
|
-
* @public
|
|
25122
|
+
/**
|
|
25123
|
+
* Function to clear current scene, the tree controls and the search index.
|
|
25124
|
+
*
|
|
25125
|
+
* @public
|
|
25127
25126
|
*/
|
|
25128
25127
|
clearScene: function clearScene() {
|
|
25129
25128
|
if (this.$refs.treeControls) this.$refs.treeControls.clear();
|
|
@@ -25140,52 +25139,52 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25140
25139
|
}
|
|
25141
25140
|
return val ? val.toFixed(2) + " ms" : "0 ms";
|
|
25142
25141
|
},
|
|
25143
|
-
/**
|
|
25144
|
-
* Function to reset the view to default.
|
|
25145
|
-
* Also called when the associated button is pressed.
|
|
25146
|
-
*
|
|
25147
|
-
* @public
|
|
25142
|
+
/**
|
|
25143
|
+
* Function to reset the view to default.
|
|
25144
|
+
* Also called when the associated button is pressed.
|
|
25145
|
+
*
|
|
25146
|
+
* @public
|
|
25148
25147
|
*/
|
|
25149
25148
|
fitWindow: function fitWindow() {
|
|
25150
25149
|
if (this.$module.scene) {
|
|
25151
25150
|
this.$module.scene.viewAll();
|
|
25152
25151
|
}
|
|
25153
25152
|
},
|
|
25154
|
-
/**
|
|
25155
|
-
* Function to zoom in.
|
|
25156
|
-
* Also called when the associated button is pressed.
|
|
25157
|
-
*
|
|
25158
|
-
* @public
|
|
25153
|
+
/**
|
|
25154
|
+
* Function to zoom in.
|
|
25155
|
+
* Also called when the associated button is pressed.
|
|
25156
|
+
*
|
|
25157
|
+
* @public
|
|
25159
25158
|
*/
|
|
25160
25159
|
zoomIn: function zoomIn() {
|
|
25161
25160
|
if (this.$module.scene) {
|
|
25162
25161
|
this.$module.scene.changeZoomByScrollRateUnit(-1);
|
|
25163
25162
|
}
|
|
25164
25163
|
},
|
|
25165
|
-
/**
|
|
25166
|
-
* Function to zoom out.
|
|
25167
|
-
* Also called when the associated button is pressed.
|
|
25168
|
-
*
|
|
25169
|
-
* @public
|
|
25164
|
+
/**
|
|
25165
|
+
* Function to zoom out.
|
|
25166
|
+
* Also called when the associated button is pressed.
|
|
25167
|
+
*
|
|
25168
|
+
* @public
|
|
25170
25169
|
*/
|
|
25171
25170
|
zoomOut: function zoomOut() {
|
|
25172
25171
|
if (this.$module.scene) {
|
|
25173
25172
|
this.$module.scene.changeZoomByScrollRateUnit(1);
|
|
25174
25173
|
}
|
|
25175
25174
|
},
|
|
25176
|
-
/**
|
|
25177
|
-
* Function to change the current play speed.
|
|
25178
|
-
*
|
|
25179
|
-
* @public
|
|
25175
|
+
/**
|
|
25176
|
+
* Function to change the current play speed.
|
|
25177
|
+
*
|
|
25178
|
+
* @public
|
|
25180
25179
|
*/
|
|
25181
25180
|
speedChanged: function speedChanged(speed) {
|
|
25182
25181
|
this.currentSpeed = speed;
|
|
25183
25182
|
this.$module.setPlayRate(this.defaultRate * this.currentSpeed);
|
|
25184
25183
|
},
|
|
25185
|
-
/**
|
|
25186
|
-
* Function used to stop the free spin
|
|
25187
|
-
*
|
|
25188
|
-
* @public
|
|
25184
|
+
/**
|
|
25185
|
+
* Function used to stop the free spin
|
|
25186
|
+
*
|
|
25187
|
+
* @public
|
|
25189
25188
|
*/
|
|
25190
25189
|
stopFreeSpin: function stopFreeSpin() {
|
|
25191
25190
|
var cameracontrol = this.$module.scene.getZincCameraControls();
|
|
@@ -25199,8 +25198,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25199
25198
|
}
|
|
25200
25199
|
return objects;
|
|
25201
25200
|
},
|
|
25202
|
-
/**
|
|
25203
|
-
* Focus on named region
|
|
25201
|
+
/**
|
|
25202
|
+
* Focus on named region
|
|
25204
25203
|
*/
|
|
25205
25204
|
viewRegion: function viewRegion(names) {
|
|
25206
25205
|
var rootRegion = this.$module.scene.getRootRegion();
|
|
@@ -25249,11 +25248,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25249
25248
|
}
|
|
25250
25249
|
return undefined;
|
|
25251
25250
|
},
|
|
25252
|
-
/**
|
|
25253
|
-
* Function used to rotate the scene.
|
|
25254
|
-
* Also called when the associated button is pressed.
|
|
25255
|
-
*
|
|
25256
|
-
* @public
|
|
25251
|
+
/**
|
|
25252
|
+
* Function used to rotate the scene.
|
|
25253
|
+
* Also called when the associated button is pressed.
|
|
25254
|
+
*
|
|
25255
|
+
* @public
|
|
25257
25256
|
*/
|
|
25258
25257
|
freeSpin: function freeSpin() {
|
|
25259
25258
|
if (this.$module.scene) {
|
|
@@ -25264,10 +25263,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25264
25263
|
setTimeout(this.stopFreeSpin, 4000);
|
|
25265
25264
|
}
|
|
25266
25265
|
},
|
|
25267
|
-
/**
|
|
25268
|
-
* Callback when a region is selected/highlighted.
|
|
25269
|
-
* It will also update other controls.
|
|
25270
|
-
*
|
|
25266
|
+
/**
|
|
25267
|
+
* Callback when a region is selected/highlighted.
|
|
25268
|
+
* It will also update other controls.
|
|
25269
|
+
*
|
|
25271
25270
|
*/
|
|
25272
25271
|
eventNotifierCallback: function eventNotifierCallback(event) {
|
|
25273
25272
|
var names = [];
|
|
@@ -25282,10 +25281,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25282
25281
|
});
|
|
25283
25282
|
zincObjects = event.zincObjects;
|
|
25284
25283
|
}
|
|
25285
|
-
/*
|
|
25286
|
-
* Event Type 1: Selected
|
|
25287
|
-
* Event Type 2: Highlighted
|
|
25288
|
-
* Event Type 1: Move
|
|
25284
|
+
/*
|
|
25285
|
+
* Event Type 1: Selected
|
|
25286
|
+
* Event Type 2: Highlighted
|
|
25287
|
+
* Event Type 1: Move
|
|
25289
25288
|
*/
|
|
25290
25289
|
if (event.eventType == 1) {
|
|
25291
25290
|
if (this.$refs.treeControls) {
|
|
@@ -25335,10 +25334,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25335
25334
|
}
|
|
25336
25335
|
}
|
|
25337
25336
|
},
|
|
25338
|
-
/**
|
|
25339
|
-
* Get the coordinates of the current selected region.
|
|
25340
|
-
*
|
|
25341
|
-
* @public
|
|
25337
|
+
/**
|
|
25338
|
+
* Get the coordinates of the current selected region.
|
|
25339
|
+
*
|
|
25340
|
+
* @public
|
|
25342
25341
|
*/
|
|
25343
25342
|
getCoordinatesOfSelected: function getCoordinatesOfSelected() {
|
|
25344
25343
|
if (this.selectedObjects && this.selectedObjects.length > 0) {
|
|
@@ -25346,46 +25345,46 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25346
25345
|
}
|
|
25347
25346
|
return undefined;
|
|
25348
25347
|
},
|
|
25349
|
-
/**
|
|
25350
|
-
* Return an object containing the window coordinates of the
|
|
25351
|
-
* current selected region which will be updated after each render
|
|
25352
|
-
* loop.
|
|
25353
|
-
*
|
|
25354
|
-
* @public
|
|
25348
|
+
/**
|
|
25349
|
+
* Return an object containing the window coordinates of the
|
|
25350
|
+
* current selected region which will be updated after each render
|
|
25351
|
+
* loop.
|
|
25352
|
+
*
|
|
25353
|
+
* @public
|
|
25355
25354
|
*/
|
|
25356
25355
|
getDynamicSelectedCoordinates: function getDynamicSelectedCoordinates() {
|
|
25357
25356
|
return this.$module.selectedScreenCoordinates;
|
|
25358
25357
|
},
|
|
25359
|
-
/**
|
|
25360
|
-
* Callback when time is changed through the UI.
|
|
25358
|
+
/**
|
|
25359
|
+
* Callback when time is changed through the UI.
|
|
25361
25360
|
*/
|
|
25362
25361
|
timeChange: function timeChange(event) {
|
|
25363
25362
|
var normalizedTime = event / this.timeMax * 100;
|
|
25364
25363
|
if (normalizedTime != this.sceneData.currentTime) this.$module.updateTime(normalizedTime);
|
|
25365
25364
|
},
|
|
25366
|
-
/**
|
|
25367
|
-
* A callback used by children components. Set the selected zinc object
|
|
25368
|
-
*
|
|
25369
|
-
* @param {object} object Zinc object
|
|
25365
|
+
/**
|
|
25366
|
+
* A callback used by children components. Set the selected zinc object
|
|
25367
|
+
*
|
|
25368
|
+
* @param {object} object Zinc object
|
|
25370
25369
|
*/
|
|
25371
25370
|
objectSelected: function objectSelected(objects, propagate) {
|
|
25372
25371
|
this.selectedObjects = objects;
|
|
25373
25372
|
if (this.selectedObjects && this.selectedObjects.length > 0) this.$refs.opacityControl.setObject(this.selectedObjects[0]);
|
|
25374
25373
|
this.$module.setSelectedByZincObjects(objects, undefined, propagate);
|
|
25375
25374
|
},
|
|
25376
|
-
/**
|
|
25377
|
-
* A callback used by children components. Set the highlighted zinc object
|
|
25378
|
-
*
|
|
25379
|
-
* @param {object} object Zinc object
|
|
25375
|
+
/**
|
|
25376
|
+
* A callback used by children components. Set the highlighted zinc object
|
|
25377
|
+
*
|
|
25378
|
+
* @param {object} object Zinc object
|
|
25380
25379
|
*/
|
|
25381
25380
|
objectHovered: function objectHovered(objects, propagate) {
|
|
25382
25381
|
this.hoveredObjects = objects;
|
|
25383
25382
|
this.$module.setHighlightedByZincObjects(objects, undefined, propagate);
|
|
25384
25383
|
},
|
|
25385
|
-
/**
|
|
25386
|
-
* Set the selected by name.
|
|
25387
|
-
*
|
|
25388
|
-
* @param {} name Name of the group
|
|
25384
|
+
/**
|
|
25385
|
+
* Set the selected by name.
|
|
25386
|
+
*
|
|
25387
|
+
* @param {} name Name of the group
|
|
25389
25388
|
*/
|
|
25390
25389
|
changeActiveByName: function changeActiveByName(names, region, propagate) {
|
|
25391
25390
|
var isArray = Array.isArray(names);
|
|
@@ -25397,10 +25396,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25397
25396
|
this.$refs.treeControls.changeActiveByNames(array, region, propagate);
|
|
25398
25397
|
}
|
|
25399
25398
|
},
|
|
25400
|
-
/**
|
|
25401
|
-
* Set the highlighted by name.
|
|
25402
|
-
*
|
|
25403
|
-
* @param {name} name Name of the group
|
|
25399
|
+
/**
|
|
25400
|
+
* Set the highlighted by name.
|
|
25401
|
+
*
|
|
25402
|
+
* @param {name} name Name of the group
|
|
25404
25403
|
*/
|
|
25405
25404
|
changeHighlightedByName: function changeHighlightedByName(names, region, propagate) {
|
|
25406
25405
|
var isArray = Array.isArray(names);
|
|
@@ -25412,10 +25411,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25412
25411
|
this.$refs.treeControls.changeHoverByNames(array, region, propagate);
|
|
25413
25412
|
}
|
|
25414
25413
|
},
|
|
25415
|
-
/**
|
|
25416
|
-
* Start the animation.
|
|
25417
|
-
*
|
|
25418
|
-
* @param {object} object Zinc object
|
|
25414
|
+
/**
|
|
25415
|
+
* Start the animation.
|
|
25416
|
+
*
|
|
25417
|
+
* @param {object} object Zinc object
|
|
25419
25418
|
*/
|
|
25420
25419
|
play: function play(flag) {
|
|
25421
25420
|
this.$module.playAnimation(flag);
|
|
@@ -25424,8 +25423,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25424
25423
|
//this.hideRegionTooltip();
|
|
25425
25424
|
},
|
|
25426
25425
|
|
|
25427
|
-
/**
|
|
25428
|
-
* Function to toggle on/off overlay help.
|
|
25426
|
+
/**
|
|
25427
|
+
* Function to toggle on/off overlay help.
|
|
25429
25428
|
*/
|
|
25430
25429
|
setHelpMode: function setHelpMode(helpMode) {
|
|
25431
25430
|
if (helpMode) {
|
|
@@ -25440,9 +25439,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25440
25439
|
});
|
|
25441
25440
|
}
|
|
25442
25441
|
},
|
|
25443
|
-
/**
|
|
25444
|
-
* Callback function used by showRegionTooltip in the case when the tooltip
|
|
25445
|
-
* is out of view.
|
|
25442
|
+
/**
|
|
25443
|
+
* Callback function used by showRegionTooltip in the case when the tooltip
|
|
25444
|
+
* is out of view.
|
|
25446
25445
|
*/
|
|
25447
25446
|
displayTooltipOfObjectsCallback: function displayTooltipOfObjectsCallback(name, objects, regionPath, resetView, liveUpdates) {
|
|
25448
25447
|
var instance = this;
|
|
@@ -25494,12 +25493,12 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25494
25493
|
this.hideRegionTooltip();
|
|
25495
25494
|
return false;
|
|
25496
25495
|
},
|
|
25497
|
-
/**
|
|
25498
|
-
* Display the tooltip used for displaying search result.
|
|
25499
|
-
* When resetView is set to true, it will
|
|
25500
|
-
* reset view if the tooltip is not in view.
|
|
25501
|
-
* Setting liveUpdates to true will update the tooltip location
|
|
25502
|
-
* at every rendering loop.
|
|
25496
|
+
/**
|
|
25497
|
+
* Display the tooltip used for displaying search result.
|
|
25498
|
+
* When resetView is set to true, it will
|
|
25499
|
+
* reset view if the tooltip is not in view.
|
|
25500
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
25501
|
+
* at every rendering loop.
|
|
25503
25502
|
*/
|
|
25504
25503
|
showRegionTooltipWithObjects: function showRegionTooltipWithObjects(label, zincObjects, regionPath, resetView, liveUpdates) {
|
|
25505
25504
|
if (label && zincObjects && zincObjects.length > 0 && this.$module.scene) {
|
|
@@ -25508,11 +25507,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25508
25507
|
this.hideRegionTooltip();
|
|
25509
25508
|
return false;
|
|
25510
25509
|
},
|
|
25511
|
-
/**
|
|
25512
|
-
* Display the tooltip. When resetView is set to true, it will
|
|
25513
|
-
* reset view if the tooltip is not in view.
|
|
25514
|
-
* Setting liveUpdates to true will update the tooltip location
|
|
25515
|
-
* at every rendering loop.
|
|
25510
|
+
/**
|
|
25511
|
+
* Display the tooltip. When resetView is set to true, it will
|
|
25512
|
+
* reset view if the tooltip is not in view.
|
|
25513
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
25514
|
+
* at every rendering loop.
|
|
25516
25515
|
*/
|
|
25517
25516
|
showRegionTooltip: function showRegionTooltip(name, resetView, liveUpdates) {
|
|
25518
25517
|
if (name && this.$module.scene) {
|
|
@@ -25528,12 +25527,12 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25528
25527
|
this.hideRegionTooltip();
|
|
25529
25528
|
return false;
|
|
25530
25529
|
},
|
|
25531
|
-
/**
|
|
25532
|
-
* Display the tooltip using the list of annotations.
|
|
25533
|
-
* When resetView is set to true, it will
|
|
25534
|
-
* reset view if the tooltip is not in view.
|
|
25535
|
-
* Setting liveUpdates to true will update the tooltip location
|
|
25536
|
-
* at every rendering loop.
|
|
25530
|
+
/**
|
|
25531
|
+
* Display the tooltip using the list of annotations.
|
|
25532
|
+
* When resetView is set to true, it will
|
|
25533
|
+
* reset view if the tooltip is not in view.
|
|
25534
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
25535
|
+
* at every rendering loop.
|
|
25537
25536
|
*/
|
|
25538
25537
|
showRegionTooltipWithAnnotations: function showRegionTooltipWithAnnotations(annotations, resetView, liveUpdates) {
|
|
25539
25538
|
if (this.$module.scene) {
|
|
@@ -25554,9 +25553,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25554
25553
|
this.tData.visible = false;
|
|
25555
25554
|
this.tData.region = undefined;
|
|
25556
25555
|
},
|
|
25557
|
-
/**
|
|
25558
|
-
* Set the marker modes for objects with the provided name, mode can
|
|
25559
|
-
* be "on", "off" or "inherited".
|
|
25556
|
+
/**
|
|
25557
|
+
* Set the marker modes for objects with the provided name, mode can
|
|
25558
|
+
* be "on", "off" or "inherited".
|
|
25560
25559
|
*/
|
|
25561
25560
|
setMarkerModeForObjectsWithName: function setMarkerModeForObjectsWithName(name, mode) {
|
|
25562
25561
|
if (name && this.$module.scene) {
|
|
@@ -25568,8 +25567,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25568
25567
|
});
|
|
25569
25568
|
}
|
|
25570
25569
|
},
|
|
25571
|
-
/**
|
|
25572
|
-
* Set the marker modes for objects specified by the list of annotations
|
|
25570
|
+
/**
|
|
25571
|
+
* Set the marker modes for objects specified by the list of annotations
|
|
25573
25572
|
*/
|
|
25574
25573
|
setMarkerModeWithAnnotations: function setMarkerModeWithAnnotations(annotations, mode) {
|
|
25575
25574
|
if (this.$module.scene) {
|
|
@@ -25581,9 +25580,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25581
25580
|
}
|
|
25582
25581
|
}
|
|
25583
25582
|
},
|
|
25584
|
-
/**
|
|
25585
|
-
* This is called when mouse cursor enters supported elements
|
|
25586
|
-
* with help tootltips.
|
|
25583
|
+
/**
|
|
25584
|
+
* This is called when mouse cursor enters supported elements
|
|
25585
|
+
* with help tootltips.
|
|
25587
25586
|
*/
|
|
25588
25587
|
showHelpText: function showHelpText(helpTextNumber) {
|
|
25589
25588
|
var _this3 = this;
|
|
@@ -25593,8 +25592,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25593
25592
|
}, 500);
|
|
25594
25593
|
}
|
|
25595
25594
|
},
|
|
25596
|
-
/**
|
|
25597
|
-
* This is called when mouse cursor exits supported element..
|
|
25595
|
+
/**
|
|
25596
|
+
* This is called when mouse cursor exits supported element..
|
|
25598
25597
|
*/
|
|
25599
25598
|
hideHelpText: function hideHelpText(helpTextNumber) {
|
|
25600
25599
|
if (!this.inHelp) {
|
|
@@ -25627,16 +25626,16 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25627
25626
|
}
|
|
25628
25627
|
return false;
|
|
25629
25628
|
},
|
|
25630
|
-
/**
|
|
25631
|
-
* Get the list of suggested terms
|
|
25629
|
+
/**
|
|
25630
|
+
* Get the list of suggested terms
|
|
25632
25631
|
*/
|
|
25633
25632
|
fetchSuggestions: function fetchSuggestions(term) {
|
|
25634
25633
|
if (this.$_searchIndex === undefined) return [];
|
|
25635
25634
|
return this.$_searchIndex.auto_suggest(term);
|
|
25636
25635
|
},
|
|
25637
|
-
/**
|
|
25638
|
-
* Called when minimap settings has changed. Pass the
|
|
25639
|
-
* parameters to ZincJS and marked it for update.
|
|
25636
|
+
/**
|
|
25637
|
+
* Called when minimap settings has changed. Pass the
|
|
25638
|
+
* parameters to ZincJS and marked it for update.
|
|
25640
25639
|
*/
|
|
25641
25640
|
updateMinimapScissor: function updateMinimapScissor() {
|
|
25642
25641
|
var _this4 = this;
|
|
@@ -25686,11 +25685,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25686
25685
|
_this5.isReady = true;
|
|
25687
25686
|
};
|
|
25688
25687
|
},
|
|
25689
|
-
/**
|
|
25690
|
-
* Function used for getting the current states of the scene. This exported states
|
|
25691
|
-
* can be imported using the importStates method.
|
|
25692
|
-
*
|
|
25693
|
-
* @public
|
|
25688
|
+
/**
|
|
25689
|
+
* Function used for getting the current states of the scene. This exported states
|
|
25690
|
+
* can be imported using the importStates method.
|
|
25691
|
+
*
|
|
25692
|
+
* @public
|
|
25694
25693
|
*/
|
|
25695
25694
|
getState: function getState() {
|
|
25696
25695
|
var state = {
|
|
@@ -25706,11 +25705,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25706
25705
|
}
|
|
25707
25706
|
return state;
|
|
25708
25707
|
},
|
|
25709
|
-
/**
|
|
25710
|
-
* Function used for importing the states of the scene. This exported states
|
|
25711
|
-
* can be imported using the read states method.
|
|
25712
|
-
*
|
|
25713
|
-
* @public
|
|
25708
|
+
/**
|
|
25709
|
+
* Function used for importing the states of the scene. This exported states
|
|
25710
|
+
* can be imported using the read states method.
|
|
25711
|
+
*
|
|
25712
|
+
* @public
|
|
25714
25713
|
*/
|
|
25715
25714
|
setState: function setState(state) {
|
|
25716
25715
|
if (state) {
|
|
@@ -25738,12 +25737,12 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25738
25737
|
exportGLTF: function exportGLTF(binary) {
|
|
25739
25738
|
return this.$module.scene.exportGLTF(binary);
|
|
25740
25739
|
},
|
|
25741
|
-
/**
|
|
25742
|
-
* Function used for reading in new scaffold metadata and a custom
|
|
25743
|
-
* viewport. This function will ignore the state prop and
|
|
25744
|
-
* read in the new url.
|
|
25745
|
-
*
|
|
25746
|
-
* @public
|
|
25740
|
+
/**
|
|
25741
|
+
* Function used for reading in new scaffold metadata and a custom
|
|
25742
|
+
* viewport. This function will ignore the state prop and
|
|
25743
|
+
* read in the new url.
|
|
25744
|
+
*
|
|
25745
|
+
* @public
|
|
25747
25746
|
*/
|
|
25748
25747
|
setURLAndState: function setURLAndState(newValue, state) {
|
|
25749
25748
|
if (newValue != this._currentURL) {
|
|
@@ -25773,24 +25772,24 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25773
25772
|
this.updateMinimapScissor();
|
|
25774
25773
|
}
|
|
25775
25774
|
},
|
|
25776
|
-
/**
|
|
25777
|
-
* Function used for reading in new scaffold metadata. This function will ignore
|
|
25778
|
-
* the state prop and read in the new url.
|
|
25779
|
-
*
|
|
25780
|
-
* @public
|
|
25775
|
+
/**
|
|
25776
|
+
* Function used for reading in new scaffold metadata. This function will ignore
|
|
25777
|
+
* the state prop and read in the new url.
|
|
25778
|
+
*
|
|
25779
|
+
* @public
|
|
25781
25780
|
*/
|
|
25782
25781
|
setURL: function setURL(newValue) {
|
|
25783
25782
|
this.setURLAndState(newValue, undefined);
|
|
25784
25783
|
},
|
|
25785
|
-
/**
|
|
25786
|
-
* Callback when drawer is toggled.
|
|
25784
|
+
/**
|
|
25785
|
+
* Callback when drawer is toggled.
|
|
25787
25786
|
*/
|
|
25788
25787
|
drawerToggled: function drawerToggled(flag) {
|
|
25789
25788
|
this.drawerOpen = flag;
|
|
25790
25789
|
this.adjustLayout();
|
|
25791
25790
|
},
|
|
25792
|
-
/**
|
|
25793
|
-
* Callback using ResizeObserver.
|
|
25791
|
+
/**
|
|
25792
|
+
* Callback using ResizeObserver.
|
|
25794
25793
|
*/
|
|
25795
25794
|
adjustLayout: function adjustLayout() {
|
|
25796
25795
|
var width = this.$refs.scaffoldContainer.clientWidth;
|
|
@@ -25822,16 +25821,16 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25822
25821
|
}
|
|
25823
25822
|
this.$emit("scaffold-navigated", payload);
|
|
25824
25823
|
},
|
|
25825
|
-
/**
|
|
25826
|
-
* Rotate mode - "none", "horizontal", "vertical", "free" but
|
|
25827
|
-
* it will be ignored if flag is set to false.
|
|
25824
|
+
/**
|
|
25825
|
+
* Rotate mode - "none", "horizontal", "vertical", "free" but
|
|
25826
|
+
* it will be ignored if flag is set to false.
|
|
25828
25827
|
*/
|
|
25829
25828
|
toggleSyncControl: function toggleSyncControl(flag, rotateMode) {
|
|
25830
25829
|
this.$module.toggleSyncControl(flag, rotateMode);
|
|
25831
25830
|
this.$module.setSyncControlCallback(this.syncControlCallback);
|
|
25832
25831
|
},
|
|
25833
|
-
/**
|
|
25834
|
-
* Set the markers for the scene.
|
|
25832
|
+
/**
|
|
25833
|
+
* Set the markers for the scene.
|
|
25835
25834
|
*/
|
|
25836
25835
|
setMarkers: function setMarkers() {
|
|
25837
25836
|
var _this6 = this;
|
|
@@ -25843,11 +25842,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25843
25842
|
});
|
|
25844
25843
|
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue?vue&type=script&lang=js&
|
|
25845
25844
|
/* harmony default export */ var components_ScaffoldVuervue_type_script_lang_js_ = (ScaffoldVuervue_type_script_lang_js_);
|
|
25846
|
-
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=0&id=
|
|
25847
|
-
var
|
|
25845
|
+
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=0&id=1d065206&prod&scoped=true&lang=scss&
|
|
25846
|
+
var ScaffoldVuervue_type_style_index_0_id_1d065206_prod_scoped_true_lang_scss_ = __webpack_require__("c31b");
|
|
25848
25847
|
|
|
25849
|
-
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=1&id=
|
|
25850
|
-
var
|
|
25848
|
+
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=1&id=1d065206&prod&lang=scss&
|
|
25849
|
+
var ScaffoldVuervue_type_style_index_1_id_1d065206_prod_lang_scss_ = __webpack_require__("258c");
|
|
25851
25850
|
|
|
25852
25851
|
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue
|
|
25853
25852
|
|
|
@@ -25865,7 +25864,7 @@ var ScaffoldVuer_component = normalizeComponent(
|
|
|
25865
25864
|
staticRenderFns,
|
|
25866
25865
|
false,
|
|
25867
25866
|
null,
|
|
25868
|
-
"
|
|
25867
|
+
"1d065206",
|
|
25869
25868
|
null
|
|
25870
25869
|
|
|
25871
25870
|
)
|