diff --git a/docs/4/js/404.html b/docs/4/js/404.html index 3114408..c99764a 100644 --- a/docs/4/js/404.html +++ b/docs/4/js/404.html @@ -13,7 +13,7 @@ - +
diff --git a/docs/4/js/assets/DrawingControls-78149a84.js b/docs/4/js/assets/DrawingControls-7cdb2e41.js similarity index 99% rename from docs/4/js/assets/DrawingControls-78149a84.js rename to docs/4/js/assets/DrawingControls-7cdb2e41.js index e08f6b3..eba9648 100644 --- a/docs/4/js/assets/DrawingControls-78149a84.js +++ b/docs/4/js/assets/DrawingControls-7cdb2e41.js @@ -1,3 +1,3 @@ -import{o as l,f as a,g as e,d as k,i as y,a as M,B as x,s as I,a5 as E,a6 as N,n as B,h as n,_ as D,x as T,R as q,E as r,m as i,a7 as v,p as f,r as F,a8 as w,a9 as _,aa as W,F as P,ab as U,ac as Y,ad as G,ae as J,af as p,ag as g,ah as u,ai as L,aj as $,ak as Q}from"./index-6ce4c14a.js";const X={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},nn=e("path",{fill:"currentColor",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2zm0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12z"},null,-1),en=e("path",{fill:"currentColor",d:"M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"},null,-1),on=[nn,en];function tn(c,s){return l(),a("svg",X,on)}const sn={name:"carbon-close-outline",render:tn},ln={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},an=e("path",{fill:"currentColor",d:"M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16Zm23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9ZM8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0Z"},null,-1),rn=[an];function cn(c,s){return l(),a("svg",ln,rn)}const dn={name:"carbon-error",render:cn},_n={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},un=e("path",{fill:"currentColor",d:"M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z"},null,-1),hn=[un];function vn(c,s){return l(),a("svg",_n,hn)}const mn={name:"carbon-pin",render:vn},pn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},gn=e("path",{fill:"currentColor",d:"M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z"},null,-1),bn=[gn];function fn(c,s){return l(),a("svg",pn,bn)}const wn={name:"carbon-pin-filled",render:fn},$n={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Cn=e("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),xn=e("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"},null,-1),Ln=[Cn,xn];function kn(c,s){return l(),a("svg",$n,Ln)}const yn={name:"carbon-delete",render:kn},Mn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Bn=e("path",{fill:"currentColor",d:"M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16Z"},null,-1),Dn=[Bn];function zn(c,s){return l(),a("svg",Mn,Dn)}const Vn={name:"carbon-redo",render:zn},Zn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Sn=e("path",{fill:"currentColor",d:"M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16Z"},null,-1),An=[Sn];function Hn(c,s){return l(),a("svg",Zn,An)}const Kn={name:"carbon-undo",render:Hn},On={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Rn=e("path",{fill:"currentColor",d:"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM6 26V6h20v20Z"},null,-1),jn=[Rn];function In(c,s){return l(),a("svg",On,jn)}const En={name:"carbon-checkbox",render:In},Nn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Tn=e("path",{fill:"currentColor",d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12Z"},null,-1),qn=[Tn];function Fn(c,s){return l(),a("svg",Nn,qn)}const Wn={name:"carbon-radio-button",render:Fn},Pn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Un=e("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6H10z"},null,-1),Yn=[Un];function Gn(c,s){return l(),a("svg",Pn,Yn)}const Jn={name:"carbon-arrow-up-right",render:Gn},Qn=k({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(c){const s=c;y(M);const m=x(null),d=s.initial??{x:0,y:0},b=s.storageKey?I(s.storageKey,d):x(d),{style:h}=E(m,{initialValue:b});return(o,C)=>(l(),a("div",{ref_key:"el",ref:m,class:"fixed",style:B(n(h))},[N(o.$slots,"default")],4))}}),Xn=D(Qn,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/Draggable.vue"]]),ne=e("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[e("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ee=[ne],oe=["onClick"],te=k({__name:"DrawingControls",setup(c){y(M);function s(){L.undo()}function m(){L.redo()}function d(h){v.value=h,_.value=!0}function b(h){w.color=h,_.value=!0}return(h,o)=>{const C=Q,z=Jn,V=Wn,Z=En,S=Kn,A=Vn,H=yn,K=wn,O=mn,R=dn,j=sn;return l(),T(Xn,{class:r(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200",n(_)?"":n(u)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),dark:"border border-gray-400 border-opacity-10","storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:q(()=>[e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="stylus"}]),onClick:o[0]||(o[0]=t=>d("stylus"))},[i(C)],2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="line"}]),onClick:o[1]||(o[1]=t=>d("line"))},ee,2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="arrow"}]),onClick:o[2]||(o[2]=t=>d("arrow"))},[i(z)],2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="ellipse"}]),onClick:o[3]||(o[3]=t=>d("ellipse"))},[i(V)],2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="rectangle"}]),onClick:o[4]||(o[4]=t=>d("rectangle"))},[i(Z)],2),f(" TODO: not sure why it's not working! "),f(`