- Welcome, Guest. Please Login or Register
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing. We have released our Java Swing Pack.  
Page Index Toggle Pages: 1 Send Topic Print  
Update to Angular 4 breaks the diagram
Read 219 times

Shafi   Offline
YaBB Newbies
Posts: 23
Gender: male
I Love MindFusion!

Update to Angular 4 breaks the diagram
May 17th, 2017 at 3:59pm
We updated our code from Angular2 to Angular4, but the Mindfusion diagram-libary did not respond well to the update. The nodes fail to load show up properly. Please see image attached. Also there is an error thrown on console in dev tools.

ERROR DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
at MindFusion.Drawing.Image.draw (eval at <anonymous> (eval at webpackJsonp.56.module.exports (http://localhost:10050/scripts.bundle.js:1:1)), <anonymous>:1:63075)
at mdraw.Container.Container.draw (eval at <anonymous> (eval at webpackJsonp.56.module.exports (http://localhost:10050/scripts.bundle.js:1:1)), <anonymous>:1:56810)
at b.Diagram.repaint (eval at <anonymous> (eval at webpackJsonp.56.module.exports (http://localhost:10050/scripts.bundle.js:1:1)), <anonymous>:1:38937)
at proxy (eval at webpackJsonp.32.module.exports (http://localhost:10000/scripts.bundle.js:1:1), <anonymous>:496:14)
at ZoneDelegate.invokeTask (http://localhost:10050/vendor.bundle.js:128529:31)
at Object.onInvokeTask (http://localhost:10050/vendor.bundle.js:4478:37)
at ZoneDelegate.invokeTask (http://localhost:10050/vendor.bundle.js:128528:36)
at Zone.runTask (http://localhost:10050/vendor.bundle.js:128296:47)
at ZoneTask.invoke (http://localhost:10050/vendor.bundle.js:128591:38)
at timer (http://localhost:10050/vendor.bundle.js:129606:29)
defaultErrorLogger @ vendor.bundle.js:1443


Untitled_001.png (14 KB | 32 )
IP Logged    

Slavcho   Offline
God Member
Posts: 1103
Gender: male

Re: Update to Angular 4 breaks the diagram
Reply #1 - May 17th, 2017 at 4:45pm
Your migration might have changed the image URLs, see if the browser shows the image you are trying to draw if you paste image URL in the address bar.
IP Logged    
Page Index Toggle Pages: 1 Send Topic Print