mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-29 05:06:43 +02:00
update type check for getTypeFromVertex
This commit is contained in:
@@ -820,13 +820,13 @@ const getTypeFromVertex = (vertex: FlowVertex) => {
|
|||||||
return 'imageSquare';
|
return 'imageSquare';
|
||||||
}
|
}
|
||||||
if (vertex?.icon) {
|
if (vertex?.icon) {
|
||||||
if (vertex.form === 'circle') {
|
if (vertex?.form === 'circle') {
|
||||||
return 'iconCircle';
|
return 'iconCircle';
|
||||||
}
|
}
|
||||||
if (vertex.form === 'square') {
|
if (vertex?.form === 'square') {
|
||||||
return 'iconSquare';
|
return 'iconSquare';
|
||||||
}
|
}
|
||||||
if (vertex.form === 'rounded') {
|
if (vertex?.form === 'rounded') {
|
||||||
return 'iconRounded';
|
return 'iconRounded';
|
||||||
}
|
}
|
||||||
return 'icon';
|
return 'icon';
|
||||||
|
Reference in New Issue
Block a user