@buerli.io/core 0.6.0 → 0.6.1-beta.0
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.
|
@@ -42,12 +42,9 @@ const graphicApi = (set, get, buerliApi) => ({
|
|
|
42
42
|
* Only the geometry which does not already exist will be created (@see createGeometryIfNotCached).
|
|
43
43
|
*/
|
|
44
44
|
const containerIds = Object.getOwnPropertyNames(graphic.containers);
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
createGeometry().catch();
|
|
45
|
+
for (const id of containerIds) {
|
|
46
|
+
api.geometry.createGeometryIfNotCached(id);
|
|
47
|
+
}
|
|
51
48
|
// console.log('graphicContainers after add:', Object.getOwnPropertyNames(get().graphic.containers))
|
|
52
49
|
},
|
|
53
50
|
cleanupGraphicRecords: () => {
|
|
@@ -38,12 +38,9 @@ export const graphicApi = (set, get, buerliApi) => ({
|
|
|
38
38
|
* Only the geometry which does not already exist will be created (@see createGeometryIfNotCached).
|
|
39
39
|
*/
|
|
40
40
|
const containerIds = Object.getOwnPropertyNames(graphic.containers);
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
createGeometry().catch();
|
|
41
|
+
for (const id of containerIds) {
|
|
42
|
+
api.geometry.createGeometryIfNotCached(id);
|
|
43
|
+
}
|
|
47
44
|
// console.log('graphicContainers after add:', Object.getOwnPropertyNames(get().graphic.containers))
|
|
48
45
|
},
|
|
49
46
|
cleanupGraphicRecords: () => {
|
|
@@ -14,6 +14,7 @@ declare type Pending = {
|
|
|
14
14
|
name: string;
|
|
15
15
|
stamp: number;
|
|
16
16
|
args?: any;
|
|
17
|
+
promise?: Promise<any>;
|
|
17
18
|
};
|
|
18
19
|
export declare type CadData = {
|
|
19
20
|
connected: boolean;
|
|
@@ -33,6 +34,7 @@ export declare const cadApi: (set: StoreApi<DrawingState>['setState'], get: Stor
|
|
|
33
34
|
}>) => void;
|
|
34
35
|
addPending: (name: string, options?: {
|
|
35
36
|
args?: any;
|
|
37
|
+
promise?: Promise<any>;
|
|
36
38
|
}) => string;
|
|
37
39
|
removePending: (id: string) => void;
|
|
38
40
|
setConnected: (connected: boolean) => void;
|