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 2022/07/18 04:39:23 UTC
[echarts] 02/02: style: fix typo of `RoamPayload`.
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch fix/symbol-scale-types
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 6e3efd8fba0b0eeed878bca4954b470b5de31cab
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Mon Jul 18 12:37:32 2022 +0800
style: fix typo of `RoamPayload`.
---
src/action/roamHelper.ts | 4 ++--
src/chart/graph/install.ts | 4 ++--
src/chart/tree/treeAction.ts | 6 +++---
src/component/geo/install.ts | 6 +++---
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/action/roamHelper.ts b/src/action/roamHelper.ts
index d1721a93c..f14c8ccfb 100644
--- a/src/action/roamHelper.ts
+++ b/src/action/roamHelper.ts
@@ -22,7 +22,7 @@ import type View from '../coord/View';
import type ExtensionAPI from '../core/ExtensionAPI';
import type { Payload } from '../util/types';
-export interface RoamPaylod extends Payload {
+export interface RoamPayload extends Payload {
dx: number
dy: number
zoom: number
@@ -39,7 +39,7 @@ function getCenterCoord(view: View, point: number[]) {
export function updateCenterAndZoom(
view: View,
- payload: RoamPaylod,
+ payload: RoamPayload,
zoomLimit?: {
min?: number,
max?: number
diff --git a/src/chart/graph/install.ts b/src/chart/graph/install.ts
index b917be00e..2ffec7b03 100644
--- a/src/chart/graph/install.ts
+++ b/src/chart/graph/install.ts
@@ -29,7 +29,7 @@ import createView from './createView';
import View from '../../coord/View';
import GraphView from './GraphView';
import GraphSeriesModel from './GraphSeries';
-import { RoamPaylod, updateCenterAndZoom } from '../../action/roamHelper';
+import { RoamPayload, updateCenterAndZoom } from '../../action/roamHelper';
import GlobalModel from '../../model/Global';
import { noop } from 'zrender/src/core/util';
import type ExtensionAPI from '../../core/ExtensionAPI';
@@ -73,7 +73,7 @@ export function install(registers: EChartsExtensionInstallRegisters) {
}, noop);
// Register roam action.
- registers.registerAction(actionInfo, function (payload: RoamPaylod, ecModel: GlobalModel, api: ExtensionAPI) {
+ registers.registerAction(actionInfo, function (payload: RoamPayload, ecModel: GlobalModel, api: ExtensionAPI) {
ecModel.eachComponent({
mainType: 'series', query: payload
}, function (seriesModel: GraphSeriesModel) {
diff --git a/src/chart/tree/treeAction.ts b/src/chart/tree/treeAction.ts
index 2589d3ef7..358779919 100644
--- a/src/chart/tree/treeAction.ts
+++ b/src/chart/tree/treeAction.ts
@@ -17,7 +17,7 @@
* under the License.
*/
-import {updateCenterAndZoom, RoamPaylod} from '../../action/roamHelper';
+import {updateCenterAndZoom, RoamPayload} from '../../action/roamHelper';
import { Payload } from '../../util/types';
import TreeSeriesModel from './TreeSeries';
import GlobalModel from '../../model/Global';
@@ -52,7 +52,7 @@ export function installTreeAction(registers: EChartsExtensionInstallRegisters) {
// the layout. So don't need to go through the whole update process, such
// as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.
update: 'none'
- }, function (payload: RoamPaylod, ecModel: GlobalModel, api: ExtensionAPI) {
+ }, function (payload: RoamPayload, ecModel: GlobalModel, api: ExtensionAPI) {
ecModel.eachComponent({
mainType: 'series', subType: 'tree', query: payload
}, function (seriesModel: TreeSeriesModel) {
@@ -67,4 +67,4 @@ export function installTreeAction(registers: EChartsExtensionInstallRegisters) {
});
});
-}
\ No newline at end of file
+}
diff --git a/src/component/geo/install.ts b/src/component/geo/install.ts
index d18aa1837..3bf9e3e2b 100644
--- a/src/component/geo/install.ts
+++ b/src/component/geo/install.ts
@@ -23,7 +23,7 @@ import geoCreator from '../../coord/geo/geoCreator';
import { ActionInfo } from '../../util/types';
import { each } from 'zrender/src/core/util';
import GlobalModel from '../../model/Global';
-import { updateCenterAndZoom, RoamPaylod } from '../../action/roamHelper';
+import { updateCenterAndZoom, RoamPayload } from '../../action/roamHelper';
import MapSeries from '../../chart/map/MapSeries';
import GeoView from './GeoView';
import geoSourceManager from '../../coord/geo/geoSourceManager';
@@ -115,7 +115,7 @@ export function install(registers: EChartsExtensionInstallRegisters) {
type: 'geoRoam',
event: 'geoRoam',
update: 'updateTransform'
- }, function (payload: RoamPaylod, ecModel: GlobalModel, api: ExtensionAPI) {
+ }, function (payload: RoamPayload, ecModel: GlobalModel, api: ExtensionAPI) {
const componentType = payload.componentType || 'series';
ecModel.eachComponent(
@@ -147,4 +147,4 @@ export function install(registers: EChartsExtensionInstallRegisters) {
}
);
});
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org