File tree Expand file tree Collapse file tree 3 files changed +20
-21
lines changed
src/model/domain/callback Expand file tree Collapse file tree 3 files changed +20
-21
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @next2d/framework-typescript-template" ,
33 "description" : " Next2D Framework default TypeScript template." ,
4- "version" : " 3.2.1 " ,
4+ "version" : " 3.2.2 " ,
55 "homepage" : " https://next2d.app" ,
66 "bugs" : " https://github.com/Next2D/framework-typescript-template/issues/new" ,
77 "author" :
" Toshiyuki Ienaga<[email protected] >" ,
Original file line number Diff line number Diff line change 2424 "@capacitor/core" : " ^7.2.0" ,
2525 "@capacitor/ios" : " ^7.2.0" ,
2626 "@eslint/eslintrc" : " ^3.3.1" ,
27- "@eslint/js" : " ^9.25.1 " ,
28- "@next2d/vite-plugin-next2d-auto-loader" : " ^3.1.2 " ,
29- "@types/node" : " ^22.15.3 " ,
30- "@typescript-eslint/eslint-plugin" : " ^8.31.1 " ,
31- "@typescript-eslint/parser" : " ^8.31.1 " ,
32- "@vitest/web-worker" : " ^3.1.2 " ,
33- "eslint" : " ^9.25.1 " ,
27+ "@eslint/js" : " ^9.28.0 " ,
28+ "@next2d/vite-plugin-next2d-auto-loader" : " ^3.1.4 " ,
29+ "@types/node" : " ^22.15.29 " ,
30+ "@typescript-eslint/eslint-plugin" : " ^8.33.0 " ,
31+ "@typescript-eslint/parser" : " ^8.33.0 " ,
32+ "@vitest/web-worker" : " ^3.1.4 " ,
33+ "eslint" : " ^9.28.0 " ,
3434 "eslint-plugin-unused-imports" : " ^4.1.4" ,
35- "globals" : " ^16.0 .0" ,
35+ "globals" : " ^16.2 .0" ,
3636 "jsdom" : " ^26.1.0" ,
3737 "typescript" : " ^5.8.3" ,
38- "vite" : " ^6.3.4 " ,
39- "vitest" : " ^3.1.2 " ,
38+ "vite" : " ^6.3.5 " ,
39+ "vitest" : " ^3.1.4 " ,
4040 "vitest-webgl-canvas-mock" : " ^1.1.0"
4141 },
4242 "peerDependencies" : {
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ export class Background
2626 constructor ( )
2727 {
2828 this . shape = new Shape ( ) ;
29+ stage . addEventListener ( Event . RESIZE , ( ) : void =>
30+ {
31+ backgroundDrawService ( this ) ;
32+ backgroundChangeScaleService ( this ) ;
33+ } ) ;
2934 }
3035
3136 /**
@@ -45,17 +50,11 @@ export class Background
4550 }
4651
4752 const shape = this . shape ;
48- if ( stage && ! stage . hasEventListener ( Event . RESIZE ) ) {
49- stage . addEventListener ( Event . RESIZE , ( ) =>
50- {
51- backgroundChangeScaleService ( this ) ;
52- backgroundDrawService ( this ) ;
53- } ) ;
54- }
55-
56- if ( config . stage . width !== shape . width ) {
57- backgroundChangeScaleService ( this ) ;
53+ if ( config . stage . width !== shape . width
54+ || config . stage . height !== shape . height
55+ ) {
5856 backgroundDrawService ( this ) ;
57+ backgroundChangeScaleService ( this ) ;
5958 }
6059
6160 /**
You can’t perform that action at this time.
0 commit comments