@leafer/display 1.0.1 → 1.0.2

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.1",
3
+ "version": "1.0.2",
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.1",
26
- "@leafer/data": "1.0.1",
27
- "@leafer/layout": "1.0.1",
28
- "@leafer/display-module": "1.0.1",
29
- "@leafer/event": "1.0.1",
30
- "@leafer/decorator": "1.0.1",
31
- "@leafer/helper": "1.0.1",
32
- "@leafer/platform": "1.0.1"
25
+ "@leafer/math": "1.0.2",
26
+ "@leafer/data": "1.0.2",
27
+ "@leafer/layout": "1.0.2",
28
+ "@leafer/display-module": "1.0.2",
29
+ "@leafer/event": "1.0.2",
30
+ "@leafer/decorator": "1.0.2",
31
+ "@leafer/helper": "1.0.2",
32
+ "@leafer/platform": "1.0.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@leafer/interface": "1.0.1"
35
+ "@leafer/interface": "1.0.2"
36
36
  }
37
37
  }
package/src/Leaf.ts CHANGED
@@ -444,6 +444,11 @@ export class Leaf implements ILeaf {
444
444
  moveLocal(this, x, y)
445
445
  }
446
446
 
447
+
448
+ public moveInner(x: number | IPointData, y?: number): void {
449
+ moveWorld(this, x, y, true)
450
+ }
451
+
447
452
  public scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number, resize?: boolean): void {
448
453
  zoomOfLocal(this, getLocalOrigin(this, origin), scaleX, scaleY, resize)
449
454
  }
@@ -456,6 +461,7 @@ export class Leaf implements ILeaf {
456
461
  skewOfLocal(this, getLocalOrigin(this, origin), skewX, skewY, resize)
457
462
  }
458
463
 
464
+
459
465
  public transformWorld(worldTransform?: IMatrixData, resize?: boolean): void {
460
466
  transformWorld(this, worldTransform, resize)
461
467
  }
package/types/index.d.ts CHANGED
@@ -123,6 +123,7 @@ declare class Leaf implements ILeaf {
123
123
  setTransform(matrix: IMatrixData, resize?: boolean): void;
124
124
  transform(matrix: IMatrixData, resize?: boolean): void;
125
125
  move(x: number | IPointData, y?: number): void;
126
+ moveInner(x: number | IPointData, y?: number): void;
126
127
  scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number, resize?: boolean): void;
127
128
  rotateOf(origin: IPointData | IAlign, rotation: number): void;
128
129
  skewOf(origin: IPointData | IAlign, skewX: number, skewY?: number, resize?: boolean): void;