CodeExplorer styleNode example
$placeLabel =
$this->
escape($placeLabel);
$labelShape = '((%s))';
if ($isInitial) { $labelShape = '([%s])';
} $placeNodeName = 'place'.
$placeId;
$placeNodeFormat = '%s'.
$labelShape;
$placeNode =
sprintf($placeNodeFormat,
$placeNodeName,
$placeLabel);
$placeStyle =
$this->
styleNode($meta,
$placeNodeName,
$hasMarking);
return [$placeNodeName,
$placeNode,
$placeStyle];
} private function styleNode(array
$meta, string
$nodeName, bool
$hasMarking = false
): string
{ $nodeStyles =
[];
if (\
array_key_exists('bg_color',
$meta)) { $nodeStyles[] =
sprintf( 'fill:%s',