-
Notifications
You must be signed in to change notification settings - Fork 17
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
text element option #43
Comments
Maybe it would be used for global label assigned to any element, for example when sharing scheme.
|
That's an interesting thought. So there are two alternatives:
|
|
I found this searching for a feature. +1 on some kind of document annotation mechanism, not terribly important really, but once there are more than a few switches and LEDs it gets a bit of work to figure out which are which. Especially for others if you are sharing. alto777 |
I like (1) If attached, they would move if the part moved, which would be nice. Also be nice to be able to to be attached (Relative Attribute) to a NET (e.g. Arduino Pin 11 - MOSI), should also be able to rotate and perhaps offset from attached object. Visually connect to part as suggested by @stevesigma. Should also allow an absolute position (Fixed Attribute) test box for Diagram notes, usage etc. |
random thought - just wanted to pin it here How about making the text note a mouse hover display (or when we click on the part (when the simulation is not running) |
That would help declutter (if you had lots of text labels), downside would be that any screen shots would not have the text visible. My 'too much of anything is just enough' and 'retched excess' gene says - Have both with a persistence attribute of static or dynamic. Of course, Fixed text objects (notes, tables, etc.) should be static. |
Of all the options above, I think a simple, independent (new) object that is just the text. How it is handled in zoom is up to the implementation (scales or remains fixed size) whatever is simpler. Text can have lots and lots of options (size, font, colour, alignment ...) - use the KISS principle. |
When you have lots of similar components on a screen you need some way to know what they are. eg. multiple stepper motors, multiple leds, multiple switches and buttons etc. This would make the diagrams far more useful and much better when sharing. Just a simple text element would be a significant improvement. |
Update: we have a proof-of-concept implementation of a https://wokwi.com/projects/341085054102930004 The details (element name, attrs, default behavior, etc) are subject to change - looking to get some feedback so we can ship this soon. |
Apparently, the current implementation breaks the text differently depending on the screen sizes (e.g. desktop v.s. mobile), so we need some deterministic method of defining the size of the text element. |
Having the option 2 from #43 (comment) would be really useful if those labels could be actually attached to wires - and exported as part of the logic analyzer files too. It would make the analyzer a lot more useful when debugging multiple signals at once. |
Thanks for the input @janoc, that's a good point! I'm curious - what have you been building/debugging with Wokwi? |
Trying some RP2040 PIO code. It seems Wokwi is the only thing around that has a sensible simulator available. |
For folks who ended up here while looking for documentation, the block of json in the diagram is:
With commas for easy pasting, a label that won't clash with led1, and a comment for documentation:
You can use un-recognised attributes, such as "docUrl" in the above code, in JSON for comments. |
Does the element have extra attributes like:
|
Would there be a possible way to change the text colour, or maybe the background colour would be more in keeping with it being a part (and thus not impacted by dark mode). I have it in dark mode hence the ask because the black text isn't very clear on the dark background. PS tried color attribute but no luck. |
Why attribute for proposed wokwi-text is called "text"? |
sometimes picture needs some text to save time
a label kind of feature which can be placed so that,
The text was updated successfully, but these errors were encountered: