Coder Social home page Coder Social logo

cytoscape.js-canvas's People

Contributors

alexnault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cytoscape.js-canvas's Issues

Readme: Over / under

It might be good to mention in the readme that this extension can be used to place a canvas under or over Cytoscape. The intro sentence makes it sound like it's just for the under case, until you see later that you can set the z-index.

Not Working ?

i just paste the demo code, in my project but nothing happen, no error, background not rendered

[QUESTION] Does this work with node.js canvas package?

Hi. I'm trying to render a graph from cytoscape into a canvas using Node.js but to get as PNG I need a browser context which actually I cannot have because I'm using it with Node.js (headless).

So I'm wondering if this extension works with package canvas so that way I can render the graph and store it into a file.

Thanks in advance

cytoscape and canvas misalign when devicePixelRatio is not equal to one

I've recently noticed some confusing behaviour when using the canvas extension to draw a shape behind an element. When the page is loaded while the devicePixelRatio of the window is not equal to one the element and associated shape are "out of line".

I notice this on normal displays with chrome and firefox when the resolution is increased by pressing "CMD =" (before the page is loaded) and on retina displays with chrome, firefox and safari.
If the resolution is decreased on a retina display by pressing "CMD -" until devicePixelRatio equals one the element and share can be made to line up on chrome and firefox (after reloading the page).
Safari does not change the devicePixelRatio when zooming the browser window instead it only shows the expected result when the devicePixelRatio is equal to one.

From what I could gather from the code the canvas extension does take the value of devicePixelRatio into account when calculating the dimensions of the canvas element.

How should I handle this issue? @maxkfranz @ANault

For your connivance I've created a demo based off this repo for you to try out:
https://github.com/wrnrlr/debug-canvas
Just clone and open the demo

Does not work with latest Cytoscape JS

If you substitute in the newest minified version of the Cytoscape js library it will not render in the same way (the background image is missing).

Suggested action: Readme update to reflect limiting the max version supported

Add Click Event Listener

Is there a way to add a on click event listener with some meta that can tell me what element has been clicked, so we can have some interactivity with the elements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.