MCPcopy Index your code
hub / github.com/apache/echarts / render

Method render

src/component/parallel/ParallelView.ts:41–51  ·  view source on GitHub ↗
(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI)

Source from the content-addressed store, hash-verified

39 _mouseDownPoint: number[];
40 private _handlers: Partial<Record<ElementEventName, ElementEventHandler>>;
41 render(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI): void {
42 this._model = parallelModel;
43 this._api = api;
44 if (!this._handlers) {
45 this._handlers = {};
46 each(handlers, function (handler: ElementEventHandler, eventName) {
47 api.getZr().on(eventName, this._handlers[eventName] = bind(handler, this) as ElementEventHandler);
48 }, this);
49 }
50 createOrUpdate(this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate');
51 }
52 dispose(ecModel: GlobalModel, api: ExtensionAPI): void {
53 clear(this, '_throttledDispatchExpand');
54 each(this._handlers, function (handler: ElementEventHandler, eventName) {

Callers

nothing calls this directly

Calls 4

createOrUpdateFunction · 0.90
getZrMethod · 0.65
eachFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected