@maxgraph/core
    Preparing search index...

    Variable GlobalConfigConst Experimental

    GlobalConfig: { i18n: I18nProvider; logger: Logger } = ...

    Global configuration for maxGraph.

    subject to change or removal. maxGraph's global configuration may be modified in the future without prior notice.

    Type declaration

    • i18n: I18nProvider

      Configure the I18nProvider to use for all translated messages.

      Available implementations provided by maxGraph are:

      To change the i18n provider, set this property to an instance of the desired provider:

      // To use the i18n system provided by maxGraph
      GlobalConfig.i18n = new TranslationsAsI18n();

      NoOpI18n

      0.17.0

    • logger: Logger

      Configure the logger to use for all log messages.

      Available implementations provided by maxGraph are:

      To change the logger, set this property to an instance of the desired logger:

      // To direct logs to the browser console
      GlobalConfig.logger = new ConsoleLogger();
      // To direct logs to MaxLog
      GlobalConfig.logger = new MaxLogAsLogger();

      NoOpLogger

    0.11.0