MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / constructor

Method constructor

client_dist/ganclient.js:1368–1376  ·  view source on GitHub ↗

* Simple constructor. Subclasses should call @superInit(options) as well. * see why here: https://stackoverflow.com/questions/43595943/why-are-derived-class-property-values-not-seen-in-the-base-class-constructor * * template: constructor(d3Parent: D3Sel, eventHandler?: SimpleEven

(d3parent, eventHandler)

Source from the content-addressed store, hash-verified

1366 * @param {SimpleEventHandler} eventHandler a global event handler object or 'null' for local event handler
1367 */
1368 constructor(d3parent, eventHandler) {
1369 this.id = _etc_Util__WEBPACK_IMPORTED_MODULE_0__["Util"].simpleUId({});
1370 this.parent = d3parent;
1371 // If not further specified - create a local event handler bound to the bas element
1372 this.eventHandler = eventHandler ||
1373 new _etc_SimpleEventHandler__WEBPACK_IMPORTED_MODULE_1__["SimpleEventHandler"](this.parent.node());
1374 // Object for storing internal states and variables
1375 this._visibility = { hidden: false };
1376 }
1377 // protected createSvgLayers(layers=['bg','main','fg']){
1378 // this._layers = {}
1379 // this.base = SVG.group(this.parent,

Callers

nothing calls this directly

Calls 1

simpleUIdMethod · 0.45

Tested by

no test coverage detected