Skip to content

spatial-monorepo


spatial-monorepo / editor/src / UseRecognitionSessionResult

Interface: UseRecognitionSessionResult

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:18

Properties

accept

accept: (featureId) => string | undefined

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:29

Accept + promote into the editor; returns the Terra Draw feature id, or undefined if the feature is no longer pending (e.g. a double-click already resolved it) — a no-op rather than a throw.

Parameters

featureId

string

Returns

string | undefined


acceptAll

acceptAll: () => string[]

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:31

Returns

string[]


detect

detect: (scan, opts?) => Promise<PendingFeature[]>

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:23

Parameters

scan

FloorPlanScan

opts?

RecognitionOptions

Returns

Promise<PendingFeature[]>


pendingFeatures

pendingFeatures: PendingFeature[]

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:21


reject

reject: (featureId) => void

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:30

Parameters

featureId

string

Returns

void


rejectAll

rejectAll: () => void

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:32

Returns

void


session

session: RecognitionSession

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:19


state

state: RecognitionSessionState

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:20


uncertainFeatures

uncertainFeatures: PendingFeature[]

Defined in: packages/editor/src/recognition/useRecognitionSession.ts:22

Released under commercial licensing.