@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.cjs CHANGED
@@ -20968,7 +20968,7 @@ function renderVenn(container, parsed, palette, isDark, onClickItem, exportDims)
20968
20968
  const circleEls = [];
20969
20969
  const circleGroup = svg.append("g");
20970
20970
  circles.forEach((c, i) => {
20971
- 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");
20971
+ 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");
20972
20972
  circleEls.push(el);
20973
20973
  });
20974
20974
  const defs = svg.append("defs");
@@ -21003,10 +21003,7 @@ function renderVenn(container, parsed, palette, isDark, onClickItem, exportDims)
21003
21003
  );
21004
21004
  regionLineNumber = ov?.lineNumber ?? null;
21005
21005
  }
21006
- 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})`);
21007
- if (regionLineNumber != null) {
21008
- el.attr("data-line-number", String(regionLineNumber));
21009
- }
21006
+ 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})`);
21010
21007
  if (excluded.length > 0) {
21011
21008
  const maskId = `vvm-${key}`;
21012
21009
  const mask = defs.append("mask").attr("id", maskId);
@@ -21020,7 +21017,7 @@ function renderVenn(container, parsed, palette, isDark, onClickItem, exportDims)
21020
21017
  }
21021
21018
  const showRegionOverlay = (idxs) => {
21022
21019
  const key = [...idxs].sort((a, b) => a - b).join("-");
21023
- overlayEls.forEach((el, k) => el.attr("fill-opacity", k === key ? 0.3 : 0));
21020
+ overlayEls.forEach((el, k) => el.attr("fill-opacity", k === key ? 0 : 0.55));
21024
21021
  };
21025
21022
  const hideAllOverlays = () => {
21026
21023
  overlayEls.forEach((el) => el.attr("fill-opacity", 0));