"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[9305],{39305:function(a,e,t){t.r(e),t.d(e,{default:function(){return f}});var n=t(66252),c=t(3577),s=t(49963);const l={class:"canvasContent_box"},o={class:"canvasContent",ref:"canvasScaleDom"},r={class:"generalCanvas_center canvas",ref:"canvasDom"};function i(a,e,t,i,v,d){return(0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",o,[(0,n._)("div",r,[(0,n.wy)((0,n._)("div",{class:"editFrontBack_pencilbtn",style:(0,c.j5)(a.canvasGeneral.pencilbtnStyle)},null,4),[[s.F8,!a.isShowMark]])],512)],512)])}var v=t(2262),d=(t(50327),t(88302),t(8552)),u=t(33907),b=(0,n.aZ)({component:{},setup(a,{emit:e}){const t=(0,u.oR)();let{t:c}=(0,d.QT)(),s=((0,n.f3)("canvasType"),(0,n.f3)("canvasObj"));const l=(0,v.qj)({canvasDom:null,isShowMark:!1,pencilbtnStyle:{},isCanva:!1,selectObject:(0,n.Fl)((()=>t.state.Workspace.probjects))}),o=(0,v.qj)({canvasScaleDom:null});(0,n.YP)((()=>l.selectObject.model.id),(a=>{a&&s.upDataRectBGImg(l.selectObject.model.url)}));const r=()=>{l.isCanva||(0,n.Y3)((async()=>{let a=o.canvasScaleDom.offsetWidth,e={width:a,height:a};l.isCanva=!0;let n=l.selectObject.model.url;await s.canvasInit(l.canvasDom,e,n,"",{noErasable:!0});let c=t.state.HomeStoreModule.canvasData.deReconstruction;c&&s.setLoadFromJSON(c,(()=>{}))}))},i=()=>{r()};return(0,n.bv)((()=>{})),{canvasGeneral:s,...(0,v.BK)(l),...(0,v.BK)(o),openSetData:i}}}),m=t(83744);const p=(0,m.Z)(b,[["render",i],["__scopeId","data-v-bdc7fb12"]]);var f=p}}]);