drawPoint method

  1. @override
MarkElement<ElementStyle> drawPoint(
  1. Attributes item,
  2. CoordConv coord
)
override

Implementation

@override
MarkElement<ElementStyle> drawPoint(Attributes item, CoordConv coord) {
  final point = coord.convert(item.position.last);
  final size = item.size ?? defaultSize;
  return CircleElement(
    center: point,
    radius: size / 2,
    style: getPaintStyle(item, (item.shape as PointShape).hollow,
        (item.shape as PointShape).strokeWidth, null, null),
    tag: item.tag,
  );
}