@@ -29,6 +29,7 @@ import { extractCfgQuick } from '@eagleoutice/flowr/control-flow/extract-cfg';
2929import { getConfig , isVerbose , Settings } from '../settings' ;
3030import type { DiagramSelectionMode } from '../diagram' ;
3131import type { CfgSimplificationPassName } from '@eagleoutice/flowr/control-flow/cfg-simplification' ;
32+ import { MermaidDefaultMarkStyle } from '@eagleoutice/flowr/util/mermaid/info' ;
3233
3334export class FlowrServerSession implements FlowrSession {
3435
@@ -186,7 +187,7 @@ export class FlowrServerSession implements FlowrSession {
186187
187188 return normalizedAstToMermaid ( response . results . normalize . ast , {
188189 includeOnlyIds : selectionMode === 'hide' ? selectionNodes : undefined ,
189- mark : selectionMode === 'highlight' ? new Set ( selectionNodes ?. values ( ) . map ( v => String ( v ) ) ) : undefined ,
190+ mark : selectionMode === 'highlight' ? selectionNodes : undefined ,
190191 } ) ;
191192 }
192193
@@ -200,8 +201,9 @@ export class FlowrServerSession implements FlowrSession {
200201 } ;
201202 return cfgToMermaid ( extractCfgQuick ( normalize ) , normalize , {
202203 includeOnlyIds : selectionMode === 'hide' ? selectionNodes : undefined ,
203- mark : selectionMode === 'highlight' ? new Set ( selectionNodes ?. values ( ) . map ( v => String ( v ) ) ) : undefined ,
204- simplify : simplified
204+ mark : selectionMode === 'highlight' ? selectionNodes : undefined ,
205+ simplify : simplified ,
206+ markStyle : MermaidDefaultMarkStyle
205207 } ) ;
206208 }
207209
0 commit comments