New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: unify default strokeColor for outline shapes #1169
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1169 +/- ##
==========================================
- Coverage 64.77% 62.06% -2.72%
==========================================
Files 64 59 -5
Lines 7515 7112 -403
Branches 1760 1708 -52
==========================================
- Hits 4868 4414 -454
- Misses 2521 2615 +94
+ Partials 126 83 -43
|
± Registry diff
📊 PerformanceKeyNote that each bar component rounds up to the nearest 100ms, so each full bar is an overestimate by up to 400ms.
If a row has only one bar instead of four, that means it's not a trio and the bar just shows the total time spent for that example, again rounded up to the nearest 100ms. Data
|
Deploying with Cloudflare Pages
|
Right, this is because we just allocate We may want to come up with a more stable sampling strategy? But I'm not sure if that's possible or worth it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for taking so long to review this! The code changes look great. For the changes to the generated diagrams/
we might want to update some variation
s though... would be nice if Penrose had a way to generate a grid of different variations to let you quickly pick one that looks good.
Gotta merge #1287! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the registry diagram variations! I'm good to merge this, but just for future reference, I did want to note the few specific diagrams that still seem to have meaningful changes by this PR:
-
curve-examples/cubic-bezier.svg
(looks upside down now?) -
geometric-queries/closest-point/test-group.svg
(now the circle and the rectangle overlap) -
geometric-queries/closest-point/test.svg
(now the polyline and the triangle overlap) -
geometry-domain/siggraph-teaser.svg
(now the angle$qpr$ is a bit narrow) -
graph-domain/textbook/sec1/fig10.svg
(the graph is planar but now not drawn so) -
graph-domain/textbook/sec1/fig12.svg
(the labels RRP4 and RRP41 look ambiguous now) -
graph-domain/textbook/sec1/fig13.svg
(the Team 2 and Team 5 labels look weird) -
graph-domain/textbook/sec1/fig8b.svg
(a lot of the labels are now clumped) -
graph-domain/textbook/sec2/fig11c.svg
(the graph is planar but no longer drawn so) -
walk-on-spheres/nested-estimator.svg
(the spheres are now all clumped together on one side)
To clarify, I don't even necessarily think that it's worth changing the variations in this PR; I'm mostly just writing these down to note the sorts of ways that diagrams can qualitatively change when we update the variation. I think it's an interesting research problem to think about ways that we can make it more manageable to maintain our registry going forward under this sort of change.
Description
Related issue/PR: #430
This PR makes
#000
the defaultstrokeColor
for "outline" shapes such asLine
,Path
, andText
.Path
is consider an outline shape out of uncertainty that the path might not be closed.Implementation strategy and design decisions
Examples with steps to reproduce them
See deployment
allShapes-allShapes
example.Checklist
diagrams/
folderOpen questions
Looks like this impacted variations of many diagrams. Why? (cc: @samestep) Looks like even when the Style props remain the same, as long as there's a change to the defaults, the resulting diagrams will change.