createSvgTree method

  1. @override
SvgTreeNode createSvgTree(
  1. ChantContext ctxt, [
  2. ChantLayoutElement? source
])
inherited

Generates a lightweight in-memory SVG-like tree.

Implementation

@override
SvgTreeNode createSvgTree(ChantContext ctxt, [ChantLayoutElement? source]) {
  var attributes = getSvgAttributes(ctxt, source);
  if (source != null) attributes['data-source'] = source;
  return QuickSvg.createSvgTree("use", attributes);
}