package styled-ppx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type length = [
  1. | `ch of float
  2. | `em of float
  3. | `ex of float
  4. | `rem of float
  5. | `vh of float
  6. | `vw of float
  7. | `vmin of float
  8. | `vmax of float
  9. | `px of int
  10. | `pxFloat of float
  11. | `cm of float
  12. | `mm of float
  13. | `inch of float
  14. | `pc of float
  15. | `pt of int
  16. | `zero
  17. | `percent of float
]
type calc_value = [
  1. | length
  2. | `calc of [ length | `add of calc_value * calc_value | `sub of calc_value * calc_value | `mult of calc_value * calc_value ]
  3. | `min of t array
  4. | `max of t array
  5. | `num of float
]
and t = [
  1. | length
  2. | `calc of [ length | `add of calc_value * calc_value | `sub of calc_value * calc_value | `mult of calc_value * calc_value ]
  3. | `min of t array
  4. | `max of t array
]
val ch : 'a -> [> `ch of 'a ]
val em : 'a -> [> `em of 'a ]
val ex : 'a -> [> `ex of 'a ]
val rem : 'a -> [> `rem of 'a ]
val vh : 'a -> [> `vh of 'a ]
val vw : 'a -> [> `vw of 'a ]
val vmin : 'a -> [> `vmin of 'a ]
val vmax : 'a -> [> `vmax of 'a ]
val px : 'a -> [> `px of 'a ]
val pxFloat : 'a -> [> `pxFloat of 'a ]
val cm : 'a -> [> `cm of 'a ]
val mm : 'a -> [> `mm of 'a ]
val inch : 'a -> [> `inch of 'a ]
val pc : 'a -> [> `pc of 'a ]
val pt : 'a -> [> `pt of 'a ]
val zero : [> `zero ]
val toString : [< `calc of [< `add of [< `calc of 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'c * 'c | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'c * 'c | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'c * 'c | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ch cm em ex inch mm pc percent pt px pxFloat rem vh vmax vmin vw zero ] as 'a -> string
val calc_value_to_string : [< `calc of [< `add of 'a * 'a | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of [< `calc of 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'c | `min of 'd Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ch cm em ex inch mm pc percent pt px pxFloat rem vh vmax vmin vw zero ] as 'd Belt.Array.t as 'c | `min of 'd Belt.Array.t | `mm of Js.Float.t | `mult of 'a * 'a | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'a * 'a | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'c | `min of 'd Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'a -> string
val string_of_calc_min_max : [< `add of [< `calc of 'a | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of [< `calc of 'a | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'c | `min of 'd Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ch cm em ex inch mm pc percent pt px pxFloat rem vh vmax vmin vw zero ] as 'd Belt.Array.t as 'c | `min of 'd Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'b * 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'c | `min of 'd Belt.Array.t | `mm of Js.Float.t | `mult of 'b * 'b | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'b * 'b | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'a -> string
val minmax_to_string : [< `calc of [< `add of [< `calc of [< `add of [< `calc of 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'c * 'c | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'c * 'c | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'c * 'c | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ch cm em ex inch mm pc percent pt px pxFloat rem vh vmax vmin vw zero ] as 'a * 'a | `mult of 'a * 'a | `sub of 'a * 'a ] | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero max min ] -> string
OCaml

Innovation. Community. Security.