@leafer/helper 1.0.0-rc.23 → 1.0.0-rc.25

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/helper",
3
- "version": "1.0.0-rc.23",
3
+ "version": "1.0.0-rc.25",
4
4
  "description": "@leafer/helper",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "1.0.0-rc.23"
25
+ "@leafer/math": "1.0.0-rc.25"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.0.0-rc.23"
28
+ "@leafer/interface": "1.0.0-rc.25"
29
29
  }
30
30
  }
@@ -8,15 +8,15 @@ export const LeafBoundsHelper = {
8
8
  },
9
9
 
10
10
  localBoxBounds(target: ILeaf): IBoundsData {
11
- return target.__.eraser ? null : (target.__local || target.__layout)
11
+ return target.__.eraser || target.__.visible === 0 ? null : (target.__local || target.__layout)
12
12
  },
13
13
 
14
14
  localStrokeBounds(target: ILeaf): IBoundsData {
15
- return target.__.eraser ? null : target.__layout.localStrokeBounds
15
+ return target.__.eraser || target.__.visible === 0 ? null : target.__layout.localStrokeBounds
16
16
  },
17
17
 
18
18
  localRenderBounds(target: ILeaf): IBoundsData {
19
- return target.__.eraser ? null : target.__layout.localRenderBounds
19
+ return target.__.eraser || target.__.visible === 0 ? null : target.__layout.localRenderBounds
20
20
  },
21
21
 
22
22
  maskLocalBoxBounds(target: ILeaf): IBoundsData {
package/src/LeafHelper.ts CHANGED
@@ -164,13 +164,6 @@ export const LeafHelper = {
164
164
  if (parent === p) return true
165
165
  p = p.parent
166
166
  }
167
- },
168
-
169
- hasParentAutoLayout(p: ILeaf): boolean | void {
170
- while (p.parent) {
171
- p = p.parent
172
- if (p.__hasAutoLayout) return true
173
- }
174
167
  }
175
168
 
176
169
  }
package/types/index.d.ts CHANGED
@@ -21,7 +21,6 @@ declare const LeafHelper: {
21
21
  getRelativeWorld(t: ILeaf, relative: ILeaf, temp?: boolean): IMatrixData;
22
22
  drop(t: ILeaf, parent: ILeaf, index?: number, resize?: boolean): void;
23
23
  hasParent(p: ILeaf, parent: ILeaf): boolean | void;
24
- hasParentAutoLayout(p: ILeaf): boolean | void;
25
24
  };
26
25
 
27
26
  declare const LeafBoundsHelper: {