Ports lose styling when adding additional ports.
See original GitHub issueHello!
I’ve found an issue where adding ports to an Element seems to undo styling previously applied to other ports. Here’s an example:
elem.attr('[port="port_a"]/fill', 'rgb(200, 200, 0)')
elem.set('inPorts', [...elem.get('inPorts'), 'port_b'])
The styling on port_a
will go away.
Thanks!
EDIT: updating ports after styling is import for the application I’m working on because we deal with a lot of dynamic ports.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Add or remove ports from a broadcast domain
Display the ports that are currently assigned or unassigned to a broadcast domain by using the network port show command. · Add or...
Read more >how is port position saved and used in EA? - Sparx Systems
I hope somebody can help. I am adding ports to an element in EA via automation interface and the position of the port...
Read more >The new iMac's paltry port selection doesn't bode ... - Engadget
Multiple reports say the laptop will lose the much-maligned Touch Bar and get a new magnetic charger, among other things. Based on the...
Read more >Relative URL to a different port number in a hyperlink?
How about these: Modify the port number on click: <a href="/other/" onclick="javascript:event.target.port=8080">Look at another port</a>.
Read more >Supply Chain Latest: West Coast Ports to Cede Cargo to East ...
Charted Territory. relates to Cargo Shift to US East Coast May Be Permanent Loss for Pacific Ports. New Tools | Assessing supply chain ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you can pass ports directly throuht the constructor as well …
Good to hear it’s going well. You can define your own groups easily like this: