isUsingDOM static method

bool isUsingDOM()

This static function returns true if GoJS detects a DOM. In browser environments this is expected to be true, in Node-like environments, false. Specifically, this will be false if there is no root document in the JavaScript context, or if the DOM was disabled explicitly by calling Diagram.useDOM.

Incomplete or mock implementations of a DOM may make this return true when it is more appropriate that it returns false. If that is the case, set it to false by calling Diagram.useDOM.

Implementation

static _i2.bool isUsingDOM() => _i4.callMethod(
      _declaredDiagram,
      'isUsingDOM',
      [],
    );