-
Notifications
You must be signed in to change notification settings - Fork 46
Andrew/dimensions checks + PDF Fix #294
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
Conversation
@@ -361,7 +361,7 @@ async def _img_from_response(self, response): | |||
"marginBottom": 0.1, | |||
"marginLeft": 0.1, | |||
"marginRight": 0.1, | |||
"preferCSSPageSize": False, | |||
"preferCSSPageSize": True, |
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.
👆 #289
@ayjayt Are there any blockers to merging this PR? It'll be easier for me to do end-to-end testing in Plotly.py once this is merged. |
Not to my knowledge, but since today is a holiday, I can review them tomorrow morning. I'd only be checking the CHANGELOG to make sure its accurate to the incoming version number. |
Two things in this PR:
New Mocker Functions
_mocker.py
it adds arguments for printing out the mock w/ parameterized width/scale/heightExample
$ uv run kaleido_mocker --parameterize_opts --output . --random 5 --n 15
the parameters are hardcoded right now, but certain values can be fixed by setting
--[format, scale, width, height] VALUE
. Otherwise, tons and tons of output. The command above, 5 mocks, 810 output files.Fix PDF page-size