When restoring the graph state, labels that contain icons are renamed to 'fn'
See original GitHub issueIssue type
Bug report
Environment info
- Cytoscape.js version : 3.8.4
- Browser/Node.js & version : latest Chrome
Current (buggy) behaviour
When saving the graph state using cy.json() and then restoring the graph state using cy.json(json), labels that contain icons are renamed to ‘fn’.
Desired behaviour
The state should be restored without changing the labels.
Minimum steps to reproduce
In the demo, click on any node and notice the label change. https://output.jsbin.com/xerowokidu
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Undo- all folders on desktop renamed - Microsoft Community
- Open File Explorer (Windows Key+E) and right click the Desktop folder. ... - Have a look if there are any entries under...
Read more >Labels - GitLab Docs
Changed labels are immediately visible to other users, without refreshing the page, on the following: Epics; Incidents; Issues; Merge requests. To assign or ......
Read more >Logix 5000 Controllers Function Block Diagram
The Logix Designer application automatically determines the order of execution for the function blocks in a routine when: • Verifying a function block...
Read more >Add legend to axes - MATLAB legend - MathWorks
This MATLAB function creates a legend with descriptive labels for each plotted data series. ... The axes object contains 2 objects of type...
Read more >Built-in Macro Functions - ImageJ
This function has the advantage of not closing the "Log" or "Results" ... using the specified label and default state (true or false)....
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
I would generally avoid calling
cy.json()
with non-serialisable data. It wouldn’t be congruent with use ofcy.json()
as a getter. You could replace thecy.json(style)
call withcy.style()
.Thanks! My style doesn’t change and it is defined as an object. This solved my issue in a satisfactory way:
cy.json(json); cy.style(myPredefinedStyle);