Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/francy/js/packages/francy-core/src/component/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 17.3.2023 mit Größe 1015 B image not shown  

Quelle  d3.js   Sprache: JAVA

 
import BaseComponent from './base';
import {Logger} from '../util/logger';

/**
 * This {Component} class is used to check whether d3 is available or not.
 * d3 is mandatory, as it used d3 to implement the basic graphics for {Francy}.
 *
 * @extends {BaseComponent}
 */

export default class D3Component extends BaseComponent {

  /**
   * Base constructor
   *
   * @typedef {Object} Options
   * @property {Boolean} verbose prints extra log information to console.log, default false
   * @property {Boolean} mandatory whether the component is mandatory or optional
   */

  constructor(mandatory, delay, retries) {
    super(mandatory, delay, retries);
  }

  /**
   * Handles d3 initialization and checks whether the dependency is available or not.
   * @public
   */

  initialize() {
    let global = (0, eval)('this');
    if (!('d3' in global)) {
      throw new Error('D3 is not imported and Francy won\'t work without it... please import D3 v5+ library.');
    }
    Logger.debug('D3 is available...');
  }
}

Messung V0.5
C=90 H=85 G=87

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.