@leafer/selector
Advanced tools
+5
-5
| { | ||
| "name": "@leafer/selector", | ||
| "version": "1.0.0-alpha.10", | ||
| "version": "1.0.0-alpha.21", | ||
| "description": "@leafer/selector", | ||
@@ -22,9 +22,9 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/event": "1.0.0-alpha.10", | ||
| "@leafer/math": "1.0.0-alpha.10", | ||
| "@leafer/list": "1.0.0-alpha.10" | ||
| "@leafer/event": "1.0.0-alpha.21", | ||
| "@leafer/math": "1.0.0-alpha.21", | ||
| "@leafer/list": "1.0.0-alpha.21" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-alpha.10" | ||
| "@leafer/interface": "1.0.0-alpha.21" | ||
| } | ||
| } |
+16
-19
@@ -72,13 +72,10 @@ import { ILeaf, ILeafList, IPointData, IRadiusPointData, ISelectPathResult, ISelectPathOptions, ISelector } from '@leafer/interface' | ||
| child = children[i] | ||
| if (child.__interactionOff) continue | ||
| if (child.__.hittable) { | ||
| if (hitRadiusPoint(child.__world, point)) { | ||
| if (child.__isBranch && child.__.hitChildren) this.eachThroughFind(child.children) | ||
| if (hitRadiusPoint(child.__world, point)) { | ||
| if (child.__isBranch) { | ||
| child.__childrenInteractionOff || this.eachThroughFind(child.children) | ||
| if (this.exclude && this.exclude.has(child)) continue | ||
| if (child.__hitWorld(point)) this.throughPath.push(child) | ||
| } | ||
| if (this.exclude && this.exclude.has(child)) continue | ||
| if (child.__hitWorld(point)) this.throughPath.push(child) | ||
| } | ||
| } | ||
@@ -92,19 +89,19 @@ } | ||
| child = children[i] | ||
| if (child.__interactionOff) continue | ||
| if (child.__.hittable) { | ||
| if (hitRadiusPoint(child.__world, point)) { | ||
| if (child.__isBranch) { | ||
| if (hitRadiusPoint(child.__world, point)) { | ||
| if (child.__isBranch) { | ||
| if (child.__.hitChildren) this.eachFind(child.children) | ||
| child.__childrenInteractionOff || this.eachFind(child.children) | ||
| if (child.__isBranchLeaf) { // 填充了背景色的Group, 如画板/Frame元素 | ||
| if (!this.isStop) this.hitChild(child, point) | ||
| } | ||
| if (child.__isBranchLeaf) { // 填充了背景色的Group, 如画板/Frame元素 | ||
| if (!this.isStop) this.hitChild(child, point) | ||
| } else { | ||
| this.hitChild(child, point) | ||
| } | ||
| } | ||
| } else { | ||
| this.hitChild(child, point) | ||
| } | ||
| if (this.isStop) break | ||
| } | ||
| if (this.isStop) break | ||
| } | ||
@@ -111,0 +108,0 @@ } |
10000
0.07%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated