@aibee/crc-bmap 0.6.11 → 0.6.13
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/lib/bmap.cjs.min.js +2 -2
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +5 -3
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +2 -2
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +2 -2
- package/lib/bmap.min.js.map +3 -3
- package/lib/src/utils/index-db.d.ts +1 -1
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -4011,6 +4011,7 @@ var GraphicLayer = class extends Layer {
|
|
|
4011
4011
|
}
|
|
4012
4012
|
createGraphic(options) {
|
|
4013
4013
|
const graphic = new Graphic(this.context, options);
|
|
4014
|
+
graphic.userData.data = options;
|
|
4014
4015
|
this.add(graphic);
|
|
4015
4016
|
this.graphicMap.set(options.id, graphic);
|
|
4016
4017
|
return graphic;
|
|
@@ -4420,6 +4421,7 @@ var Floor = class extends Object3D8 {
|
|
|
4420
4421
|
}
|
|
4421
4422
|
createGround(options) {
|
|
4422
4423
|
const ground = new Graphic(this.context, options);
|
|
4424
|
+
ground.userData.data = options;
|
|
4423
4425
|
this.addGrounds([ground]);
|
|
4424
4426
|
}
|
|
4425
4427
|
addGrounds(grounds) {
|
|
@@ -10902,8 +10904,8 @@ function createStore(storeName, db = _db) {
|
|
|
10902
10904
|
db.createObjectStore(storeName, { keyPath: "key" });
|
|
10903
10905
|
}
|
|
10904
10906
|
}
|
|
10905
|
-
function closeDb() {
|
|
10906
|
-
|
|
10907
|
+
function closeDb(db = _db) {
|
|
10908
|
+
db?.close();
|
|
10907
10909
|
_db = null;
|
|
10908
10910
|
}
|
|
10909
10911
|
|
|
@@ -11359,7 +11361,7 @@ var AibeeLoader = class {
|
|
|
11359
11361
|
return floor;
|
|
11360
11362
|
}
|
|
11361
11363
|
async clear() {
|
|
11362
|
-
|
|
11364
|
+
closeDb(this.db ?? void 0);
|
|
11363
11365
|
}
|
|
11364
11366
|
dispose() {
|
|
11365
11367
|
this.clear();
|