UNPKG

@kq_npm/client3d_webgl_vue

Version:

KQGIS Client3D for Vue.js

1 lines 20.9 kB
!function(e,l){"object"==typeof exports&&"object"==typeof module?module.exports=l(require("vue"),require("@kq_npm/client_common_vue/_utils/gis-utils"),require("@kq_npm/client_common_vue/_utils/const-image"),require("@kq_npm/client_common_vue/init.js"),require("@kq_npm/client_common_vue/_utils/util")):"function"==typeof define&&define.amd?define("@kq_npm/client3d_webgl_vue",["vue","@kq_npm/client_common_vue/_utils/gis-utils","@kq_npm/client_common_vue/_utils/const-image","@kq_npm/client_common_vue/init.js","@kq_npm/client_common_vue/_utils/util"],l):"object"==typeof exports?exports["@kq_npm/client3d_webgl_vue"]=l(require("vue"),require("@kq_npm/client_common_vue/_utils/gis-utils"),require("@kq_npm/client_common_vue/_utils/const-image"),require("@kq_npm/client_common_vue/init.js"),require("@kq_npm/client_common_vue/_utils/util")):e["@kq_npm/client3d_webgl_vue"]=l(e.Vue,e["@kq_npm/client_common_vue/_utils/gis-utils"],e["@kq_npm/client_common_vue/_utils/const-image"],e["@kq_npm/client_common_vue/init.js"],e["@kq_npm/client_common_vue/_utils/util"])}(this,(function(e,l,o,t,a){return function(){"use strict";var s={1705:function(e,l,o){var t=o(9389),a=o(7997),s=o.n(a);t.ElMessage.install=(e,l)=>{s()(e,l),e.component("KqMessage",t.ElMessage)},l.Z=t.ElMessage},348:function(e){e.exports=require("@kq_npm/client_icons_vue")},9389:function(e){e.exports=require("element-plus/dist/index.full.js")},7080:function(e){e.exports=require("vue-i18n/dist/vue-i18n.cjs.js")},6277:function(e){e.exports=o},7135:function(e){e.exports=l},3458:function(e){e.exports=a},7997:function(e){e.exports=t},1895:function(l){l.exports=e}},i={};function n(e){var l=i[e];if(void 0!==l)return l.exports;var o=i[e]={exports:{}};return s[e](o,o.exports,n),o.exports}n.n=function(e){var l=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(l,{a:l}),l},n.d=function(e,l){for(var o in l)n.o(l,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:l[o]})},n.o=function(e,l){return Object.prototype.hasOwnProperty.call(e,l)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){n.r(r),n.d(r,{SlopeAnalysisViewModel:function(){return a},default:function(){return w}});var e=n(1895),l=n(7135),o=n(6277),t=n(1705);class a{_slopeAnalysis=null;_globaOptions={viewer:null,_drawManager:null};_colorImages=[{value:"0",src:o.RED_TO_PURPLE_URL},{value:"1",src:o.PURPLE_TO_YELLOW_URL},{value:"2",src:o.GREEN_TO_BLUE_URL}];_language={};constructor(e,l){this._language=e._language,this._globaOptions.viewer=e._viewer,this._globaOptions.viewModel={fillStyle:l.fillStyle,viewer:this._globaOptions.viewer,isFilter:!1,colorTableDegree:l.colorTableDegree,colorTable:l.colorTable,imageSrc:this.getColorLine(l.colorImage),minSlope:l.minSlope,maxSlope:l.maxSlope,slopeColorText:l.slopeColorText,slopeColorAlpha:l.slopeColorAlpha,colorImage:this.getImagePath(l.colorImage)},this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain=!0,this._globaOptions._drawManager=e._drawManager}getImagePath(e){var l="",o=this._colorImages.find((l=>l.value===e));return o&&(l=o.src),l}start(){var e=this;this._globaOptions.viewModel.viewer.terrainProvider.availability?this._globaOptions.viewModel.viewer.terrainProvider&&!this._globaOptions.viewModel.viewer.terrainProvider._heightmapStructure?"slopeFilter"===this._globaOptions.viewModel.fillStyle?this._slopeAnalysis=new Cesium.Kq3dSlope({viewer:this._globaOptions.viewer,positions:[],isFilter:!0,minSlope:this._globaOptions.viewModel.minSlope,maxSlope:this._globaOptions.viewModel.maxSlope,color:Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))}):this._globaOptions._drawManager&&this._globaOptions._drawManager.startDraw("polygon",{clampToGround:!0},((l,{shape:o})=>{if(o.groupName&&"SlopeAnalysisDraw"===o.groupName){if(o)if(e._globaOptions.viewModel.positions=o._controlPoints,e._slopeAnalysis)e._slopeAnalysis.positions=e._globaOptions.viewModel.positions;else switch(e._globaOptions.viewModel.fillStyle){case"tableColor":e._slopeAnalysis=new Cesium.Kq3dSlope({viewer:e._globaOptions.viewer,positions:e._globaOptions.viewModel.positions,isFilter:!1,colorTableDegree:e._globaOptions.viewModel.colorTableDegree,colorTable:e._globaOptions.viewModel.colorTable});break;case"colorImage":e._slopeAnalysis=new Cesium.Kq3dSlope({viewer:e._globaOptions.viewer,positions:e._globaOptions.viewModel.positions,isFilter:!1,colorImage:e._globaOptions.viewModel.imageSrc});break;case"slopeFilter":e._slopeAnalysis=new Cesium.Kq3dSlope({viewer:e._globaOptions.viewer,positions:e._globaOptions.viewModel.positions,isFilter:!0,minSlope:e._globaOptions.viewModel.minSlope,maxSlope:e._globaOptions.viewModel.maxSlope,color:Cesium.Color.fromCssColorString(e._globaOptions.viewModel.slopeColorText).withAlpha(Number(e._globaOptions.viewModel.slopeColorAlpha))})}e._globaOptions._drawManager.clearDrawGroup("SlopeAnalysisDraw")}}),"SlopeAnalysisDraw"):(0,t.Z)({message:this._language.stkTerrainAnalysisTips,type:"warning"}):(0,t.Z)({message:this._language.terrainAnalysisTips,type:"warning"})}changeFilltyle(e){if(this._globaOptions.viewModel.fillStyle=e,this._slopeAnalysis)switch(e){case"tableColor":this._slopeAnalysis.isFilter&&(this._slopeAnalysis.isFilter=!1),this._slopeAnalysis.colorImage=null,this._slopeAnalysis.color=null,this._slopeAnalysis.colorTableDegree=this._globaOptions.viewModel.colorTableDegree,this._slopeAnalysis.colorTable=this._globaOptions.viewModel.colorTable;break;case"colorImage":this._slopeAnalysis.isFilter&&(this._slopeAnalysis.isFilter=!1),this._slopeAnalysis.colorTableDegree=[],this._slopeAnalysis.colorTable=[],this._slopeAnalysis.color=null,this._slopeAnalysis.colorImage=this._globaOptions.viewModel.imageSrc;break;case"slopeFilter":this._slopeAnalysis.colorImage=null,this._slopeAnalysis.isFilter=!0,this._slopeAnalysis.minSlope=this._globaOptions.viewModel.minSlope,this._slopeAnalysis.maxSlope=this._globaOptions.viewModel.maxSlope,this._slopeAnalysis.color=Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))}}setColorTableDegree(e){this._globaOptions.viewModel.colorTableDegree=e,this._slopeAnalysis&&(this._slopeAnalysis.colorTableDegree=this._globaOptions.viewModel.colorTableDegree)}setColorTable(e){this._globaOptions.viewModel.colorTable=e,this._slopeAnalysis&&(this._slopeAnalysis.colorTable=this._globaOptions.viewModel.colorTable)}setColorImage(e){this._globaOptions.viewModel.imageSrc=e,this._slopeAnalysis&&(this._slopeAnalysis.colorImage=this._globaOptions.viewModel.imageSrc)}getColorLine(e){var l="";switch(e){case 0:default:l=o.RED_TO_PURPLE_URL;break;case 1:l=o.PURPLE_TO_YELLOW_URL;break;case 2:l=o.GREEN_TO_BLUE_URL}return l}setSlopeFilterColor(e,l){this._globaOptions.viewModel.slopeColorText=e,this._globaOptions.viewModel.slopeColorAlpha=Number(l),this._slopeAnalysis&&(this._slopeAnalysis.color=Cesium.Color.fromCssColorString(e).withAlpha(Number(l)))}setSlopeFilterMin(e){this._globaOptions.viewModel.minSlope=Number(e),this._slopeAnalysis&&(this._slopeAnalysis.minSlope=this._globaOptions.viewModel.minSlope)}setSlopeFilterMax(e){this._globaOptions.viewModel.maxSlope=Number(e),this._slopeAnalysis&&(this._slopeAnalysis.maxSlope=this._globaOptions.viewModel.maxSlope)}clear(){this._globaOptions._drawManager&&this._globaOptions._drawManager.stopDraw(),this._slopeAnalysis&&this._slopeAnalysis.destroy(),this._slopeAnalysis=null}destroy(){this._slopeAnalysis&&this._slopeAnalysis.destroy(),this._slopeAnalysis=null}}var s=n(348),i=n(3458),p=n(7080);const c={class:"kq3d-slope-analysis-box"},u={key:0},m={class:"kq3d-slope-analysis-span"},d={key:1},g=(0,e.createElementVNode)("div",null,"0°",-1),_=(0,e.createElementVNode)("div",{class:"kq3d-slope-analysis-line"},null,-1),h=(0,e.createElementVNode)("div",null,"90°",-1),f=["src"],b={key:2},v={class:"kq3d-slope-analysis-footer"},y={name:"Kq3dSlopeAnalysis"};var w=Object.assign(y,{props:{settingParams:{type:Object},showShadow:{type:Boolean,default:!0},position:[String,Object],showHeaderTemp:{type:Boolean,default:!1},isCollapseHeaderTemp:{type:Boolean,default:!1},headerTempTitle:{type:String},headerTempIcon:{type:[Object,String],default:s.IconSlopeAnalysis},isRight:{type:Boolean,default:!0}},setup(t,{expose:s}){const n=t,{proxy:r}=(0,e.getCurrentInstance)();let y=(0,e.ref)(""),w=(0,e.ref)(r.$i18n.global.messages[r.$i18n.global.locale].webgl),C=(0,e.reactive)([{colorTableDegree:0,colorTable:null},{colorTableDegree:10,colorTable:"#00FF00"},{colorTableDegree:20,colorTable:"#0000FF"},{colorTableDegree:30,colorTable:"#FFFF00"},{colorTableDegree:40,colorTable:"#FF7F00"},{colorTableDegree:90,colorTable:"#FF0000"}]);const V=[{value:0,src:o.RED_TO_PURPLE_URL},{value:1,src:o.PURPLE_TO_YELLOW_URL},{value:2,src:o.GREEN_TO_BLUE_URL}];let x=null,T=(0,e.reactive)({collapseValue:n.settingParams&&n.settingParams.collapseValue||(""==(n.settingParams&&n.settingParams.collapseValue)?"":"setting"),fillStyle:n.settingParams&&n.settingParams.fillStyle||"tableColor",colorTableDegree:n.settingParams&&n.settingParams.colorTableDegree||[10,20,30,40,90],colorTable:n.settingParams&&n.settingParams.colorTable||["#00FF00","#0000FF","#FFFF00","#FF7F00","#FF0000"],colorImage:n.settingParams&&n.settingParams.colorImage||0,minSlope:n.settingParams&&n.settingParams.minSlope||10,maxSlope:n.settingParams&&n.settingParams.maxSlope||60,slopeColorAlpha:n.settingParams&&n.settingParams.slopeColorAlpha||.3,slopeColorText:n.settingParams&&n.settingParams.slopeColorText||"#FF0000"}),S=(0,e.ref)(null),k=(0,e.ref)(),N=(0,e.ref)(),{locale:A,messages:O}=(0,p.useI18n)(),M=(0,e.ref)(null);M.value=w.value.slopeAnalysis,(0,e.watch)((()=>A.value),((e,l)=>{w.value=O.value[e].webgl,M.value=w.value.slopeAnalysis})),(0,e.onMounted)((()=>{(0,i.updatePosition)(S.value,n),(0,e.watch)((()=>n.position),((e,l)=>{(0,i.updatePosition)(S.value,n)})),q(),(0,e.watch)((()=>n.showHeaderTemp),((l,o)=>{(0,e.nextTick)((()=>{q()}))})),y.value=r.$i18n.locale,l.utils.getWebMap(null,(e=>{e&&(F(),x=new a(e,T))}))}));const q=()=>{n.showHeaderTemp&&(k.value=(0,i.createHeaderTemp)(S.value,(0,e.toRefs)(n),N,M))};function F(e){C&&C.length&&("degree"==e?(T.colorTableDegree=C.map((e=>e.colorTableDegree)),T.colorTableDegree.shift()):"color"==e&&(T.colorTable=C.map((e=>e.colorTable)),T.colorTable.shift()))}function D(e){var l="",o=V.find((l=>l.value===e));return o&&(l=o.src),l}function P(e){switch(e){case"fillStyle":x.changeFilltyle(T.fillStyle);break;case"colorTableDegree":F("degree"),x.setColorTableDegree(T.colorTableDegree);break;case"colorTable":F("color"),x.setColorTable(T.colorTable);break;case"colorImage":var l=D(T.colorImage);x.setColorImage(l);break;case"minSlope":x.setSlopeFilterMin(T.minSlope);break;case"maxSlope":x.setSlopeFilterMax(T.maxSlope);break;case"slopeColorAlpha":case"slopeColorText":x.setSlopeFilterColor(T.slopeColorText,T.slopeColorAlpha)}}function E(){U(),x&&x.start()}function U(){x&&x.clear()}return(0,e.onBeforeUnmount)((()=>{x&&x.destroy()})),s({refactorArr:F,getImagePath:D,paramsChanged:P,startAnalysis:E,clearResult:U}),(l,o)=>{const a=(0,e.resolveComponent)("kq-row"),s=(0,e.resolveComponent)("kq-option"),i=(0,e.resolveComponent)("kq-select"),n=(0,e.resolveComponent)("kq-form-item"),r=(0,e.resolveComponent)("kq-col"),p=(0,e.resolveComponent)("kq-input-number"),x=(0,e.resolveComponent)("kq-color-picker"),A=(0,e.resolveComponent)("kq-radio"),O=(0,e.resolveComponent)("kq-radio-group"),M=(0,e.resolveComponent)("kq-slider"),q=(0,e.resolveComponent)("kq-form"),F=(0,e.resolveComponent)("kq-collapse-item"),D=(0,e.resolveComponent)("kq-collapse"),B=(0,e.resolveComponent)("kq-button");return(0,e.openBlock)(),(0,e.createElementBlock)("section",{class:(0,e.normalizeClass)(["kq3d-slope-analysis",{"kq-box-shadow":t.showShadow}]),ref_key:"boxRef",ref:S},[t.showHeaderTemp?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)((0,e.unref)(k)),{key:0,ref_key:"headerTempRef",ref:N},null,512)):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("div",c,["slopeFilter"!==(0,e.unref)(T).fillStyle?((0,e.openBlock)(),(0,e.createBlock)(a,{key:0,class:"kq3d-slope-analysis-tip"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("p",null,(0,e.toDisplayString)((0,e.unref)(w).skylineTips),1)])),_:1})):(0,e.createCommentVNode)("v-if",!0),(0,e.createVNode)(D,{"model-value":(0,e.unref)(T).collapseValue},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(F,{title:(0,e.unref)(w).analysisSettings,name:"setting"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(q,{"label-width":"zh"===(0,e.unref)(y)?"90px":"120px","label-position":"left"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(a,{style:{display:"block"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{label:(0,e.unref)(w).fillStyle},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(i,{modelValue:(0,e.unref)(T).fillStyle,"onUpdate:modelValue":o[0]||(o[0]=l=>(0,e.unref)(T).fillStyle=l),onChange:o[1]||(o[1]=e=>P("fillStyle"))},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(w).customColorScheme,value:"tableColor"},null,8,["label"]),(0,e.createVNode)(s,{label:(0,e.unref)(w).gradientTexture,value:"colorImage"},null,8,["label"]),(0,e.createVNode)(s,{label:(0,e.unref)(w).slopeFilter,value:"slopeFilter"},null,8,["label"])])),_:1},8,["modelValue"])])),_:1},8,["label"])])),_:1}),"tableColor"===(0,e.unref)(T).fillStyle?((0,e.openBlock)(),(0,e.createElementBlock)("div",u,[(0,e.createVNode)(a,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:18},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(w).setSlopeRange),1)])),_:1}),(0,e.createVNode)(r,{span:6},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(w).setColor),1)])),_:1})])),_:1}),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(C),((l,t)=>((0,e.openBlock)(),(0,e.createBlock)(a,{key:t,style:{display:"flex","padding-bottom":"8px"}},{default:(0,e.withCtx)((()=>[t>0?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[(0,e.createVNode)(r,{span:18},{default:(0,e.withCtx)((()=>[1===t?((0,e.openBlock)(),(0,e.createBlock)(p,{key:0,modelValue:(0,e.unref)(C)[t-1].colorTableDegree,"onUpdate:modelValue":l=>(0,e.unref)(C)[t-1].colorTableDegree=l,disabled:!0,onChange:o[2]||(o[2]=e=>P("colorTableDegree")),"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])):(0,e.createCommentVNode)("v-if",!0),t>1&&t<(0,e.unref)(C).length?((0,e.openBlock)(),(0,e.createBlock)(p,{key:1,modelValue:(0,e.unref)(C)[t-1].colorTableDegree,"onUpdate:modelValue":l=>(0,e.unref)(C)[t-1].colorTableDegree=l,disabled:!0,step:1,onChange:o[3]||(o[3]=e=>P("colorTableDegree")),"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("span",m,(0,e.toDisplayString)((0,e.unref)(w).to),1),t>0&&t<(0,e.unref)(C).length-1?((0,e.openBlock)(),(0,e.createBlock)(p,{key:2,modelValue:l.colorTableDegree,"onUpdate:modelValue":e=>l.colorTableDegree=e,min:(0,e.unref)(C)[t-1].colorTableDegree,max:(0,e.unref)(C)[t+1].colorTableDegree,step:1,onChange:o[4]||(o[4]=e=>P("colorTableDegree")),"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue","min","max"])):(0,e.createCommentVNode)("v-if",!0),t===(0,e.unref)(C).length-1?((0,e.openBlock)(),(0,e.createBlock)(p,{key:3,modelValue:l.colorTableDegree,"onUpdate:modelValue":e=>l.colorTableDegree=e,step:1,disabled:!0,onChange:o[5]||(o[5]=e=>P("colorTableDegree")),"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])):(0,e.createCommentVNode)("v-if",!0)])),_:2},1024),(0,e.createVNode)(r,{span:6},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(x,{modelValue:l.colorTable,"onUpdate:modelValue":e=>l.colorTable=e,onChange:o[6]||(o[6]=e=>P("colorTable"))},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)],64)):(0,e.createCommentVNode)("v-if",!0)])),_:2},1024)))),128))])):(0,e.createCommentVNode)("v-if",!0),"colorImage"===(0,e.unref)(T).fillStyle?((0,e.openBlock)(),(0,e.createElementBlock)("div",d,[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{label:(0,e.unref)(w).gradientColor},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(a,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[g,_,h])),_:1}),(0,e.createVNode)(O,{modelValue:(0,e.unref)(T).colorImage,"onUpdate:modelValue":o[7]||(o[7]=l=>(0,e.unref)(T).colorImage=l),onChange:o[8]||(o[8]=e=>P("colorImage"))},{default:(0,e.withCtx)((()=>[((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(V,((l,o)=>(0,e.createVNode)(A,{key:o,label:o},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("img",{class:"kq3d-slope-analysis-legend",src:l.src,alt:""},null,8,f)])),_:2},1032,["label"]))),64))])),_:1},8,["modelValue"])])),_:1},8,["label"])])),_:1})])):(0,e.createCommentVNode)("v-if",!0),"slopeFilter"===(0,e.unref)(T).fillStyle?((0,e.openBlock)(),(0,e.createElementBlock)("div",b,[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{label:(0,e.unref)(w).minSlope},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(a,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(M,{modelValue:(0,e.unref)(T).minSlope,"onUpdate:modelValue":o[9]||(o[9]=l=>(0,e.unref)(T).minSlope=l),step:1,min:0,max:90,onChange:o[10]||(o[10]=e=>P("minSlope"))},null,8,["modelValue"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(p,{modelValue:(0,e.unref)(T).minSlope,"onUpdate:modelValue":o[11]||(o[11]=l=>(0,e.unref)(T).minSlope=l),step:1,min:0,max:90,"controls-position":"right",onChange:o[12]||(o[12]=e=>P("minSlope"))},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(a,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{label:(0,e.unref)(w).maxSlope},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(a,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(M,{modelValue:(0,e.unref)(T).maxSlope,"onUpdate:modelValue":o[13]||(o[13]=l=>(0,e.unref)(T).maxSlope=l),step:1,min:0,max:90,onChange:o[14]||(o[14]=e=>P("maxSlope"))},null,8,["modelValue"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(p,{modelValue:(0,e.unref)(T).maxSlope,"onUpdate:modelValue":o[15]||(o[15]=l=>(0,e.unref)(T).maxSlope=l),step:1,min:0,max:90,"controls-position":"right",onChange:o[16]||(o[16]=e=>P("maxSlope"))},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(a,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{label:(0,e.unref)(w).transparents},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(a,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(M,{modelValue:(0,e.unref)(T).slopeColorAlpha,"onUpdate:modelValue":o[17]||(o[17]=l=>(0,e.unref)(T).slopeColorAlpha=l),min:0,max:1,step:.01,onChange:o[18]||(o[18]=e=>P("slopeColorAlpha"))},null,8,["modelValue","step"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(p,{modelValue:(0,e.unref)(T).slopeColorAlpha,"onUpdate:modelValue":o[19]||(o[19]=l=>(0,e.unref)(T).slopeColorAlpha=l),min:0,max:1,step:.01,"controls-position":"right",onChange:o[20]||(o[20]=e=>P("slopeColorAlpha"))},null,8,["modelValue","step"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(a,{style:{"padding-bottom":"8px"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{label:(0,e.unref)(w).color},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(x,{modelValue:(0,e.unref)(T).slopeColorText,"onUpdate:modelValue":o[21]||(o[21]=l=>(0,e.unref)(T).slopeColorText=l),onChange:o[22]||(o[22]=e=>P("slopeColorText"))},null,8,["modelValue"])])),_:1},8,["label"])])),_:1})])):(0,e.createCommentVNode)("v-if",!0)])),_:1},8,["label-width"])])),_:1},8,["title"])])),_:1},8,["model-value"]),(0,e.createElementVNode)("div",v,[(0,e.createVNode)(B,{onClick:o[23]||(o[23]=(0,e.withModifiers)((e=>E()),["stop"])),title:(0,e.unref)(w).startAnalysis,type:"primary"},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(w).startAnalysis),1)])),_:1},8,["title"]),(0,e.createVNode)(B,{onClick:o[24]||(o[24]=(0,e.withModifiers)((e=>U()),["stop"])),title:(0,e.unref)(w).clearResult},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(w).clearResult),1)])),_:1},8,["title"])])])],2)}}}),C=n(7997),V=n.n(C);w.install=(e,l)=>{V()(e,l),e.component(w.name,w)}}(),r}()}));