You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2023/01/23 17:51:31 UTC

[echarts] branch master updated: chore: fix few typos (#18203)

This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d8bc8f29 chore: fix few typos (#18203)
2d8bc8f29 is described below

commit 2d8bc8f29f984cde410d655bf569e698516feebb
Author: AMAN SINGH <89...@users.noreply.github.com>
AuthorDate: Mon Jan 23 23:21:18 2023 +0530

    chore: fix few typos (#18203)
---
 src/data/DataStore.ts          | 6 +++---
 src/data/Graph.ts              | 2 +-
 src/legacy/dataSelectAction.ts | 2 +-
 src/model/Series.ts            | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/data/DataStore.ts b/src/data/DataStore.ts
index abc3bb4b9..36f7373a7 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 f7939a530..c12350e70 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 20aa74214..14eeb1544 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 158174c75..89be20c7d 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);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org