Possible Performance Issues in Large Angular Applications
Angular performance may degrade when the app embedding the yFiles component (or any other
component for that matter) contains a performance-intensive update check. This typically occurs when
there are many components in the app. This is because Angular taps into every event listener,setTimeout
,
requestAnimationFrame
, setInterval
- essentially any running code - and subsequently runs its change
detection. If the change detection is resource-intensive and numerous events occur, the application slows down,
especially with mousemove
and similar events.
In order to disable change detection, the GraphComponent
can be run "outside of Angular". Please see
the corresponding knowledge base article and the Angular CLI
demo for details.
UglifyJS May Corrupt Unicode Characters in the Library Code
By default, UglifyJS replaces Unicode characters with UTF8 unless
the ascii_only: true option is set.
This breaks pre-defined Unicode character ranges used in the SvgExport
feature of yFiles, causing the export of
SVGs, bitmaps, and PDFs, and printing documents with such characters to fail silently.
To prevent this issue, either avoid uglifying the yFiles for HTML library (as it is already uglified) or use the
ascii_only: true
option.