@vvfx/sdk 0.0.0-alpha.44 → 0.0.0-alpha.46
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/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.global.js +6 -6
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -149,7 +149,7 @@ declare class Vector2 extends math.Vector2 {
|
|
|
149
149
|
toViewCoordinate(width: number, height: number): this;
|
|
150
150
|
clone(): Vector2;
|
|
151
151
|
distanceTo(other: Vector2): number;
|
|
152
|
-
scaleByCenter(scalar: Vector2, anchor?: Vector2):
|
|
152
|
+
scaleByCenter(scalar: Vector2, anchor?: Vector2): this;
|
|
153
153
|
round(precision?: number): this;
|
|
154
154
|
/**
|
|
155
155
|
* 点到直线的最短距离
|
|
@@ -321,6 +321,7 @@ declare class Box2 {
|
|
|
321
321
|
* @returns {Box2} 位移结果
|
|
322
322
|
*/
|
|
323
323
|
translate(offset: Vector2): this;
|
|
324
|
+
scaleByCenter(scalar: number | Vector2, anchor?: Vector2): this;
|
|
324
325
|
scale(scalar: number, center?: Vector2): this;
|
|
325
326
|
/**
|
|
326
327
|
* 二维包围盒判等
|
package/dist/index.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ declare class Vector2 extends math.Vector2 {
|
|
|
149
149
|
toViewCoordinate(width: number, height: number): this;
|
|
150
150
|
clone(): Vector2;
|
|
151
151
|
distanceTo(other: Vector2): number;
|
|
152
|
-
scaleByCenter(scalar: Vector2, anchor?: Vector2):
|
|
152
|
+
scaleByCenter(scalar: Vector2, anchor?: Vector2): this;
|
|
153
153
|
round(precision?: number): this;
|
|
154
154
|
/**
|
|
155
155
|
* 点到直线的最短距离
|
|
@@ -321,6 +321,7 @@ declare class Box2 {
|
|
|
321
321
|
* @returns {Box2} 位移结果
|
|
322
322
|
*/
|
|
323
323
|
translate(offset: Vector2): this;
|
|
324
|
+
scaleByCenter(scalar: number | Vector2, anchor?: Vector2): this;
|
|
324
325
|
scale(scalar: number, center?: Vector2): this;
|
|
325
326
|
/**
|
|
326
327
|
* 二维包围盒判等
|