diff --git a/src/data/DataStore.ts b/src/data/DataStore.ts index abc3bb4b9e..36f7373a74 100644 --- a/src/data/DataStore.ts +++ b/src/data/DataStore.ts @@ -161,7 +161,7 @@ class DataStore { private _provider: DataProvider; - // It will not be calculated util needed. + // It will not be calculated until needed. private _rawExtent: [number, number][] = []; private _extent: [number, number][] = []; @@ -601,7 +601,7 @@ class DataStore { // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`, // we'd better not push both of them to `nearestIndices`, otherwise it is easy to // get more than one item in `nearestIndices` (more specifically, in `tooltip`). - // So we chose the one that `diff >= 0` in this csae. + // So we choose the one that `diff >= 0` in this case. // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them // should be push to `nearestIndices`. if (dist < minDist @@ -970,7 +970,7 @@ class DataStore { let firstNaNIndex = -1; let countNaN = 0; - // Find a point from current frame that construct a triangel with largest area with previous selected point + // Find a point from current frame that construct a triangle with largest area with previous selected point // And the average of next frame. for (let idx = frameStart; idx < frameEnd; idx++) { const rawIndex = this.getRawIndex(idx); diff --git a/src/data/Graph.ts b/src/data/Graph.ts index f7939a5304..c12350e70a 100644 --- a/src/data/Graph.ts +++ b/src/data/Graph.ts @@ -109,7 +109,7 @@ class Graph { const nodesMap = this._nodesMap; const edgesMap = this._edgesMap; - // PNEDING + // PENDING if (zrUtil.isNumber(n1)) { n1 = this.nodes[n1]; } diff --git a/src/legacy/dataSelectAction.ts b/src/legacy/dataSelectAction.ts index 20aa742144..14eeb1544e 100644 --- a/src/legacy/dataSelectAction.ts +++ b/src/legacy/dataSelectAction.ts @@ -28,7 +28,7 @@ import { queryDataIndex } from '../util/model'; import ExtensionAPI from '../core/ExtensionAPI'; // Legacy data selection action. -// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect +// Includes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect export function createLegacyDataSelectAction(seriesType: string, ecRegisterAction: typeof registerAction) { function getSeriesIndices(ecModel: GlobalModel, payload: Payload) { diff --git a/src/model/Series.ts b/src/model/Series.ts index 158174c75f..89be20c7d1 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -718,7 +718,7 @@ function dataTaskReset(context: SeriesTaskContext) { } function dataTaskProgress(param: StageHandlerProgressParams, context: SeriesTaskContext): void { - // Avoid repead cloneShallow when data just created in reset. + // Avoid repeat cloneShallow when data just created in reset. if (context.outputData && param.end > context.outputData.count()) { context.model.getRawData().cloneShallow(context.outputData); }