2 lines
700 B
JavaScript
2 lines
700 B
JavaScript
import{cs as i,aB as o,y as c,S as l}from"./index-5427279b.js";import{u as T}from"./chartEditStore-53dc1709.js";var e=(t=>(t.THUMBNAIL="thumbnail",t.TEXT="text",t))(e||{}),h=(t=>(t.LAYERS="layers",t.CHARTS="charts",t.DETAILS="details",t.LAYER_TYPE="layerType",t))(h||{});const u=T(),{GO_CHART_LAYOUT_STORE:s}=l,y=i(s),n=o({id:"useChartLayoutStore",state:()=>y||{layers:!0,charts:!0,details:!1,layerType:e.THUMBNAIL},getters:{getLayers(){return this.layers},getCharts(){return this.charts},getDetails(){return this.details},getLayerType(){return this.layerType}},actions:{setItem(t,a){this.$patch(r=>{r[t]=a}),c(s,this.$state),setTimeout(()=>{u.computedScale()},500)}}});export{h as C,e as L,n as u};
|