Reference·JavaScript · @bimworks/viewercommonJavaScript

AnnotationRow

Interface in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Interface

TypeScript#
interface AnnotationRow<D>

Type parameters#

Name Constraint Description
D ``

Members#

Member Kind Description
data Property
globalId Property The object's IFC GlobalId: the key of a layer with key "globalId"
key Property The qid string by default, the GlobalId with key "globalId"; filled in for query rows
position Property An explicit anchor, as Annotation.position. A row without a qid or qids needs one
qid Property The object the row is about: anchors it, links hover, hides it with its object
qids Property Several objects (a storey, a system): the row sits on the union of their bounds and shows while one of them does. A query record without a qid becomes such a…
type Property IFC class, for icons; filled in for query rows

data#

TypeScript#
data: D

globalId#

TypeScript#
globalId?: string

The object's IFC GlobalId: the key of a layer with key "globalId"

key#

TypeScript#
key?: string

The qid string by default, the GlobalId with key "globalId"; filled in for query rows

position#

TypeScript#
position?: (number)[]

An explicit anchor, as Annotation.position. A row without a qid or qids needs one

qid#

TypeScript#
qid?: Qid

The object the row is about: anchors it, links hover, hides it with its object

qids#

TypeScript#
qids?: (string | Qid)[]

Several objects (a storey, a system): the row sits on the union of their bounds and shows while one of them does. A query record without a qid becomes such a row with a qids column (COLLECT(qid) AS qids), keyed by its key column or its text values

type#

TypeScript#
type?: string

IFC class, for icons; filled in for query rows