@kq_npm/client3d_webgl_vue 4.3.6 → 4.3.7
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/index.js +207 -1
- package/package.json +1 -1
- package/scenetohdimage/index.js +388 -0
- package/scenetohdimage/style/index.js +3 -0
- package/scenetohdimage/style/scenetohdimage.css +1 -0
- package/sceneview/index.js +247 -1
- package/style.css +1 -1
package/sceneview/index.js
CHANGED
|
@@ -27787,6 +27787,246 @@ SceneSet.install = (Vue, opts) => {
|
|
|
27787
27787
|
|
|
27788
27788
|
|
|
27789
27789
|
|
|
27790
|
+
/***/ }),
|
|
27791
|
+
|
|
27792
|
+
/***/ 2059:
|
|
27793
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27794
|
+
|
|
27795
|
+
"use strict";
|
|
27796
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27797
|
+
/* harmony export */ "Z": function() { return /* binding */ SceneToHDImageViewModel; }
|
|
27798
|
+
/* harmony export */ });
|
|
27799
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
27800
|
+
|
|
27801
|
+
|
|
27802
|
+
/**
|
|
27803
|
+
* 场景高清出图
|
|
27804
|
+
**/
|
|
27805
|
+
class SceneToHDImageViewModel {
|
|
27806
|
+
constructor(viewer) {
|
|
27807
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
27808
|
+
|
|
27809
|
+
this._viewer = viewer;
|
|
27810
|
+
} // 销毁
|
|
27811
|
+
|
|
27812
|
+
|
|
27813
|
+
destroy() {}
|
|
27814
|
+
|
|
27815
|
+
}
|
|
27816
|
+
|
|
27817
|
+
/***/ }),
|
|
27818
|
+
|
|
27819
|
+
/***/ 8022:
|
|
27820
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27821
|
+
|
|
27822
|
+
"use strict";
|
|
27823
|
+
|
|
27824
|
+
// EXPORTS
|
|
27825
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27826
|
+
"default": function() { return /* reexport */ SceneToHDImage; }
|
|
27827
|
+
});
|
|
27828
|
+
|
|
27829
|
+
// UNUSED EXPORTS: SceneToHDImageViewModel
|
|
27830
|
+
|
|
27831
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
27832
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
27833
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
27834
|
+
var gis_utils_ = __webpack_require__(7135);
|
|
27835
|
+
// EXTERNAL MODULE: ./src/webgl/scenetohdimage/SceneToHDImageViewModel.js
|
|
27836
|
+
var SceneToHDImageViewModel = __webpack_require__(2059);
|
|
27837
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
27838
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
27839
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
27840
|
+
var util_ = __webpack_require__(3458);
|
|
27841
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
27842
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
27843
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/scenetohdimage/SceneToHDImage.vue?vue&type=script&setup=true&lang=js
|
|
27844
|
+
|
|
27845
|
+
const _hoisted_1 = {
|
|
27846
|
+
class: "kq3d-scene-to-hd-image-box"
|
|
27847
|
+
};
|
|
27848
|
+
|
|
27849
|
+
|
|
27850
|
+
|
|
27851
|
+
|
|
27852
|
+
|
|
27853
|
+
|
|
27854
|
+
const __default__ = {
|
|
27855
|
+
name: "Kq3dSceneToHDImage"
|
|
27856
|
+
};
|
|
27857
|
+
/* harmony default export */ var SceneToHDImagevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
27858
|
+
props: {
|
|
27859
|
+
// 设置参数
|
|
27860
|
+
settingParams: {
|
|
27861
|
+
type: Object
|
|
27862
|
+
},
|
|
27863
|
+
// 是否显示阴影效果
|
|
27864
|
+
showShadow: {
|
|
27865
|
+
type: Boolean,
|
|
27866
|
+
default: true
|
|
27867
|
+
},
|
|
27868
|
+
|
|
27869
|
+
/**
|
|
27870
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
27871
|
+
*/
|
|
27872
|
+
position: [String, Object],
|
|
27873
|
+
// 是否生成HeaderTemp
|
|
27874
|
+
showHeaderTemp: {
|
|
27875
|
+
type: Boolean,
|
|
27876
|
+
default: false
|
|
27877
|
+
},
|
|
27878
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
27879
|
+
isCollapseHeaderTemp: {
|
|
27880
|
+
type: Boolean,
|
|
27881
|
+
default: false
|
|
27882
|
+
},
|
|
27883
|
+
// HeaderTemp标题
|
|
27884
|
+
headerTempTitle: {
|
|
27885
|
+
type: String
|
|
27886
|
+
},
|
|
27887
|
+
// HeaderTemp图标
|
|
27888
|
+
headerTempIcon: {
|
|
27889
|
+
type: [Object, String],
|
|
27890
|
+
default: client_icons_vue_.IconHighDefinitionImaging
|
|
27891
|
+
},
|
|
27892
|
+
// HeaderTemp Title&Icon的位置
|
|
27893
|
+
isRight: {
|
|
27894
|
+
type: Boolean,
|
|
27895
|
+
default: true
|
|
27896
|
+
}
|
|
27897
|
+
},
|
|
27898
|
+
|
|
27899
|
+
setup(__props, {
|
|
27900
|
+
expose
|
|
27901
|
+
}) {
|
|
27902
|
+
const props = __props;
|
|
27903
|
+
const {
|
|
27904
|
+
proxy
|
|
27905
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
27906
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
27907
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
27908
|
+
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("content"); // 获取组件传参
|
|
27909
|
+
// 分析类
|
|
27910
|
+
|
|
27911
|
+
let viewModel = null; // 参数
|
|
27912
|
+
|
|
27913
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({}); // 组件容器Ref
|
|
27914
|
+
|
|
27915
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
27916
|
+
|
|
27917
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
27918
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
27919
|
+
|
|
27920
|
+
let {
|
|
27921
|
+
locale,
|
|
27922
|
+
messages
|
|
27923
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
27924
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
27925
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
27926
|
+
language.value = messages.value[newVal]["webgl"];
|
|
27927
|
+
headerTempTitle.value = language.value.sceneToHDImage;
|
|
27928
|
+
});
|
|
27929
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
27930
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
27931
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
27932
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
27933
|
+
});
|
|
27934
|
+
watchCreateHeaderTemp();
|
|
27935
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
27936
|
+
watchCreateHeaderTemp();
|
|
27937
|
+
});
|
|
27938
|
+
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
27939
|
+
|
|
27940
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
27941
|
+
if (scenceView) {
|
|
27942
|
+
viewModel = new SceneToHDImageViewModel/* default */.Z(scenceView._viewer, formItem);
|
|
27943
|
+
}
|
|
27944
|
+
});
|
|
27945
|
+
});
|
|
27946
|
+
/**
|
|
27947
|
+
* @description 监听header生成
|
|
27948
|
+
*/
|
|
27949
|
+
|
|
27950
|
+
const watchCreateHeaderTemp = () => {
|
|
27951
|
+
if (props.showHeaderTemp) {
|
|
27952
|
+
// 生成headerTemp
|
|
27953
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
27954
|
+
}
|
|
27955
|
+
}; // 参数改变
|
|
27956
|
+
|
|
27957
|
+
|
|
27958
|
+
function paramsChanged(key) {} // 销毁
|
|
27959
|
+
|
|
27960
|
+
|
|
27961
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
27962
|
+
viewModel && viewModel.destroy();
|
|
27963
|
+
});
|
|
27964
|
+
expose({
|
|
27965
|
+
paramsChanged
|
|
27966
|
+
});
|
|
27967
|
+
return (_ctx, _cache) => {
|
|
27968
|
+
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
27969
|
+
|
|
27970
|
+
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
27971
|
+
|
|
27972
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
27973
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-scene-to-hd-image", {
|
|
27974
|
+
'kq-box-shadow': __props.showShadow
|
|
27975
|
+
}]),
|
|
27976
|
+
ref_key: "boxRef",
|
|
27977
|
+
ref: boxRef
|
|
27978
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
27979
|
+
key: 0,
|
|
27980
|
+
ref_key: "headerTempRef",
|
|
27981
|
+
ref: headerTempRef
|
|
27982
|
+
}, null, 512
|
|
27983
|
+
/* NEED_PATCH */
|
|
27984
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
27985
|
+
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(collapseValue)
|
|
27986
|
+
}, {
|
|
27987
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse_item, {
|
|
27988
|
+
class: "scene-content",
|
|
27989
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sceneContent,
|
|
27990
|
+
name: "content"
|
|
27991
|
+
}, null, 8
|
|
27992
|
+
/* PROPS */
|
|
27993
|
+
, ["title"])]),
|
|
27994
|
+
_: 1
|
|
27995
|
+
/* STABLE */
|
|
27996
|
+
|
|
27997
|
+
}, 8
|
|
27998
|
+
/* PROPS */
|
|
27999
|
+
, ["model-value"])])], 2
|
|
28000
|
+
/* CLASS */
|
|
28001
|
+
);
|
|
28002
|
+
};
|
|
28003
|
+
}
|
|
28004
|
+
|
|
28005
|
+
}));
|
|
28006
|
+
;// CONCATENATED MODULE: ./src/webgl/scenetohdimage/SceneToHDImage.vue?vue&type=script&setup=true&lang=js
|
|
28007
|
+
|
|
28008
|
+
;// CONCATENATED MODULE: ./src/webgl/scenetohdimage/SceneToHDImage.vue
|
|
28009
|
+
|
|
28010
|
+
|
|
28011
|
+
|
|
28012
|
+
const __exports__ = SceneToHDImagevue_type_script_setup_true_lang_js;
|
|
28013
|
+
|
|
28014
|
+
/* harmony default export */ var SceneToHDImage = (__exports__);
|
|
28015
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
28016
|
+
var init_js_ = __webpack_require__(7997);
|
|
28017
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
28018
|
+
;// CONCATENATED MODULE: ./src/webgl/scenetohdimage/index.js
|
|
28019
|
+
|
|
28020
|
+
|
|
28021
|
+
|
|
28022
|
+
|
|
28023
|
+
SceneToHDImage.install = (Vue, opts) => {
|
|
28024
|
+
init_js_default()(Vue, opts);
|
|
28025
|
+
Vue.component(SceneToHDImage.name, SceneToHDImage);
|
|
28026
|
+
};
|
|
28027
|
+
|
|
28028
|
+
|
|
28029
|
+
|
|
27790
28030
|
/***/ }),
|
|
27791
28031
|
|
|
27792
28032
|
/***/ 1248:
|
|
@@ -40304,6 +40544,8 @@ var wireframesketch = __webpack_require__(4686);
|
|
|
40304
40544
|
var limitheightanalysis = __webpack_require__(5551);
|
|
40305
40545
|
// EXTERNAL MODULE: ./src/webgl/terrainprofileanalysis/index.js + 4 modules
|
|
40306
40546
|
var terrainprofileanalysis = __webpack_require__(7649);
|
|
40547
|
+
// EXTERNAL MODULE: ./src/webgl/scenetohdimage/index.js + 3 modules
|
|
40548
|
+
var scenetohdimage = __webpack_require__(8022);
|
|
40307
40549
|
// EXTERNAL MODULE: ./src/webgl/scaneffect/index.js + 4 modules
|
|
40308
40550
|
var scaneffect = __webpack_require__(7584);
|
|
40309
40551
|
// EXTERNAL MODULE: ./src/webgl/modelexcavate/index.js + 4 modules
|
|
@@ -40411,6 +40653,9 @@ var geologicalbodyanalysis = __webpack_require__(9378);
|
|
|
40411
40653
|
// 地形剖面分析
|
|
40412
40654
|
|
|
40413
40655
|
|
|
40656
|
+
// 场景高清出图
|
|
40657
|
+
|
|
40658
|
+
|
|
40414
40659
|
// 扫描线
|
|
40415
40660
|
|
|
40416
40661
|
|
|
@@ -40524,7 +40769,8 @@ const webglComponents = {
|
|
|
40524
40769
|
Kq3dScanEffect: scaneffect["default"],
|
|
40525
40770
|
Kq3dModelExcavate: modelexcavate["default"],
|
|
40526
40771
|
Kq3dModelFlat: modelFlat["default"],
|
|
40527
|
-
Kq3dSlopeAspectAnalysis: slopeaspectanalysis["default"]
|
|
40772
|
+
Kq3dSlopeAspectAnalysis: slopeaspectanalysis["default"],
|
|
40773
|
+
Kq3dSceneToHDImage: scenetohdimage["default"]
|
|
40528
40774
|
}; // 全局引入
|
|
40529
40775
|
|
|
40530
40776
|
const install = function (Vue, opts = {}) {
|