projet-probleme-inverse-3D/assets/DrawingControls-43cafd8c.js

4 lines
6.8 KiB
JavaScript
Raw Permalink Normal View History

2023-06-25 13:29:07 +00:00
import{l,m as i,ai as e,f as k,h as y,j as M,A as x,aQ as O,aR as R,aS as E,al as B,y as n,_ as D,au as F,aC as T,ar as a,aT as _,aU as u,n as r,aV as p,aq as $,aW as w,ak as U,aX as f,aY as Y,F as P,aZ as Q,a_ as W,a$ as X,b0 as G,b1 as b,b2 as v,b3 as L,b4 as I}from"./nav-1e818d35.js";const J={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(),i("svg",J,on)}const sn={name:"carbon-close-outline",render:tn},ln={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},rn=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),an=[rn];function cn(c,s){return l(),i("svg",ln,an)}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 pn(c,s){return l(),i("svg",_n,hn)}const mn={name:"carbon-pin",render:pn},bn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},vn=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),gn=[vn];function $n(c,s){return l(),i("svg",bn,gn)}const wn={name:"carbon-pin-filled",render:$n},fn={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(),i("svg",fn,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 Vn(c,s){return l(),i("svg",Mn,Dn)}const Zn={name:"carbon-redo",render:Vn},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),jn=[Sn];function An(c,s){return l(),i("svg",zn,jn)}const Hn={name:"carbon-undo",render:An},qn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Kn=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),Nn=[Kn];function On(c,s){return l(),i("svg",qn,Nn)}const Rn={name:"carbon-checkbox",render:On},En={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Fn=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),Tn=[Fn];function Un(c,s){return l(),i("svg",En,Tn)}const Yn={name:"carbon-radio-button",render:Un},Pn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Qn=e("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6H10z"},null,-1),Wn=[Qn];function Xn(c,s){return l(),i("svg",Pn,Wn)}const Gn={name:"carbon-arrow-up-right",render:Xn},In=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},g=s.storageKey?O(s.storageKey,d):x(d),{style:h}=R(m,{initialValue:g});return(o,C)=>(l(),i("div",{ref_key
<carbon:erase />
</button> `),r(w),(l(!0),i(P,null,U(n(Y),t=>(l(),i("button",{key:t,class:a(["icon-btn",n(f).color===t?"active":"shallow"]),onClick:se=>g(t)},[e("div",{class:a(["w-6 h-6 transition-all transform border border-gray-400/50",n(f).color!==t?"rounded-1/2 scale-85":"rounded-md"]),style:B(n(_)?{background:t}:{borderColor:t})},null,6)],10,oe))),128)),r(w),e("button",{class:a(["icon-btn",{disabled:!n(Q)}]),onClick:o[5]||(o[5]=t=>s())},[r(S)],2),e("button",{class:a(["icon-btn",{disabled:!n(W)}]),onClick:o[6]||(o[6]=t=>m())},[r(j)],2),e("button",{class:a(["icon-btn",{disabled:!n(X)}]),onClick:o[7]||(o[7]=t=>n(G)())},[r(A)],2),r(w),e("button",{class:a(["icon-btn",{shallow:!n(u)}]),onClick:o[8]||(o[8]=t=>u.value=!n(u))},[b(r(H,{class:"transform -rotate-45"},null,512),[[v,n(u)]]),b(r(q,null,null,512),[[v,!n(u)]])],2),n(_)?(l(),i("button",{key:0,class:a(["icon-btn",{shallow:!n(_)}]),onClick:o[9]||(o[9]=t=>_.value=!n(_))},[b(r(K,null,null,512),[[v,n(u)]]),b(r(N,null,null,512),[[v,!n(u)]])],2)):$("v-if",!0)]),_:1},8,["class"])}}}),re=D(te,[["__file","/tmp/projet-probleme-inverse-3D/docs/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{re as default};