@leafer/display 2.1.7 → 2.1.9

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": "2.1.7",
3
+ "version": "2.1.9",
4
4
  "description": "@leafer/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,18 +22,18 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "2.1.7",
26
- "@leafer/data": "2.1.7",
27
- "@leafer/layout": "2.1.7",
28
- "@leafer/display-module": "2.1.7",
29
- "@leafer/event": "2.1.7",
30
- "@leafer/decorator": "2.1.7",
31
- "@leafer/helper": "2.1.7",
32
- "@leafer/image": "2.1.7",
33
- "@leafer/debug": "2.1.7",
34
- "@leafer/platform": "2.1.7"
25
+ "@leafer/math": "2.1.9",
26
+ "@leafer/data": "2.1.9",
27
+ "@leafer/layout": "2.1.9",
28
+ "@leafer/display-module": "2.1.9",
29
+ "@leafer/event": "2.1.9",
30
+ "@leafer/decorator": "2.1.9",
31
+ "@leafer/helper": "2.1.9",
32
+ "@leafer/image": "2.1.9",
33
+ "@leafer/debug": "2.1.9",
34
+ "@leafer/platform": "2.1.9"
35
35
  },
36
36
  "devDependencies": {
37
- "@leafer/interface": "2.1.7"
37
+ "@leafer/interface": "2.1.9"
38
38
  }
39
39
  }
package/src/Branch.ts CHANGED
@@ -65,6 +65,7 @@ export class Branch extends Leaf { // tip: rewrited Group
65
65
  children.sort(sort)
66
66
  this.__layout.affectChildrenSort = affectSort
67
67
  }
68
+ this.__layout.childrenSortChanged = false
68
69
  }
69
70
 
70
71
  public add(child: ILeaf, index?: number): void {
package/src/Leaf.ts CHANGED
@@ -548,8 +548,8 @@ export interface Leaf {
548
548
 
549
549
  // @leafer-in/resize rewrite
550
550
  __scaleResize(scaleX: number, scaleY: number): void
551
- resizeWidth(width: number): void
552
- resizeHeight(height: number): void
551
+ resizeWidth(width: number, relative?: ILocationType): void
552
+ resizeHeight(height: number, relative?: ILocationType): void
553
553
 
554
554
  // @leafer-ui/hit LeafHit rewrite
555
555
  hit(world: IPointData, hitRadius?: number): boolean
package/types/index.d.ts CHANGED
@@ -158,8 +158,8 @@ interface Leaf {
158
158
  __onUpdateSize(): void;
159
159
  __renderMask(canvas: ILeaferCanvas, options: IRenderOptions): void;
160
160
  __scaleResize(scaleX: number, scaleY: number): void;
161
- resizeWidth(width: number): void;
162
- resizeHeight(height: number): void;
161
+ resizeWidth(width: number, relative?: ILocationType): void;
162
+ resizeHeight(height: number, relative?: ILocationType): void;
163
163
  hit(world: IPointData, hitRadius?: number): boolean;
164
164
  __hitWorld(point: IRadiusPointData, forceHitFill?: boolean): boolean;
165
165
  __hit(local: IRadiusPointData, forceHitFill?: boolean): boolean;