in packages/network-navigator-powerbi/src/NetworkNavigatorVisual.ts [119:141]
constructor(options: VisualConstructorOptions, noCss = false) {
this.noCss = noCss;
this.host = options.host;
this.element = $(`<div style="height: 100%;"></div>`);
this.selectionManager = options.host.createSelectionManager();
// Add to the container
options.element.appendChild(this.element[0]);
this.selectionManager = this.host.createSelectionManager();
// Some of the css is in a css module (:local() {....}), this adds the auto generated class to our element
const className = MY_CSS_MODULE && MY_CSS_MODULE.locals && MY_CSS_MODULE.locals.className;
if (className) {
$(options.element).append($("<st" + "yle>" + MY_CSS_MODULE + "</st" + "yle>"));
this.element.addClass(className);
}
this._internalState = NetworkNavigatorState.create<NetworkNavigatorState>();
this.myNetworkNavigator = new NetworkNavigatorImpl(this.element, 500, 500);
this.attachEvents();
}