From 059ff6115510a7074f31f522564abd1c68fa98d7 Mon Sep 17 00:00:00 2001 From: Map1en_ Date: Mon, 5 Jul 2021 11:30:15 +0800 Subject: [PATCH 1/5] chore(type): export type ElementEvent close #15284 --- src/export/core.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/export/core.ts b/src/export/core.ts index c1702f2154..90a069d7e2 100644 --- a/src/export/core.ts +++ b/src/export/core.ts @@ -34,6 +34,7 @@ export {ZRColor as Color, Payload} from '../util/types'; export {LinearGradientObject} from 'zrender/src/graphic/LinearGradient'; export {RadialGradientObject} from 'zrender/src/graphic/RadialGradient'; export {PatternObject, ImagePatternObject, SVGPatternObject} from 'zrender/src/graphic/Pattern'; +export {ElementEvent} from 'zrender/src/Element'; // ComposeOption import type { ComponentOption, ECBasicOption as EChartsCoreOption } from '../util/types'; @@ -114,4 +115,4 @@ export type ComposeOption = ComposeUnitOption & { baseOption?: ComposeUnitOption options?: ComposeUnitOption[] - }; \ No newline at end of file + }; From 768ce8398e354a6fa0c2c8ae14c6d81f6e36c093 Mon Sep 17 00:00:00 2001 From: Map1en_ Date: Mon, 5 Jul 2021 11:43:48 +0800 Subject: [PATCH 2/5] rm newline --- src/export/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export/core.ts b/src/export/core.ts index 90a069d7e2..2b0cf2c4bb 100644 --- a/src/export/core.ts +++ b/src/export/core.ts @@ -115,4 +115,4 @@ export type ComposeOption = ComposeUnitOption & { baseOption?: ComposeUnitOption options?: ComposeUnitOption[] - }; + }; \ No newline at end of file From 3c1afa916554c718b94122e02bec51f879dddca9 Mon Sep 17 00:00:00 2001 From: gitforhlp <997960553@qq.com> Date: Mon, 29 Aug 2022 16:06:36 +0800 Subject: [PATCH 3/5] change the `deprecateReplaceLog` in sunburstAction.ts --- src/chart/sunburst/sunburstAction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chart/sunburst/sunburstAction.ts b/src/chart/sunburst/sunburstAction.ts index d45fdde79b..494131f1b0 100644 --- a/src/chart/sunburst/sunburstAction.ts +++ b/src/chart/sunburst/sunburstAction.ts @@ -87,7 +87,7 @@ export function installSunburstAction(registers: EChartsExtensionInstallRegister } if (__DEV__) { - deprecateReplaceLog('highlight', 'sunburstHighlight'); + deprecateReplaceLog('sunburstHighlight', 'highlight'); } // Fast forward action @@ -112,4 +112,4 @@ export function installSunburstAction(registers: EChartsExtensionInstallRegister } ); -} \ No newline at end of file +} From d1462ff42b4f96c06f52431548c859f46d19d86c Mon Sep 17 00:00:00 2001 From: gitforhlp <997960553@qq.com> Date: Mon, 29 Aug 2022 17:36:31 +0800 Subject: [PATCH 4/5] fix the deprecateReplaceLog about downplay --- src/chart/sunburst/sunburstAction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/sunburst/sunburstAction.ts b/src/chart/sunburst/sunburstAction.ts index 494131f1b0..ade76a3082 100644 --- a/src/chart/sunburst/sunburstAction.ts +++ b/src/chart/sunburst/sunburstAction.ts @@ -103,7 +103,7 @@ export function installSunburstAction(registers: EChartsExtensionInstallRegister payload = extend({}, payload); if (__DEV__) { - deprecateReplaceLog('downplay', 'sunburstUnhighlight'); + deprecateReplaceLog('sunburstUnhighlight', 'downplay'); } api.dispatchAction(extend(payload, { From 5b465297f7802a4032f4554f65e1947be74d7ee4 Mon Sep 17 00:00:00 2001 From: ChepteaCatalin <71984989+ChepteaCatalin@users.noreply.github.com> Date: Tue, 30 Aug 2022 14:16:23 +0300 Subject: [PATCH 5/5] fix a typo error in `log.ts` --- src/util/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/log.ts b/src/util/log.ts index 7d8ca56285..8bcc7cc114 100644 --- a/src/util/log.ts +++ b/src/util/log.ts @@ -68,7 +68,7 @@ export function deprecateReplaceLog(oldOpt: string, newOpt: string, scope?: stri /** * If in __DEV__ environment, get console printable message for users hint. * Parameters are separated by ' '. - * @usuage + * @usage * makePrintable('This is an error on', someVar, someObj); * * @param hintInfo anything about the current execution context to hint users.