getSvgProps method

Map<String, dynamic> getSvgProps()

Implementation

Map<String, dynamic> getSvgProps() {
  return {
    'data-source-index': sourceIndex,
    'x': bounds.x,
    'y': bounds.y,
    'class': getCssClasses().trim(),
    'text-anchor': switch (textAnchor) {
      .center => 'middle',
      _ => textAnchor.name,
    },
  };
}