@aibee/crc-bmap 0.0.17 → 0.0.19
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/example/src/main.ts +9 -4
- package/lib/bmap.cjs.min.js +2 -2
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +9 -9
- 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/bmap.d.ts +5 -4
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -2077,9 +2077,9 @@ var BMap = class extends EventDispatcher6 {
|
|
|
2077
2077
|
this.context.render();
|
|
2078
2078
|
}
|
|
2079
2079
|
loadGraphics(_0) {
|
|
2080
|
-
return __async(this, arguments, function* ({ brand, project, phase, building, floor, ts }) {
|
|
2080
|
+
return __async(this, arguments, function* ({ brand, project, phase, building, floor, ts, resource_type_list }) {
|
|
2081
2081
|
const { apiDomain, apiPath: { floorGraphic }, apiInfo } = this.config;
|
|
2082
|
-
const url = `${apiDomain}${floorGraphic}?brand=${brand}&project=${project}&phase=${phase}&building=${building}&floor=${floor}&ts=${ts}&resource_type_list
|
|
2082
|
+
const url = `${apiDomain}${floorGraphic}?brand=${brand}&project=${project}&phase=${phase}&building=${building}&floor=${floor}&ts=${ts}&resource_type_list=${resource_type_list}`;
|
|
2083
2083
|
const data = yield fetch(url, apiInfo).then((res) => res.json()).then((res) => res.data).then((res) => {
|
|
2084
2084
|
(res || []).map((item) => item.info = JSON.parse(item.info));
|
|
2085
2085
|
return res || [];
|
|
@@ -2110,18 +2110,18 @@ var BMap = class extends EventDispatcher6 {
|
|
|
2110
2110
|
return data;
|
|
2111
2111
|
});
|
|
2112
2112
|
}
|
|
2113
|
-
getFloorKey({ brand, project, phase, building, floor, ts }) {
|
|
2114
|
-
const floorKey = `${brand}-${project}-${phase}-${building}-${floor}-${ts}`;
|
|
2113
|
+
getFloorKey({ brand, project, phase, building, floor, ts, resource_type_list }) {
|
|
2114
|
+
const floorKey = `${brand}-${project}-${phase}-${building}-${floor}-${ts}-${resource_type_list}`;
|
|
2115
2115
|
return floorKey;
|
|
2116
2116
|
}
|
|
2117
2117
|
load(_0) {
|
|
2118
|
-
return __async(this, arguments, function* ({ brand, project, phase, building, floor, ts }) {
|
|
2119
|
-
const floorKey = this.getFloorKey({ brand, project, phase, building, floor, ts });
|
|
2118
|
+
return __async(this, arguments, function* ({ brand, project, phase, building, floor, ts, resource_type_list }) {
|
|
2119
|
+
const floorKey = this.getFloorKey({ brand, project, phase, building, floor, ts, resource_type_list });
|
|
2120
2120
|
if (this.floorDataMap.get(floorKey)) {
|
|
2121
2121
|
return;
|
|
2122
2122
|
}
|
|
2123
2123
|
const [data, buildGround] = yield Promise.all([
|
|
2124
|
-
this.loadGraphics({ brand, project, phase, building, floor, ts }),
|
|
2124
|
+
this.loadGraphics({ brand, project, phase, building, floor, ts, resource_type_list }),
|
|
2125
2125
|
this.loadBuildingGround({ brand, project, phase, building })
|
|
2126
2126
|
]);
|
|
2127
2127
|
if (buildGround) {
|
|
@@ -2170,8 +2170,8 @@ var BMap = class extends EventDispatcher6 {
|
|
|
2170
2170
|
return { curFloor, graphics };
|
|
2171
2171
|
}
|
|
2172
2172
|
switchFloor(_0) {
|
|
2173
|
-
return __async(this, arguments, function* ({ brand, project, phase, building, floor, ts }) {
|
|
2174
|
-
const floorKey = this.getFloorKey({ brand, project, phase, building, floor, ts });
|
|
2173
|
+
return __async(this, arguments, function* ({ brand, project, phase, building, floor, ts, resource_type_list }) {
|
|
2174
|
+
const floorKey = this.getFloorKey({ brand, project, phase, building, floor, ts, resource_type_list });
|
|
2175
2175
|
const curFloorData = this.floorDataMap.get(floorKey);
|
|
2176
2176
|
if (curFloorData) {
|
|
2177
2177
|
const buildingKey = this.getBuildingKey({ brand, project, phase, building });
|