Hi team im have a very small question, i have this code:
constructor(private mapper: any, private applyCallback: (arg0: INode) => void) {
super()
/** @type {GanttMapper} */
this.mapper = new GanttMapper(datamodel);
/** @type {function(INode):void} */
this.applyCallback = applyCallback;
// create the dummy node
this.dummyNode = new SimpleNode();
// switch off the default template
//type RouterClass = typeof ;
//interface RouterDerived extends RouterClass { }
console.log("routerClass");
this.template = new IVisualTemplate({
createVisual() {
return null;
},
updateVisual() {
return null;
}
});}
but in the part:
this.template = new IVisualTemplate({
createVisual() {
return null;
},
updateVisual() {
return null;
}
});
im have an error and the error is this: Cannot create an instance of an abstrac class in JS this code is working fine but im trying to migrate it in angular and is not working.
im read the other part of same issues but i cant solved it...... im try all tipes of replays but is not working. Thanks all.

IVisualTemplateon a website with Java source code, but why are you using Java code in JavaScript? docs.yworks.com/yfilesjavafx/doc/javadoc/com/yworks/yfiles/view/…IVisualTemplatecode