Download lecture-08/assets/slidev/DrawingLayer-CgAMPS2j.js from DeepLearning-VT/DeepLearning_2026: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/DeepLearning-VT/DeepLearning_2026/resolve/main/lecture-08/assets/slidev/DrawingLayer-CgAMPS2j.js
- Command line
-
hf download hf://spaces/DeepLearning-VT/DeepLearning_2026/lecture-08/assets/slidev/DrawingLayer-CgAMPS2j.js
-
curl -L -o DrawingLayer-CgAMPS2j.js https://huggingface.co/spaces/DeepLearning-VT/DeepLearning_2026/resolve/main/lecture-08/assets/slidev/DrawingLayer-CgAMPS2j.js
601 Bytes
| import{B as e,I as t,R as n,T as r,Z as i,b as a,bt as o,dt as s,yt as c}from"../modules/shiki-CJZsCeMT.js";import{n as l}from"./context-DB-9afGB.js";import{t as u}from"../useDrawings-B2TJYfiB.js";var d=r({__name:`DrawingLayer`,setup(r){let{drauu:d,drawingEnabled:f,loadCanvas:p}=u(),m=l().$scale,h=s();return n(()=>{d.mount(h.value,h.value.parentElement),i(m,e=>d.options.coordinateScale=1/e,{immediate:!0}),p()}),t(()=>{d.unmount()}),(t,n)=>(e(),a(`svg`,{ref_key:`svg`,ref:h,class:o([`w-full h-full absolute top-0`,{"pointer-events-none":!c(f),"touch-none":c(f)}])},null,2))}});export{d as default}; |