@next2d/geom 1.15.0 → 1.17.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/dist/Transform.d.ts +2 -2
- package/dist/Transform.js +10 -15
- package/package.json +7 -7
package/dist/Transform.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ import type { PlaceObjectImpl, DisplayObjectImpl, FilterArrayImpl, BlendModeImpl
|
|
|
32
32
|
*/
|
|
33
33
|
export declare class Transform {
|
|
34
34
|
private readonly _$displayObject;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_$matrix: Matrix | null;
|
|
36
|
+
_$colorTransform: ColorTransform | null;
|
|
37
37
|
_$blendMode: BlendModeImpl | null;
|
|
38
38
|
_$filters: FilterArrayImpl | null;
|
|
39
39
|
/**
|
package/dist/Transform.js
CHANGED
|
@@ -128,9 +128,8 @@ export class Transform {
|
|
|
128
128
|
if (this._$colorTransform) {
|
|
129
129
|
return this._$colorTransform._$clone();
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
._$getPlaceObject();
|
|
131
|
+
const displayObject = this._$displayObject;
|
|
132
|
+
const placeObject = displayObject._$placeObject || displayObject._$getPlaceObject();
|
|
134
133
|
if (placeObject && placeObject.colorTransform) {
|
|
135
134
|
const buffer = placeObject.colorTransform;
|
|
136
135
|
return $getColorTransform(buffer[0], buffer[1], buffer[2], buffer[3], buffer[4], buffer[5], buffer[6], buffer[7]);
|
|
@@ -177,9 +176,8 @@ export class Transform {
|
|
|
177
176
|
if (this._$matrix) {
|
|
178
177
|
return this._$matrix._$clone();
|
|
179
178
|
}
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
._$getPlaceObject();
|
|
179
|
+
const displayObject = this._$displayObject;
|
|
180
|
+
const placeObject = displayObject._$placeObject || displayObject._$getPlaceObject();
|
|
183
181
|
if (placeObject && placeObject.matrix) {
|
|
184
182
|
const buffer = placeObject.matrix;
|
|
185
183
|
return $getMatrix(buffer[0], buffer[1], buffer[2], buffer[3], buffer[4], buffer[5]);
|
|
@@ -246,9 +244,8 @@ export class Transform {
|
|
|
246
244
|
if (this._$matrix !== null) {
|
|
247
245
|
return this._$matrix._$matrix;
|
|
248
246
|
}
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
._$getPlaceObject();
|
|
247
|
+
const displayObject = this._$displayObject;
|
|
248
|
+
const placeObject = displayObject._$placeObject || displayObject._$getPlaceObject();
|
|
252
249
|
if (placeObject && placeObject.matrix) {
|
|
253
250
|
if ($Array.isArray(placeObject.matrix)) {
|
|
254
251
|
const matrix = placeObject.matrix;
|
|
@@ -271,9 +268,8 @@ export class Transform {
|
|
|
271
268
|
if (this._$colorTransform !== null) {
|
|
272
269
|
return this._$colorTransform._$colorTransform;
|
|
273
270
|
}
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
._$getPlaceObject();
|
|
271
|
+
const displayObject = this._$displayObject;
|
|
272
|
+
const placeObject = displayObject._$placeObject || displayObject._$getPlaceObject();
|
|
277
273
|
if (placeObject && placeObject.colorTransform) {
|
|
278
274
|
if ($Array.isArray(placeObject.colorTransform)) {
|
|
279
275
|
const colorTransform = placeObject.colorTransform;
|
|
@@ -294,9 +290,8 @@ export class Transform {
|
|
|
294
290
|
* @private
|
|
295
291
|
*/
|
|
296
292
|
_$transform(matrix = null, color_transform = null, filters = null, blend_mode = "") {
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
._$getPlaceObject();
|
|
293
|
+
const displayObject = this._$displayObject;
|
|
294
|
+
const placeObject = displayObject._$placeObject || displayObject._$getPlaceObject();
|
|
300
295
|
// Matrix
|
|
301
296
|
this._$setMatrix(matrix, placeObject);
|
|
302
297
|
// ColorTransform
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/geom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "Next2D Geom Packages",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@tvon.jp> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@next2d/interface": "1.
|
|
36
|
-
"@next2d/display": "1.
|
|
37
|
-
"@next2d/core": "1.
|
|
38
|
-
"@next2d/util": "1.
|
|
39
|
-
"@next2d/filters": "1.
|
|
40
|
-
"@next2d/share": "1.
|
|
35
|
+
"@next2d/interface": "1.17.0",
|
|
36
|
+
"@next2d/display": "1.17.0",
|
|
37
|
+
"@next2d/core": "1.17.0",
|
|
38
|
+
"@next2d/util": "1.17.0",
|
|
39
|
+
"@next2d/filters": "1.17.0",
|
|
40
|
+
"@next2d/share": "1.17.0"
|
|
41
41
|
}
|
|
42
42
|
}
|