@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/cli.cjs +1 -1
- package/dist/index.cjs +3 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/d3.ts +2 -7
package/package.json
CHANGED
package/src/d3.ts
CHANGED
|
@@ -4890,8 +4890,6 @@ export function renderVenn(
|
|
|
4890
4890
|
.attr('fill-opacity', 0.35)
|
|
4891
4891
|
.attr('stroke', setColors[i])
|
|
4892
4892
|
.attr('stroke-width', 2)
|
|
4893
|
-
.attr('class', 'venn-fill-circle')
|
|
4894
|
-
.attr('data-line-number', String(vennSets[i].lineNumber))
|
|
4895
4893
|
.style('pointer-events', 'none') as d3Selection.Selection<
|
|
4896
4894
|
SVGCircleElement,
|
|
4897
4895
|
unknown,
|
|
@@ -4959,12 +4957,9 @@ export function renderVenn(
|
|
|
4959
4957
|
.attr('fill', 'white')
|
|
4960
4958
|
.attr('fill-opacity', 0)
|
|
4961
4959
|
.attr('class', 'venn-region-overlay')
|
|
4960
|
+
.attr('data-line-number', regionLineNumber != null ? String(regionLineNumber) : '0')
|
|
4962
4961
|
.attr('clip-path', `url(#${clipId})`);
|
|
4963
4962
|
|
|
4964
|
-
if (regionLineNumber != null) {
|
|
4965
|
-
el.attr('data-line-number', String(regionLineNumber));
|
|
4966
|
-
}
|
|
4967
|
-
|
|
4968
4963
|
if (excluded.length > 0) {
|
|
4969
4964
|
// Mask subtracts excluded circles so only the exact region shape highlights
|
|
4970
4965
|
const maskId = `vvm-${key}`;
|
|
@@ -4986,7 +4981,7 @@ export function renderVenn(
|
|
|
4986
4981
|
|
|
4987
4982
|
const showRegionOverlay = (idxs: number[]) => {
|
|
4988
4983
|
const key = [...idxs].sort((a, b) => a - b).join('-');
|
|
4989
|
-
overlayEls.forEach((el, k) => el.attr('fill-opacity', k === key ? 0
|
|
4984
|
+
overlayEls.forEach((el, k) => el.attr('fill-opacity', k === key ? 0 : 0.55));
|
|
4990
4985
|
};
|
|
4991
4986
|
const hideAllOverlays = () => {
|
|
4992
4987
|
overlayEls.forEach(el => el.attr('fill-opacity', 0));
|