UNPKG

@kq_npm/client3d_webgl_vue

Version:

KQGIS Client3D for Vue.js

1 lines 19.1 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(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/_utils/util"),require("@kq_npm/client_common_vue/init.js")):"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/_utils/util","@kq_npm/client_common_vue/init.js"],t):"object"==typeof exports?exports["@kq_npm/client3d_webgl_vue"]=t(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/_utils/util"),require("@kq_npm/client_common_vue/init.js")):e["@kq_npm/client3d_webgl_vue"]=t(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/_utils/util"],e["@kq_npm/client_common_vue/init.js"])}(this,(function(e,t,a,i,l){return function(){"use strict";var n={348:function(e){e.exports=require("@kq_npm/client_icons_vue")},7080:function(e){e.exports=require("vue-i18n/dist/vue-i18n.cjs.js")},6277:function(e){e.exports=a},7135:function(e){e.exports=t},3458:function(e){e.exports=i},7997:function(e){e.exports=l},1895:function(t){t.exports=e}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return function(){o.r(s),o.d(s,{ParticleEffectViewModel:function(){return r},default:function(){return f}});var e=o(1895),t=o(7135),a=o(348),i=o(6277);let l=null,n=1;class r{_scene=null;_particleSystemList=[];_drawManager=null;_options=null;_fireImage=i.FIRE_URL;_smokeImage=i.SMOKE_URL;constructor(e){e._viewer.clock.shouldAnimate=!0,e._viewer.scene.globe.depthTestAgainstTerrain=!0,this._scene=e._viewer.scene,this._drawManager=e._drawManager,l=new Cesium.Cartesian3}applyGravity(e,t){l=Cesium.Cartesian3.normalize(e.position,l),Cesium.Cartesian3.multiplyByScalar(l,n*t,l),e.velocity=Cesium.Cartesian3.add(e.velocity,l,e.velocity)}addParticleEffect(e){var t=this;let a=e.mode;"flame"!==a&&"smoke"!==a||(e.gravity&&this.setGravity(e.gravity),this._options=e,this._drawManager.startDraw("marker",{image:null},((e,{shape:a})=>{if(a.groupName&&"ParticleEffectDraw"===a.groupName){if(a&&"marker"===a.type){let e=a.position;if(e){let a=new Cesium.Matrix4.fromTranslation(e);if("flame"===t._options.mode){let e=new Cesium.ParticleSystem({emissionRate:t._options.particleNum,imageSize:new Cesium.Cartesian2(t._options.particleSize,2*t._options.particleSize),minimumParticleLife:t._options.minLifeCycle,maximumParticleLife:t._options.maxLifeCycle,minimumSpeed:t._options.minSpeed,maximumSpeed:t._options.maxSpeed,startScale:t._options.startScale,endScale:t._options.endScale,modelMatrix:a,image:t._fireImage,startColor:new Cesium.Color.fromCssColorString("#ffffff"),endColor:new Cesium.Color.fromCssColorString("#ffa000"),emitter:new Cesium.ConeEmitter(Cesium.Math.toRadians(35)),mass:10,sizeInMeters:!0,updateCallback:t.applyGravity});t._scene.primitives.add(e),t._particleSystemList.push(e)}else if("smoke"===t._options.mode){let e=new Cesium.ParticleSystem({emissionRate:t._options.particleNum,imageSize:new Cesium.Cartesian2(t._options.particleSize,t._options.particleSize),minimumParticleLife:t._options.minLifeCycle,maximumParticleLife:t._options.maxLifeCycle,minimumSpeed:t._options.minSpeed,maximumSpeed:t._options.maxSpeed,startScale:t._options.startScale,endScale:t._options.endScale,modelMatrix:a,image:t._smokeImage,startColor:new Cesium.Color.fromCssColorString("#a2a2a2"),endColor:new Cesium.Color.fromCssColorString("#5c5c5c"),emitter:new Cesium.ConeEmitter(70),sizeInMeters:!0,bursts:[new Cesium.ParticleBurst({time:5,minimum:1,maximum:5}),new Cesium.ParticleBurst({time:10,minimum:10,maximum:10}),new Cesium.ParticleBurst({time:15,minimum:20,maximum:20})],updateCallback:t.applyGravity});t._scene.primitives.add(e),t._particleSystemList.push(e)}}}t._drawManager&&t._drawManager.clearDrawGroup("ParticleEffectDraw")}}),"ParticleEffectDraw",!0))}clear(){this._drawManager.stopDraw(),this._drawManager&&this._drawManager.clearDrawGroup("ParticleEffectDraw");for(let e=0;e<this._particleSystemList.length;e++)this._scene.primitives.remove(this._particleSystemList[e]);this._particleSystemList=[]}destroy(){this.clear()}setParticleNumber(e){this._particleSystemList.forEach((t=>{t.emissionRate=e}))}setParticleSize(e){let t=this._options.mode;this._particleSystemList.forEach((a=>{"flame"===t?(a.minimumImageSize=new Cesium.Cartesian2(e,2*e),a.maximumImageSize=new Cesium.Cartesian2(e,2*e)):(a.minimumImageSize=new Cesium.Cartesian2(e,e),a.maximumImageSize=new Cesium.Cartesian2(e,e))}))}setMinLifeCycle(e){this._particleSystemList.forEach((t=>{t.minimumParticleLife=e}))}setmaxLifeCycle(e){this._particleSystemList.forEach((t=>{t.maximumParticleLife=e}))}setMinSpeed(e){this._particleSystemList.forEach((t=>{t.minimumSpeed=e}))}setMaxSpeed(e){this._particleSystemList.forEach((t=>{t.maximumSpeed=e}))}setStartScale(e){this._particleSystemList.forEach((t=>{t.startScale=e}))}setEndScale(e){this._particleSystemList.forEach((t=>{t.endScale=e}))}setGravity(e){n=e}}var m=o(3458),c=o(7080);const u={class:"kq3d-particle-effect-box"},d={class:"kq3d-particle-effect-footer"},p={name:"Kq3dParticleEffect"};var f=Object.assign(p,{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:a.IconParticleEffect},isRight:{type:Boolean,default:!0}},setup(i,{expose:l}){const n=i,{proxy:o}=(0,e.getCurrentInstance)();let s=(0,e.ref)(""),p=(0,e.ref)(o.$i18n.global.messages[o.$i18n.global.locale].webgl),f=(0,e.reactive)({collapseValue:n.settingParams&&n.settingParams.collapseValue||(""==(n.settingParams&&n.settingParams.collapseValue)?"":"setting"),mode:n.settingParams&&n.settingParams.mode||"flame",particleNum:n.settingParams&&n.settingParams.particleNum||40,particleSize:n.settingParams&&n.settingParams.particleSize||2.5,minLifeCycle:n.settingParams&&n.settingParams.minLifeCycle||.5,maxLifeCycle:n.settingParams&&n.settingParams.maxLifeCycle||.5,minSpeed:n.settingParams&&n.settingParams.minSpeed||15,maxSpeed:n.settingParams&&n.settingParams.maxSpeed||15,startScale:n.settingParams&&n.settingParams.startScale||1,endScale:n.settingParams&&n.settingParams.endScale||1,gravity:n.settingParams&&n.settingParams.gravity||0}),_=null,C=(0,e.ref)(null),x=(0,e.ref)(),S=(0,e.ref)(),{locale:h,messages:V}=(0,c.useI18n)(),g=(0,e.ref)(null);g.value=p.value.particleEffect,(0,e.watch)((()=>h.value),((e,t)=>{p.value=V.value[e].webgl,g.value=p.value.particleEffect})),(0,e.onMounted)((()=>{(0,m.updatePosition)(C.value,n),(0,e.watch)((()=>n.position),((e,t)=>{(0,m.updatePosition)(C.value,n)})),y(),(0,e.watch)((()=>n.showHeaderTemp),((t,a)=>{(0,e.nextTick)((()=>{y()}))})),s.value=o.$i18n.locale,t.utils.getWebMap(null,(e=>{e&&(_=new r(e))}))}));const y=()=>{n.showHeaderTemp&&(x.value=(0,m.createHeaderTemp)(C.value,(0,e.toRefs)(n),S,g))};function w(e){f.mode!==e&&(f.mode=e,"flame"===e?(f.particleNum=40,f.particleSize=2.5,f.minLifeCycle=.5,f.maxLifeCycle=.5,f.minSpeed=15,f.maxSpeed=15,f.startScale=1,f.endScale=1,f.gravity=0):"smoke"===e&&(f.particleNum=50,f.particleSize=2,f.minLifeCycle=3.5,f.maxLifeCycle=3,f.minSpeed=7,f.maxSpeed=9,f.startScale=2,f.endScale=9,f.gravity=5))}function v(e){switch(e){case"particleNum":_.setParticleNumber(f.particleNum);break;case"particleSize":_.setParticleSize(f.particleSize);break;case"minLifeCycle":_.setMinLifeCycle(f.minLifeCycle);break;case"maxLifeCycle":_.setmaxLifeCycle(f.maxLifeCycle);break;case"minSpeed":_.setMinSpeed(f.minSpeed);break;case"maxSpeed":_.setMaxSpeed(f.maxSpeed);break;case"startScale":_.setStartScale(f.startScale);break;case"endScale":_.setEndScale(f.endScale);break;case"gravity":_.setGravity(f.gravity)}}function N(){_&&_.addParticleEffect(f)}function k(){_&&_.clear()}return(0,e.onBeforeUnmount)((()=>{_&&_.destroy()})),l({changeMode:w,paramsChanged:v,add:N,clear:k}),(t,l)=>{const n=(0,e.resolveComponent)("kq-button"),r=(0,e.resolveComponent)("kq-row"),o=(0,e.resolveComponent)("kq-slider"),m=(0,e.resolveComponent)("kq-col"),c=(0,e.resolveComponent)("kq-input-number"),_=(0,e.resolveComponent)("kq-form-item"),h=(0,e.resolveComponent)("kq-form"),V=(0,e.resolveComponent)("kq-collapse-item"),g=(0,e.resolveComponent)("kq-collapse");return(0,e.openBlock)(),(0,e.createElementBlock)("section",{class:(0,e.normalizeClass)(["kq3d-particle-effect",{"kq-box-shadow":i.showShadow}]),ref_key:"boxRef",ref:C},[i.showHeaderTemp?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)((0,e.unref)(x)),{key:0,ref_key:"headerTempRef",ref:S},null,512)):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("div",u,[(0,e.createVNode)(r,{gutter:20,class:"rowclass"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{icon:(0,e.unref)(a.IconFlame),class:(0,e.normalizeClass)(["kq3d-particle-effect-btn","flame"===(0,e.unref)(f).mode?"kq3d-particle-effect-btn_active":""]),onClick:l[0]||(l[0]=e=>w("flame")),title:(0,e.unref)(p).flame},null,8,["icon","class","title"]),(0,e.createVNode)(n,{icon:(0,e.unref)(a.IconSmoke),class:(0,e.normalizeClass)(["kq3d-particle-effect-btn","smoke"===(0,e.unref)(f).mode?"kq3d-particle-effect-btn_active":""]),onClick:l[1]||(l[1]=e=>w("smoke")),title:(0,e.unref)(p).smoke},null,8,["icon","class","title"])])),_:1}),(0,e.createVNode)(r,{class:"kq3d-particle-effect-tip"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("p",null,(0,e.toDisplayString)((0,e.unref)(p).particleTips),1)])),_:1}),(0,e.createVNode)(g,{"model-value":(0,e.unref)(f).collapseValue,class:"kq3d-particle-effect-collapse"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(V,{title:(0,e.unref)(p).analysisSettings,name:"setting"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(h,{"label-width":"zh"===(0,e.unref)(s)?"110px":"160px","label-position":"left"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).particleNum},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).particleNum,"onUpdate:modelValue":l[2]||(l[2]=t=>(0,e.unref)(f).particleNum=t),step:10,min:0,max:1e3,onChange:l[3]||(l[3]=e=>v("particleNum"))},null,8,["modelValue"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).particleNum,"onUpdate:modelValue":l[4]||(l[4]=t=>(0,e.unref)(f).particleNum=t),step:10,min:0,max:1e3,onChange:l[5]||(l[5]=e=>v("particleNum")),"controls-position":"right"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).particleSize},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).particleSize,"onUpdate:modelValue":l[6]||(l[6]=t=>(0,e.unref)(f).particleSize=t),step:.1,min:.1,max:5,onChange:l[7]||(l[7]=e=>v("particleSize"))},null,8,["modelValue","step","min"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).particleSize,"onUpdate:modelValue":l[8]||(l[8]=t=>(0,e.unref)(f).particleSize=t),step:.1,min:.1,max:5,onChange:l[9]||(l[9]=e=>v("particleSize")),"controls-position":"right"},null,8,["modelValue","step","min"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).minLifeCycle},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).minLifeCycle,"onUpdate:modelValue":l[10]||(l[10]=t=>(0,e.unref)(f).minLifeCycle=t),step:.1,min:.1,max:5,onChange:l[11]||(l[11]=e=>v("minLifeCycle"))},null,8,["modelValue","step","min"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).minLifeCycle,"onUpdate:modelValue":l[12]||(l[12]=t=>(0,e.unref)(f).minLifeCycle=t),step:.1,min:.1,max:5,onChange:l[13]||(l[13]=e=>v("minLifeCycle")),"controls-position":"right"},null,8,["modelValue","step","min"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).maxLifeCycle},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).maxLifeCycle,"onUpdate:modelValue":l[14]||(l[14]=t=>(0,e.unref)(f).maxLifeCycle=t),step:.1,min:.1,max:5,onChange:l[15]||(l[15]=e=>v("maxLifeCycle"))},null,8,["modelValue","step","min"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).maxLifeCycle,"onUpdate:modelValue":l[16]||(l[16]=t=>(0,e.unref)(f).maxLifeCycle=t),step:.1,min:.1,max:5,onChange:l[17]||(l[17]=e=>v("maxLifeCycle")),"controls-position":"right"},null,8,["modelValue","step","min"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).minSpeed},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).minSpeed,"onUpdate:modelValue":l[18]||(l[18]=t=>(0,e.unref)(f).minSpeed=t),step:1,min:1,max:50,onChange:l[19]||(l[19]=e=>v("minSpeed"))},null,8,["modelValue"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).minSpeed,"onUpdate:modelValue":l[20]||(l[20]=t=>(0,e.unref)(f).minSpeed=t),step:1,min:1,max:50,onChange:l[21]||(l[21]=e=>v("minSpeed")),"controls-position":"right"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).maxSpeed},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).maxSpeed,"onUpdate:modelValue":l[22]||(l[22]=t=>(0,e.unref)(f).maxSpeed=t),step:1,min:1,max:50,onChange:l[23]||(l[23]=e=>v("maxSpeed"))},null,8,["modelValue"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).maxSpeed,"onUpdate:modelValue":l[24]||(l[24]=t=>(0,e.unref)(f).maxSpeed=t),step:1,min:1,max:50,onChange:l[25]||(l[25]=e=>v("maxSpeed")),"controls-position":"right"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).startScale},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).startScale,"onUpdate:modelValue":l[26]||(l[26]=t=>(0,e.unref)(f).startScale=t),min:.1,max:10,step:.1,onChange:l[27]||(l[27]=e=>v("startScale"))},null,8,["modelValue","min","max","step"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).startScale,"onUpdate:modelValue":l[28]||(l[28]=t=>(0,e.unref)(f).startScale=t),min:.1,max:10,step:.1,onChange:l[29]||(l[29]=e=>v("startScale")),"controls-position":"right"},null,8,["modelValue","min","max","step"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).endScale},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).endScale,"onUpdate:modelValue":l[30]||(l[30]=t=>(0,e.unref)(f).endScale=t),min:.1,max:10,step:.1,onChange:l[31]||(l[31]=e=>v("endScale"))},null,8,["modelValue","min","max","step"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).endScale,"onUpdate:modelValue":l[32]||(l[32]=t=>(0,e.unref)(f).endScale=t),min:.1,max:10,step:.1,onChange:l[33]||(l[33]=e=>v("endScale")),"controls-position":"right"},null,8,["modelValue","min","max","step"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(r,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(_,{label:(0,e.unref)(p).gravity},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(m,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(f).gravity,"onUpdate:modelValue":l[34]||(l[34]=t=>(0,e.unref)(f).gravity=t),step:.1,min:0,max:10,onChange:l[35]||(l[35]=e=>v("gravity"))},null,8,["modelValue","step","min"])])),_:1}),(0,e.createVNode)(m,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(c,{modelValue:(0,e.unref)(f).gravity,"onUpdate:modelValue":l[36]||(l[36]=t=>(0,e.unref)(f).gravity=t),min:0,max:10,step:.1,onChange:l[37]||(l[37]=e=>v("gravity")),"controls-position":"right"},null,8,["modelValue","min","step"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1},8,["label-width"])])),_:1},8,["title"])])),_:1},8,["model-value"]),(0,e.createElementVNode)("div",d,[(0,e.createVNode)(n,{onClick:l[38]||(l[38]=(0,e.withModifiers)((e=>N()),["stop"])),title:(0,e.unref)(p).add,type:"primary"},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(p).add),1)])),_:1},8,["title"]),(0,e.createVNode)(n,{onClick:l[39]||(l[39]=(0,e.withModifiers)((e=>k()),["stop"])),title:(0,e.unref)(p).clear},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(p).clear),1)])),_:1},8,["title"])])])],2)}}}),_=o(7997),C=o.n(_);f.install=(e,t)=>{C()(e,t),e.component(f.name,f)}}(),s}()}));