Reference·JavaScript · @bimworks/viewercommonJavaScript

AnnotationTemplates

Variable in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Variable

TypeScript#
const AnnotationTemplates: { readonly asset: AnnotationTemplate<{ assetType?: string; code?: string; lastInspection?: string | number | Date; name?: string; nextDue?: string | number | Date; tag?: string }>; readonly bcfTopic: AnnotationTemplate<{ assignedTo?: string; code?: string; dueDate?: string | number | Date; labels?: (string)[]; priority?: string; snapshot?: string; stage?: string; title?: string; topicStatus?: string; topicType?: string }>; readonly checkResult: AnnotationTemplate<{ actual?: unknown; check?: string; expected?: unknown; object?: string; outcome?: "pass" | "warn" | "fail"; rule?: string; rules?: ({ actual?: unknown; expected?: unknown; outcome: "pass" | "warn" | "fail"; rule: string })[] }>; readonly conversation: AnnotationTemplate<{ comments?: ({ at?: string | number | Date; author: string; text: string })[]; count?: number; participants?: (string)[]; status?: "open" | "closed"; unread?: number }>; readonly issue: AnnotationTemplate<{ assignee?: string; comments?: number; description?: string; due?: string | number | Date; number?: number | string; priority?: "high" | "normal" | "low"; status?: "open" | "progress" | "resolved" | "closed"; thumbnail?: string; title?: string; type?: "clash" | "question" | "defect" }>; readonly objectLabel: AnnotationTemplate<{ longName?: string; name?: string; objectType?: string }>; readonly progress: AnnotationTemplate<{ actualStart?: string | number | Date; forecastEnd?: string | number | Date; percent?: number; plannedEnd?: string | number | Date; plannedStart?: string | number | Date; status?: "track" | "late" | "done"; task?: string }>; readonly properties: AnnotationTemplate<Record<string, unknown>>; readonly roomTag: AnnotationTemplate<{ area?: Quantity; longName?: string; name?: string }>; readonly sensor: AnnotationTemplate<{ alarm?: [number | null, number | null]; history?: (number)[]; kind?: "temperature" | "co2" | "humidity" | string; name?: string; space?: string; unit?: string; updatedAt?: string | number | Date; value?: number; warn?: [number | null, number | null] }> };

The templates that ship with the viewer, registered under these names