anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.76k stars 425 forks source link

decorating images on nodes are all replaced with first in Firefox, Safari iPad (rotation), Chrome Dev #56

Closed gg4u closed 9 years ago

gg4u commented 11 years ago

Hi, I got this bug: I decorate nodes with external images. When I use the dev console in Chrome, I see all images are changed and become all the same.

I thought it was a behavior of console, but instead I have the same issue in iPad when I rotate the device 90° and firefox.

Anybody met the same issue? Can't figure out what it is...

anvaka commented 11 years ago

Do you have a code sample to reproduce?

gg4u commented 11 years ago

Hi Andrei,

thank you for helping, yes I do have a code sample: I send you a piece of code where I create a graph using 4 wiki articles. There may be redundant stuff of the initial code, however, the vivagraph part is inside onLoad() function.

You should place the html inside the sample folder of viva: /demos/other/

any suggestion, really much appreciated!

also, have you suggestions about using touch events? I see on ipad, listening to touch events is a bit slow (e.g. positioning a finger on a node, or on the canvas, is not much presice or fast in response).

I was playing with a delay to listen to a click or double click event in $(ui).click(function() { }

(not in this sample code)

but I read you've included touch events some months ago: could you please show an example?

On Wed, Oct 9, 2013 at 8:15 PM, Andrei Kashcha notifications@github.comwrote:

Do you have a code sample to reproduce?

— Reply to this email directly or view it on GitHubhttps://github.com/anvaka/VivaGraphJS/issues/56#issuecomment-25994757 .

Luigi Assom

Skype contact: oggigigi

gg4u commented 11 years ago

Hello Andrei, have you got time to give the code I sent you a little try?

anvaka commented 11 years ago

Hello. Sorry, I probably missed that email with code. Can you please resend it to me, and I'll take a look tonight.

gg4u commented 11 years ago

Hello. Sorry, I probably missed that email with code. Can you please resend it to me, and I'll take a look tonight.

Hi Andrei, maybe replying to notifications at github.com from gmail doesn't allow attachment? that'd be why you didn't received the code.

I forwarded and PM you in copy, thank you very much for helping !!!

Hi Andrei,

thank you for helping, yes I do have a code sample: I send you a piece of code where I create a graph using 4 wiki articles. There may be redundant stuff of the initial code, however, the vivagraph part is inside onLoad() function.

You should place the html inside the sample folder of viva: /demos/other/

any suggestion, really much appreciated!

also, have you suggestions about using touch events? I see on ipad, listening to touch events is a bit slow (e.g. positioning a finger on a node, or on the canvas, is not much presice or fast in response).

I was playing with a delay to listen to a click or double click event in $(ui).click(function() { }

(not in this sample code)

but I read you've included touch events some months ago: could you please show an example?

anvaka commented 10 years ago

So, I opened the file, which you sent. This is what I see: wiki screenshot

What should I do to reproduce a bug?

gg4u commented 10 years ago

Ok, if you open it in firefox, or also re-size the canvas in chrome and safari (e,g, by opening the dev tool or zoom in/out with the browser view options) you'll see that all the images are replaced with the last node's image (in this case, Albert Gleizes) Haven't test it in IE.

in your sample "create custom nodes" this behavior do not apply, and I couldn't figure out the cause of why it happens in this case. That's why I asked for you to kindly have a look.

I had the same behavior also in other occasions for uploading the graph dynamically; this sample is a static graph, and reproduce the error.

thank you for helping, really.

On Tue, Oct 22, 2013 at 4:56 AM, Andrei Kashcha notifications@github.comwrote:

So, I opened the file, which you sent. This is what I see: [image: wiki screenshot]https://github-camo.global.ssl.fastly.net/e044197d8f9266f2d8ac7b346a337b62f29be698/687474703a2f2f692e736e61672e67792f33704739692e6a7067

What should I do to reproduce a bug?

— Reply to this email directly or view it on GitHubhttps://github.com/anvaka/VivaGraphJS/issues/56#issuecomment-26773840 .

Luigi Assom

Skype contact: oggigigi

anvaka commented 9 years ago

Hi @gg4u . I'm going through old issues and found this. Sorry for dropping the ball. I saw your demos and think you have figured out the solution?

Going to close this issue now, but feel free to reopen if you still experience this problem.