Comments (4)
queryEachTime indicates that the collection of included nodes should be query each time. (cy.nodes("....")) Which is quite heavy. Not sure whether you need that. I guess you are looking more in the order of updateOn = 'render'
.
if you are using the canvas approach, why do you need four canvases? Why not just render everything at once/
from cytoscape.js-layers.
-
I set queryEachaTime=true because I found that when I delete a node, the custom layer does not automatically update, and the custom tag of the deleted node still exists.
-
My requirement is to add node values, attribute values, and various labels to the node. The use of multiple layers is to update the canvas more efficiently. For example, if the label changes, I only need to update the label layer.
from cytoscape.js-layers.
Sorry, I noticed that when I upgraded the version, issue 1 has been fixed and I no longer need to set queryEachTime=true
from cytoscape.js-layers.
My requirement is to add node values, attribute values, and various labels to the node. The use of multiple layers is to update the canvas more efficiently. For example, if the label changes, I only need to update the label layer.
canvas is pretty fast, so I don't know whether you are getting any benefits because you also have overhead such as clearing and aligning each layer
from cytoscape.js-layers.
Related Issues (15)
- add support for PNG export
- Is it Possible to Get at the Canvas Layer that cytoscape Writes to? HOT 10
- Rendering on Every Change HOT 2
- Layers doesn't seems to be removed when node is (probably my fault..) HOT 12
- add basic headless support HOT 1
- optimize html and svg renderPerNode/renderPerEdge to only update the single node/edge
- updateOn renderer not working for renderPerEdge
- Offset of custom canvas position in exported graphics
- When the node exceeds 1000 +, it takes a long time to remove the node. Can you optimize it? thank you! HOT 2
- background color settings for export png HOT 2
- "ctxmenu" link in readme is wrong.
- How to restyle with renderPerEdge HOT 4
- How to renderPerEdge from Source to Target Positions HOT 4
- The HTML canvas layer has bugs thats halts the rendering of the badges at correct places HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cytoscape.js-layers.