/** * Base constructor * * @typedef {Object} options * @property {String} options.appendTo - where the generated html/svg components will be attached to, default body * @property {Function} options.callbackHandler - this handler will be used to invoke actions from the menu, default console.log * @property {Object} context - the context of the application, usually a configuration and a rendering manager instance
*/
constructor({appendTo, callbackHandler}, context) { super({appendTo: appendTo, callbackHandler: callbackHandler}, context); /** * Stores the element * @type {object}
*/ this.element = undefined; /** * Stores the overlay div * @type {object}
*/ this.overlay = undefined; /** * Stores the parent div * @type {object}
*/ this.holder = undefined;
}
/** * @override
*/
initialize() { // we want to overlay everything, hence 'body' must be used this.overlay = d3.select('body').append('div').attr('class', 'francy-overlay'); this.holder = d3.select('body').append('div').attr('class', 'francy');
}
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.