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
Resolve dataset options (can be scriptable) #121
Conversation
Deploying with Cloudflare Pages
|
Size Change: -52 B (0%) Total Size: 19.4 kB
|
Actually not going to add any tests at this point, because none of the options make sense as scriptable currently. The caption options are resolved in 2 places (dataset and element), and the first one determines the space while the 2nd one does the drawing. The should be merged somehow. Same story with borderWidth. So this would need further refactoring. |
@kurkle I agree. Believe me that I thought several times about that (I don't like it). I was thinking to move the size of the rect calculation after element creation but the buildData should be reviewed completely. |
Agreed about the buildData. I think it should be merged with element creation, and the available child rect calculation moved to element. Something like
So actually quite much the same as the buildData, expect createting elements on the fly. Label that a breaking change and do it in a major version. Maybe start using |
exactly!
I'll open an issue (tomorrow), if you agree, in order to do not forget for version 3.0. |
Before closing my laptop, I have preferred to submit the issue (I have also created the milestone 3.0.0 and added "breaking change" label because missing). |
Couple of fixtures fail locally (no spriting)
TODO: