August 10, 2019, 11:25am
in version 2.* a lot of figures are no longer supplied automatically,
I am using angular application, and I do not want to load the figures.js in the index.html file
I do want to import the file in the component itself.
please help me import this file.
I am using system.js to load the files.
August 10, 2019, 11:53am
I suggest that you copy the
extensionsTS/Figures.ts file into your project.
You might also consider deleting all of its code that you don’t need.
August 10, 2019, 12:01pm
copying the code is problematic,
because I want to get new version and maintaining code that I did not write sound bad practice
August 10, 2019, 12:14pm
Maybe you need to change the
extensionsTS/tsconfig.json file so that compilation produces the kind of JS file that you want.
August 10, 2019, 12:24pm
OK, I could load the file.
but I still get
August 10, 2019, 12:26pm
Ah, notice it is loading
go.js whereas elsewhere you are loading
August 10, 2019, 12:33pm
August 10, 2019, 12:37pm
When I changed
it start working,
But I do want to debug it before I work with release.
August 10, 2019, 3:06pm
Is there a solution for working in debug mode?
August 10, 2019, 4:21pm
Change the import in
Figures.ts to refer to “gojs”, instead of the relative path.
August 10, 2019, 6:17pm
any chance this is going to be changed in the next version?
August 10, 2019, 9:49pm
We will have to investigate. Does making that change allow you run with the library that you choose?
August 11, 2019, 3:25am
yes it will,
in my code I import from "gojs"
on development I use the debug version (defined in system.js"
on deploying I change file with the correct version. system.js