@disputas/diagram
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -90,3 +90,5 @@ 'use strict'; | ||
var isBuilding = activePropositionId && activePropositionId !== propositionId; | ||
var hasConnections = getArgumentsByPropositionId(propositionId).length > 0; | ||
var args = getArgumentsByPropositionId(propositionId); | ||
var hasConnections = args.length > 0; | ||
var isRelevance = args.some(function (arg) { return arg.type === "relevance"; }); | ||
return (React__default["default"].createElement(React__default["default"].Fragment, null, | ||
@@ -129,3 +131,5 @@ React__default["default"].createElement("foreignObject", { width: width, ref: containerRef, height: height, x: x, id: "node_".concat(propositionId), y: y, onMouseOver: function () { | ||
constants.NodeAttrs.borderWidth, | ||
}, propositionId: propositionId, categories: categories, hideContext: hideContext })))); | ||
}, propositionId: propositionId, categories: isRelevance | ||
? categories | ||
: categories.filter(function (cat) { return cat.shadowName !== "relevance"; }), hideContext: hideContext })))); | ||
}; | ||
@@ -132,0 +136,0 @@ var Edge = function (_a) { |
{ | ||
"name": "@disputas/diagram", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "D3 and Dagre based diagram", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109724
2211