initialize() { if (GlobalConfiguration.object.fixedRandomSeed) { //set seed to produce always the same graphs
seedrandom('Francy!', { global: true });
}
}
const canvasId = `Canvas-${this.data.canvas.id}`; this.element = d3.select(`svg#${canvasId}`); // check if the canvas is already present if (!this.element.node()) { // create a svg element detached from the DOM!
Logger.debug(`(${this.context.instanceId}) Creating Canvas [${canvasId}]...`); this.element = this.parent.append('svg')
.classed('francy-canvas', true)
.attr('xmlns', 'http://www.w3.org/2000/svg')
.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink')
.attr('id', canvasId);
}
// cannot continue if canvas is not present if (!this.element.node()) { thrownew Error(`Oops, could not create canvas with id [${canvasId}]... Cannot proceed.`);
}
let removeMenuId = `graphSettings-removeMenu-${self.data.canvas.id}`; // remove menu if renderer is disabled
self.context.renderingManager.subscribe(RENDERING_EVENTS.STATUS, r => { if (!r.enable) { this.parentClass.MainMenu.removeMenuEntry('graph-settings-entry');
}
}, removeMenuId);
}
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.