@next2d/display 2.1.5 → 2.2.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": "2.1.5",
3
+ "version": "2.2.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": "2.1.5",
28
- "@next2d/text": "2.1.5",
29
- "@next2d/geom": "2.1.5",
30
- "@next2d/media": "2.1.5",
31
- "@next2d/net": "2.1.5",
32
- "@next2d/events": "2.1.5",
33
- "@next2d/filters": "2.1.5",
34
- "@next2d/render-queue": "2.1.5"
27
+ "@next2d/ui": "2.2.0",
28
+ "@next2d/text": "2.2.0",
29
+ "@next2d/geom": "2.2.0",
30
+ "@next2d/media": "2.2.0",
31
+ "@next2d/net": "2.2.0",
32
+ "@next2d/events": "2.2.0",
33
+ "@next2d/filters": "2.2.0",
34
+ "@next2d/render-queue": "2.2.0"
35
35
  }
36
36
  }
@@ -23,7 +23,7 @@ export const execute = (display_object) => {
23
23
  if (index !== -1) {
24
24
  xScale = +value.slice(0, index);
25
25
  }
26
- xScale = Math.round(xScale * 10000) / 10000;
26
+ xScale = Math.round(xScale * 100) / 100;
27
27
  }
28
28
  return 0 > matrix[0] ? xScale * -1 : xScale;
29
29
  };
@@ -23,7 +23,7 @@ export const execute = (display_object) => {
23
23
  if (index !== -1) {
24
24
  yScale = +value.slice(0, index);
25
25
  }
26
- yScale = Math.round(yScale * 10000) / 10000;
26
+ yScale = Math.round(yScale * 100) / 100;
27
27
  }
28
28
  return 0 > matrix[0] ? yScale * -1 : yScale;
29
29
  };
@@ -20,7 +20,7 @@ export const execute = (display_object, scale_x) => {
20
20
  if (index !== -1) {
21
21
  scale_x = +value.slice(0, index);
22
22
  }
23
- scale_x = Math.round(scale_x * 10000) / 10000;
23
+ scale_x = Math.round(scale_x * 100) / 100;
24
24
  }
25
25
  if (display_object.$scaleX === scale_x) {
26
26
  return;
@@ -20,7 +20,7 @@ export const execute = (display_object, scale_y) => {
20
20
  if (index !== -1) {
21
21
  scale_y = +value.slice(0, index);
22
22
  }
23
- scale_y = Math.round(scale_y * 10000) / 10000;
23
+ scale_y = Math.round(scale_y * 100) / 100;
24
24
  }
25
25
  if (display_object.$scaleY === scale_y) {
26
26
  return;
@@ -109,9 +109,9 @@ export const execute = (shape, matrix, color_transform, renderer_width, renderer
109
109
  }
110
110
  }
111
111
  const xScale = Math.round(Math.sqrt(tMatrix[0] * tMatrix[0]
112
- + tMatrix[1] * tMatrix[1]) * 10000) / 10000;
112
+ + tMatrix[1] * tMatrix[1]) * 10) / 10;
113
113
  const yScale = Math.round(Math.sqrt(tMatrix[2] * tMatrix[2]
114
- + tMatrix[3] * tMatrix[3]) * 10000) / 10000;
114
+ + tMatrix[3] * tMatrix[3]) * 10) / 10;
115
115
  if (!shape.isBitmap
116
116
  && !shape.cacheKey
117
117
  || shape.cacheParams[0] !== xScale
@@ -102,9 +102,9 @@ export const execute = (text_field, matrix, color_transform, renderer_width, ren
102
102
  }
103
103
  }
104
104
  const xScale = Math.round(Math.sqrt(tMatrix[0] * tMatrix[0]
105
- + tMatrix[1] * tMatrix[1]) * 10000) / 10000;
105
+ + tMatrix[1] * tMatrix[1]) * 10) / 10;
106
106
  const yScale = Math.round(Math.sqrt(tMatrix[2] * tMatrix[2]
107
- + tMatrix[3] * tMatrix[3]) * 10000) / 10000;
107
+ + tMatrix[3] * tMatrix[3]) * 10) / 10;
108
108
  if (text_field.changed
109
109
  && !text_field.cacheKey
110
110
  || text_field.cacheParams[0] !== xScale