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

Method constructor

client_dist/ganpaint.js:1469–1477  ·  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

1467 * @param {SimpleEventHandler} eventHandler a global event handler object or 'null' for local event handler
1468 */
1469 constructor(d3parent, eventHandler) {
1470 this.id = _etc_Util__WEBPACK_IMPORTED_MODULE_0__["Util"].simpleUId({});
1471 this.parent = d3parent;
1472 // If not further specified - create a local event handler bound to the bas element
1473 this.eventHandler = eventHandler ||
1474 new _etc_SimpleEventHandler__WEBPACK_IMPORTED_MODULE_1__["SimpleEventHandler"](this.parent.node());
1475 // Object for storing internal states and variables
1476 this._visibility = { hidden: false };
1477 }
1478 // protected createSvgLayers(layers=['bg','main','fg']){
1479 // this._layers = {}
1480 // this.base = SVG.group(this.parent,

Callers

nothing calls this directly

Calls 1

simpleUIdMethod · 0.45

Tested by

no test coverage detected