I'm using this package in one of my Angular application. Presently, I need to import "d3" package and set it to window variable to make lasso work. A snippet of code is as follows
import * as d3 from "d3";
...
...
@Component()
export class mycomp {
constructor() {
window["d3"] = d3;
}
I'm using this package in one of my Angular application. Presently, I need to import "d3" package and set it to window variable to make lasso work. A snippet of code is as follows
Does anyone here think this can be done a little differently?