-
Notifications
You must be signed in to change notification settings - Fork 226
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
Add optional image and caption attributes to Connector and Cable/Bundle nodes #137
Add optional image and caption attributes to Connector and Cable/Bundle nodes #137
Conversation
kvid
commented
Jul 30, 2020
•
edited
Loading
edited
- This fixes issue [feature] Include connector pinout diagrams #27.
- Edit: All scaling attributes described in [feature] Include connector pinout diagrams #27 (comment) are now implemented.
Nice. You could build upon #136 and set |
to match the one for connectors.
Suggestions by @kvid
remove superfluous temporary variables `pinlist`, `wirerow`
d93c2eb
to
b903863
Compare
This rebase is not yet done, as it depends on your answer(s) to my #136 (comment) about styling, but this PR is ready for testing the functionality. Finalizing this PR also depends on your answer to my #27 (comment) that also might require a few changes. |
330ce39
to
80e3b5b
Compare
Adding helper function for each of these with a leading <tdX> tag that instructs nested_html_table() to inject attributes to the <td> tag.
- Stereo phone plug (a slight modification of a public domain image from https://openclipart.org/detail/192396/headphones-connctor ). - Cable cross-section drawn to match the wire colors in example 08. - Make the cable shield color match the one in the cross-section. - Images for embedding in the connector and cable nodes are stored in a new resources folder.
It specifies how an image will use any extra space available in its cell. Allowed values are one of these strings: - FALSE : keep image its natural size. (Default) - TRUE : scale image uniformly to fit. - WIDTH : expand image width to fill. - HEIGHT : expand image height to fill. - BOTH : expand both image width and height to fill. The value is sent to Graphviz as a scale attribute to the <img> tag. Note that there is normally no extra height in the image cell.
It is a list containing minimum width and minimum height of the image cell. To obtain more available space in the image cell, this size must be set greater than the natural size of the image.
When True, enclose the image cell in a table without borders to avoid narrow borders when the fixed width is less than the node width.
Moving common code into html_colorbar() helper function.
5399ad5
to
9c933d1
Compare
4093a6a
to
e3fb39f
Compare
@kvid if you are wondering why this is marked as closed:
Please let me know how you want to proceed! |
@formatc1702 wrote:
I'm sorry, I misunderstood your rebase plan. I thought you were planning an interactive rebase to fix the commit history and keep the feature branch - not merge it into
I could edit the PR, but only the name, not the base branch. If I had understood you would delete your feature branch, then I would have changed the base branch of my PR before your deleted your feature branch.
I have already created PR #153 that is now ready for review. |
Ahh, I see. |