package cascade

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.0.0.tbz
sha256=c11bbdc7ab0eee8c03cd162e3e7fd1cb20de62beb13342b3b150a89264ee0056
sha512=43fd97a55c3b1dc4db5c87aa1a5a047d902e902ab2064af3a7c5bf945ebc333f8cd90ecca8013c17be5b950498eace8e0094ee4319eba408285e2bec8d7cdf7b

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.