@diagrammo/dgmo 0.5.4 → 0.5.5

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 CHANGED
@@ -20951,7 +20951,7 @@ function renderVenn(container, parsed, palette, isDark, onClickItem, exportDims)
20951
20951
  const circleEls = [];
20952
20952
  const circleGroup = svg.append("g");
20953
20953
  circles.forEach((c, i) => {
20954
- const el = circleGroup.append("circle").attr("cx", c.x).attr("cy", c.y).attr("r", c.r).attr("fill", setColors[i]).attr("fill-opacity", 0.35).attr("stroke", setColors[i]).attr("stroke-width", 2).attr("class", "venn-fill-circle").attr("data-line-number", String(vennSets[i].lineNumber)).style("pointer-events", "none");
20954
+ const el = circleGroup.append("circle").attr("cx", c.x).attr("cy", c.y).attr("r", c.r).attr("fill", setColors[i]).attr("fill-opacity", 0.35).attr("stroke", setColors[i]).attr("stroke-width", 2).style("pointer-events", "none");
20955
20955
  circleEls.push(el);
20956
20956
  });
20957
20957
  const defs = svg.append("defs");
@@ -20986,10 +20986,7 @@ function renderVenn(container, parsed, palette, isDark, onClickItem, exportDims)
20986
20986
  );
20987
20987
  regionLineNumber = ov?.lineNumber ?? null;
20988
20988
  }
20989
- const el = overlayGroup.append("rect").attr("x", 0).attr("y", 0).attr("width", width).attr("height", height).attr("fill", "white").attr("fill-opacity", 0).attr("class", "venn-region-overlay").attr("clip-path", `url(#${clipId})`);
20990
- if (regionLineNumber != null) {
20991
- el.attr("data-line-number", String(regionLineNumber));
20992
- }
20989
+ const el = overlayGroup.append("rect").attr("x", 0).attr("y", 0).attr("width", width).attr("height", height).attr("fill", "white").attr("fill-opacity", 0).attr("class", "venn-region-overlay").attr("data-line-number", regionLineNumber != null ? String(regionLineNumber) : "0").attr("clip-path", `url(#${clipId})`);
20993
20990
  if (excluded.length > 0) {
20994
20991
  const maskId = `vvm-${key}`;
20995
20992
  const mask = defs.append("mask").attr("id", maskId);
@@ -21003,7 +21000,7 @@ function renderVenn(container, parsed, palette, isDark, onClickItem, exportDims)
21003
21000
  }
21004
21001
  const showRegionOverlay = (idxs) => {
21005
21002
  const key = [...idxs].sort((a, b) => a - b).join("-");
21006
- overlayEls.forEach((el, k) => el.attr("fill-opacity", k === key ? 0.3 : 0));
21003
+ overlayEls.forEach((el, k) => el.attr("fill-opacity", k === key ? 0 : 0.55));
21007
21004
  };
21008
21005
  const hideAllOverlays = () => {
21009
21006
  overlayEls.forEach((el) => el.attr("fill-opacity", 0));