import{n as i}from"./index-b54f5418.js";import"./three-dc46505d.js";var s=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"SplineTubeGeometry-container"},[t("de-collapse-layout",{attrs:{label:"路径",icon:"#iconjichubianhuan","arrow-position":"left"},scopedSlots:e._u([{key:"container",fn:function(){return[t("el-button",{staticClass:"path-add",attrs:{size:"mini",type:"primary",icon:"el-icon-circle-plus-outline"},on:{click:e.addPoint}},[e._v(" 添加路径 ")]),e._l(e.config.path,function(n,a){return t("div",{key:a,staticClass:"path-point-item"},[t("de-controller-vector3",{attrs:{keyframe:!1,label:"锚点"+a,step:1,"display-accuracy":2,value:n}}),t("i",{directives:[{name:"show",rawName:"v-show",value:e.config.path.length>2,expression:"config.path.length > 2"}],staticClass:"el-icon-delete",on:{click:function(p){return e.deletePoint(a)}}})],1)})]},proxy:!0}])}),t("de-collapse-layout",{attrs:{label:"形状",icon:"#iconjichubianhuan","arrow-position":"left"},scopedSlots:e._u([{key:"container",fn:function(){return[t("de-controller-number",{attrs:{keyframe:!1,label:"半径",step:1,min:0},model:{value:e.config.radius,callback:function(n){e.$set(e.config,"radius",n)},expression:"config.radius"}}),t("de-controller-number",{attrs:{keyframe:!1,label:"半径分段",step:1,min:1},model:{value:e.config.radialSegments,callback:function(n){e.$set(e.config,"radialSegments",n)},expression:"config.radialSegments"}}),t("de-controller-number",{attrs:{keyframe:!1,label:"管道分段",step:1,min:0},model:{value:e.config.tubularSegments,callback:function(n){e.$set(e.config,"tubularSegments",n)},expression:"config.tubularSegments"}}),t("de-controller-switch",{attrs:{keyframe:!1,label:"闭合两端",step:1,min:0},model:{value:e.config.closed,callback:function(n){e.$set(e.config,"closed",n)},expression:"config.closed"}})]},proxy:!0}])})],1)},r=[];const c={props:{config:{type:Object,required:!0}},methods:{addPoint(){this.config.path.push({x:0,y:0,z:0})},deletePoint(e){this.config.path.splice(e,1)}}},l={};var u=i(c,s,r,!1,f,"d67758dc",null,null);function f(e){for(let o in l)this[o]=l[o]}const _=function(){return u.exports}();export{_ as default};
