Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Update to Angular 4 breaks the diagram (Read 2245 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Update to Angular 4 breaks the diagram
May 17th, 2017 at 2:59pm
Print Post  
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.


Quote:
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 | 151 Downloads )
Untitled_001.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Update to Angular 4 breaks the diagram
Reply #1 - May 17th, 2017 at 3:45pm
Print Post  
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.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint