|
| bool | pulp::view::is_vector_kind (const std::string &type) |
| | True for every normalized IR type that represents a vector / path-like shape (svg path/rect/line, ellipse/circle, polygon/polyline/star, …), matched on the IR type string only so the classification is identical across figma/pencil/stitch/v0.
|
| std::optional< FidelityIssue > | pulp::view::check_image_sizing_fidelity (const FidelityContext &) |
| | No-skew: a BLEED sprite (render_bounds or asset_bleed) must be emitted at an aspect matching its source PNG; missing PNG dims → aspect-unverified.
|
| std::optional< FidelityIssue > | pulp::view::check_gross_size_divergence (const FidelityContext &) |
| | Gross-size: a node the user pinned on BOTH axes (SizingMode::fixed) must not be emitted >3x its source box; hug/fill/absolute/display:none self-skip.
|
| std::optional< FidelityIssue > | pulp::view::check_widget_intrinsic_size (const FidelityContext &) |
| | Widget-intrinsic-size: a recognized audio widget whose emitted box diverges >1.5x from its source intrinsic size (shape_width/height attrs, else style box).
|
| std::optional< FidelityIssue > | pulp::view::check_text_vertical_centering (const FidelityContext &) |
| | Text-vertical-centering: a SINGLE-LINE text given a reserved vertical slot (emitted box taller than one line, below the multi-line threshold) must be emitted vertically centered.
|
| void | pulp::view::run_fidelity_checks (const FidelityContext &ctx, std::vector< FidelityIssue > &sink) |
| | Run every registered fidelity check against ctx, appending findings to sink.
|
| void | pulp::view::check_vector_renderability (const IRNode &root, const std::vector< ImportDiagnostic > &diagnostics, const std::function< std::string(const IRNode &)> &node_id_of, std::vector< FidelityIssue > &sink) |
| | Vector-renderability: every visible vector/path-like node (svg path/rect/ line, ellipse, polygon, …) above an area threshold must map to a real renderable primitive — a rasterized asset, a native widget, child paint, or a visible fill — OR already carry an explicit unsupported diagnostic.
|
| std::size_t | pulp::view::count_strict_fidelity_failures (const std::vector< FidelityIssue > &issues) |
| | Number of findings that should fail --strict-fidelity.
|