"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[489],{80489:function(a,e,t){t.r(e),t.d(e,{default:function(){return p}});var n=t(66252),s=t(49963),c=t(3577);const l={class:"canvasContent_box"},i={class:"canvasContent",ref:"canvasScaleDom"},o={class:"generalCanvas_center canvas",ref:"canvasDom"},r={class:"editFrontBack_pencilbtn"};function v(a,e,t,v,d,h){return(0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",i,[(0,n._)("div",o,[(0,n.wy)((0,n._)("div",r,null,512),[[s.F8,!a.isShowMark]]),(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 d=t(2262),h=(t(50327),t(88302),t(33907)),u=t(8552),f=(0,n.aZ)({component:{},setup(){const a=(0,h.oR)();let{t:e}=(0,u.QT)(),t=((0,n.f3)("canvasType"),(0,n.f3)("getCanvasIfEdit")),s=(0,n.f3)("canvasObj");const c=(0,d.qj)({canvasScaleDom:null,canvasDom:null,isShowMark:!1,pencilbtnStyle:{},selectDetail:(0,n.Fl)((()=>a.state.DesignDetailCopy.selectDetail))});t.fun=()=>s.getElement();const l=a=>{(0,n.Y3)((async()=>{let a=c.selectDetail.undividedLayer,e={width:c.canvasDom.offsetWidth,height:c.canvasDom.offsetHeight},t=new Image;t.onload=async()=>{let n=1,l=1;n=t.width/t.height;let i={width:e.height*n,height:e.height*l},o=c.selectDetail.partialDesign.partialDesignPath;await s.canvasInit(c.canvasDom,i,a,o,{dashedIsDetail:!0})},t.src=a}))};return(0,n.bv)((()=>{l({})})),(0,n.Jd)((()=>{s.canvasClear()})),{canvasGeneral:s,...(0,d.BK)(c)}}}),D=t(83744);const g=(0,D.Z)(f,[["render",v],["__scopeId","data-v-566c134e"]]);var p=g}}]);