Fix path highlight for neo icons

This commit is contained in:
saurabhg772244
2024-10-10 10:23:06 +05:30
parent 5ecd12de1c
commit 71d6ded224
4 changed files with 7 additions and 1 deletions

View File

@@ -106,6 +106,8 @@ export const iconCircle = async (
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
}
iconShape.attr('class', 'icon-neo');
updateNodeBounds(node, iconShape);
node.intersect = function (point) {

View File

@@ -115,6 +115,8 @@ export const iconRounded = async (
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
}
iconShape.attr('class', 'icon-neo');
updateNodeBounds(node, iconShape);
node.intersect = function (point) {

View File

@@ -127,6 +127,8 @@ export const iconSquare = async (
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
}
iconShape.attr('class', 'icon-neo');
updateNodeBounds(node, iconShape);
node.intersect = function (point) {

View File

@@ -120,7 +120,7 @@ const getStyles = (
filter: ${options.dropShadow};
}
[data-look="neo"].icon-shape path {
[data-look="neo"].icon-shape .icon-neo path {
stroke: ${options.useGradient ? 'url(' + svgId + '-gradient)' : options.nodeBorder};
filter: ${options.dropShadow};
}