Skip to main content

Module meter

Module meter 

Source
Expand description

The stylesheet half of a meter: a proportion, drawn as a bar.

The markup is drawn by the quasi hosts (quasi-webview for this renderer), which own the vocabulary member. This module owns the trough and fill classes that markup carries and the rules that draw them. The trough was phase A before anything could describe one: an app drawing its own bar keeps these classes.

§Neither number is divided in markup

--meter-done and --meter-total reach the markup as themselves and progress_rules does the arithmetic. That is the property the residual seam needs, and chart states the reasoning in full: a residual is derived once from stand-in values, so a number WORKED OUT from two of them is not a stand-in any filler can find, and one request’s percentage bakes into the template. A number handed over whole stays a hole.

A bar that is full because it landed exactly and a bar that is full because it ran over are the same width and are not the same fact. With both integers in the markup the comparison is there to be read, and a stylesheet that wants to react can make it where it uses it, so no data-over flag is emitted. What an over-run should look like stays app taste: goingson says it with the danger tone, and a renderer that picked a stripe for everyone would be decorating rather than describing.

Constants§

METER_CLASSES
Every class a meter’s markup can carry.