ComicScreenGrid constructor
ComicScreenGrid(})
Creates a ComicScreenGrid.
Implementation
ComicScreenGrid(
double pitch,
double radius,
this.dpr, {
this.staggered = true,
double rowFactor = .5,
}) : devicePitch = _snap(pitch * dpr, staggered),
deviceRow = math.max(
1,
(_snap(pitch * dpr, staggered) * rowFactor).round(),
),
radius = radius * _snap(pitch * dpr, staggered) / (pitch * dpr);