venue-js 1.2.0-next.3 → 1.2.0-next.4
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/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3072,7 +3072,9 @@ var CameraManager = class {
|
|
|
3072
3072
|
return this.map.getView();
|
|
3073
3073
|
};
|
|
3074
3074
|
setView = (value) => {
|
|
3075
|
-
this.map
|
|
3075
|
+
if (this.map) {
|
|
3076
|
+
this.map.setView(value);
|
|
3077
|
+
}
|
|
3076
3078
|
};
|
|
3077
3079
|
animateTo = (view, options = {}, step) => {
|
|
3078
3080
|
this.map.animateTo(view, options, step);
|
|
@@ -3421,7 +3423,7 @@ var Element3DRenderer = class extends EventTarget {
|
|
|
3421
3423
|
const color = feature3.properties.style.polygonFill ?? colorOptions ?? "#ffffff";
|
|
3422
3424
|
if (color === "transparent") return;
|
|
3423
3425
|
const material = this.getOrCreateMaterialByColor(color);
|
|
3424
|
-
const altitude =
|
|
3426
|
+
const altitude = 0;
|
|
3425
3427
|
const height = feature3.properties.height ?? heightOptions ?? HEIGHT_METER;
|
|
3426
3428
|
const bottomHeight = feature3.properties.bottomHeight ?? bottomHeightOptions ?? 0;
|
|
3427
3429
|
const extrudedPolygon = this.threeLayer.toExtrudePolygon(
|
|
@@ -3429,9 +3431,6 @@ var Element3DRenderer = class extends EventTarget {
|
|
|
3429
3431
|
{ asynchronous: true, ...options, height, bottomHeight, altitude },
|
|
3430
3432
|
material
|
|
3431
3433
|
);
|
|
3432
|
-
extrudedPolygon.on("click", (e) => {
|
|
3433
|
-
console.log(e.target.options.polygon.id);
|
|
3434
|
-
});
|
|
3435
3434
|
const topLineStrings = [
|
|
3436
3435
|
new maptalks4.LineString(outerRing),
|
|
3437
3436
|
...innerRings.map((innerRing) => new maptalks4.LineString(innerRing))
|
|
@@ -3452,7 +3451,7 @@ var Element3DRenderer = class extends EventTarget {
|
|
|
3452
3451
|
);
|
|
3453
3452
|
return [extrudedPolygon, topLines, bottomLines];
|
|
3454
3453
|
} catch (err) {
|
|
3455
|
-
|
|
3454
|
+
return [];
|
|
3456
3455
|
}
|
|
3457
3456
|
};
|
|
3458
3457
|
try {
|
|
@@ -4014,7 +4013,7 @@ var RendererManager = class extends EventTarget {
|
|
|
4014
4013
|
this.addElementsToManager(escalator.id, _elements, escalator.properties.ordinal);
|
|
4015
4014
|
}
|
|
4016
4015
|
} catch (err) {
|
|
4017
|
-
console.
|
|
4016
|
+
console.warn(`cannot create escalator`, err.message);
|
|
4018
4017
|
}
|
|
4019
4018
|
}
|
|
4020
4019
|
this.changeLevelByOrdinal(this.currentOrdinals);
|