Renderer

Type module

Sources

Items from Renderer can be imported/included and used via following ways.

/**
 * --------------------------------------------------------
 * Import via: Renderer.ts
 * Access items like: $renderer.myVariable
 *                    $renderer.myFunction()
 * --------------------------------------------------------
 */
import * as $renderer from "@amcharts/amcharts4/Renderer";

Variables

documentReady
#

Type Promise < Event >

Default new Promise<Event>((resolve,
reject) => {
  

// Fallback to the current document
let doc = window.document;

if (doc.readyState === "complete") {
    
resolve();

  } else {
    

// Support Cordova or document ready events
doc.addEventListener((window as any).cordova ? "deviceready" : "DOMContentLoaded",
    (e) => {
      
resolve(e);

    },
    false);

  }

})

Promise resolved when the DOM content finishes loading or the deviceready event triggers in a Cordova environment.

Functions

Renderer does not have any functions.