@amcharts/amcharts5
Version:
amCharts 5
73 lines • 1.78 kB
TypeScript
/**
* @ignore
*/
export declare class Registry {
/**
* Currently running version of amCharts.
*/
readonly version: string;
/**
* List of applied licenses.
* @ignore
*/
licenses: String[];
/**
* Entities that have their `id` setting set.
*/
entitiesById: {
[index: string]: any;
};
/**
* All created [[Root]] elements.
*/
rootElements: any[];
/**
* Automatically dispose a [[Root]] element if it exists in the target container.
*
* @since 5.14.4
*/
autoDispose: boolean;
/**
* Functions that build a geometry from a few numbers, by the name they are
* serialized under. Registered by the map module; read when a config is
* parsed, so that a shape can be stored as the call that made it rather than
* as the coordinates it produced.
*
* @ignore
*/
geometryFunctions: {
[index: string]: (...args: Array<any>) => any;
};
}
/**
* @ignore
*/
export declare const registry: Registry;
/**
* Adds a license, e.g.:
*
* ```TypeScript
* am5.addLicense("xxxxxxxx");
* ```
* ```JavaScript
* am5.addLicense("xxxxxxxx");
* ```
*
* Multiple licenses can be added to cover for multiple products.
*
* @param license License key
*/
export declare function addLicense(license: string): void;
/**
* Disposes all [[Root]] elements.
*/
export declare function disposeAllRootElements(): void;
/**
* Finds and returns a `Root` element assigned to a container with `id`.
*
* @param id Container ID
* @return Root
* @since 5.9.2
*/
export declare function getRootById(id: string): any;
//# sourceMappingURL=Registry.d.ts.map