g
Size: a a a
ID
И
МВ
ID
ID
И
ID
МВ
ID
ID
МВ
МВ
auto times_range = timeLinesCount.iota
.map!(v => flooredBeginTime + v*timeLineDuration)
.map!(time_to_position);
// draw duration grid
times_range.each!((t, v) {
context.drawLine(
Line(
Point(v, rect.position.y),
Point(v, rect.position.y + rect.size.height)
)
);
});
context.stroke();
//....
/// draw duration labels
context.setColor(BLACK);
context.setFontSize(14);
times_range.each!((t, v) {
auto labelText = format_time_label(t);
context.moveToPoint(Point(v + 1, rect.position.y + rect.size.height - 16));
context.showText(labelText);
});
МВ