@leafer/display 1.0.9 → 1.1.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": "@leafer/display",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "@leafer/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,17 +22,17 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "1.0.9",
26
- "@leafer/data": "1.0.9",
27
- "@leafer/layout": "1.0.9",
28
- "@leafer/display-module": "1.0.9",
29
- "@leafer/event": "1.0.9",
30
- "@leafer/decorator": "1.0.9",
31
- "@leafer/helper": "1.0.9",
32
- "@leafer/debug": "1.0.9",
33
- "@leafer/platform": "1.0.9"
25
+ "@leafer/math": "1.1.0",
26
+ "@leafer/data": "1.1.0",
27
+ "@leafer/layout": "1.1.0",
28
+ "@leafer/display-module": "1.1.0",
29
+ "@leafer/event": "1.1.0",
30
+ "@leafer/decorator": "1.1.0",
31
+ "@leafer/helper": "1.1.0",
32
+ "@leafer/debug": "1.1.0",
33
+ "@leafer/platform": "1.1.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@leafer/interface": "1.0.9"
36
+ "@leafer/interface": "1.1.0"
37
37
  }
38
38
  }
package/src/Leaf.ts CHANGED
@@ -470,13 +470,13 @@ export class Leaf implements ILeaf {
470
470
  transform(this, matrix, resize)
471
471
  }
472
472
 
473
- public move(x: number | IPointData, y?: number): void {
474
- moveLocal(this, x, y)
473
+ public move(x: number | IPointData, y?: number, transition?: any): void {
474
+ moveLocal(this, x, y, transition)
475
475
  }
476
476
 
477
477
 
478
- public moveInner(x: number | IPointData, y?: number): void {
479
- moveWorld(this, x, y, true)
478
+ public moveInner(x: number | IPointData, y?: number, transition?: any): void {
479
+ moveWorld(this, x, y, true, transition)
480
480
  }
481
481
 
482
482
  public scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number, resize?: boolean): void {
@@ -496,8 +496,8 @@ export class Leaf implements ILeaf {
496
496
  transformWorld(this, worldTransform, resize)
497
497
  }
498
498
 
499
- public moveWorld(x: number | IPointData, y?: number): void {
500
- moveWorld(this, x, y)
499
+ public moveWorld(x: number | IPointData, y?: number, transition?: any): void {
500
+ moveWorld(this, x, y, false, transition)
501
501
  }
502
502
 
503
503
  public scaleOfWorld(worldOrigin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void {
package/types/index.d.ts CHANGED
@@ -129,13 +129,13 @@ declare class Leaf implements ILeaf {
129
129
  getWorldPointByPage(page: IPointData, relative?: ILeaf, distance?: boolean, change?: boolean): IPointData;
130
130
  setTransform(matrix: IMatrixData, resize?: boolean): void;
131
131
  transform(matrix: IMatrixData, resize?: boolean): void;
132
- move(x: number | IPointData, y?: number): void;
133
- moveInner(x: number | IPointData, y?: number): void;
132
+ move(x: number | IPointData, y?: number, transition?: any): void;
133
+ moveInner(x: number | IPointData, y?: number, transition?: any): void;
134
134
  scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number, resize?: boolean): void;
135
135
  rotateOf(origin: IPointData | IAlign, rotation: number): void;
136
136
  skewOf(origin: IPointData | IAlign, skewX: number, skewY?: number, resize?: boolean): void;
137
137
  transformWorld(worldTransform?: IMatrixData, resize?: boolean): void;
138
- moveWorld(x: number | IPointData, y?: number): void;
138
+ moveWorld(x: number | IPointData, y?: number, transition?: any): void;
139
139
  scaleOfWorld(worldOrigin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void;
140
140
  rotateOfWorld(worldOrigin: IPointData, rotation: number): void;
141
141
  skewOfWorld(worldOrigin: IPointData, skewX: number, skewY?: number, resize?: boolean): void;