Interface: ISelector
Implemented by
Table of contents
Properties
Methods
Properties
target
• Optional
target: ILeaf
Defined in
leafer/packages/interface/src/selector/ISelector.ts:50
proxy
• Optional
proxy: ISelectorProxy
Defined in
leafer/packages/interface/src/selector/ISelector.ts:52
config
• config: ISelectorConfig
Defined in
leafer/packages/interface/src/selector/ISelector.ts:54
Methods
getByPoint
▸ getByPoint(hitPoint
, hitRadius
, options?
): IPickResult
Parameters
Name | Type |
---|---|
hitPoint | IPointData |
hitRadius | number |
options? | IPickOptions |
Returns
Defined in
leafer/packages/interface/src/selector/ISelector.ts:56
getBy
▸ getBy(condition
, branch?
, one?
, options?
): ILeaf
| ILeaf
[]
Parameters
Name | Type |
---|---|
condition | string | number | IFindMethod |
branch? | ILeaf |
one? | boolean |
options? | any |
Returns
Defined in
leafer/packages/interface/src/selector/ISelector.ts:58
getByInnerId
▸ getByInnerId(innerId
, branch?
): ILeaf
Parameters
Name | Type |
---|---|
innerId | number |
branch? | ILeaf |
Returns
Defined in
leafer/packages/interface/src/selector/ISelector.ts:59
getById
▸ getById(id
, branch?
): ILeaf
Parameters
Name | Type |
---|---|
id | string |
branch? | ILeaf |
Returns
Defined in
leafer/packages/interface/src/selector/ISelector.ts:60
getByClassName
▸ getByClassName(className
, branch?
): ILeaf
[]
Parameters
Name | Type |
---|---|
className | string |
branch? | ILeaf |
Returns
ILeaf
[]
Defined in
leafer/packages/interface/src/selector/ISelector.ts:61
getByTag
▸ getByTag(tag
, branch?
): ILeaf
[]
Parameters
Name | Type |
---|---|
tag | string |
branch? | ILeaf |
Returns
ILeaf
[]
Defined in
leafer/packages/interface/src/selector/ISelector.ts:62
getByMethod
▸ getByMethod(method
, branch?
, one?
, options?
): ILeaf
| ILeaf
[]
Parameters
Name | Type |
---|---|
method | IFindMethod |
branch? | ILeaf |
one? | boolean |
options? | any |
Returns
Defined in
leafer/packages/interface/src/selector/ISelector.ts:63
destroy
▸ destroy(): void
Returns
void