projet-long/assets/DrawingLayer-dbba50eb.js
2023-06-25 20:09:16 +02:00

2 lines
648 B
JavaScript

import{d as l,i as o,a as i,am as u,B as c,M as m,ak as a,Q as d,an as _,ao as f,o as p,f as v,E as g,h as s,a8 as t,_ as E}from"./index-b4b4a2ac.js";const h=l({__name:"DrawingLayer",setup(w){o(i);const r=o(u),e=c();return m(()=>{a.mount(e.value,e.value.parentElement),d(r,n=>a.options.coordinateScale=1/n,{immediate:!0}),_()}),f(()=>{a.unmount()}),(n,C)=>(p(),v("svg",{ref_key:"svg",ref:e,class:g(["w-full h-full absolute top-0",{"pointer-events-none":!s(t),"touch-none":s(t)}])},null,2))}}),j=E(h,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/Projet-long/prez/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{j as default};