package toffee

  1. Overview
  2. Docs
CSS layout engine for OCaml (Flexbox, Grid, Block)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mosaic-0.1.0.tbz
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9

doc/toffee.style/Style/Grid_placement/Line/index.html

Module Grid_placement.LineSource

Sourceval into_origin_zero_ignoring_named : t Geometry.Line.t -> int -> Grid.Origin_zero_placement.t Geometry.Line.t

into_origin_zero_ignoring_named line explicit_track_count converts both start and end placements to origin-zero coordinates, ignoring named lines.

Applies into_origin_zero_placement_ignoring_named to both the start and end placements.

into_origin_zero line explicit_track_count converts both start and end placements to origin-zero coordinates.

Applies into_origin_zero_placement to both the start and end placements.

Raises Failure if either placement is Named_line or Named_span. Named lines must be resolved before calling this function.

Sourceval is_definite : t Geometry.Line.t -> bool

is_definite line returns true if the line placement is definite.

A line placement is definite if at least one of the start or end positions is a non-zero line index or a named line.