Module

BetaCalendars.GridAlgebra.Blank

Package
purescript-betacalendars-grid-algebra
Repository
mateopedersen/purescript-betacalendars-grid-algebra

Undated planner surfaces with no synthetic civil dates.

Blank grids are a separate primitive from dated month grids. Each cell is identified only by its zero-based row and column. A printable undated example is the Beta Calendars blank calendar.

#BlankCell Source

type BlankCell = { column :: Int, row :: Int }

A location in an undated blank surface.

#BlankGrid Source

type BlankGrid = { cells :: Array BlankCell, columns :: Int, rows :: Int }

A rectangular undated grid.

#blankGrid Source

blankGrid :: Int -> Int -> Either LayoutError BlankGrid

Construct a 5×7, 6×7, or other positive rectangular blank grid.

#blankLayout Source

blankLayout :: LayoutSpec -> Either LayoutError LayoutMetrics

Compute printable geometry for an undated grid.

#blankCellArea Source

blankCellArea :: LayoutMetrics -> Number

Area of one blank cell in square millimeters.

#blankWritingArea Source

blankWritingArea :: LayoutMetrics -> Number

Total modeled area available in the grid cells.

#compareBlankLayouts Source

compareBlankLayouts :: LayoutSpec -> LayoutSpec -> Either LayoutError { cellAreaDifference :: Number, first :: LayoutMetrics, second :: LayoutMetrics }

Compare the per-cell area of two valid blank layouts.