From d590c4154263f22129f95cd832490a98a52e5883 Mon Sep 17 00:00:00 2001 From: ienaga Date: Tue, 7 Nov 2023 09:11:44 +0900 Subject: [PATCH] =?UTF-8?q?Loading=E3=81=AE=E5=87=A6=E7=90=86=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/domain/loading/Loading.ts | 7 +------ src/domain/screen/DefaultLoading.ts | 10 +++++----- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index c9cce14..9ee13d3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@next2d/framework", "description": "Next2D Framework is designed according to the principles of clean architecture, domain-driven development, test-driven development, and MVVM, with an emphasis on flexibility, scalability, and maintainability, and a design methodology that keeps each layer loosely coupled.", - "version": "2.0.0", + "version": "2.0.1", "homepage": "https://next2d.app", "bugs": "https://github.com/Next2D/Framework/issues/new", "author": "Toshiyuki Ienaga (https://github.com/ienaga/)", diff --git a/src/domain/loading/Loading.ts b/src/domain/loading/Loading.ts index 3fbda7c..1016488 100644 --- a/src/domain/loading/Loading.ts +++ b/src/domain/loading/Loading.ts @@ -43,12 +43,7 @@ export const start = (): Promise => return resolve(); } - $instance.start(); - - setTimeout(() => - { - resolve(); - }, 500); + resolve($instance.start()); }); }; diff --git a/src/domain/screen/DefaultLoading.ts b/src/domain/screen/DefaultLoading.ts index 5feabda..dc99766 100644 --- a/src/domain/screen/DefaultLoading.ts +++ b/src/domain/screen/DefaultLoading.ts @@ -55,8 +55,8 @@ const initialize = (): void => sprite, getEndObject(), getStartObject(), - 0.2, - 0.7, + 0.12, + 0.5, Easing.inOutCubic ); sprite.setLocalVariable("reduceJob", reduceJob); @@ -65,8 +65,8 @@ const initialize = (): void => sprite, getStartObject(), getEndObject(), - 0.2, - 0.7, + 0.12, + 0.5, Easing.inOutCubic ); sprite.setLocalVariable("expandJob", expandJob); @@ -139,7 +139,7 @@ export class DefaultLoading setTimeout((): void => { expandJob.start(); - }, 200 * idx); + }, 120 * idx); } else { expandJob.start(); }