GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — GlobalConfig | @maxgraph/core

  • GlobalConfig

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:

    • NoOpI18n - Default implementation that does nothing.
    • TranslationsAsI18n - Uses Translations to manage translations.

    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();

    Default

    NoOpI18n

    Since

    0.17.0

  • logger: Logger

    Configure the logger to use for all log messages.

    Available implementations provided by maxGraph are:

    • ConsoleLogger - Directs logs to the browser console.
    • NoOpLogger - Default implementation that does nothing.
    • MaxLogAsLogger - Directs logs to MaxLog.

    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();

    Default

    NoOpLogger

Since

0.11.0

  • Defined in util/config.ts:45

Settings

Member Visibility
  • Protected
  • Inherited
Theme
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.