diff --git a/dist/404.html b/dist/404.html deleted file mode 100644 index 944b39f..0000000 --- a/dist/404.html +++ /dev/null @@ -1,17 +0,0 @@ - - -
- - - - - - - - - - - - - - diff --git a/dist/_redirects b/dist/_redirects deleted file mode 100644 index ad37e2c..0000000 --- a/dist/_redirects +++ /dev/null @@ -1 +0,0 @@ -/* /index.html 200 diff --git a/dist/assets/DrawingControls.956b7d9a.js b/dist/assets/DrawingControls.956b7d9a.js deleted file mode 100644 index 84a59a4..0000000 --- a/dist/assets/DrawingControls.956b7d9a.js +++ /dev/null @@ -1,3 +0,0 @@ -import{o as r,c as i,a as n,d as k,r as C,u as H,b as K,e as N,n as y,f as e,g as E,w as F,h as a,i as _,j as u,k as l,l as p,m as w,V as f,p as O,q as j,F as q,s as P,t as T,v as U,x as G,y as m,z as b,A as L,_ as I,B as x}from"./index.4aca3c25.js";const J={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Q=n("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),W=n("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),X=[Q,W];function ee(c,s){return r(),i("svg",J,X)}var ne={name:"carbon-close-outline",render:ee};const te={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},oe=n("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),se=[oe];function re(c,s){return r(),i("svg",te,se)}var le={name:"carbon-error",render:re};const ie={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ae=n("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),ce=[ae];function de(c,s){return r(),i("svg",ie,ce)}var _e={name:"carbon-pin",render:de};const ue={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},he=n("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),pe=[he];function ve(c,s){return r(),i("svg",ue,pe)}var me={name:"carbon-pin-filled",render:ve};const be={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ge=n("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),$e=n("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"},null,-1),we=[ge,$e];function fe(c,s){return r(),i("svg",be,we)}var xe={name:"carbon-delete",render:fe};const Me={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Ce=n("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),Le=[Ce];function ke(c,s){return r(),i("svg",Me,Le)}var ye={name:"carbon-redo",render:ke};const Be={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Ae=n("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),ze=[Ae];function Ve(c,s){return r(),i("svg",Be,ze)}var Re={name:"carbon-undo",render:Ve};const Ze={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Ye=n("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),De=[Ye];function Se(c,s){return r(),i("svg",Ze,De)}var He={name:"carbon-checkbox",render:Se};const Ke={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Ne=n("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),Ee=[Ne];function Fe(c,s){return r(),i("svg",Ke,Ee)}var Oe={name:"carbon-radio-button",render:Fe};const je={class:"slidev-icon",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},qe=n("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6H10z"},null,-1),Pe=[qe];function Te(c,s){return r(),i("svg",je,Pe)}var Ue={name:"carbon-arrow-up-right",render:Te};const Ge=k({props:{storageKey:null,initial:null},setup(c){var t;const s=c,v=C(null),d=(t=s.initial)!=null?t:{x:0,y:0},g=s.storageKey?H(s.storageKey,d):C(d),{style:h}=K(v,{initialValue:g});return($,M)=>(r(),i("div",{ref_key:"el",ref:v,class:"fixed",style:y(e(h))},[N($.$slots,"default")],4))}}),Ie=n("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[n("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),Je=[Ie],Qe=["onClick"],en=k({setup(c){function s(){L.undo()}function v(){L.redo()}function d(h){p.value=h,_.value=!0}function g(h){x.color=h,_.value=!0}return(h,t)=>{const $=I,M=Ue,B=Oe,A=He,z=Re,V=ye,R=xe,Z=me,Y=_e,D=le,S=ne;return r(),E(Ge,{class:a(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 dark:border dark:border-gray-400 dark:border-opacity-10",e(_)?"":e(u)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:F(()=>[n("button",{class:a(["icon-btn",{shallow:e(p)!="stylus"}]),onClick:t[0]||(t[0]=o=>d("stylus"))},[l($)],2),n("button",{class:a(["icon-btn",{shallow:e(p)!="line"}]),onClick:t[1]||(t[1]=o=>d("line"))},Je,2),n("button",{class:a(["icon-btn",{shallow:e(p)!="arrow"}]),onClick:t[2]||(t[2]=o=>d("arrow"))},[l(M)],2),n("button",{class:a(["icon-btn",{shallow:e(p)!="ellipse"}]),onClick:t[3]||(t[3]=o=>d("ellipse"))},[l(B)],2),n("button",{class:a(["icon-btn",{shallow:e(p)!="rectangle"}]),onClick:t[4]||(t[4]=o=>d("rectangle"))},[l(A)],2),w(" TODO: not sure why it's not working! "),w(` `),l(f),(r(!0),i(q,null,O(e(j),o=>(r(),i("button",{key:o,class:a(["icon-btn",e(x).color===o?"active":"shallow"]),onClick:We=>g(o)},[n("div",{class:a(["w-6 h-6 transition-all transform border border-gray-400/50",e(x).color!==o?"rounded-1/2 scale-85":"rounded-md"]),style:y(e(_)?{background:o}:{borderColor:o})},null,6)],10,Qe))),128)),l(f),n("button",{class:a(["icon-btn",{disabled:!e(P)}]),onClick:t[5]||(t[5]=o=>s())},[l(z)],2),n("button",{class:a(["icon-btn",{disabled:!e(T)}]),onClick:t[6]||(t[6]=o=>v())},[l(V)],2),n("button",{class:a(["icon-btn",{disabled:!e(U)}]),onClick:t[7]||(t[7]=o=>e(G)())},[l(R)],2),l(f),n("button",{class:a(["icon-btn",{shallow:!e(u)}]),onClick:t[8]||(t[8]=o=>u.value=!e(u))},[m(l(Z,{class:"transform -rotate-45"},null,512),[[b,e(u)]]),m(l(Y,null,null,512),[[b,!e(u)]])],2),e(_)?(r(),i("button",{key:0,class:a(["icon-btn",{shallow:!e(_)}]),onClick:t[9]||(t[9]=o=>_.value=!e(_))},[m(l(D,null,null,512),[[b,e(u)]]),m(l(S,null,null,512),[[b,!e(u)]])],2)):w("v-if",!0)]),_:1},8,["class"])}}});export{en as default}; diff --git a/dist/assets/DrawingLayer.c8aa4249.js b/dist/assets/DrawingLayer.c8aa4249.js deleted file mode 100644 index d3b36be..0000000 --- a/dist/assets/DrawingLayer.c8aa4249.js +++ /dev/null @@ -1 +0,0 @@ -import{d as t,C as s,D as l,r as c,E as r,A as n,G as u,H as i,I as m,o as p,c as f}from"./index.4aca3c25.js";const g=t({setup(d){const o=s(l),e=c();return r(()=>{n.mount(e.value,e.value.parentElement),u(o,a=>n.options.coordinateScale=1/a,{immediate:!0}),i()}),m(()=>{n.unmount()}),(a,v)=>(p(),f("svg",{ref_key:"svg",ref:e,class:"w-full h-full absolute top-0 pointer-events-none"},null,512))}});export{g as default}; diff --git a/dist/assets/FileSaver.min.4f92ed14.js b/dist/assets/FileSaver.min.4f92ed14.js deleted file mode 100644 index f31d379..0000000 --- a/dist/assets/FileSaver.min.4f92ed14.js +++ /dev/null @@ -1 +0,0 @@ -function g(s,y){return y.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(r){if(r!=="default"&&!(r in s)){var l=Object.getOwnPropertyDescriptor(c,r);Object.defineProperty(s,r,l.get?l:{enumerable:!0,get:function(){return c[r]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var f=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},m={exports:{}};(function(s,y){(function(c,r){r()})(f,function(){function c(e,t){return typeof t=="undefined"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function r(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){p(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function l(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function d(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof f=="object"&&f.global===f?f:void 0,b=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!b?function(e,t,i){var n=a.URL||a.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin===location.origin?d(o):l(o.href)?r(e,t,i):d(o,o.target="_blank")):(o.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(o.href)},4e4),setTimeout(function(){d(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,i){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(c(e,i),t);else if(l(e))r(e,t,i);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){d(n)})}}:function(e,t,i,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return r(e,t,i);var o=e.type==="application/octet-stream",E=/constructor/i.test(a.HTMLElement)||a.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||o&&E||b)&&typeof FileReader!="undefined"){var v=new FileReader;v.onloadend=function(){var u=v.result;u=h?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},v.readAsDataURL(e)}else{var j=a.URL||a.webkitURL,w=j.createObjectURL(e);n?n.location=w:location.href=w,n=null,setTimeout(function(){j.revokeObjectURL(w)},4e4)}});a.saveAs=p.saveAs=p,s.exports=p})})(m);var O=m.exports,A=g({__proto__:null,default:O},[m.exports]);export{A as F}; diff --git a/dist/assets/index.4aca3c25.js b/dist/assets/index.4aca3c25.js deleted file mode 100644 index 3995c7d..0000000 --- a/dist/assets/index.4aca3c25.js +++ /dev/null @@ -1,18 +0,0 @@ -var Of=Object.defineProperty,$f=Object.defineProperties;var Pf=Object.getOwnPropertyDescriptors;var qs=Object.getOwnPropertySymbols;var tl=Object.prototype.hasOwnProperty,nl=Object.prototype.propertyIsEnumerable;var el=(e,t,n)=>t in e?Of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,me=(e,t)=>{for(var n in t||(t={}))tl.call(t,n)&&el(e,n,t[n]);if(qs)for(var n of qs(t))nl.call(t,n)&&el(e,n,t[n]);return e},Ue=(e,t)=>$f(e,Pf(t));var Ur=(e,t)=>{var n={};for(var s in e)tl.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&qs)for(var s of qs(e))t.indexOf(s)<0&&nl.call(e,s)&&(n[s]=e[s]);return n};const Cf=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}};Cf();function ti(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r