"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[2626],{42626:function(a,e,n){n.r(e),n.d(e,{default:function(){return p}});var t=n(66252),s=n(3577),c=n(49963);const o={class:"canvasContent_box"},i={class:"canvasContent",ref:"canvasScaleDom"},v={class:"generalCanvas_center canvas",ref:"canvasDom"};function l(a,e,n,l,r,f){return(0,t.wg)(),(0,t.iD)("div",o,[(0,t._)("div",i,[(0,t._)("div",v,[(0,t.wy)((0,t._)("div",{class:"editFrontBack_pencilbtn",style:(0,s.j5)(a.canvasGeneral.pencilbtnStyle)},null,4),[[c.F8,!a.isShowMark]])],512)],512)])}var r=n(2262),f=(n(50327),n(88302),n(33907)),d=n(8552),h=(0,t.aZ)({component:{},setup(){const a=(0,f.oR)();let{t:e}=(0,d.QT)(),n=((0,t.f3)("canvasType"),(0,t.f3)("canvasObj"));const s=(0,r.qj)({canvasScaleDom:null,canvasDom:null,isShowMark:!1,pencilbtnStyle:{}}),c=a=>new Promise((async(a,e)=>{s.isPresuppose=!1,await(0,t.Y3)((async()=>{await n.canvasInit(s.canvasDom,{width:s.canvasDom.offsetWidth,height:s.canvasDom.offsetHeight},"","","",2e3),a("")}))})),o=a=>{let e,n;s.canvasScaleDom.offsetWidth,s.canvasScaleDom.offsetHeight;"16/9"==a?(e=1600,n=900):"1/1"==a?(e=1e3,n=1e3):"9/16"==a&&(e=900,n=1600);let t={width:e,height:n};c(t)},i=async()=>{let e=a.state.HomeStoreModule.canvasData?.canvas;e?(await n.createCanvas(s.canvasDom,{width:s.canvasDom.offsetWidth,height:s.canvasDom.offsetHeight},2e3),n.setLoadFromJSON(e,(()=>{}))):await c({})};return(0,t.bv)((()=>{})),{canvasGeneral:n,...(0,r.BK)(s),setPresuppose:o,openSetData:i}}}),u=n(83744);const m=(0,u.Z)(h,[["render",l],["__scopeId","data-v-59fc1a16"]]);var p=m}}]);