Line data Source code
1 : part of '../foss_glyph.dart';
2 :
3 : /// Three dots on the centre line, standing in for omitted items.
4 : class EllipsisGlyph extends FossGlyph {
5 : /// Creates an ellipsis glyph in [color].
6 2 : const EllipsisGlyph(super.color);
7 :
8 : // The dots are filled, so the stroke weight only sets the pen's baseline.
9 3 : @override
10 : double get _stroke => 0.09;
11 :
12 3 : @override
13 : void _draw(_Pen pen) => pen
14 3 : ..dot(0.21, 0.5)
15 3 : ..dot(0.5, 0.5)
16 3 : ..dot(0.79, 0.5);
17 : }
|