@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
|
@@ -2034,6 +2034,17 @@ module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.ex
|
|
|
2034
2034
|
|
|
2035
2035
|
module.exports = require("core-js/modules/es.array.push.js");
|
|
2036
2036
|
|
|
2037
|
+
/***/ }),
|
|
2038
|
+
|
|
2039
|
+
/***/ "258c":
|
|
2040
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2041
|
+
|
|
2042
|
+
"use strict";
|
|
2043
|
+
/* 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");
|
|
2044
|
+
/* 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__);
|
|
2045
|
+
/* unused harmony reexport * */
|
|
2046
|
+
|
|
2047
|
+
|
|
2037
2048
|
/***/ }),
|
|
2038
2049
|
|
|
2039
2050
|
/***/ "299c":
|
|
@@ -2466,13 +2477,6 @@ module.exports = __webpack_require__("8bbf");
|
|
|
2466
2477
|
|
|
2467
2478
|
/***/ }),
|
|
2468
2479
|
|
|
2469
|
-
/***/ "2a5b":
|
|
2470
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2471
|
-
|
|
2472
|
-
// extracted by mini-css-extract-plugin
|
|
2473
|
-
|
|
2474
|
-
/***/ }),
|
|
2475
|
-
|
|
2476
2480
|
/***/ "2a5e":
|
|
2477
2481
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2478
2482
|
|
|
@@ -2960,13 +2964,6 @@ var removeResizeListener = exports.removeResizeListener = function removeResizeL
|
|
|
2960
2964
|
|
|
2961
2965
|
/***/ }),
|
|
2962
2966
|
|
|
2963
|
-
/***/ "4136":
|
|
2964
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2965
|
-
|
|
2966
|
-
// extracted by mini-css-extract-plugin
|
|
2967
|
-
|
|
2968
|
-
/***/ }),
|
|
2969
|
-
|
|
2970
2967
|
/***/ "417f":
|
|
2971
2968
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2972
2969
|
|
|
@@ -5863,19 +5860,19 @@ var OrgansSceneData = function OrgansSceneData() {
|
|
|
5863
5860
|
this.timeVarying = false;
|
|
5864
5861
|
};
|
|
5865
5862
|
|
|
5866
|
-
/**
|
|
5867
|
-
* Viewer of 3D-organs models. Users can toggle on/off different views. Data is
|
|
5868
|
-
* displayed instead if models are not available.
|
|
5869
|
-
*
|
|
5870
|
-
* @class
|
|
5871
|
-
* @param {PJP.ModelsLoader}
|
|
5872
|
-
* ModelsLoaderIn - defined in modelsLoade.js, providing locations of
|
|
5873
|
-
* files.
|
|
5874
|
-
* @param {String}
|
|
5875
|
-
* PanelName - Id of the target element to create the
|
|
5876
|
-
* {@link PJP.OrgansViewer} on.
|
|
5877
|
-
* @author Alan Wu
|
|
5878
|
-
* @returns {PJP.OrgansViewer}
|
|
5863
|
+
/**
|
|
5864
|
+
* Viewer of 3D-organs models. Users can toggle on/off different views. Data is
|
|
5865
|
+
* displayed instead if models are not available.
|
|
5866
|
+
*
|
|
5867
|
+
* @class
|
|
5868
|
+
* @param {PJP.ModelsLoader}
|
|
5869
|
+
* ModelsLoaderIn - defined in modelsLoade.js, providing locations of
|
|
5870
|
+
* files.
|
|
5871
|
+
* @param {String}
|
|
5872
|
+
* PanelName - Id of the target element to create the
|
|
5873
|
+
* {@link PJP.OrgansViewer} on.
|
|
5874
|
+
* @author Alan Wu
|
|
5875
|
+
* @returns {PJP.OrgansViewer}
|
|
5879
5876
|
*/
|
|
5880
5877
|
var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
5881
5878
|
var _this2 = this;
|
|
@@ -5894,8 +5891,8 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
5894
5891
|
return _this.sceneData;
|
|
5895
5892
|
};
|
|
5896
5893
|
|
|
5897
|
-
/**
|
|
5898
|
-
* Used to update internal timer in scene when time slider has changed.
|
|
5894
|
+
/**
|
|
5895
|
+
* Used to update internal timer in scene when time slider has changed.
|
|
5899
5896
|
*/
|
|
5900
5897
|
this.updateTime = function (value) {
|
|
5901
5898
|
var duration = 6000;
|
|
@@ -5908,8 +5905,8 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
5908
5905
|
_this.sceneData.currentTime = value;
|
|
5909
5906
|
};
|
|
5910
5907
|
|
|
5911
|
-
/**
|
|
5912
|
-
* Update the time slider and other renderers/scenes when time has changed.
|
|
5908
|
+
/**
|
|
5909
|
+
* Update the time slider and other renderers/scenes when time has changed.
|
|
5913
5910
|
*/
|
|
5914
5911
|
var preRenderTimeUpdate = function preRenderTimeUpdate() {
|
|
5915
5912
|
var duration = 3000;
|
|
@@ -5976,8 +5973,8 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
5976
5973
|
};
|
|
5977
5974
|
};
|
|
5978
5975
|
|
|
5979
|
-
/**
|
|
5980
|
-
* Add a callback which will be called when time has changed
|
|
5976
|
+
/**
|
|
5977
|
+
* Add a callback which will be called when time has changed
|
|
5981
5978
|
*/
|
|
5982
5979
|
this.addTimeChangedCallback = function (callback) {
|
|
5983
5980
|
if (_typeof(callback === "function")) timeChangedCallbacks.push(callback);
|
|
@@ -6040,12 +6037,12 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6040
6037
|
};
|
|
6041
6038
|
};
|
|
6042
6039
|
|
|
6043
|
-
/**
|
|
6044
|
-
* Callback function when a pickable object has been picked. It will then
|
|
6045
|
-
* call functions in tissueViewer and cellPanel to show corresponding
|
|
6046
|
-
* informations.
|
|
6047
|
-
*
|
|
6048
|
-
* @callback
|
|
6040
|
+
/**
|
|
6041
|
+
* Callback function when a pickable object has been picked. It will then
|
|
6042
|
+
* call functions in tissueViewer and cellPanel to show corresponding
|
|
6043
|
+
* informations.
|
|
6044
|
+
*
|
|
6045
|
+
* @callback
|
|
6049
6046
|
*/
|
|
6050
6047
|
var _pickingCallback = function _pickingCallback() {
|
|
6051
6048
|
return function (intersects, window_x, window_y) {
|
|
@@ -6068,10 +6065,10 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6068
6065
|
};
|
|
6069
6066
|
};
|
|
6070
6067
|
|
|
6071
|
-
/**
|
|
6072
|
-
* Callback function when a pickable object has been hovered over.
|
|
6073
|
-
*
|
|
6074
|
-
* @callback
|
|
6068
|
+
/**
|
|
6069
|
+
* Callback function when a pickable object has been hovered over.
|
|
6070
|
+
*
|
|
6071
|
+
* @callback
|
|
6075
6072
|
*/
|
|
6076
6073
|
var _hoverCallback = function _hoverCallback() {
|
|
6077
6074
|
return function (intersects, window_x, window_y) {
|
|
@@ -6118,40 +6115,40 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6118
6115
|
}
|
|
6119
6116
|
};
|
|
6120
6117
|
|
|
6121
|
-
/**
|
|
6122
|
-
* Change visibility for parts of the current scene.
|
|
6118
|
+
/**
|
|
6119
|
+
* Change visibility for parts of the current scene.
|
|
6123
6120
|
*/
|
|
6124
6121
|
this.changeGeometriesVisibility = function (name, value) {
|
|
6125
6122
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'geometries');
|
|
6126
6123
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'geometries');
|
|
6127
6124
|
};
|
|
6128
6125
|
|
|
6129
|
-
/**
|
|
6130
|
-
* Change visibility for parts of the current scene.
|
|
6126
|
+
/**
|
|
6127
|
+
* Change visibility for parts of the current scene.
|
|
6131
6128
|
*/
|
|
6132
6129
|
this.changeGlyphsetsVisibility = function (name, value) {
|
|
6133
6130
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'glyphsets');
|
|
6134
6131
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'glyphsets');
|
|
6135
6132
|
};
|
|
6136
6133
|
|
|
6137
|
-
/**
|
|
6138
|
-
* Change visibility for parts of the current scene.
|
|
6134
|
+
/**
|
|
6135
|
+
* Change visibility for parts of the current scene.
|
|
6139
6136
|
*/
|
|
6140
6137
|
this.changeLinesVisibility = function (name, value) {
|
|
6141
6138
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'lines');
|
|
6142
6139
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'lines');
|
|
6143
6140
|
};
|
|
6144
6141
|
|
|
6145
|
-
/**
|
|
6146
|
-
* Change visibility for parts of the current scene.
|
|
6142
|
+
/**
|
|
6143
|
+
* Change visibility for parts of the current scene.
|
|
6147
6144
|
*/
|
|
6148
6145
|
this.changePointsetsVisibility = function (name, value) {
|
|
6149
6146
|
changeOrganPartsVisibilityForScene(_this.scene, name, value, 'pointsets');
|
|
6150
6147
|
if (pickerScene) changeOrganPartsVisibilityForScene(pickerScene, name, value, 'pointsets');
|
|
6151
6148
|
};
|
|
6152
6149
|
|
|
6153
|
-
/**
|
|
6154
|
-
* Change visibility for parts of the current scene.
|
|
6150
|
+
/**
|
|
6151
|
+
* Change visibility for parts of the current scene.
|
|
6155
6152
|
*/
|
|
6156
6153
|
this.changeOrganPartsVisibility = function (name, value, typeIn) {
|
|
6157
6154
|
var type = "all";
|
|
@@ -6190,9 +6187,9 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6190
6187
|
zincObject.userData["annotation"] = annotation;
|
|
6191
6188
|
};
|
|
6192
6189
|
|
|
6193
|
-
/**
|
|
6194
|
-
* New organs geometry has been added to the scene, add UIs and make
|
|
6195
|
-
* sure the viewport is correct.
|
|
6190
|
+
/**
|
|
6191
|
+
* New organs geometry has been added to the scene, add UIs and make
|
|
6192
|
+
* sure the viewport is correct.
|
|
6196
6193
|
*/
|
|
6197
6194
|
var _addOrganPartCallback = function _addOrganPartCallback(systemName, partName, useDefautColour) {
|
|
6198
6195
|
return function (zincObject) {
|
|
@@ -6213,9 +6210,9 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6213
6210
|
};
|
|
6214
6211
|
};
|
|
6215
6212
|
|
|
6216
|
-
/**
|
|
6217
|
-
* Toggle data field displays. Data fields displays flow/pressure and <button @click="play">Play</button>
|
|
6218
|
-
* other activities of the organs.
|
|
6213
|
+
/**
|
|
6214
|
+
* Toggle data field displays. Data fields displays flow/pressure and <button @click="play">Play</button>
|
|
6215
|
+
* other activities of the organs.
|
|
6219
6216
|
*/
|
|
6220
6217
|
this.updateFieldvisibility = function (dataFields, value) {
|
|
6221
6218
|
for (var i = 0; i < dataFields.length; i++) {
|
|
@@ -6237,11 +6234,11 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6237
6234
|
}
|
|
6238
6235
|
};
|
|
6239
6236
|
|
|
6240
|
-
/**
|
|
6241
|
-
* Return an array containing name(s) of species that also contains the
|
|
6242
|
-
* currently displayed organs.
|
|
6243
|
-
*
|
|
6244
|
-
* @returns {Array} containing species name
|
|
6237
|
+
/**
|
|
6238
|
+
* Return an array containing name(s) of species that also contains the
|
|
6239
|
+
* currently displayed organs.
|
|
6240
|
+
*
|
|
6241
|
+
* @returns {Array} containing species name
|
|
6245
6242
|
*/
|
|
6246
6243
|
this.getAvailableSpecies = function (currentSpecies, currentSystem, currentPart) {
|
|
6247
6244
|
var availableSpecies = new Array();
|
|
@@ -6363,11 +6360,11 @@ var OrgansViewer = function OrgansViewer(ModelsLoaderIn) {
|
|
|
6363
6360
|
return false;
|
|
6364
6361
|
};
|
|
6365
6362
|
|
|
6366
|
-
/**
|
|
6367
|
-
* initialise loading of the html layout for the organs panel, this is
|
|
6368
|
-
* called when the {@link PJP.OrgansViewer} is created.
|
|
6369
|
-
*
|
|
6370
|
-
* @async
|
|
6363
|
+
/**
|
|
6364
|
+
* initialise loading of the html layout for the organs panel, this is
|
|
6365
|
+
* called when the {@link PJP.OrgansViewer} is created.
|
|
6366
|
+
*
|
|
6367
|
+
* @async
|
|
6371
6368
|
*/
|
|
6372
6369
|
var initialise = function initialise() {
|
|
6373
6370
|
_this.initialiseRenderer(undefined);
|
|
@@ -6762,11 +6759,11 @@ var _toConsumableArray = __webpack_require__("448a").default;
|
|
|
6762
6759
|
__webpack_require__("2439");
|
|
6763
6760
|
var THREE = __webpack_require__("9206").THREE;
|
|
6764
6761
|
|
|
6765
|
-
/**
|
|
6766
|
-
* This module manages highlighted and selected objects in 3D modules.
|
|
6767
|
-
*
|
|
6768
|
-
* @class
|
|
6769
|
-
* @returns {exports.GraphicsHighlight}
|
|
6762
|
+
/**
|
|
6763
|
+
* This module manages highlighted and selected objects in 3D modules.
|
|
6764
|
+
*
|
|
6765
|
+
* @class
|
|
6766
|
+
* @returns {exports.GraphicsHighlight}
|
|
6770
6767
|
*/
|
|
6771
6768
|
exports.GraphicsHighlight = function () {
|
|
6772
6769
|
var currentHighlightedObjects = [];
|
|
@@ -8149,17 +8146,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
8149
8146
|
|
|
8150
8147
|
module.exports = require("core-js/modules/es.string.replace.js");
|
|
8151
8148
|
|
|
8152
|
-
/***/ }),
|
|
8153
|
-
|
|
8154
|
-
/***/ "6514":
|
|
8155
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8156
|
-
|
|
8157
|
-
"use strict";
|
|
8158
|
-
/* 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");
|
|
8159
|
-
/* 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__);
|
|
8160
|
-
/* unused harmony reexport * */
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
8149
|
/***/ }),
|
|
8164
8150
|
|
|
8165
8151
|
/***/ "6611":
|
|
@@ -15080,10 +15066,10 @@ __webpack_require__("97d3");
|
|
|
15080
15066
|
__webpack_require__("13e3");
|
|
15081
15067
|
var THREE = __webpack_require__("9206").THREE;
|
|
15082
15068
|
|
|
15083
|
-
/**
|
|
15084
|
-
* Create a {@link Zinc.Renderer} on the dom element with corresponding elementID.
|
|
15085
|
-
* @param {String} elementID - id of the target dom element.
|
|
15086
|
-
* @returns {Zinc.Renderer}
|
|
15069
|
+
/**
|
|
15070
|
+
* Create a {@link Zinc.Renderer} on the dom element with corresponding elementID.
|
|
15071
|
+
* @param {String} elementID - id of the target dom element.
|
|
15072
|
+
* @returns {Zinc.Renderer}
|
|
15087
15073
|
*/
|
|
15088
15074
|
var createRenderer = function createRenderer() {
|
|
15089
15075
|
var WEBGL = __webpack_require__("cf41").WEBGL;
|
|
@@ -15275,31 +15261,31 @@ RendererModule.prototype.viewAll = function () {
|
|
|
15275
15261
|
if (this.zincRenderer) this.zincRenderer.viewAll();
|
|
15276
15262
|
};
|
|
15277
15263
|
|
|
15278
|
-
/**
|
|
15279
|
-
* Start the animation and let the renderer to processs with
|
|
15280
|
-
* time progression
|
|
15264
|
+
/**
|
|
15265
|
+
* Start the animation and let the renderer to processs with
|
|
15266
|
+
* time progression
|
|
15281
15267
|
*/
|
|
15282
15268
|
RendererModule.prototype.playAnimation = function (flag) {
|
|
15283
15269
|
if (this.zincRenderer) this.zincRenderer.playAnimation = flag;
|
|
15284
15270
|
};
|
|
15285
15271
|
|
|
15286
|
-
/**
|
|
15287
|
-
* Set the speed of playback
|
|
15272
|
+
/**
|
|
15273
|
+
* Set the speed of playback
|
|
15288
15274
|
*/
|
|
15289
15275
|
RendererModule.prototype.setPlayRate = function (value) {
|
|
15290
15276
|
if (this.zincRenderer) this.zincRenderer.setPlayRate(value);
|
|
15291
15277
|
};
|
|
15292
15278
|
|
|
15293
|
-
/**
|
|
15294
|
-
* Get the speed of playback
|
|
15279
|
+
/**
|
|
15280
|
+
* Get the speed of playback
|
|
15295
15281
|
*/
|
|
15296
15282
|
RendererModule.prototype.getPlayRate = function (value) {
|
|
15297
15283
|
if (this.zincRenderer) return this.zincRenderer.getPlayRate();else return 0.0;
|
|
15298
15284
|
};
|
|
15299
15285
|
|
|
15300
|
-
/** Initialise everything in the renderer, including the 3D renderer,
|
|
15301
|
-
* and picker for the 3D renderer.
|
|
15302
|
-
*
|
|
15286
|
+
/** Initialise everything in the renderer, including the 3D renderer,
|
|
15287
|
+
* and picker for the 3D renderer.
|
|
15288
|
+
*
|
|
15303
15289
|
*/
|
|
15304
15290
|
RendererModule.prototype.initialiseRenderer = function (displayAreaIn) {
|
|
15305
15291
|
if (this.zincRenderer === undefined || this.rendererContainer === undefined) {
|
|
@@ -17611,6 +17597,13 @@ module.exports = require("core-js/modules/web.url.js");
|
|
|
17611
17597
|
|
|
17612
17598
|
/***/ }),
|
|
17613
17599
|
|
|
17600
|
+
/***/ "b950":
|
|
17601
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17602
|
+
|
|
17603
|
+
// extracted by mini-css-extract-plugin
|
|
17604
|
+
|
|
17605
|
+
/***/ }),
|
|
17606
|
+
|
|
17614
17607
|
/***/ "bd9f":
|
|
17615
17608
|
/***/ (function(module, exports, __webpack_require__) {
|
|
17616
17609
|
|
|
@@ -17805,6 +17798,17 @@ col.install = function (Vue) {
|
|
|
17805
17798
|
|
|
17806
17799
|
/******/ });
|
|
17807
17800
|
|
|
17801
|
+
/***/ }),
|
|
17802
|
+
|
|
17803
|
+
/***/ "c31b":
|
|
17804
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17805
|
+
|
|
17806
|
+
"use strict";
|
|
17807
|
+
/* 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");
|
|
17808
|
+
/* 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__);
|
|
17809
|
+
/* unused harmony reexport * */
|
|
17810
|
+
|
|
17811
|
+
|
|
17808
17812
|
/***/ }),
|
|
17809
17813
|
|
|
17810
17814
|
/***/ "c56a":
|
|
@@ -18144,9 +18148,9 @@ module.exports = require("core-js/modules/es.number.to-fixed.js");
|
|
|
18144
18148
|
|
|
18145
18149
|
__webpack_require__("c8a6");
|
|
18146
18150
|
__webpack_require__("6378");
|
|
18147
|
-
/**
|
|
18148
|
-
* @author alteredq / http://alteredqualia.com/
|
|
18149
|
-
* @author mr.doob / http://mrdoob.com/
|
|
18151
|
+
/**
|
|
18152
|
+
* @author alteredq / http://alteredqualia.com/
|
|
18153
|
+
* @author mr.doob / http://mrdoob.com/
|
|
18150
18154
|
*/
|
|
18151
18155
|
|
|
18152
18156
|
exports.WEBGL = {
|
|
@@ -18300,6 +18304,13 @@ module.exports = require("core-js/modules/es.function.name.js");
|
|
|
18300
18304
|
|
|
18301
18305
|
/***/ }),
|
|
18302
18306
|
|
|
18307
|
+
/***/ "dbc4":
|
|
18308
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
18309
|
+
|
|
18310
|
+
// extracted by mini-css-extract-plugin
|
|
18311
|
+
|
|
18312
|
+
/***/ }),
|
|
18313
|
+
|
|
18303
18314
|
/***/ "dc50":
|
|
18304
18315
|
/***/ (function(module, exports) {
|
|
18305
18316
|
|
|
@@ -20808,17 +20819,6 @@ module.exports = require("core-js/modules/es.array.slice.js");
|
|
|
20808
20819
|
|
|
20809
20820
|
module.exports = require("core-js/modules/es.object.keys.js");
|
|
20810
20821
|
|
|
20811
|
-
/***/ }),
|
|
20812
|
-
|
|
20813
|
-
/***/ "ee47":
|
|
20814
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20815
|
-
|
|
20816
|
-
"use strict";
|
|
20817
|
-
/* 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");
|
|
20818
|
-
/* 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__);
|
|
20819
|
-
/* unused harmony reexport * */
|
|
20820
|
-
|
|
20821
|
-
|
|
20822
20822
|
/***/ }),
|
|
20823
20823
|
|
|
20824
20824
|
/***/ "eedf":
|
|
@@ -22381,7 +22381,7 @@ if (typeof window !== 'undefined') {
|
|
|
22381
22381
|
// Indicate to webpack that this file can be concatenated
|
|
22382
22382
|
/* harmony default export */ var setPublicPath = (null);
|
|
22383
22383
|
|
|
22384
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
22384
|
+
// 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&
|
|
22385
22385
|
var render = function render() {
|
|
22386
22386
|
var _vm = this,
|
|
22387
22387
|
_c = _vm._self._c;
|
|
@@ -22866,7 +22866,7 @@ var render = function render() {
|
|
|
22866
22866
|
};
|
|
22867
22867
|
var staticRenderFns = [];
|
|
22868
22868
|
|
|
22869
|
-
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue?vue&type=template&id=
|
|
22869
|
+
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue?vue&type=template&id=1d065206&scoped=true&
|
|
22870
22870
|
|
|
22871
22871
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/tabs.css
|
|
22872
22872
|
var tabs = __webpack_require__("075a");
|
|
@@ -22975,7 +22975,7 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
22975
22975
|
var external_vue_ = __webpack_require__("8bbf");
|
|
22976
22976
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
22977
22977
|
|
|
22978
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
22978
|
+
// 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&
|
|
22979
22979
|
var OpacityControlsvue_type_template_id_4c00a30f_scoped_true_render = function render() {
|
|
22980
22980
|
var _vm = this,
|
|
22981
22981
|
_c = _vm._self._c;
|
|
@@ -23122,8 +23122,8 @@ external_vue_default.a.use(lib_icon_default.a);
|
|
|
23122
23122
|
external_vue_default.a.use(lib_main_default.a);
|
|
23123
23123
|
external_vue_default.a.use(lib_slider_default.a);
|
|
23124
23124
|
|
|
23125
|
-
/**
|
|
23126
|
-
* A component to control the opacity of the target object.
|
|
23125
|
+
/**
|
|
23126
|
+
* A component to control the opacity of the target object.
|
|
23127
23127
|
*/
|
|
23128
23128
|
/* harmony default export */ var OpacityControlsvue_type_script_lang_js_ = ({
|
|
23129
23129
|
name: "OpacityControls",
|
|
@@ -23282,7 +23282,7 @@ var component = normalizeComponent(
|
|
|
23282
23282
|
)
|
|
23283
23283
|
|
|
23284
23284
|
/* harmony default export */ var OpacityControls = (component.exports);
|
|
23285
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
23285
|
+
// 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&
|
|
23286
23286
|
var ScaffoldTooltipvue_type_template_id_0cbe500c_scoped_true_render = function render() {
|
|
23287
23287
|
var _vm = this,
|
|
23288
23288
|
_c = _vm._self._c;
|
|
@@ -23330,8 +23330,8 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
23330
23330
|
locale_default.a.use(en_default.a);
|
|
23331
23331
|
external_vue_default.a.use(lib_popover_default.a);
|
|
23332
23332
|
|
|
23333
|
-
/**
|
|
23334
|
-
* A component to control the opacity of the target object.
|
|
23333
|
+
/**
|
|
23334
|
+
* A component to control the opacity of the target object.
|
|
23335
23335
|
*/
|
|
23336
23336
|
/* harmony default export */ var ScaffoldTooltipvue_type_script_lang_js_ = ({
|
|
23337
23337
|
name: "ScaffoldTooltip",
|
|
@@ -23422,7 +23422,7 @@ var es_array_includes_js_ = __webpack_require__("85f7");
|
|
|
23422
23422
|
// EXTERNAL MODULE: external "core-js/modules/es.string.includes.js"
|
|
23423
23423
|
var es_string_includes_js_ = __webpack_require__("fd22");
|
|
23424
23424
|
|
|
23425
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
23425
|
+
// 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&
|
|
23426
23426
|
|
|
23427
23427
|
|
|
23428
23428
|
var TreeControlsvue_type_template_id_29a4f879_scoped_true_render = function render() {
|
|
@@ -23984,14 +23984,14 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
23984
23984
|
return 0;
|
|
23985
23985
|
};
|
|
23986
23986
|
|
|
23987
|
-
/**
|
|
23988
|
-
* A vue component for toggling visibility of various regions.
|
|
23987
|
+
/**
|
|
23988
|
+
* A vue component for toggling visibility of various regions.
|
|
23989
23989
|
*/
|
|
23990
23990
|
/* harmony default export */ var TreeControlsvue_type_script_lang_js_ = ({
|
|
23991
23991
|
name: "TreeControls",
|
|
23992
23992
|
props: {
|
|
23993
|
-
/**
|
|
23994
|
-
* Enable/disable colour picker
|
|
23993
|
+
/**
|
|
23994
|
+
* Enable/disable colour picker
|
|
23995
23995
|
*/
|
|
23996
23996
|
showColourPicker: Boolean,
|
|
23997
23997
|
isReady: Boolean
|
|
@@ -24070,8 +24070,8 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
24070
24070
|
return data;
|
|
24071
24071
|
}
|
|
24072
24072
|
},
|
|
24073
|
-
/**
|
|
24074
|
-
* This is called when a new zinc object is read into the scene.
|
|
24073
|
+
/**
|
|
24074
|
+
* This is called when a new zinc object is read into the scene.
|
|
24075
24075
|
*/
|
|
24076
24076
|
zincObjectAdded: function zincObjectAdded(zincObject) {
|
|
24077
24077
|
// Using the new uuid, the cavaet of that is graphics with
|
|
@@ -24138,16 +24138,16 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
24138
24138
|
this.removeHover(propagate);
|
|
24139
24139
|
}
|
|
24140
24140
|
},
|
|
24141
|
-
/**
|
|
24142
|
-
* Select a region by its name.
|
|
24141
|
+
/**
|
|
24142
|
+
* Select a region by its name.
|
|
24143
24143
|
*/
|
|
24144
24144
|
changeActiveByNames: function changeActiveByNames(names, regionPath, propagate) {
|
|
24145
24145
|
var rootRegion = this.$module.scene.getRootRegion();
|
|
24146
24146
|
var targetObjects = utilities_findObjectsWithNames(rootRegion, names, regionPath, true);
|
|
24147
24147
|
this.changeActiveByPrimitives(targetObjects, propagate);
|
|
24148
24148
|
},
|
|
24149
|
-
/**
|
|
24150
|
-
* Hover a region by its name.
|
|
24149
|
+
/**
|
|
24150
|
+
* Hover a region by its name.
|
|
24151
24151
|
*/
|
|
24152
24152
|
changeHoverByNames: function changeHoverByNames(names, regionPath, propagate) {
|
|
24153
24153
|
var rootRegion = this.$module.scene.getRootRegion();
|
|
@@ -24167,22 +24167,22 @@ var nameSorting = function nameSorting(a, b) {
|
|
|
24167
24167
|
this.changeHoverByPrimitives(targetObjects, propagate);
|
|
24168
24168
|
}
|
|
24169
24169
|
},
|
|
24170
|
-
/**
|
|
24171
|
-
* Unselect the current selected region.
|
|
24170
|
+
/**
|
|
24171
|
+
* Unselect the current selected region.
|
|
24172
24172
|
*/
|
|
24173
24173
|
removeActive: function removeActive(propagate) {
|
|
24174
24174
|
this.active = [];
|
|
24175
24175
|
this.$emit("object-selected", [], propagate);
|
|
24176
24176
|
},
|
|
24177
|
-
/**
|
|
24178
|
-
* Unselect the current hover region.
|
|
24177
|
+
/**
|
|
24178
|
+
* Unselect the current hover region.
|
|
24179
24179
|
*/
|
|
24180
24180
|
removeHover: function removeHover(propagate) {
|
|
24181
24181
|
this.hover = [];
|
|
24182
24182
|
this.$emit("object-hovered", [], propagate);
|
|
24183
24183
|
},
|
|
24184
|
-
/**
|
|
24185
|
-
* Reset the controls.
|
|
24184
|
+
/**
|
|
24185
|
+
* Reset the controls.
|
|
24186
24186
|
*/
|
|
24187
24187
|
clear: function clear() {
|
|
24188
24188
|
this.active.length = 0;
|
|
@@ -24419,24 +24419,24 @@ var external_minisearch_default = /*#__PURE__*/__webpack_require__.n(external_mi
|
|
|
24419
24419
|
|
|
24420
24420
|
|
|
24421
24421
|
|
|
24422
|
-
/******************************************************************************
|
|
24423
|
-
|
|
24424
|
-
Flatmap viewer and annotation tool
|
|
24425
|
-
|
|
24426
|
-
Copyright (c) 2019 David Brooks
|
|
24427
|
-
|
|
24428
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
24429
|
-
you may not use this file except in compliance with the License.
|
|
24430
|
-
You may obtain a copy of the License at
|
|
24431
|
-
|
|
24432
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
24433
|
-
|
|
24434
|
-
Unless required by applicable law or agreed to in writing, software
|
|
24435
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
24436
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24437
|
-
See the License for the specific language governing permissions and
|
|
24438
|
-
limitations under the License.
|
|
24439
|
-
|
|
24422
|
+
/******************************************************************************
|
|
24423
|
+
|
|
24424
|
+
Flatmap viewer and annotation tool
|
|
24425
|
+
|
|
24426
|
+
Copyright (c) 2019 David Brooks
|
|
24427
|
+
|
|
24428
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
24429
|
+
you may not use this file except in compliance with the License.
|
|
24430
|
+
You may obtain a copy of the License at
|
|
24431
|
+
|
|
24432
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
24433
|
+
|
|
24434
|
+
Unless required by applicable law or agreed to in writing, software
|
|
24435
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
24436
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24437
|
+
See the License for the specific language governing permissions and
|
|
24438
|
+
limitations under the License.
|
|
24439
|
+
|
|
24440
24440
|
******************************************************************************/
|
|
24441
24441
|
|
|
24442
24442
|
//==============================================================================
|
|
@@ -24700,11 +24700,11 @@ external_vue_default.a.use(lib_tabs_default.a);
|
|
|
24700
24700
|
var OrgansViewer = __webpack_require__("53d7").OrgansViewer;
|
|
24701
24701
|
var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
24702
24702
|
|
|
24703
|
-
/**
|
|
24704
|
-
* A vue component of the scaffold viewer.
|
|
24705
|
-
*
|
|
24706
|
-
* @requires ./OpacityControls.vue
|
|
24707
|
-
* @requires ./TreeControls.vue
|
|
24703
|
+
/**
|
|
24704
|
+
* A vue component of the scaffold viewer.
|
|
24705
|
+
*
|
|
24706
|
+
* @requires ./OpacityControls.vue
|
|
24707
|
+
* @requires ./TreeControls.vue
|
|
24708
24708
|
*/
|
|
24709
24709
|
/* harmony default export */ var ScaffoldVuervue_type_script_lang_js_ = ({
|
|
24710
24710
|
name: "ScaffoldVuer",
|
|
@@ -24716,56 +24716,56 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24716
24716
|
TreeControls: TreeControls
|
|
24717
24717
|
},
|
|
24718
24718
|
props: {
|
|
24719
|
-
/**
|
|
24720
|
-
* URL of the zincjs metadata. This value will be ignored if a valid
|
|
24721
|
-
* state prop is also provided.
|
|
24722
|
-
* If the url needs to be updated with state present, please use
|
|
24723
|
-
* the setURL method.
|
|
24719
|
+
/**
|
|
24720
|
+
* URL of the zincjs metadata. This value will be ignored if a valid
|
|
24721
|
+
* state prop is also provided.
|
|
24722
|
+
* If the url needs to be updated with state present, please use
|
|
24723
|
+
* the setURL method.
|
|
24724
24724
|
*/
|
|
24725
24725
|
url: {
|
|
24726
24726
|
type: String,
|
|
24727
24727
|
default: ""
|
|
24728
24728
|
},
|
|
24729
|
-
/**
|
|
24730
|
-
* Show the colour control of set to true.
|
|
24729
|
+
/**
|
|
24730
|
+
* Show the colour control of set to true.
|
|
24731
24731
|
*/
|
|
24732
24732
|
showColourPicker: {
|
|
24733
24733
|
type: Boolean,
|
|
24734
24734
|
default: false
|
|
24735
24735
|
},
|
|
24736
|
-
/**
|
|
24737
|
-
* Flag to show/hide the UI.
|
|
24736
|
+
/**
|
|
24737
|
+
* Flag to show/hide the UI.
|
|
24738
24738
|
*/
|
|
24739
24739
|
displayUI: {
|
|
24740
24740
|
type: Boolean,
|
|
24741
24741
|
default: true
|
|
24742
24742
|
},
|
|
24743
|
-
/**
|
|
24744
|
-
* Display all graphics at start.
|
|
24745
|
-
*
|
|
24746
|
-
* This setting only works when traditional is set to false.
|
|
24743
|
+
/**
|
|
24744
|
+
* Display all graphics at start.
|
|
24745
|
+
*
|
|
24746
|
+
* This setting only works when traditional is set to false.
|
|
24747
24747
|
*/
|
|
24748
24748
|
displayAtStartUp: {
|
|
24749
24749
|
type: Boolean,
|
|
24750
24750
|
default: true
|
|
24751
24751
|
},
|
|
24752
|
-
/**
|
|
24753
|
-
* Use for toggling the help tooltips.
|
|
24752
|
+
/**
|
|
24753
|
+
* Use for toggling the help tooltips.
|
|
24754
24754
|
*/
|
|
24755
24755
|
helpMode: {
|
|
24756
24756
|
type: Boolean,
|
|
24757
24757
|
default: false
|
|
24758
24758
|
},
|
|
24759
|
-
/**
|
|
24760
|
-
* Use for show/display beta warning icon.
|
|
24759
|
+
/**
|
|
24760
|
+
* Use for show/display beta warning icon.
|
|
24761
24761
|
*/
|
|
24762
24762
|
displayWarning: {
|
|
24763
24763
|
type: Boolean,
|
|
24764
24764
|
default: true
|
|
24765
24765
|
},
|
|
24766
|
-
/**
|
|
24767
|
-
* Warning message for the hovered over text
|
|
24768
|
-
* on the warning icon.
|
|
24766
|
+
/**
|
|
24767
|
+
* Warning message for the hovered over text
|
|
24768
|
+
* on the warning icon.
|
|
24769
24769
|
*/
|
|
24770
24770
|
warningMessage: {
|
|
24771
24771
|
type: String,
|
|
@@ -24779,8 +24779,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24779
24779
|
type: String,
|
|
24780
24780
|
default: "New feature - Local search is now available"
|
|
24781
24781
|
},
|
|
24782
|
-
/**
|
|
24783
|
-
* Show/hide pickable markers for regions.
|
|
24782
|
+
/**
|
|
24783
|
+
* Show/hide pickable markers for regions.
|
|
24784
24784
|
*/
|
|
24785
24785
|
displayMarkers: {
|
|
24786
24786
|
type: Boolean,
|
|
@@ -24792,22 +24792,22 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24792
24792
|
return [];
|
|
24793
24793
|
}
|
|
24794
24794
|
},
|
|
24795
|
-
/**
|
|
24796
|
-
* Show/hide minimap.
|
|
24795
|
+
/**
|
|
24796
|
+
* Show/hide minimap.
|
|
24797
24797
|
*/
|
|
24798
24798
|
displayMinimap: {
|
|
24799
24799
|
type: Boolean,
|
|
24800
24800
|
default: false
|
|
24801
24801
|
},
|
|
24802
|
-
/**
|
|
24803
|
-
* Format of the input URL
|
|
24802
|
+
/**
|
|
24803
|
+
* Format of the input URL
|
|
24804
24804
|
*/
|
|
24805
24805
|
format: {
|
|
24806
24806
|
type: String,
|
|
24807
24807
|
default: "metadata"
|
|
24808
24808
|
},
|
|
24809
|
-
/**
|
|
24810
|
-
* Settings for minimap position, size and alignment.
|
|
24809
|
+
/**
|
|
24810
|
+
* Settings for minimap position, size and alignment.
|
|
24811
24811
|
*/
|
|
24812
24812
|
minimapSettings: {
|
|
24813
24813
|
type: Object,
|
|
@@ -24821,9 +24821,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24821
24821
|
};
|
|
24822
24822
|
}
|
|
24823
24823
|
},
|
|
24824
|
-
/**
|
|
24825
|
-
* Flag to determine rather open map UI should be
|
|
24826
|
-
* presented or not.
|
|
24824
|
+
/**
|
|
24825
|
+
* Flag to determine rather open map UI should be
|
|
24826
|
+
* presented or not.
|
|
24827
24827
|
*/
|
|
24828
24828
|
enableOpenMapUI: {
|
|
24829
24829
|
type: Boolean,
|
|
@@ -24844,32 +24844,32 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24844
24844
|
}];
|
|
24845
24845
|
}
|
|
24846
24846
|
},
|
|
24847
|
-
/**
|
|
24848
|
-
* State containing state of the scaffold.
|
|
24847
|
+
/**
|
|
24848
|
+
* State containing state of the scaffold.
|
|
24849
24849
|
*/
|
|
24850
24850
|
state: {
|
|
24851
24851
|
type: Object,
|
|
24852
24852
|
default: undefined
|
|
24853
24853
|
},
|
|
24854
|
-
/**
|
|
24855
|
-
* Optional prop for the name of the region to focus on,
|
|
24856
|
-
* this option is ignored if state or viewURL is also provided.
|
|
24854
|
+
/**
|
|
24855
|
+
* Optional prop for the name of the region to focus on,
|
|
24856
|
+
* this option is ignored if state or viewURL is also provided.
|
|
24857
24857
|
*/
|
|
24858
24858
|
region: {
|
|
24859
24859
|
type: String,
|
|
24860
24860
|
default: ""
|
|
24861
24861
|
},
|
|
24862
|
-
/**
|
|
24863
|
-
* Optional prop for an URL of containing information of a viewport.
|
|
24864
|
-
* This option is ignored if state is also provided.
|
|
24865
|
-
* It will use the provided URL as base if a relative parth is provided.
|
|
24862
|
+
/**
|
|
24863
|
+
* Optional prop for an URL of containing information of a viewport.
|
|
24864
|
+
* This option is ignored if state is also provided.
|
|
24865
|
+
* It will use the provided URL as base if a relative parth is provided.
|
|
24866
24866
|
*/
|
|
24867
24867
|
viewURL: {
|
|
24868
24868
|
type: String,
|
|
24869
24869
|
default: ""
|
|
24870
24870
|
},
|
|
24871
|
-
/**
|
|
24872
|
-
* Settings for turning on/off rendering
|
|
24871
|
+
/**
|
|
24872
|
+
* Settings for turning on/off rendering
|
|
24873
24873
|
*/
|
|
24874
24874
|
render: {
|
|
24875
24875
|
type: Boolean,
|
|
@@ -24881,8 +24881,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24881
24881
|
sceneData: this.$module.sceneData,
|
|
24882
24882
|
isPlaying: false,
|
|
24883
24883
|
isReady: false,
|
|
24884
|
-
/**
|
|
24885
|
-
* This is set when scene is transitioning.
|
|
24884
|
+
/**
|
|
24885
|
+
* This is set when scene is transitioning.
|
|
24886
24886
|
*/
|
|
24887
24887
|
isTransitioning: false,
|
|
24888
24888
|
tooltipAppendToBody: false,
|
|
@@ -24993,11 +24993,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
24993
24993
|
this.$module.scene.displayMinimap = val;
|
|
24994
24994
|
},
|
|
24995
24995
|
"sceneData.currentTime": function sceneDataCurrentTime() {
|
|
24996
|
-
/**
|
|
24997
|
-
* Triggers when scene time changes.
|
|
24998
|
-
*
|
|
24999
|
-
* @property {number} time Current build-in time of scene.
|
|
25000
|
-
* of selected object.
|
|
24996
|
+
/**
|
|
24997
|
+
* Triggers when scene time changes.
|
|
24998
|
+
*
|
|
24999
|
+
* @property {number} time Current build-in time of scene.
|
|
25000
|
+
* of selected object.
|
|
25001
25001
|
*/
|
|
25002
25002
|
this.$emit("timeChanged", this.sceneData.currentTime);
|
|
25003
25003
|
},
|
|
@@ -25013,7 +25013,6 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25013
25013
|
},
|
|
25014
25014
|
markerLabels: function markerLabels(labels) {
|
|
25015
25015
|
var _this = this;
|
|
25016
|
-
console.log("marker labels changed", labels);
|
|
25017
25016
|
this.previousMarkerLabels.forEach(function (pml) {
|
|
25018
25017
|
_this.setMarkerModeForObjectsWithName(pml, "off");
|
|
25019
25018
|
});
|
|
@@ -25056,16 +25055,16 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25056
25055
|
if (this.$refs.treeControls) this.$refs.treeControls.zincObjectAdded(zincObject);
|
|
25057
25056
|
}
|
|
25058
25057
|
},
|
|
25059
|
-
/**
|
|
25060
|
-
* This is called when a new zinc object is read into the scene.
|
|
25058
|
+
/**
|
|
25059
|
+
* This is called when a new zinc object is read into the scene.
|
|
25061
25060
|
*/
|
|
25062
25061
|
zincObjectAdded: function zincObjectAdded(zincObject) {
|
|
25063
25062
|
this.loading = false;
|
|
25064
25063
|
this.$_searchIndex.addZincObject(zincObject, zincObject.uuid);
|
|
25065
25064
|
this.$emit("zinc-object-added", zincObject);
|
|
25066
25065
|
},
|
|
25067
|
-
/**
|
|
25068
|
-
*
|
|
25066
|
+
/**
|
|
25067
|
+
*
|
|
25069
25068
|
*/
|
|
25070
25069
|
addRegionsToSearchIndex: function addRegionsToSearchIndex() {
|
|
25071
25070
|
var _this2 = this;
|
|
@@ -25075,19 +25074,19 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25075
25074
|
_this2.$_searchIndex.addRegion(region, region.uuid);
|
|
25076
25075
|
});
|
|
25077
25076
|
},
|
|
25078
|
-
/**
|
|
25079
|
-
* This is called when Change backgspeedround colour button
|
|
25080
|
-
* is pressed an causes the backgrouColornd colour to be changed
|
|
25081
|
-
* to one of the three preset colour: white, black and
|
|
25082
|
-
* lightskyblue.
|
|
25077
|
+
/**
|
|
25078
|
+
* This is called when Change backgspeedround colour button
|
|
25079
|
+
* is pressed an causes the backgrouColornd colour to be changed
|
|
25080
|
+
* to one of the three preset colour: white, black and
|
|
25081
|
+
* lightskyblue.
|
|
25083
25082
|
*/
|
|
25084
25083
|
backgroundChangeCallback: function backgroundChangeCallback(colour) {
|
|
25085
25084
|
this.currentBackground = colour;
|
|
25086
25085
|
this.$module.zincRenderer.getThreeJSRenderer().setClearColor(this.currentBackground, 1);
|
|
25087
25086
|
},
|
|
25088
|
-
/**
|
|
25089
|
-
* This is called by captueeScreenshot and after the last render
|
|
25090
|
-
* loop, it download a screenshot of the current scene with no UI.
|
|
25087
|
+
/**
|
|
25088
|
+
* This is called by captueeScreenshot and after the last render
|
|
25089
|
+
* loop, it download a screenshot of the current scene with no UI.
|
|
25091
25090
|
*/
|
|
25092
25091
|
captureScreenshotCallback: function captureScreenshotCallback() {
|
|
25093
25092
|
//Remove the callback, only needs to happen once
|
|
@@ -25100,21 +25099,21 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25100
25099
|
hrefElement.click();
|
|
25101
25100
|
hrefElement.remove();
|
|
25102
25101
|
},
|
|
25103
|
-
/**
|
|
25104
|
-
* Function for capturing a screenshot of the current rendering.
|
|
25105
|
-
*
|
|
25106
|
-
* @param {String} filename filename given to the screenshot.
|
|
25107
|
-
*
|
|
25108
|
-
* @public
|
|
25102
|
+
/**
|
|
25103
|
+
* Function for capturing a screenshot of the current rendering.
|
|
25104
|
+
*
|
|
25105
|
+
* @param {String} filename filename given to the screenshot.
|
|
25106
|
+
*
|
|
25107
|
+
* @public
|
|
25109
25108
|
*/
|
|
25110
25109
|
captureScreenshot: function captureScreenshot(filename) {
|
|
25111
25110
|
this.captureFilename = filename;
|
|
25112
25111
|
this.captureID = this.$module.zincRenderer.addPostRenderCallbackFunction(this.captureScreenshotCallback);
|
|
25113
25112
|
},
|
|
25114
|
-
/**
|
|
25115
|
-
* Function to clear current scene, the tree controls and the search index.
|
|
25116
|
-
*
|
|
25117
|
-
* @public
|
|
25113
|
+
/**
|
|
25114
|
+
* Function to clear current scene, the tree controls and the search index.
|
|
25115
|
+
*
|
|
25116
|
+
* @public
|
|
25118
25117
|
*/
|
|
25119
25118
|
clearScene: function clearScene() {
|
|
25120
25119
|
if (this.$refs.treeControls) this.$refs.treeControls.clear();
|
|
@@ -25131,52 +25130,52 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25131
25130
|
}
|
|
25132
25131
|
return val ? val.toFixed(2) + " ms" : "0 ms";
|
|
25133
25132
|
},
|
|
25134
|
-
/**
|
|
25135
|
-
* Function to reset the view to default.
|
|
25136
|
-
* Also called when the associated button is pressed.
|
|
25137
|
-
*
|
|
25138
|
-
* @public
|
|
25133
|
+
/**
|
|
25134
|
+
* Function to reset the view to default.
|
|
25135
|
+
* Also called when the associated button is pressed.
|
|
25136
|
+
*
|
|
25137
|
+
* @public
|
|
25139
25138
|
*/
|
|
25140
25139
|
fitWindow: function fitWindow() {
|
|
25141
25140
|
if (this.$module.scene) {
|
|
25142
25141
|
this.$module.scene.viewAll();
|
|
25143
25142
|
}
|
|
25144
25143
|
},
|
|
25145
|
-
/**
|
|
25146
|
-
* Function to zoom in.
|
|
25147
|
-
* Also called when the associated button is pressed.
|
|
25148
|
-
*
|
|
25149
|
-
* @public
|
|
25144
|
+
/**
|
|
25145
|
+
* Function to zoom in.
|
|
25146
|
+
* Also called when the associated button is pressed.
|
|
25147
|
+
*
|
|
25148
|
+
* @public
|
|
25150
25149
|
*/
|
|
25151
25150
|
zoomIn: function zoomIn() {
|
|
25152
25151
|
if (this.$module.scene) {
|
|
25153
25152
|
this.$module.scene.changeZoomByScrollRateUnit(-1);
|
|
25154
25153
|
}
|
|
25155
25154
|
},
|
|
25156
|
-
/**
|
|
25157
|
-
* Function to zoom out.
|
|
25158
|
-
* Also called when the associated button is pressed.
|
|
25159
|
-
*
|
|
25160
|
-
* @public
|
|
25155
|
+
/**
|
|
25156
|
+
* Function to zoom out.
|
|
25157
|
+
* Also called when the associated button is pressed.
|
|
25158
|
+
*
|
|
25159
|
+
* @public
|
|
25161
25160
|
*/
|
|
25162
25161
|
zoomOut: function zoomOut() {
|
|
25163
25162
|
if (this.$module.scene) {
|
|
25164
25163
|
this.$module.scene.changeZoomByScrollRateUnit(1);
|
|
25165
25164
|
}
|
|
25166
25165
|
},
|
|
25167
|
-
/**
|
|
25168
|
-
* Function to change the current play speed.
|
|
25169
|
-
*
|
|
25170
|
-
* @public
|
|
25166
|
+
/**
|
|
25167
|
+
* Function to change the current play speed.
|
|
25168
|
+
*
|
|
25169
|
+
* @public
|
|
25171
25170
|
*/
|
|
25172
25171
|
speedChanged: function speedChanged(speed) {
|
|
25173
25172
|
this.currentSpeed = speed;
|
|
25174
25173
|
this.$module.setPlayRate(this.defaultRate * this.currentSpeed);
|
|
25175
25174
|
},
|
|
25176
|
-
/**
|
|
25177
|
-
* Function used to stop the free spin
|
|
25178
|
-
*
|
|
25179
|
-
* @public
|
|
25175
|
+
/**
|
|
25176
|
+
* Function used to stop the free spin
|
|
25177
|
+
*
|
|
25178
|
+
* @public
|
|
25180
25179
|
*/
|
|
25181
25180
|
stopFreeSpin: function stopFreeSpin() {
|
|
25182
25181
|
var cameracontrol = this.$module.scene.getZincCameraControls();
|
|
@@ -25190,8 +25189,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25190
25189
|
}
|
|
25191
25190
|
return objects;
|
|
25192
25191
|
},
|
|
25193
|
-
/**
|
|
25194
|
-
* Focus on named region
|
|
25192
|
+
/**
|
|
25193
|
+
* Focus on named region
|
|
25195
25194
|
*/
|
|
25196
25195
|
viewRegion: function viewRegion(names) {
|
|
25197
25196
|
var rootRegion = this.$module.scene.getRootRegion();
|
|
@@ -25240,11 +25239,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25240
25239
|
}
|
|
25241
25240
|
return undefined;
|
|
25242
25241
|
},
|
|
25243
|
-
/**
|
|
25244
|
-
* Function used to rotate the scene.
|
|
25245
|
-
* Also called when the associated button is pressed.
|
|
25246
|
-
*
|
|
25247
|
-
* @public
|
|
25242
|
+
/**
|
|
25243
|
+
* Function used to rotate the scene.
|
|
25244
|
+
* Also called when the associated button is pressed.
|
|
25245
|
+
*
|
|
25246
|
+
* @public
|
|
25248
25247
|
*/
|
|
25249
25248
|
freeSpin: function freeSpin() {
|
|
25250
25249
|
if (this.$module.scene) {
|
|
@@ -25255,10 +25254,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25255
25254
|
setTimeout(this.stopFreeSpin, 4000);
|
|
25256
25255
|
}
|
|
25257
25256
|
},
|
|
25258
|
-
/**
|
|
25259
|
-
* Callback when a region is selected/highlighted.
|
|
25260
|
-
* It will also update other controls.
|
|
25261
|
-
*
|
|
25257
|
+
/**
|
|
25258
|
+
* Callback when a region is selected/highlighted.
|
|
25259
|
+
* It will also update other controls.
|
|
25260
|
+
*
|
|
25262
25261
|
*/
|
|
25263
25262
|
eventNotifierCallback: function eventNotifierCallback(event) {
|
|
25264
25263
|
var names = [];
|
|
@@ -25273,10 +25272,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25273
25272
|
});
|
|
25274
25273
|
zincObjects = event.zincObjects;
|
|
25275
25274
|
}
|
|
25276
|
-
/*
|
|
25277
|
-
* Event Type 1: Selected
|
|
25278
|
-
* Event Type 2: Highlighted
|
|
25279
|
-
* Event Type 1: Move
|
|
25275
|
+
/*
|
|
25276
|
+
* Event Type 1: Selected
|
|
25277
|
+
* Event Type 2: Highlighted
|
|
25278
|
+
* Event Type 1: Move
|
|
25280
25279
|
*/
|
|
25281
25280
|
if (event.eventType == 1) {
|
|
25282
25281
|
if (this.$refs.treeControls) {
|
|
@@ -25326,10 +25325,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25326
25325
|
}
|
|
25327
25326
|
}
|
|
25328
25327
|
},
|
|
25329
|
-
/**
|
|
25330
|
-
* Get the coordinates of the current selected region.
|
|
25331
|
-
*
|
|
25332
|
-
* @public
|
|
25328
|
+
/**
|
|
25329
|
+
* Get the coordinates of the current selected region.
|
|
25330
|
+
*
|
|
25331
|
+
* @public
|
|
25333
25332
|
*/
|
|
25334
25333
|
getCoordinatesOfSelected: function getCoordinatesOfSelected() {
|
|
25335
25334
|
if (this.selectedObjects && this.selectedObjects.length > 0) {
|
|
@@ -25337,46 +25336,46 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25337
25336
|
}
|
|
25338
25337
|
return undefined;
|
|
25339
25338
|
},
|
|
25340
|
-
/**
|
|
25341
|
-
* Return an object containing the window coordinates of the
|
|
25342
|
-
* current selected region which will be updated after each render
|
|
25343
|
-
* loop.
|
|
25344
|
-
*
|
|
25345
|
-
* @public
|
|
25339
|
+
/**
|
|
25340
|
+
* Return an object containing the window coordinates of the
|
|
25341
|
+
* current selected region which will be updated after each render
|
|
25342
|
+
* loop.
|
|
25343
|
+
*
|
|
25344
|
+
* @public
|
|
25346
25345
|
*/
|
|
25347
25346
|
getDynamicSelectedCoordinates: function getDynamicSelectedCoordinates() {
|
|
25348
25347
|
return this.$module.selectedScreenCoordinates;
|
|
25349
25348
|
},
|
|
25350
|
-
/**
|
|
25351
|
-
* Callback when time is changed through the UI.
|
|
25349
|
+
/**
|
|
25350
|
+
* Callback when time is changed through the UI.
|
|
25352
25351
|
*/
|
|
25353
25352
|
timeChange: function timeChange(event) {
|
|
25354
25353
|
var normalizedTime = event / this.timeMax * 100;
|
|
25355
25354
|
if (normalizedTime != this.sceneData.currentTime) this.$module.updateTime(normalizedTime);
|
|
25356
25355
|
},
|
|
25357
|
-
/**
|
|
25358
|
-
* A callback used by children components. Set the selected zinc object
|
|
25359
|
-
*
|
|
25360
|
-
* @param {object} object Zinc object
|
|
25356
|
+
/**
|
|
25357
|
+
* A callback used by children components. Set the selected zinc object
|
|
25358
|
+
*
|
|
25359
|
+
* @param {object} object Zinc object
|
|
25361
25360
|
*/
|
|
25362
25361
|
objectSelected: function objectSelected(objects, propagate) {
|
|
25363
25362
|
this.selectedObjects = objects;
|
|
25364
25363
|
if (this.selectedObjects && this.selectedObjects.length > 0) this.$refs.opacityControl.setObject(this.selectedObjects[0]);
|
|
25365
25364
|
this.$module.setSelectedByZincObjects(objects, undefined, propagate);
|
|
25366
25365
|
},
|
|
25367
|
-
/**
|
|
25368
|
-
* A callback used by children components. Set the highlighted zinc object
|
|
25369
|
-
*
|
|
25370
|
-
* @param {object} object Zinc object
|
|
25366
|
+
/**
|
|
25367
|
+
* A callback used by children components. Set the highlighted zinc object
|
|
25368
|
+
*
|
|
25369
|
+
* @param {object} object Zinc object
|
|
25371
25370
|
*/
|
|
25372
25371
|
objectHovered: function objectHovered(objects, propagate) {
|
|
25373
25372
|
this.hoveredObjects = objects;
|
|
25374
25373
|
this.$module.setHighlightedByZincObjects(objects, undefined, propagate);
|
|
25375
25374
|
},
|
|
25376
|
-
/**
|
|
25377
|
-
* Set the selected by name.
|
|
25378
|
-
*
|
|
25379
|
-
* @param {} name Name of the group
|
|
25375
|
+
/**
|
|
25376
|
+
* Set the selected by name.
|
|
25377
|
+
*
|
|
25378
|
+
* @param {} name Name of the group
|
|
25380
25379
|
*/
|
|
25381
25380
|
changeActiveByName: function changeActiveByName(names, region, propagate) {
|
|
25382
25381
|
var isArray = Array.isArray(names);
|
|
@@ -25388,10 +25387,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25388
25387
|
this.$refs.treeControls.changeActiveByNames(array, region, propagate);
|
|
25389
25388
|
}
|
|
25390
25389
|
},
|
|
25391
|
-
/**
|
|
25392
|
-
* Set the highlighted by name.
|
|
25393
|
-
*
|
|
25394
|
-
* @param {name} name Name of the group
|
|
25390
|
+
/**
|
|
25391
|
+
* Set the highlighted by name.
|
|
25392
|
+
*
|
|
25393
|
+
* @param {name} name Name of the group
|
|
25395
25394
|
*/
|
|
25396
25395
|
changeHighlightedByName: function changeHighlightedByName(names, region, propagate) {
|
|
25397
25396
|
var isArray = Array.isArray(names);
|
|
@@ -25403,10 +25402,10 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25403
25402
|
this.$refs.treeControls.changeHoverByNames(array, region, propagate);
|
|
25404
25403
|
}
|
|
25405
25404
|
},
|
|
25406
|
-
/**
|
|
25407
|
-
* Start the animation.
|
|
25408
|
-
*
|
|
25409
|
-
* @param {object} object Zinc object
|
|
25405
|
+
/**
|
|
25406
|
+
* Start the animation.
|
|
25407
|
+
*
|
|
25408
|
+
* @param {object} object Zinc object
|
|
25410
25409
|
*/
|
|
25411
25410
|
play: function play(flag) {
|
|
25412
25411
|
this.$module.playAnimation(flag);
|
|
@@ -25415,8 +25414,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25415
25414
|
//this.hideRegionTooltip();
|
|
25416
25415
|
},
|
|
25417
25416
|
|
|
25418
|
-
/**
|
|
25419
|
-
* Function to toggle on/off overlay help.
|
|
25417
|
+
/**
|
|
25418
|
+
* Function to toggle on/off overlay help.
|
|
25420
25419
|
*/
|
|
25421
25420
|
setHelpMode: function setHelpMode(helpMode) {
|
|
25422
25421
|
if (helpMode) {
|
|
@@ -25431,9 +25430,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25431
25430
|
});
|
|
25432
25431
|
}
|
|
25433
25432
|
},
|
|
25434
|
-
/**
|
|
25435
|
-
* Callback function used by showRegionTooltip in the case when the tooltip
|
|
25436
|
-
* is out of view.
|
|
25433
|
+
/**
|
|
25434
|
+
* Callback function used by showRegionTooltip in the case when the tooltip
|
|
25435
|
+
* is out of view.
|
|
25437
25436
|
*/
|
|
25438
25437
|
displayTooltipOfObjectsCallback: function displayTooltipOfObjectsCallback(name, objects, regionPath, resetView, liveUpdates) {
|
|
25439
25438
|
var instance = this;
|
|
@@ -25485,12 +25484,12 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25485
25484
|
this.hideRegionTooltip();
|
|
25486
25485
|
return false;
|
|
25487
25486
|
},
|
|
25488
|
-
/**
|
|
25489
|
-
* Display the tooltip used for displaying search result.
|
|
25490
|
-
* When resetView is set to true, it will
|
|
25491
|
-
* reset view if the tooltip is not in view.
|
|
25492
|
-
* Setting liveUpdates to true will update the tooltip location
|
|
25493
|
-
* at every rendering loop.
|
|
25487
|
+
/**
|
|
25488
|
+
* Display the tooltip used for displaying search result.
|
|
25489
|
+
* When resetView is set to true, it will
|
|
25490
|
+
* reset view if the tooltip is not in view.
|
|
25491
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
25492
|
+
* at every rendering loop.
|
|
25494
25493
|
*/
|
|
25495
25494
|
showRegionTooltipWithObjects: function showRegionTooltipWithObjects(label, zincObjects, regionPath, resetView, liveUpdates) {
|
|
25496
25495
|
if (label && zincObjects && zincObjects.length > 0 && this.$module.scene) {
|
|
@@ -25499,11 +25498,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25499
25498
|
this.hideRegionTooltip();
|
|
25500
25499
|
return false;
|
|
25501
25500
|
},
|
|
25502
|
-
/**
|
|
25503
|
-
* Display the tooltip. When resetView is set to true, it will
|
|
25504
|
-
* reset view if the tooltip is not in view.
|
|
25505
|
-
* Setting liveUpdates to true will update the tooltip location
|
|
25506
|
-
* at every rendering loop.
|
|
25501
|
+
/**
|
|
25502
|
+
* Display the tooltip. When resetView is set to true, it will
|
|
25503
|
+
* reset view if the tooltip is not in view.
|
|
25504
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
25505
|
+
* at every rendering loop.
|
|
25507
25506
|
*/
|
|
25508
25507
|
showRegionTooltip: function showRegionTooltip(name, resetView, liveUpdates) {
|
|
25509
25508
|
if (name && this.$module.scene) {
|
|
@@ -25519,12 +25518,12 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25519
25518
|
this.hideRegionTooltip();
|
|
25520
25519
|
return false;
|
|
25521
25520
|
},
|
|
25522
|
-
/**
|
|
25523
|
-
* Display the tooltip using the list of annotations.
|
|
25524
|
-
* When resetView is set to true, it will
|
|
25525
|
-
* reset view if the tooltip is not in view.
|
|
25526
|
-
* Setting liveUpdates to true will update the tooltip location
|
|
25527
|
-
* at every rendering loop.
|
|
25521
|
+
/**
|
|
25522
|
+
* Display the tooltip using the list of annotations.
|
|
25523
|
+
* When resetView is set to true, it will
|
|
25524
|
+
* reset view if the tooltip is not in view.
|
|
25525
|
+
* Setting liveUpdates to true will update the tooltip location
|
|
25526
|
+
* at every rendering loop.
|
|
25528
25527
|
*/
|
|
25529
25528
|
showRegionTooltipWithAnnotations: function showRegionTooltipWithAnnotations(annotations, resetView, liveUpdates) {
|
|
25530
25529
|
if (this.$module.scene) {
|
|
@@ -25545,9 +25544,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25545
25544
|
this.tData.visible = false;
|
|
25546
25545
|
this.tData.region = undefined;
|
|
25547
25546
|
},
|
|
25548
|
-
/**
|
|
25549
|
-
* Set the marker modes for objects with the provided name, mode can
|
|
25550
|
-
* be "on", "off" or "inherited".
|
|
25547
|
+
/**
|
|
25548
|
+
* Set the marker modes for objects with the provided name, mode can
|
|
25549
|
+
* be "on", "off" or "inherited".
|
|
25551
25550
|
*/
|
|
25552
25551
|
setMarkerModeForObjectsWithName: function setMarkerModeForObjectsWithName(name, mode) {
|
|
25553
25552
|
if (name && this.$module.scene) {
|
|
@@ -25559,8 +25558,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25559
25558
|
});
|
|
25560
25559
|
}
|
|
25561
25560
|
},
|
|
25562
|
-
/**
|
|
25563
|
-
* Set the marker modes for objects specified by the list of annotations
|
|
25561
|
+
/**
|
|
25562
|
+
* Set the marker modes for objects specified by the list of annotations
|
|
25564
25563
|
*/
|
|
25565
25564
|
setMarkerModeWithAnnotations: function setMarkerModeWithAnnotations(annotations, mode) {
|
|
25566
25565
|
if (this.$module.scene) {
|
|
@@ -25572,9 +25571,9 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25572
25571
|
}
|
|
25573
25572
|
}
|
|
25574
25573
|
},
|
|
25575
|
-
/**
|
|
25576
|
-
* This is called when mouse cursor enters supported elements
|
|
25577
|
-
* with help tootltips.
|
|
25574
|
+
/**
|
|
25575
|
+
* This is called when mouse cursor enters supported elements
|
|
25576
|
+
* with help tootltips.
|
|
25578
25577
|
*/
|
|
25579
25578
|
showHelpText: function showHelpText(helpTextNumber) {
|
|
25580
25579
|
var _this3 = this;
|
|
@@ -25584,8 +25583,8 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25584
25583
|
}, 500);
|
|
25585
25584
|
}
|
|
25586
25585
|
},
|
|
25587
|
-
/**
|
|
25588
|
-
* This is called when mouse cursor exits supported element..
|
|
25586
|
+
/**
|
|
25587
|
+
* This is called when mouse cursor exits supported element..
|
|
25589
25588
|
*/
|
|
25590
25589
|
hideHelpText: function hideHelpText(helpTextNumber) {
|
|
25591
25590
|
if (!this.inHelp) {
|
|
@@ -25618,16 +25617,16 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25618
25617
|
}
|
|
25619
25618
|
return false;
|
|
25620
25619
|
},
|
|
25621
|
-
/**
|
|
25622
|
-
* Get the list of suggested terms
|
|
25620
|
+
/**
|
|
25621
|
+
* Get the list of suggested terms
|
|
25623
25622
|
*/
|
|
25624
25623
|
fetchSuggestions: function fetchSuggestions(term) {
|
|
25625
25624
|
if (this.$_searchIndex === undefined) return [];
|
|
25626
25625
|
return this.$_searchIndex.auto_suggest(term);
|
|
25627
25626
|
},
|
|
25628
|
-
/**
|
|
25629
|
-
* Called when minimap settings has changed. Pass the
|
|
25630
|
-
* parameters to ZincJS and marked it for update.
|
|
25627
|
+
/**
|
|
25628
|
+
* Called when minimap settings has changed. Pass the
|
|
25629
|
+
* parameters to ZincJS and marked it for update.
|
|
25631
25630
|
*/
|
|
25632
25631
|
updateMinimapScissor: function updateMinimapScissor() {
|
|
25633
25632
|
var _this4 = this;
|
|
@@ -25677,11 +25676,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25677
25676
|
_this5.isReady = true;
|
|
25678
25677
|
};
|
|
25679
25678
|
},
|
|
25680
|
-
/**
|
|
25681
|
-
* Function used for getting the current states of the scene. This exported states
|
|
25682
|
-
* can be imported using the importStates method.
|
|
25683
|
-
*
|
|
25684
|
-
* @public
|
|
25679
|
+
/**
|
|
25680
|
+
* Function used for getting the current states of the scene. This exported states
|
|
25681
|
+
* can be imported using the importStates method.
|
|
25682
|
+
*
|
|
25683
|
+
* @public
|
|
25685
25684
|
*/
|
|
25686
25685
|
getState: function getState() {
|
|
25687
25686
|
var state = {
|
|
@@ -25697,11 +25696,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25697
25696
|
}
|
|
25698
25697
|
return state;
|
|
25699
25698
|
},
|
|
25700
|
-
/**
|
|
25701
|
-
* Function used for importing the states of the scene. This exported states
|
|
25702
|
-
* can be imported using the read states method.
|
|
25703
|
-
*
|
|
25704
|
-
* @public
|
|
25699
|
+
/**
|
|
25700
|
+
* Function used for importing the states of the scene. This exported states
|
|
25701
|
+
* can be imported using the read states method.
|
|
25702
|
+
*
|
|
25703
|
+
* @public
|
|
25705
25704
|
*/
|
|
25706
25705
|
setState: function setState(state) {
|
|
25707
25706
|
if (state) {
|
|
@@ -25729,12 +25728,12 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25729
25728
|
exportGLTF: function exportGLTF(binary) {
|
|
25730
25729
|
return this.$module.scene.exportGLTF(binary);
|
|
25731
25730
|
},
|
|
25732
|
-
/**
|
|
25733
|
-
* Function used for reading in new scaffold metadata and a custom
|
|
25734
|
-
* viewport. This function will ignore the state prop and
|
|
25735
|
-
* read in the new url.
|
|
25736
|
-
*
|
|
25737
|
-
* @public
|
|
25731
|
+
/**
|
|
25732
|
+
* Function used for reading in new scaffold metadata and a custom
|
|
25733
|
+
* viewport. This function will ignore the state prop and
|
|
25734
|
+
* read in the new url.
|
|
25735
|
+
*
|
|
25736
|
+
* @public
|
|
25738
25737
|
*/
|
|
25739
25738
|
setURLAndState: function setURLAndState(newValue, state) {
|
|
25740
25739
|
if (newValue != this._currentURL) {
|
|
@@ -25764,24 +25763,24 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25764
25763
|
this.updateMinimapScissor();
|
|
25765
25764
|
}
|
|
25766
25765
|
},
|
|
25767
|
-
/**
|
|
25768
|
-
* Function used for reading in new scaffold metadata. This function will ignore
|
|
25769
|
-
* the state prop and read in the new url.
|
|
25770
|
-
*
|
|
25771
|
-
* @public
|
|
25766
|
+
/**
|
|
25767
|
+
* Function used for reading in new scaffold metadata. This function will ignore
|
|
25768
|
+
* the state prop and read in the new url.
|
|
25769
|
+
*
|
|
25770
|
+
* @public
|
|
25772
25771
|
*/
|
|
25773
25772
|
setURL: function setURL(newValue) {
|
|
25774
25773
|
this.setURLAndState(newValue, undefined);
|
|
25775
25774
|
},
|
|
25776
|
-
/**
|
|
25777
|
-
* Callback when drawer is toggled.
|
|
25775
|
+
/**
|
|
25776
|
+
* Callback when drawer is toggled.
|
|
25778
25777
|
*/
|
|
25779
25778
|
drawerToggled: function drawerToggled(flag) {
|
|
25780
25779
|
this.drawerOpen = flag;
|
|
25781
25780
|
this.adjustLayout();
|
|
25782
25781
|
},
|
|
25783
|
-
/**
|
|
25784
|
-
* Callback using ResizeObserver.
|
|
25782
|
+
/**
|
|
25783
|
+
* Callback using ResizeObserver.
|
|
25785
25784
|
*/
|
|
25786
25785
|
adjustLayout: function adjustLayout() {
|
|
25787
25786
|
var width = this.$refs.scaffoldContainer.clientWidth;
|
|
@@ -25813,16 +25812,16 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25813
25812
|
}
|
|
25814
25813
|
this.$emit("scaffold-navigated", payload);
|
|
25815
25814
|
},
|
|
25816
|
-
/**
|
|
25817
|
-
* Rotate mode - "none", "horizontal", "vertical", "free" but
|
|
25818
|
-
* it will be ignored if flag is set to false.
|
|
25815
|
+
/**
|
|
25816
|
+
* Rotate mode - "none", "horizontal", "vertical", "free" but
|
|
25817
|
+
* it will be ignored if flag is set to false.
|
|
25819
25818
|
*/
|
|
25820
25819
|
toggleSyncControl: function toggleSyncControl(flag, rotateMode) {
|
|
25821
25820
|
this.$module.toggleSyncControl(flag, rotateMode);
|
|
25822
25821
|
this.$module.setSyncControlCallback(this.syncControlCallback);
|
|
25823
25822
|
},
|
|
25824
|
-
/**
|
|
25825
|
-
* Set the markers for the scene.
|
|
25823
|
+
/**
|
|
25824
|
+
* Set the markers for the scene.
|
|
25826
25825
|
*/
|
|
25827
25826
|
setMarkers: function setMarkers() {
|
|
25828
25827
|
var _this6 = this;
|
|
@@ -25834,11 +25833,11 @@ var EventNotifier = __webpack_require__("9b21").EventNotifier;
|
|
|
25834
25833
|
});
|
|
25835
25834
|
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue?vue&type=script&lang=js&
|
|
25836
25835
|
/* harmony default export */ var components_ScaffoldVuervue_type_script_lang_js_ = (ScaffoldVuervue_type_script_lang_js_);
|
|
25837
|
-
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=0&id=
|
|
25838
|
-
var
|
|
25836
|
+
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=0&id=1d065206&prod&scoped=true&lang=scss&
|
|
25837
|
+
var ScaffoldVuervue_type_style_index_0_id_1d065206_prod_scoped_true_lang_scss_ = __webpack_require__("c31b");
|
|
25839
25838
|
|
|
25840
|
-
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=1&id=
|
|
25841
|
-
var
|
|
25839
|
+
// EXTERNAL MODULE: ./src/components/ScaffoldVuer.vue?vue&type=style&index=1&id=1d065206&prod&lang=scss&
|
|
25840
|
+
var ScaffoldVuervue_type_style_index_1_id_1d065206_prod_lang_scss_ = __webpack_require__("258c");
|
|
25842
25841
|
|
|
25843
25842
|
// CONCATENATED MODULE: ./src/components/ScaffoldVuer.vue
|
|
25844
25843
|
|
|
@@ -25856,7 +25855,7 @@ var ScaffoldVuer_component = normalizeComponent(
|
|
|
25856
25855
|
staticRenderFns,
|
|
25857
25856
|
false,
|
|
25858
25857
|
null,
|
|
25859
|
-
"
|
|
25858
|
+
"1d065206",
|
|
25860
25859
|
null
|
|
25861
25860
|
|
|
25862
25861
|
)
|