Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/data/DataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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][] = [];
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/data/Graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Graph {
const nodesMap = this._nodesMap;
const edgesMap = this._edgesMap;

// PNEDING
// PENDING
if (zrUtil.isNumber(n1)) {
n1 = this.nodes[n1];
}
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/dataSelectAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/model/Series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down