documentationfor yFiles for HTML 2.5

Converting the Demos for Old Browsers

The source code of the demos and tutorials uses ES2015 and newer syntax. This means that they will work out-of-the-box in modern browsers, but will require transpilation in order to run in older browsers.

Also, the yFiles for HTML library uses the Promise API of ES2015 that is not supported in some older browsers. Therefore, an additional shim file has to be referenced in order to make these features available.

The yFiles for HTML package contains a convenient npm/Grunt script that will transpile all ES2015 demos to ECMAScript Level 5, and reference an ECMAScript Level 5 polyfill.

To try the demos and tutorials in older browsers, navigate to the deployment/demos-es5 directory, and run the following commands:

npm install
npm run-script demos-es5

This will create an additional top-level es5 directory containing the transpiled demos.