@annotorious/openseadragon 3.6.8 → 3.6.10

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.
@@ -2015,7 +2015,7 @@ const Wy = (r, t) => {
2015
2015
  if (e) {
2016
2016
  const { fill: i, fillOpacity: n, stroke: s, strokeWidth: o, strokeOpacity: a } = e;
2017
2017
  let l = "";
2018
- return i && (l += `fill:${i};`, l += `fill-opacity:${n || "0.25"};`), s && (l += `stroke:${s};`, l += `stroke-width:${o || "1"};`, l += `stroke-opacity:${a || "1"};`), l;
2018
+ return i && (l += `fill:${i};`), n || n === 0 ? l += `fill-opacity:${n}` : i && (l += "fill-opacity:0.25"), s && (l += `stroke:${s};`, l += `stroke-width:${o || "1"};`, l += `stroke-opacity:${a || "1"};`), l;
2019
2019
  }
2020
2020
  }, xo = (r, t = 0) => {
2021
2021
  const { minX: e, minY: i, maxX: n, maxY: s } = r;
@@ -7808,7 +7808,7 @@ const iv = (r, t) => {
7808
7808
  if (e) {
7809
7809
  const { fill: i, fillOpacity: n, stroke: s, strokeWidth: o, strokeOpacity: a } = e;
7810
7810
  let l = "";
7811
- return i && (l += `fill:${i};`, l += `fill-opacity:${n || "0.25"};`), s && (l += `stroke:${s};`, l += `stroke-width:${o || "1"};`, l += `stroke-opacity:${a || "1"};`), l;
7811
+ return i && (l += `fill:${i};`), n || n === 0 ? l += `fill-opacity:${n}` : i && (l += "fill-opacity:0.25"), s && (l += `stroke:${s};`, l += `stroke-width:${o || "1"};`, l += `stroke-opacity:${a || "1"};`), l;
7812
7812
  }
7813
7813
  }, bh = (r, t = 0) => {
7814
7814
  const { minX: e, minY: i, maxX: n, maxY: s } = r;