@bimdata/viewer 2.15.0-beta.8 → 2.15.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/state.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ declare namespace BDV {
|
|
|
90
90
|
/**** annotations ****/
|
|
91
91
|
readonly annotations: StateAnnotation[];
|
|
92
92
|
readonly annotationsMap: Map<string, StateAnnotation>;
|
|
93
|
-
addAnnotation(annotation:
|
|
93
|
+
addAnnotation(annotation: StateAnnotationData, options?: any): StateAnnotation;
|
|
94
94
|
removeAnnotation(annotation: StateAnnotation, options?: any): boolean;
|
|
95
95
|
clearAnnotations(group?: string): void;
|
|
96
96
|
}
|
|
@@ -234,6 +234,18 @@ declare namespace BDV {
|
|
|
234
234
|
plan?: ApiPlan;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
interface StateAnnotationData {
|
|
238
|
+
id: string;
|
|
239
|
+
draggable: boolean;
|
|
240
|
+
x: number;
|
|
241
|
+
y: number;
|
|
242
|
+
z: number;
|
|
243
|
+
component: any;
|
|
244
|
+
props?: any;
|
|
245
|
+
modelIds: number[];
|
|
246
|
+
group: string | null;
|
|
247
|
+
}
|
|
248
|
+
|
|
237
249
|
interface StateAnnotation {
|
|
238
250
|
id: string;
|
|
239
251
|
draggable: boolean;
|