New versions of chrome i.e. 26 and 27 doesnot supporting some features
Newer versions of Chrome i.e. 26 and 27 doesnot support
- fill property of circle, rectangle.
- Drag/ events associated with circle/rectangle/image.
I had updated the KineticJS to v4.5.2, even though the above things are not supported in chrome, is that the bug from google side or KineticJS can handle such cases.
Thanks Umesh Kanyal
Newer versions of Chrome broke older versions of Kinetic. Are things working correctly for you now that you've updated to the latest KineticJS version?
No, it is not working... The above mentioned issues are still there with v4.5.2.
OS? Fill and DD work for me on Mac OSX
OS is 64 bit Windows 7 Professional
Do you have any known issues with 64 bit windows 7?
In my experience, 64 bit windows 7 is very buggy in general. I'll look into this as soon as I can though
I've noticed this affecting lines as well.
Take this for instance:
http://jsfiddle.net/Robodude/VNwW5/1/ Lines aren't being drawn in chrome: Firefox and IE it works fine
I'm about to uninstall chrome and test it out in an older version of the browser
Just tested it out in Version 26.0.1410.43 of Chrome on Win 7 64 bit and the colorfull lines are there but not in newer versions of the browser.
Chrome 26 seems to be fine for us as well, 27 is having this issue and also the drag & drop issue. These should be submitted to Chrome team.
I have already submitted this issue to chrome but didn't got any reply from them...
I got the same issue that the circle is displayed as rectangle. Strangely I have this only on my last project and not my previous which both uses the latest KineticJS. I have debugged and I am pretty sure I haven't made mistakes. I use 64-bit Windows 8 with chrome.
Ow now I have updated to the latest (27.0.1453.94) it's working perfectly again!
Experiencing the same issue. Noticed Rects not displaying at all (Windows 7 x64). Uninstalled Chrome (was at Version 27.0.1453.94 m), reboot, re-install (same version). Now, some Rects are drawing, but Circles are now rendering as unfilled Rects.... totally breaks Kinetic for me. Also, looks like some mouse event handling (click) is broken (though I haven't confirmed that this isn't caused by me somewhere).
UPDATE: So, played around with my code, changing Circle stroke property from "white" or "#ffffff" to "#fffffe" renderers correctly (as opposed to solid white rectangle)... strange. Some Rects still missing.
UPDATE 2: Definitely chrome issue. Responsible for mouse events issue, as well. Running chrome with --disable-accelerated-2d-canvas fixes all issues.
Same issues here with 27.0.1453.94 m on W7x64. No issues with 27.0.1453.93 on Mint Linux 13 :)
I have posted that I didn't had issues anymore with the Chrome (27.0.1453.94) version but now my circles are rectangles again :/ Strangely 2 other projects with the same latest KineticJS works still perfectly on the (27.0.1453.94) Chrome version
Today I updated my chrome version to (27.0.1453.94 m), the above stated issues by me i.e. circle fillcolor and drag event associated to circle were working perfectly fine, however got another issue where as stated below:-
I have created a second layer over my background image, containing a group (having + and - images) to zoom in and zoom out the map. These images are not visible so cannot zoom in and zoom out the map..
Image drag drop is also not working...
Umesh, did you verify if drag and drop is working on the tutorials:
http://www.html5canvastutorials.com/kineticjs/html5-canvas-drag-and-drop-an-image-tutorial/
if so, then it's likely an issue with your code
Umesh, also, it's nearly impossible for circles to be rendered as rectangles. Very likely it's an issue with your code
So, I'm seeing the exact same thing where things aren't rendering, lines and rectangles specifically, in Chrome 27. I experience the exact thing that robodude demonstrates in his jsfiddle where lines don't show up as well as a bg rectangle not showing up. It works in firefox/IE/chrome < 27, but fails in Chrome 27.
In an effort to debug I've recreated how I create things in my application, just on a much simpler scale. Still creating a custom group, still grouping, but basic. I've found that the basics work just fine:
http://jsfiddle.net/tR8Fd/13/
I then took the relevant bits from the fiddle and manually added them to my application via the Chrome console, and it started not rendering everything, only the circles show up like before.
I've taken the toJSON from my application's stage and loaded it in a jsfiddle and while in my application the stage in question only renders the circles, in the fiddle it renders just fine. http://jsfiddle.net/j7YNK/1/
It would seem to be my code, yet at the same time, using reapersa's update on starting Chrome with the --disable-accelerated-2d-canvas arg fixed everything for me too.
So it's a Chrome problem, that I might be able to fix via code changes in my application and/or kineticjs? Unfortunately I can't expose my application.
I'm experiencing similar issues: Chrome Version 27.0.1453.94 m, Kinetic v4.5.2, Windows 8.
The following code renders a blue rectangle:
var chip = new Kinetic.Circle({ x: x, y: y, radius: 20, fill: 'white', stroke: 'blue', strokeWidth: 5 });
Remove the stroke and strokeWidth and it renders a proper white circle, so the stroke has something to do with it. It renders correctly in IE. It also rendered correctly in the previous version of Chrome.
Naturally, the Circle tutorial http://www.html5canvastutorials.com/demos/kineticjs/html5-canvas-kineticjs-circle-tutorial/index.php is properly rendering as a circle, so I don't know what to think.
Eric, I have tested the image drag and drop functionality on other browsers i.e.IE9 and Firefox 20 and it is working perfectly fine but in chrome 27 the images are not draggable. The newer versions of chrome i.e. 26 and 27 broke the drag drop functionality in chrome, it was working fine in older versions of chrome as well. The other issue is, I have created a second layer over my background image, containing a group (having + and - images) to zoom in and zoom out the map. These images are not visible so cannot zoom in and zoom out the map. This feature is also working fine in IE9 and Firefox 20 but not in chrome 27.