Expand description
Numeric evaluation of entities: world anchors, drawable shapes and texts.
Built-in entities use their canonical geometry; dimensions are computed from the anchors they reference; plugin entities are evaluated from their compiled definition; entities whose plugin is missing, disabled or too old fall back to their stored standard representation and are read-only.
Structs§
- Ctx
- Evaluation context.
- Eval
Cache - Cache of evaluations keyed by entity.
- Evaluated
- Result of evaluating one entity.
Enums§
Constants§
- MAX_
REF_ DEPTH - Maximum reference depth while evaluating anchors of referenced entities.
Functions§
- evaluate
- Evaluate an entity.
- fill_
template - Fill
{prop}placeholders. - format_
measure - Format a measured value in the document’s display unit.
- format_
number - Format a number with at most
decimalsfraction digits, trimming zeros. - param_
value - Numeric parameter of any entity (
width,start.x,r, …), in its local units. - plugin_
for - Compatibility of an entity with the registered plugin type.