mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 02:27:05 +02:00
code refactor
This commit is contained in:
@@ -814,17 +814,17 @@ export const lex = {
|
||||
};
|
||||
|
||||
const getTypeFromVertex = (vertex: FlowVertex) => {
|
||||
if (vertex?.img) {
|
||||
if (vertex.img) {
|
||||
return 'imageSquare';
|
||||
}
|
||||
if (vertex?.icon) {
|
||||
if (vertex?.form === 'circle') {
|
||||
if (vertex.icon) {
|
||||
if (vertex.form === 'circle') {
|
||||
return 'iconCircle';
|
||||
}
|
||||
if (vertex?.form === 'square') {
|
||||
if (vertex.form === 'square') {
|
||||
return 'iconSquare';
|
||||
}
|
||||
if (vertex?.form === 'rounded') {
|
||||
if (vertex.form === 'rounded') {
|
||||
return 'iconRounded';
|
||||
}
|
||||
return 'icon';
|
||||
|
Reference in New Issue
Block a user