-
Notifications
You must be signed in to change notification settings - Fork 335
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
Theme Editor #108
base: master
Are you sure you want to change the base?
Theme Editor #108
Conversation
…t frame is always a power of 2 which is required by the codec
run container as a service
Looks neat! |
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.
// containerWidth = document.querySelector('#preview').clientWidth,
aspectRatio = height/width;
// containerWidth = containerWidth > 0 ? containerWidth : 640;
Is how I run this since that would actually cause the halfbars to offset to the right by a certain - annoying amount
although oddly just deleting 50 or so pixel from Client Width fixes the bar widths. I'll have to look into it.
@brizandrew we use your thing btw - very handy
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.
The change in preview.js also has an odd effect of shrinking the backgrounds width when updating the caption text
The biggest issue for gaining widespread usage for this tool in my newsroom was the problem of editing JSON for non-coders. Even if all they wanted to change was a single image, they needed to open the JSON file. With this version, any user can edit themes and upload files to the proper directory on the server without needing the full server access required previously.
You can see a working version of this builder (with the actually audiogram generation disabled) on my website. And read more about these changes on my Medium post.
This PR also includes contributions by qrkourier.