Options
All
  • Public
  • Public/Protected
  • All
Menu

Bootstrapping mechanism for the mxGraph thin client. The production version of this file contains all code required to run the mxGraph thin client, as well as global constants to identify the browser and operating system in use. You may have to load chrome://global/content/contentAreaUtils.js in your page to disable certain security restrictions in Mozilla.

Hierarchy

  • mxClient

Index

Constructors

constructor

Properties

Static IOS_VERSION

IOS_VERSION: string

Returns the major version number for iOS devices or 0 if the device is not an iOS device.

Static IS_ANDROID

IS_ANDROID: boolean

Returns true if the user agent contains Android.

Static IS_CHROMEAPP

IS_CHROMEAPP: boolean

True if the this is running inside a Chrome App.

Static IS_CHROMEOS

IS_CHROMEOS: boolean

True if the client is a Chrome OS.

Static IS_EDGE

IS_EDGE: boolean

True if the current browser is Microsoft Edge.

Static IS_EM

IS_EM: boolean

True if the browser is IE11 in enterprise mode (IE8 standards mode).

Static IS_FF

IS_FF: boolean

True if the current browser is Firefox.

Static IS_GC

IS_GC: boolean

True if the current browser is Google Chrome.

Static IS_IE

IS_IE: boolean

True if the current browser is Internet Explorer 10 or below.

Static IS_IE11

IS_IE11: boolean

True if the current browser is Internet Explorer 11.x.

Static IS_IE6

IS_IE6: boolean

True if the current browser is Internet Explorer 6.x.

Static IS_IOS

IS_IOS: boolean

Returns true if the user agent is an iPad, iPhone or iPod.

Static IS_LOCAL

IS_LOCAL: boolean

True if the documents location does not start with http:// or https://.

Static IS_MAC

IS_MAC: boolean

True if the client is a Mac.

Static IS_MT

IS_MT: boolean

True if -moz-transform is available as a CSS style.

Static IS_NS

IS_NS: boolean

True if the current browser is Netscape (including Firefox).

Static IS_OP

IS_OP: boolean

True if the current browser is Opera.

Static IS_OT

IS_OT: boolean

True if -o-transform is available as a CSS style, ie for Opera browsers based on a Presto engine with version 2.5 or later.

Static IS_POINTER

IS_POINTER: boolean

True if this device supports Microsoft pointer events (always false on Macs).

Static IS_QUIRKS

IS_QUIRKS: boolean

True if the current browser is Internet Explorer and it is in quirks mode.

Static IS_SF

IS_SF: boolean

True if the current browser is Safari.

Static IS_SVG

IS_SVG: boolean

True if the browser supports SVG.

Static IS_TOUCH

IS_TOUCH: boolean

True if this device supports touchstart/-move/-end events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled devices).

Static IS_VML

IS_VML: boolean

True if the browser supports VML.

Static IS_WIN

IS_WIN: boolean

True if the client is a Windows.

Static NO_FO

NO_FO: boolean

True if foreignObject support is not available.

Static OFFICE_PREFIX

OFFICE_PREFIX: string

Prefix for VML office namespace in node names.

Static VERSION

VERSION: string

Contains the current version of the mxGraph library.

Static VML_PREFIX

VML_PREFIX: string

Prefix for VML namespace in node names.

Static defaultBundles

defaultBundles: string

Contains the base names of the default bundles if mxLoadResources is false.

Methods

Static include

  • include(src: string): void
  • Dynamically adds a script node to the document header. In production environments, the includes are resolved in the mxClient.js file to reduce the number of requests required for client startup. This function should only be used in development environments, but not in production systems.

    Parameters

    • src: string

    Returns void

Static isBrowserSupported

  • isBrowserSupported(): boolean
  • Returns true if the current browser is supported, that is, if <mxClient.IS_VML> or <mxClient.IS_SVG> is true.

    example
    if (!mxClient.isBrowserSupported())
    {
      mxUtils.error('Browser is not supported!', 200, false);
    }
    

    Returns boolean

Static link

  • link(rel: string, href: string, doc?: Node, id?: string): void
  • link

    example
    mxClient.link('stylesheet', filename);
    

    Parameters

    • rel: string
    • href: string
    • Optional doc: Node
    • Optional id: string

    Returns void

Static loadResources

  • loadResources(fn: Function, lan?: string): void
  • Helper method to load the default bundles if mxLoadResources is false.

    Parameters

    • fn: Function

      Function to call after all resources have been loaded.

    • Optional lan: string

      Optional string to pass to mxResources.add.

    Returns void

Generated using TypeDoc