From 6e017005fef4c98ca0974c3c10b8d5c1f07f23ed Mon Sep 17 00:00:00 2001 From: satopian Date: Fri, 25 Oct 2024 15:41:51 +0900 Subject: [PATCH] =?UTF-8?q?ChickenPaint=20=E8=96=84=E6=B6=88=E3=81=97?= =?UTF-8?q?=E3=82=B4=E3=83=A0=E3=81=AF=E3=83=86=E3=82=AF=E3=82=B9=E3=83=81?= =?UTF-8?q?=E3=83=A3=E3=81=8C=E5=87=BA=E3=82=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- potiboard5/chickenpaint/js/chickenpaint.js | 4 ++-- potiboard5/chickenpaint/js/chickenpaint.min.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/potiboard5/chickenpaint/js/chickenpaint.js b/potiboard5/chickenpaint/js/chickenpaint.js index fa1670a2..776a2478 100644 --- a/potiboard5/chickenpaint/js/chickenpaint.js +++ b/potiboard5/chickenpaint/js/chickenpaint.js @@ -352,7 +352,7 @@ function(){setTimeout(l.arrangePalettes.bind(l),0)};this.constrainPalettes=funct this.resize=function(){let k=window.innerHeight,g=p.getElement().getBoundingClientRect().height;b.resize(h?k-g:Math.min(Math.max(k-g-65,500),850),!1);e.constrainPalettes()};p=new Uh(a,this);c.appendChild(p.getElement());d.className="chickenpaint-main-section";d.appendChild(b.getElement());d.appendChild(l.getElement());c.appendChild(d);b.on("canvasRotated90",function(k){l.palettes.layers.setRotation90(k)});screen.orientation&&screen.orientation.addEventListener("change",k=>{this.resize();a.actionPerformed({action:"CPArrangePalettes"}); setTimeout(()=>{this.resize();a.actionPerformed({action:"CPArrangePalettes"})},10);Promise.resolve().then(()=>{this.resize()}).then(()=>{a.actionPerformed({action:"CPArrangePalettes"})})});let m=document.getElementById("chickenpaint-main-menu-content");if(document.addEventListener("show.bs.modal",()=>{m&&m.classList.contains("show")&&(new oc.Collapse(m,{toggle:!1})).hide()}),m){let k=document.querySelector(".chickenpaint .widget-nav");k&&(m.addEventListener("show.bs.collapse",g=>{k.classList.add("hidden")}), m.addEventListener("hidden.bs.collapse",g=>{k.classList.remove("hidden")}));window.addEventListener("resize",()=>{k.classList.remove("hidden")})}document.addEventListener("hidden.bs.collapse",this.resize.bind(this));window.addEventListener("resize",this.resize.bind(this));a.on("fullScreen",k=>this.setFullScreenMode(k));a.on("toolbarStyleChange",k=>{Y(ia)(c).toggleClass("chickenpaint-toolbar-style-old","old"===k)});a.on("unsavedChanges",k=>{Y(ia)(c).toggleClass("chickenpaint-unsaved",k)});setTimeout(this.resize.bind(this), -0)}function Vh(a){var c=Y(ia)('