Skip to content

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

NameType
hitPointIPointData
hitRadiusnumber
options?IPickOptions

Returns

IPickResult

Defined in

leafer/packages/interface/src/selector/ISelector.ts:56


getBy

getBy(condition, branch?, one?, options?): ILeaf | ILeaf[]

Parameters

NameType
conditionstring | number | IFindMethod
branch?ILeaf
one?boolean
options?any

Returns

ILeaf | ILeaf[]

Defined in

leafer/packages/interface/src/selector/ISelector.ts:58


getByInnerId

getByInnerId(innerId, branch?): ILeaf

Parameters

NameType
innerIdnumber
branch?ILeaf

Returns

ILeaf

Defined in

leafer/packages/interface/src/selector/ISelector.ts:59


getById

getById(id, branch?): ILeaf

Parameters

NameType
idstring
branch?ILeaf

Returns

ILeaf

Defined in

leafer/packages/interface/src/selector/ISelector.ts:60


getByClassName

getByClassName(className, branch?): ILeaf[]

Parameters

NameType
classNamestring
branch?ILeaf

Returns

ILeaf[]

Defined in

leafer/packages/interface/src/selector/ISelector.ts:61


getByTag

getByTag(tag, branch?): ILeaf[]

Parameters

NameType
tagstring
branch?ILeaf

Returns

ILeaf[]

Defined in

leafer/packages/interface/src/selector/ISelector.ts:62


getByMethod

getByMethod(method, branch?, one?, options?): ILeaf | ILeaf[]

Parameters

NameType
methodIFindMethod
branch?ILeaf
one?boolean
options?any

Returns

ILeaf | ILeaf[]

Defined in

leafer/packages/interface/src/selector/ISelector.ts:63


destroy

destroy(): void

Returns

void

Defined in

leafer/packages/interface/src/selector/ISelector.ts:64

Released under the MIT License.