Skip to content

Documentation / @geoverse/react / UseAttributeFilter

Interface: UseAttributeFilter

Defined in: react/src/hooks/attributes.ts:120

Extends

  • FilterSnapshot

Properties

active

ts
active: boolean;

Defined in: editor-core/dist/session.d.ts:20

Inherited from

ts
FilterSnapshot.active

matchedIds

ts
matchedIds: string[];

Defined in: editor-core/dist/session.d.ts:22

命中要素 id(高亮)。

Inherited from

ts
FilterSnapshot.matchedIds

scopedIds

ts
scopedIds: string[];

Defined in: editor-core/dist/session.d.ts:24

参与过滤评估的全集(其中未命中者淡出)。

Inherited from

ts
FilterSnapshot.scopedIds

Methods

apply()

ts
apply(predicate, opts?): void;

Defined in: react/src/hooks/attributes.ts:121

Parameters

predicate

AttributePredicate

opts?

AttributeFilterOptions

Returns

void


clear()

ts
clear(): void;

Defined in: react/src/hooks/attributes.ts:122

Returns

void