@watergis/maplibre-gl-terradraw 0.7.2 → 0.8.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.
@@ -3293,7 +3293,7 @@ class Di {
3293
3293
  styles: {}
3294
3294
  })
3295
3295
  ), this.defaultMode = "default"), this.isExpanded = this.options.open === !0, this.terradraw = new Ii({
3296
- adapter: new Be({ map: t }),
3296
+ adapter: new Be({ map: t, ...this.options.adapterOptions }),
3297
3297
  modes: i
3298
3298
  }), this.terradraw.start(), this.controlContainer = document.createElement("div"), this.controlContainer.classList.add("maplibregl-ctrl"), this.controlContainer.classList.add("maplibregl-ctrl-group"), i.forEach((d) => {
3299
3299
  d.mode !== "default" && this.addTerradrawButton(d.mode);
@@ -3735,8 +3735,7 @@ function le(r) {
3735
3735
  var Vi = k * k / 2, Et = Math.PI / 180;
3736
3736
  function de(r) {
3737
3737
  const t = r.length - 1;
3738
- if (t <= 2)
3739
- return 0;
3738
+ if (t <= 2) return 0;
3740
3739
  let e = 0, i = 0;
3741
3740
  for (; i < t; ) {
3742
3741
  const o = r[i], s = r[i + 1 === t ? 0 : i + 1], n = r[i + 2 >= t ? (i + 2) % t : i + 2], a = o[0] * Et, l = s[1] * Et, d = n[0] * Et;