Repository navigation
feat(viz): layout() refuses area/tile/text and unresolved companions (PLOT-GG-001 M1) - #7065
Merged
Merged
Conversation
…d not resolve (PLOT-GG-001 M1) layout() laid geom_area, geom_tile and geom_text out as points: raw x/y rows and scales trained on them, with no stat_align, stacking, tile bounds or labels. It now refuses each with Error::UnsupportedLayer until the ggplot_build() resolution of that geom lands. Beside such a layer it also refuses, first, every companion it would not resolve (the G1 guard from #6968): any geom but geom_point, any stat but identity on that point, and a point with a missing, text, short or infinite x/y column. Cut from #6968 @ 63f7fd5: marks.rs MarkKind (Area/Tile/Text arms), any_marks, require_modelled_companions, unsupported_companion, unsupported_point_stat, require_point_companion (without the xmin/xmax/ymin/ymax arm: those aesthetics are not on Aes here), require_point_column; ggplot2_marks_oracle.rs companion tests 1272-1632 over the three geoms that have a constructor. New in slice: require_resolved, the module doc, and the tests that now expect the unresolved refusal where the source expected a layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
§13.11 rung 1 — quorum shadow verdict Shadow mode: this records a verdict and merges nothing. A refusal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it adds
BuiltGGPlot::layout() refuses geom_area, geom_tile and geom_text with Error::UnsupportedLayer instead of laying them out as raw points, and first refuses every companion layer it would not resolve (any geom but geom_point, any stat but identity, a point with a missing, text, short or infinite x/y column). Cut from #6968 @ 63f7fd5. 4 files, +548/-0 (marks.rs, ggplot.rs, mod.rs, ggplot2_marks_oracle.rs with 10 new tests).
Verification
ont-delta: none (typed refusals in layout(); no contract or ontology row changes)
Closes #7062
Closes #7063
Closes #7064
Refs #6909
keep-open: #6909 is the master ticket; rows remain
🤖 Generated with Claude Code