@leafer/display 1.0.0-rc.21 → 1.0.0-rc.22
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 +10 -10
- package/src/Leaf.ts +2 -2
- package/types/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.22",
|
|
4
4
|
"description": "@leafer/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/math": "1.0.0-rc.
|
|
26
|
-
"@leafer/data": "1.0.0-rc.
|
|
27
|
-
"@leafer/layout": "1.0.0-rc.
|
|
28
|
-
"@leafer/display-module": "1.0.0-rc.
|
|
29
|
-
"@leafer/event": "1.0.0-rc.
|
|
30
|
-
"@leafer/decorator": "1.0.0-rc.
|
|
31
|
-
"@leafer/helper": "1.0.0-rc.
|
|
32
|
-
"@leafer/platform": "1.0.0-rc.
|
|
25
|
+
"@leafer/math": "1.0.0-rc.22",
|
|
26
|
+
"@leafer/data": "1.0.0-rc.22",
|
|
27
|
+
"@leafer/layout": "1.0.0-rc.22",
|
|
28
|
+
"@leafer/display-module": "1.0.0-rc.22",
|
|
29
|
+
"@leafer/event": "1.0.0-rc.22",
|
|
30
|
+
"@leafer/decorator": "1.0.0-rc.22",
|
|
31
|
+
"@leafer/helper": "1.0.0-rc.22",
|
|
32
|
+
"@leafer/platform": "1.0.0-rc.22"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@leafer/interface": "1.0.0-rc.
|
|
35
|
+
"@leafer/interface": "1.0.0-rc.22"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/Leaf.ts
CHANGED
|
@@ -414,7 +414,7 @@ export class Leaf implements ILeaf {
|
|
|
414
414
|
transform(this, matrix, resize)
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
public move(x: number, y?: number): void {
|
|
417
|
+
public move(x: number | IPointData, y?: number): void {
|
|
418
418
|
moveLocal(this, x, y)
|
|
419
419
|
}
|
|
420
420
|
|
|
@@ -435,7 +435,7 @@ export class Leaf implements ILeaf {
|
|
|
435
435
|
transformWorld(this, worldTransform, resize)
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
-
public moveWorld(x: number, y?: number): void {
|
|
438
|
+
public moveWorld(x: number | IPointData, y?: number): void {
|
|
439
439
|
moveWorld(this, x, y)
|
|
440
440
|
}
|
|
441
441
|
|
package/types/index.d.ts
CHANGED
|
@@ -109,12 +109,12 @@ declare class Leaf implements ILeaf {
|
|
|
109
109
|
getWorldPointByPage(page: IPointData, relative?: ILeaf, distance?: boolean, change?: boolean): IPointData;
|
|
110
110
|
setTransform(matrix: IMatrixData, resize?: boolean): void;
|
|
111
111
|
transform(matrix: IMatrixData, resize?: boolean): void;
|
|
112
|
-
move(x: number, y?: number): void;
|
|
112
|
+
move(x: number | IPointData, y?: number): void;
|
|
113
113
|
scaleOf(origin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void;
|
|
114
114
|
rotateOf(origin: IPointData, rotation: number): void;
|
|
115
115
|
skewOf(origin: IPointData, skewX: number, skewY?: number, resize?: boolean): void;
|
|
116
116
|
transformWorld(worldTransform?: IMatrixData, resize?: boolean): void;
|
|
117
|
-
moveWorld(x: number, y?: number): void;
|
|
117
|
+
moveWorld(x: number | IPointData, y?: number): void;
|
|
118
118
|
scaleOfWorld(worldOrigin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void;
|
|
119
119
|
rotateOfWorld(worldOrigin: IPointData, rotation: number): void;
|
|
120
120
|
skewOfWorld(worldOrigin: IPointData, skewX: number, skewY?: number, resize?: boolean): void;
|