mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Fix path highlight for neo icons
This commit is contained in:
@@ -106,6 +106,8 @@ export const iconCircle = async (
|
|||||||
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
|
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iconShape.attr('class', 'icon-neo');
|
||||||
|
|
||||||
updateNodeBounds(node, iconShape);
|
updateNodeBounds(node, iconShape);
|
||||||
|
|
||||||
node.intersect = function (point) {
|
node.intersect = function (point) {
|
||||||
|
@@ -115,6 +115,8 @@ export const iconRounded = async (
|
|||||||
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
|
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iconShape.attr('class', 'icon-neo');
|
||||||
|
|
||||||
updateNodeBounds(node, iconShape);
|
updateNodeBounds(node, iconShape);
|
||||||
|
|
||||||
node.intersect = function (point) {
|
node.intersect = function (point) {
|
||||||
|
@@ -127,6 +127,8 @@ export const iconSquare = async (
|
|||||||
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
|
iconShape.selectAll('path').attr('style', `stroke: ${stylesMap.get('fill')}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iconShape.attr('class', 'icon-neo');
|
||||||
|
|
||||||
updateNodeBounds(node, iconShape);
|
updateNodeBounds(node, iconShape);
|
||||||
|
|
||||||
node.intersect = function (point) {
|
node.intersect = function (point) {
|
||||||
|
@@ -120,7 +120,7 @@ const getStyles = (
|
|||||||
filter: ${options.dropShadow};
|
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};
|
stroke: ${options.useGradient ? 'url(' + svgId + '-gradient)' : options.nodeBorder};
|
||||||
filter: ${options.dropShadow};
|
filter: ${options.dropShadow};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user