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

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

Accept + promote into the editor; returns the Terra Draw feature id.

Parameters

featureId

string

Returns

string


acceptAll

acceptAll: () => string[]

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

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:26

Parameters

featureId

string

Returns

void


rejectAll

rejectAll: () => void

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

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.