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 1
1
{
2
2
"name" : " @next2d/framework-typescript-template" ,
3
3
"description" : " Next2D Framework default TypeScript template." ,
4
- "version" : " 3.2.1 " ,
4
+ "version" : " 3.2.2 " ,
5
5
"homepage" : " https://next2d.app" ,
6
6
"bugs" : " https://github.com/Next2D/framework-typescript-template/issues/new" ,
7
7
"author" :
" Toshiyuki Ienaga<[email protected] >" ,
Original file line number Diff line number Diff line change 24
24
"@capacitor/core" : " ^7.2.0" ,
25
25
"@capacitor/ios" : " ^7.2.0" ,
26
26
"@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 " ,
34
34
"eslint-plugin-unused-imports" : " ^4.1.4" ,
35
- "globals" : " ^16.0 .0" ,
35
+ "globals" : " ^16.2 .0" ,
36
36
"jsdom" : " ^26.1.0" ,
37
37
"typescript" : " ^5.8.3" ,
38
- "vite" : " ^6.3.4 " ,
39
- "vitest" : " ^3.1.2 " ,
38
+ "vite" : " ^6.3.5 " ,
39
+ "vitest" : " ^3.1.4 " ,
40
40
"vitest-webgl-canvas-mock" : " ^1.1.0"
41
41
},
42
42
"peerDependencies" : {
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ export class Background
26
26
constructor ( )
27
27
{
28
28
this . shape = new Shape ( ) ;
29
+ stage . addEventListener ( Event . RESIZE , ( ) : void =>
30
+ {
31
+ backgroundDrawService ( this ) ;
32
+ backgroundChangeScaleService ( this ) ;
33
+ } ) ;
29
34
}
30
35
31
36
/**
@@ -45,17 +50,11 @@ export class Background
45
50
}
46
51
47
52
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
+ ) {
58
56
backgroundDrawService ( this ) ;
57
+ backgroundChangeScaleService ( this ) ;
59
58
}
60
59
61
60
/**
You can’t perform that action at this time.
0 commit comments