diff --git a/build/esm/urpflanze-light.js b/build/esm/urpflanze-light.js
index a035f31..cc607a2 100644
--- a/build/esm/urpflanze-light.js
+++ b/build/esm/urpflanze-light.js
@@ -1,5 +1,5 @@
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze-light.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/build/esm/urpflanze-light.min.js.LICENSE.txt b/build/esm/urpflanze-light.min.js.LICENSE.txt
index e853471..cd9329a 100644
--- a/build/esm/urpflanze-light.min.js.LICENSE.txt
+++ b/build/esm/urpflanze-light.min.js.LICENSE.txt
@@ -1,5 +1,5 @@
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze-light.min.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/build/esm/urpflanze.js b/build/esm/urpflanze.js
index bceae34..fff0b5a 100644
--- a/build/esm/urpflanze.js
+++ b/build/esm/urpflanze.js
@@ -1,5 +1,5 @@
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/build/esm/urpflanze.min.js.LICENSE.txt b/build/esm/urpflanze.min.js.LICENSE.txt
index 1545b42..8e66bad 100644
--- a/build/esm/urpflanze.min.js.LICENSE.txt
+++ b/build/esm/urpflanze.min.js.LICENSE.txt
@@ -11,7 +11,7 @@ https://github.com/nodeca/pako/blob/master/LICENSE
*/
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze.min.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/build/umd/urpflanze-light.js b/build/umd/urpflanze-light.js
index 8155781..81bc7a0 100644
--- a/build/umd/urpflanze-light.js
+++ b/build/umd/urpflanze-light.js
@@ -1,5 +1,5 @@
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze-light.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/build/umd/urpflanze-light.min.js.LICENSE.txt b/build/umd/urpflanze-light.min.js.LICENSE.txt
index e853471..cd9329a 100644
--- a/build/umd/urpflanze-light.min.js.LICENSE.txt
+++ b/build/umd/urpflanze-light.min.js.LICENSE.txt
@@ -1,5 +1,5 @@
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze-light.min.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/build/umd/urpflanze.js b/build/umd/urpflanze.js
index baaa7ac..8da46dc 100644
--- a/build/umd/urpflanze.js
+++ b/build/umd/urpflanze.js
@@ -1,5 +1,5 @@
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/build/umd/urpflanze.min.js.LICENSE.txt b/build/umd/urpflanze.min.js.LICENSE.txt
index 1545b42..8e66bad 100644
--- a/build/umd/urpflanze.min.js.LICENSE.txt
+++ b/build/umd/urpflanze.min.js.LICENSE.txt
@@ -11,7 +11,7 @@ https://github.com/nodeca/pako/blob/master/LICENSE
*/
/*!
- * @license UrpflanzeJS v"1.0.0"
+ * @license UrpflanzeJS v"1.0.2"
* urpflanze.min.js
*
* Github: https://github.com/urpflanze-org/urpflanze
diff --git a/docs/index-v0001.js b/docs/index-v0001.js
index 5638b40..130bb45 100644
--- a/docs/index-v0001.js
+++ b/docs/index-v0001.js
@@ -1,2 +1,2 @@
-(()=>{"use strict";var __webpack_modules__={933:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(561);const r=async function(e){const t=await fetch(`https://api.github.com/repos/genbs/urpflanze/contents/${e}`),{name:n,html_url:r,download_url:o,content:i}=await t.json(),c=atob(i),l=c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""");var s;const p=`https://codesandbox.io/api/v1/sandboxes/define?parameters=${s={files:{"index.html":{content:c}}},LZString.compressToBase64(JSON.stringify(s)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}`;return`\n\t\t
Example: ${(0,a.P)(e.split("/")[1].slice(3))} | ${(0,a.P)(n.slice(3,-5).replace(/-/gi," "))}
\n\t\tOutput
\n\t\t\n\t\t\t\n\t\t
\n\n\t\tLinks
\n\t\t\n\n\t\tSource
\n\t\t\n `}},210:(e,t,n)=>{n.d(t,{TZ:()=>u,FD:()=>d,Wj:()=>_});const a={it:{Wiki:{Introduzione:{"Cos'è Urpflanze?":"it/Introduzione"},"Primi passi":{Installazione:"it/Installazione","Crea una scena":"it/Crea-una-scena","Gestire le ripetizioni":"it/Gestire-le-ripetizioni","Drawer e animazioni":"it/Drawer-e-animazioni"},Avanzate:{ShapeLoop:"it/ShapeLoop","Vertex Callback":"it/VertexCallback","Custom Drawer":"it/CustomDrawer",Renderer:"it/Renderer"}}},en:{Wiki:{Introduction:{"What is Urpflanze?":"en/Introduction"},"First steps":{Installation:"en/Installation","Creating a scene":"en/Creating-a-scene","Manage repetitions":"en/Manage-repetitions","Drawer and animations":"en/Drawer-and-animations"},Advanced:{ShapeLoop:"en/ShapeLoop","Vertex Callback":"en/VertexCallback","Custom Drawer":"en/CustomDrawer",Renderer:"en/Renderer"}}}};var r=n(561);const o=function(e,t,n){const a=document.createElement("div");return Object.keys(e).forEach((o=>{const i=e[o],c=document.createElement("h2"),l=Object.keys(i);if(0===l.length||1===l.length&&0===Object.keys(i[l[0]]).length)return;c.innerText=o;const s=document.createElement("div");l.forEach((e=>{const a=document.createElement("h3");a.innerText=e;const o=document.createElement("ul");let c=0;Object.keys(i[e]).forEach((a=>{if(void 0===t||0===t.length||(0,r.X)(a,t)){const t=document.createElement("li"),r=document.createElement("a");r.className="link",r.innerText=a,r.href="#/"+i[e][a].replace("$lang",n),t.appendChild(r),o.appendChild(t),c++}})),c&&(s.appendChild(a),s.appendChild(o))})),a.appendChild(c),a.appendChild(s)})),a};var i=n(456);const c={Core:"https://docs.urpflanze.org/core/",DrawerCanvas:"https://docs.urpflanze.org/drawer-canvas/",Animation:"https://docs.urpflanze.org/animation",SVGImporter:"https://github.com/urpflanze-org/svg-importer",SVGExporter:"https://github.com/urpflanze-org/svg-exporter",GCODEExporter:"https://github.com/urpflanze-org/gcode-exporter"};document.getElementById("menu_btn").addEventListener("click",(function(){document.querySelector("aside").classList.add("open"),document.body.style.top=`-${window.scrollY}px`,document.body.style.position="fixed"}),{passive:!0}),document.getElementById("aside-bg").addEventListener("click",_,{passive:!0});let l,s,p=null;function d(e,t){l=e,s=t;const n=document.querySelector("#nav");n.innerHTML="";const r=o(a[e],t,e);if(n.append(r),p){const a=o(p,t,e);n.firstChild.after(a)}const i=document.createElement("h1");i.innerText="API",n.append(i);const d=document.createDocumentFragment();Object.entries(c).forEach((([e,t])=>{const n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("target","_blank");const a=document.createElement("h2");a.innerText=e,n.appendChild(a),d.appendChild(n)})),n.append(d)}function _(){const e=parseInt(document.body.style.top||"0");document.querySelector("aside").classList.remove("open"),document.body.style.position="",document.body.style.overflow="",window.scrollTo(0,-e)}function u(e){const t=document.querySelectorAll(".link");for(let e=0,n=t.length;e"dir"===e.type));for(let e=0,n=a.length;e"file"===e.type)).forEach((({name:e,path:t})=>{o[(0,r.P)(e.slice(3,-5).replace(/-/gi," "))]=t}))}return e})().then((e=>{p=e,d(l,s),(0,i.E9)((0,i.FZ)())}))},456:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{oA:()=>bindRouting,FZ:()=>getCurrentPage,E9:()=>goto});var _examples_bind_examples__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(933),_navigation_navigation__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(210);let currentPage;function bindRouting(){goto(window.location.hash),window.addEventListener("popstate",(()=>{goto(window.location.hash)}))}function getCurrentPage(){return currentPage}function goto(e){const t=document.getElementById("content");if(0===e.length&&(e=document.querySelector("#nav .link").getAttribute("href")),(0,_navigation_navigation__WEBPACK_IMPORTED_MODULE_0__.TZ)(e),currentPage!==e){currentPage=e,(0,_navigation_navigation__WEBPACK_IMPORTED_MODULE_0__.Wj)();const n=`pages${e.substr(1)}.html`;0===e.indexOf("#/examples")?(0,_examples_bind_examples__WEBPACK_IMPORTED_MODULE_1__.Z)(e.substr(2)).then((e=>{t.innerHTML=e,onLoadContent()})):fetch(n).then((e=>e.text())).then((e=>{t.innerHTML=e,onLoadContent()}))}}function onLoadContent(){let title=window.location.href.split("/").pop();title=title.length>0?title.replace(/-/gi," ").replace(".html",""):"Urpflanze",gtag("event","page_view",{page_location:window.location.href,page_path:"/"+window.location.hash,page_title:title}),document.title=title;const content=document.getElementById("content"),scripts=content.getElementsByTagName("script");for(let i=0;i${script}
\n\t\t\t\n\t\t\t\tHide / Show result ▸\n\t\t\t
\n\n\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t`,scripts[i].before(script_container),script=script.replace(/document\.body/gi,`document.getElementById('${script_id}')`),scripts[i].innerHTML=script,eval(script)}else eval(scripts[i].innerHTML);const h2=content.getElementsByTagName("h2"),ul=document.createElement("ul");ul.className="page-navigation";for(let e=0;e{const{top:e}=n.getBoundingClientRect();window.scrollTo({top:e,behavior:"smooth"})}),!1),ul.appendChild(t)}content.firstElementChild&&ul.children.length>0&&content.firstElementChild.after(ul);const cliccables=document.getElementsByClassName("open-container");function openContainer(e){const t=document.getElementById(e.target.getAttribute("data-container"));if(t){const e=parseFloat(t.style.height);t.style.height=e>0?"0px":Math.min(t.parentNode.getBoundingClientRect().width,400)+"px"}}for(let e=0;ePR.prettyPrint())),window.scrollTo({top:0,behavior:"smooth"})}},561:(e,t,n)=>{function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}n.d(t,{P:()=>a,X:()=>i});const r=(e,t)=>{let n=0;const a=Math.min(e.length,t.length);Math.max(e.length,t.length);for(let r=0;r{for(let n=0;n=70)return!0;return!1};function i(e,t){if(e=e.toLowerCase(),t=t.toLowerCase(),e.indexOf(t)>=0)return!0;if(t.indexOf(" ")>=0){t=t.split(" ").filter((e=>e.length>3)),e=e.split(" ").filter((e=>e.length>3));let n=0;for(let a=0;a70}return 1==(e=e.split(" ")).length?r(e[0],t)>=70:o(t,e)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={};(()=>{var e=__webpack_require__(210),t=__webpack_require__(456);let n=localStorage.getItem("lang")||(navigator.language.match(/it/gi)?"it":"en");const a=document.querySelector("#lang").getElementsByTagName("option");for(let e=0,t=a.length;e{(0,e.FD)(n,t.target.value)})),document.querySelector("#search").addEventListener("keyup",(t=>{(0,e.FD)(n,t.target.value)})),document.querySelector("#lang").addEventListener("change",(t=>{n="it"===t.target.value?"it":"en",localStorage.setItem("lang",n),(0,e.FD)(n)})),document.querySelector("#version").textContent="1.0.0",(0,t.oA)(),document.querySelector("main").style.display=""})()})();
+(()=>{"use strict";var __webpack_modules__={933:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(561);const r=async function(e){const t=await fetch(`https://api.github.com/repos/genbs/urpflanze/contents/${e}`),{name:n,html_url:r,download_url:o,content:i}=await t.json(),c=atob(i),l=c.replace(/&/g,"&").replace(//g,">").replace(/"/g,""");var s;const p=`https://codesandbox.io/api/v1/sandboxes/define?parameters=${s={files:{"index.html":{content:c}}},LZString.compressToBase64(JSON.stringify(s)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}`;return`\n\t\tExample: ${(0,a.P)(e.split("/")[1].slice(3))} | ${(0,a.P)(n.slice(3,-5).replace(/-/gi," "))}
\n\t\tOutput
\n\t\t\n\t\t\t\n\t\t
\n\n\t\tLinks
\n\t\t\n\n\t\tSource
\n\t\t\n `}},210:(e,t,n)=>{n.d(t,{TZ:()=>u,FD:()=>d,Wj:()=>_});const a={it:{Wiki:{Introduzione:{"Cos'è Urpflanze?":"it/Introduzione"},"Primi passi":{Installazione:"it/Installazione","Crea una scena":"it/Crea-una-scena","Gestire le ripetizioni":"it/Gestire-le-ripetizioni","Drawer e animazioni":"it/Drawer-e-animazioni"},Avanzate:{ShapeLoop:"it/ShapeLoop","Vertex Callback":"it/VertexCallback","Custom Drawer":"it/CustomDrawer",Renderer:"it/Renderer"}}},en:{Wiki:{Introduction:{"What is Urpflanze?":"en/Introduction"},"First steps":{Installation:"en/Installation","Creating a scene":"en/Creating-a-scene","Manage repetitions":"en/Manage-repetitions","Drawer and animations":"en/Drawer-and-animations"},Advanced:{ShapeLoop:"en/ShapeLoop","Vertex Callback":"en/VertexCallback","Custom Drawer":"en/CustomDrawer",Renderer:"en/Renderer"}}}};var r=n(561);const o=function(e,t,n){const a=document.createElement("div");return Object.keys(e).forEach((o=>{const i=e[o],c=document.createElement("h2"),l=Object.keys(i);if(0===l.length||1===l.length&&0===Object.keys(i[l[0]]).length)return;c.innerText=o;const s=document.createElement("div");l.forEach((e=>{const a=document.createElement("h3");a.innerText=e;const o=document.createElement("ul");let c=0;Object.keys(i[e]).forEach((a=>{if(void 0===t||0===t.length||(0,r.X)(a,t)){const t=document.createElement("li"),r=document.createElement("a");r.className="link",r.innerText=a,r.href="#/"+i[e][a].replace("$lang",n),t.appendChild(r),o.appendChild(t),c++}})),c&&(s.appendChild(a),s.appendChild(o))})),a.appendChild(c),a.appendChild(s)})),a};var i=n(456);const c={Core:"https://docs.urpflanze.org/core/",DrawerCanvas:"https://docs.urpflanze.org/drawer-canvas/",Animation:"https://docs.urpflanze.org/animation",SVGImporter:"https://github.com/urpflanze-org/svg-importer",SVGExporter:"https://github.com/urpflanze-org/svg-exporter",GCODEExporter:"https://github.com/urpflanze-org/gcode-exporter"};document.getElementById("menu_btn").addEventListener("click",(function(){document.querySelector("aside").classList.add("open"),document.body.style.top=`-${window.scrollY}px`,document.body.style.position="fixed"}),{passive:!0}),document.getElementById("aside-bg").addEventListener("click",_,{passive:!0});let l,s,p=null;function d(e,t){l=e,s=t;const n=document.querySelector("#nav");n.innerHTML="";const r=o(a[e],t,e);if(n.append(r),p){const a=o(p,t,e);n.firstChild.after(a)}const i=document.createElement("h1");i.innerText="API",n.append(i);const d=document.createDocumentFragment();Object.entries(c).forEach((([e,t])=>{const n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("target","_blank");const a=document.createElement("h2");a.innerText=e,n.appendChild(a),d.appendChild(n)})),n.append(d)}function _(){const e=parseInt(document.body.style.top||"0");document.querySelector("aside").classList.remove("open"),document.body.style.position="",document.body.style.overflow="",window.scrollTo(0,-e)}function u(e){const t=document.querySelectorAll(".link");for(let e=0,n=t.length;e"dir"===e.type));for(let e=0,n=a.length;e"file"===e.type)).forEach((({name:e,path:t})=>{o[(0,r.P)(e.slice(3,-5).replace(/-/gi," "))]=t}))}return e})().then((e=>{p=e,d(l,s),(0,i.E9)((0,i.FZ)())}))},456:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{oA:()=>bindRouting,FZ:()=>getCurrentPage,E9:()=>goto});var _examples_bind_examples__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(933),_navigation_navigation__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(210);let currentPage;function bindRouting(){goto(window.location.hash),window.addEventListener("popstate",(()=>{goto(window.location.hash)}))}function getCurrentPage(){return currentPage}function goto(e){const t=document.getElementById("content");if(0===e.length&&(e=document.querySelector("#nav .link").getAttribute("href")),(0,_navigation_navigation__WEBPACK_IMPORTED_MODULE_0__.TZ)(e),currentPage!==e){currentPage=e,(0,_navigation_navigation__WEBPACK_IMPORTED_MODULE_0__.Wj)();const n=`pages${e.substr(1)}.html`;0===e.indexOf("#/examples")?(0,_examples_bind_examples__WEBPACK_IMPORTED_MODULE_1__.Z)(e.substr(2)).then((e=>{t.innerHTML=e,onLoadContent()})):fetch(n).then((e=>e.text())).then((e=>{t.innerHTML=e,onLoadContent()}))}}function onLoadContent(){let title=window.location.href.split("/").pop();title=title.length>0?title.replace(/-/gi," ").replace(".html",""):"Urpflanze",gtag("event","page_view",{page_location:window.location.href,page_path:"/"+window.location.hash,page_title:title}),document.title=title;const content=document.getElementById("content"),scripts=content.getElementsByTagName("script");for(let i=0;i${script}
\n\t\t\t\n\t\t\t\tHide / Show result ▸\n\t\t\t
\n\n\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t`,scripts[i].before(script_container),script=script.replace(/document\.body/gi,`document.getElementById('${script_id}')`),scripts[i].innerHTML=script,eval(script)}else eval(scripts[i].innerHTML);const h2=content.getElementsByTagName("h2"),ul=document.createElement("ul");ul.className="page-navigation";for(let e=0;e{const{top:e}=n.getBoundingClientRect();window.scrollTo({top:e,behavior:"smooth"})}),!1),ul.appendChild(t)}content.firstElementChild&&ul.children.length>0&&content.firstElementChild.after(ul);const cliccables=document.getElementsByClassName("open-container");function openContainer(e){const t=document.getElementById(e.target.getAttribute("data-container"));if(t){const e=parseFloat(t.style.height);t.style.height=e>0?"0px":Math.min(t.parentNode.getBoundingClientRect().width,400)+"px"}}for(let e=0;ePR.prettyPrint())),window.scrollTo({top:0,behavior:"smooth"})}},561:(e,t,n)=>{function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}n.d(t,{P:()=>a,X:()=>i});const r=(e,t)=>{let n=0;const a=Math.min(e.length,t.length);Math.max(e.length,t.length);for(let r=0;r{for(let n=0;n=70)return!0;return!1};function i(e,t){if(e=e.toLowerCase(),t=t.toLowerCase(),e.indexOf(t)>=0)return!0;if(t.indexOf(" ")>=0){t=t.split(" ").filter((e=>e.length>3)),e=e.split(" ").filter((e=>e.length>3));let n=0;for(let a=0;a70}return 1==(e=e.split(" ")).length?r(e[0],t)>=70:o(t,e)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={};(()=>{var e=__webpack_require__(210),t=__webpack_require__(456);let n=localStorage.getItem("lang")||(navigator.language.match(/it/gi)?"it":"en");const a=document.querySelector("#lang").getElementsByTagName("option");for(let e=0,t=a.length;e{(0,e.FD)(n,t.target.value)})),document.querySelector("#search").addEventListener("keyup",(t=>{(0,e.FD)(n,t.target.value)})),document.querySelector("#lang").addEventListener("change",(t=>{n="it"===t.target.value?"it":"en",localStorage.setItem("lang",n),(0,e.FD)(n)})),document.querySelector("#version").textContent="1.0.2",(0,t.oA)(),document.querySelector("main").style.display=""})()})();
//# sourceMappingURL=index-v0001.js.map
\ No newline at end of file
diff --git a/package.json b/package.json
index 5d5a50b..e29b7d1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@urpflanze/js",
- "version": "1.0.1",
+ "version": "1.0.2",
"description": "A library for developers who want to approach to creative coding, artists who want to approach coding and for those who find it fun to play with math.",
"license": "GPL-3.0-or-later",
"docs": "https://docs.urpflanze.org/urpflanze",