Class: Selector ​
Implements ​
Table of contents ​
Constructors ​
Properties ​
Methods ​
Constructors ​
constructor ​
• new Selector(target, userConfig?): Selector
Parameters ​
| Name | Type |
|---|---|
target | ILeaf |
userConfig? | ISelectorConfig |
Returns ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:17
Properties ​
target ​
• Optional target: ILeaf
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:9
proxy ​
• Optional proxy: ISelectorProxy
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:10
config ​
• config: ISelectorConfig = {}
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:12
picker ​
• picker: IPicker
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:14
finder ​
• Optional finder: IFinder
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:15
Methods ​
getByPoint ​
â–¸ getByPoint(hitPoint, hitRadius, options?): IPickResult
Parameters ​
| Name | Type |
|---|---|
hitPoint | IPointData |
hitRadius | number |
options? | IPickOptions |
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:23
hitPoint ​
â–¸ hitPoint(hitPoint, hitRadius, options?): boolean
Parameters ​
| Name | Type |
|---|---|
hitPoint | IPointData |
hitRadius | number |
options? | IPickOptions |
Returns ​
boolean
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:29
getBy ​
â–¸ getBy(condition, branch?, one?, options?): ILeaf | ILeaf[]
Parameters ​
| Name | Type |
|---|---|
condition | string | number | IFindCondition | IFindMethod |
branch? | ILeaf |
one? | boolean |
options? | any |
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/partner/selector/src/Selector.ts:34
destroy ​
â–¸ destroy(): void
Returns ​
void