MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / ECharts

Function ECharts

libs/echarts/echarts.simple.js:27235–27364  ·  view source on GitHub ↗

* @module echarts~ECharts

(dom, theme$$1, opts)

Source from the content-addressed store, hash-verified

27233 * @module echarts~ECharts
27234 */
27235function ECharts(dom, theme$$1, opts) {
27236 opts = opts || {};
27237
27238 // Get theme by name
27239 if (typeof theme$$1 === 'string') {
27240 theme$$1 = themeStorage[theme$$1];
27241 }
27242
27243 /**
27244 * @type {string}
27245 */
27246 this.id;
27247
27248 /**
27249 * Group id
27250 * @type {string}
27251 */
27252 this.group;
27253
27254 /**
27255 * @type {HTMLElement}
27256 * @private
27257 */
27258 this._dom = dom;
27259
27260 var defaultRenderer = 'canvas';
27261 if (__DEV__) {
27262 defaultRenderer = (
27263 typeof window === 'undefined' ? global : window
27264 ).__ECHARTS__DEFAULT__RENDERER__ || defaultRenderer;
27265 }
27266
27267 /**
27268 * @type {module:zrender/ZRender}
27269 * @private
27270 */
27271 var zr = this._zr = init$1(dom, {
27272 renderer: opts.renderer || defaultRenderer,
27273 devicePixelRatio: opts.devicePixelRatio,
27274 width: opts.width,
27275 height: opts.height
27276 });
27277
27278 /**
27279 * Expect 60 fps.
27280 * @type {Function}
27281 * @private
27282 */
27283 this._throttledZrFlush = throttle(bind(zr.flush, zr), 17);
27284
27285 var theme$$1 = clone(theme$$1);
27286 theme$$1 && backwardCompat(theme$$1, true);
27287 /**
27288 * @type {Object}
27289 * @private
27290 */
27291 this._theme = theme$$1;
27292

Callers

nothing calls this directly

Calls 10

init$1Function · 0.70
throttleFunction · 0.70
bindFunction · 0.70
cloneFunction · 0.70
backwardCompatFunction · 0.70
createExtensionAPIFunction · 0.70
sortFunction · 0.70
bindRenderedEventFunction · 0.70
setAsPrimitiveFunction · 0.70
onMethod · 0.45

Tested by

no test coverage detected