package cascade

  1. Overview
  2. Docs
CSS generation and manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.1.0.tbz
sha256=c303651e043ed8d807d3d6f2c3745233e792ce7c30d562c9717d284e1bf5ac6a
sha512=681847993deabdc3899f62268b3cbc931623abca0413b0e8873e8568ec25a86c4d3db7f7f0e6a6a6bf24dbfdc7df314dae07ae66d49f76f3dd6953a4381bbf54

doc/cascade/Cascade/Rule_candidate/index.html

Module Cascade.Rule_candidateSource

Fast local rewrite candidate generation for Rule_graph.

Sourceval enumerate : ?touching:Rule_graph.node_id list -> ctx:Ctx.t -> finalize:(Stylesheet.rule -> Stylesheet.rule) -> Rule_graph.t -> Rule_rewrite.candidate list

enumerate ?touching ~ctx ~finalize graph returns bounded positive-saving rewrite candidates. When touching is supplied, only buckets that mention at least one of those nodes are expanded; this is the incremental scheduler's neighborhood refresh after a commit. The list is intentionally local and heuristic; every candidate still commits through Rule_graph.rewrite.