@next2d/display 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/display",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "Next2D Display Package",
5
5
  "author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
6
6
  "license": "MIT",
@@ -24,13 +24,13 @@
24
24
  "url": "git+https://github.com/Next2D/Player.git"
25
25
  },
26
26
  "dependencies": {
27
- "@next2d/ui": "3.12.0",
28
- "@next2d/text": "3.12.0",
29
- "@next2d/geom": "3.12.0",
30
- "@next2d/media": "3.12.0",
31
- "@next2d/net": "3.12.0",
32
- "@next2d/events": "3.12.0",
33
- "@next2d/filters": "3.12.0",
34
- "@next2d/render-queue": "3.12.0"
27
+ "@next2d/ui": "3.13.0",
28
+ "@next2d/text": "3.13.0",
29
+ "@next2d/geom": "3.13.0",
30
+ "@next2d/media": "3.13.0",
31
+ "@next2d/net": "3.13.0",
32
+ "@next2d/events": "3.13.0",
33
+ "@next2d/filters": "3.13.0",
34
+ "@next2d/render-queue": "3.13.0"
35
35
  }
36
36
  }
@@ -150,6 +150,18 @@ export const execute = (shape, matrix, color_transform, renderer_width, renderer
150
150
  renderYScale = Math.sqrt(tMatrix[2] * tMatrix[2]
151
151
  + tMatrix[3] * tMatrix[3]);
152
152
  }
153
+ // 回転・スキュー時はスクリーンboundsが0にならなくても、片軸のスケールが0なら
154
+ // 面積0で描画結果がなく、Worker側のノードサイズも0になるためスキップする
155
+ if (!renderXScale || !renderYScale) {
156
+ if (tColorTransform !== color_transform) {
157
+ ColorTransform.release(tColorTransform);
158
+ }
159
+ if (tMatrix !== matrix) {
160
+ Matrix.release(tMatrix);
161
+ }
162
+ renderQueue.push1(0);
163
+ return;
164
+ }
153
165
  const xScaleRounded = Math.round(renderXScale * 100) / 100;
154
166
  const yScaleRounded = Math.round(renderYScale * 100) / 100;
155
167
  if (cacheMatrix && shape.cacheKey
@@ -142,6 +142,18 @@ export const execute = (text_field, matrix, color_transform, renderer_width, ren
142
142
  renderYScale = Math.sqrt(tMatrix[2] * tMatrix[2]
143
143
  + tMatrix[3] * tMatrix[3]);
144
144
  }
145
+ // 回転・スキュー時はスクリーンboundsが0にならなくても、片軸のスケールが0なら
146
+ // 面積0で描画結果がなく、Worker側のノードサイズも0になるためスキップする
147
+ if (!renderXScale || !renderYScale) {
148
+ if (tColorTransform !== color_transform) {
149
+ ColorTransform.release(tColorTransform);
150
+ }
151
+ if (tMatrix !== matrix) {
152
+ Matrix.release(tMatrix);
153
+ }
154
+ renderQueue.push1(0);
155
+ return;
156
+ }
145
157
  const xScaleRounded = Math.round(renderXScale * 100) / 100;
146
158
  const yScaleRounded = Math.round(renderYScale * 100) / 100;
147
159
  if (cacheMatrix && text_field.cacheKey