I am new to goJS and I am currently working on upgrading the version from 1.7.25 to 2.0.8. Currently I am importing the Figure.ts to my angular project in which the file calls GraphObject.make is used like
bodyShape = GraphObject.make(Shape, refernceToFigureName, { object to describe fill and stroke
});
I am not sure what else I need to do besides importing the Figure.ts file to make it compatible here.
Would I need to use the Shape.getFigureGenerator and pass it in the static make function?
I don’t understand your situation. extensionsTS/Figures.ts does not call GraphObject.make. So your code that calls make must be in your app when you are defining a piece of a template. Is that correct?
So what is refernceToFigureName ? Shouldn’t that just be a string such as “Cloud”?
So for the bodyShape = GraphObject.make(Shape, refernceToFigureName , { object to describe fill and stroke
});
the referenceToFigureName is now Parallelogram1, which is not supported in the goJS core now and have to reference the Figure.ts in the extension, but I am getting error still even after I do import ‘gojs/extensionsTS/Figures’;