This is an automated email from the ASF dual-hosted git repository. 100pah pushed a commit to branch release-dev in repository https://gitbox.apache.org/repos/asf/echarts.git
commit eeaa9e498173287f2e347ab3e61a7c83c16b0884 Author: 100pah <[email protected]> AuthorDate: Fri May 8 22:30:44 2026 +0800 lint: Fix according to es and ts lint. --- src/animation/morphTransitionHelper.ts | 4 ++-- src/core/locale.ts | 5 +++-- src/model/globalDefault.ts | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/animation/morphTransitionHelper.ts b/src/animation/morphTransitionHelper.ts index f9672073c..818b65a34 100644 --- a/src/animation/morphTransitionHelper.ts +++ b/src/animation/morphTransitionHelper.ts @@ -28,7 +28,7 @@ import { import { Path } from '../util/graphic'; import SeriesModel from '../model/Series'; import Element, { ElementAnimateConfig } from 'zrender/src/Element'; -import { defaults, isArray} from 'zrender/src/core/util'; +import { defaults, extend, isArray} from 'zrender/src/core/util'; import { getAnimationConfig } from './basicTransition'; import { ECElement, UniversalTransitionOption } from '../util/types'; import { clonePath } from 'zrender/src/tool/path'; @@ -133,7 +133,7 @@ export function applyMorphAnimation( .get('delay'); - const animationCfg = Object.assign({ + const animationCfg = extend({ // Need to setToFinal so the further calculation based on the style can be correct. // Like emphasis color. setToFinal: true diff --git a/src/core/locale.ts b/src/core/locale.ts index a40fcc4cd..5c4c4387b 100644 --- a/src/core/locale.ts +++ b/src/core/locale.ts @@ -25,6 +25,8 @@ import langEN from '../i18n/langEN'; import langZH from '../i18n/langZH'; import { isString, clone, merge } from 'zrender/src/core/util'; +/* global document */ + export type LocaleOption = typeof langEN; const LOCALE_ZH = 'ZH'; @@ -35,8 +37,7 @@ const localeStorage: Dictionary<LocaleOption> = {}; const localeModels: Dictionary<Model> = {}; export const SYSTEM_LANG = !env.domSupported ? DEFAULT_LOCALE : (function () { - const langStr = ( - /* eslint-disable-next-line */ + const langStr: string = ( document.documentElement.lang || navigator.language || (navigator as any).browserLanguage || DEFAULT_LOCALE ).toUpperCase(); return langStr.indexOf(LOCALE_ZH) > -1 ? LOCALE_ZH : DEFAULT_LOCALE; diff --git a/src/model/globalDefault.ts b/src/model/globalDefault.ts index fd7e9fbe0..2e3603cdb 100644 --- a/src/model/globalDefault.ts +++ b/src/model/globalDefault.ts @@ -23,7 +23,6 @@ import tokens from '../visual/tokens'; let platform = ''; // Navigator not exists in node if (typeof navigator !== 'undefined') { - /* global navigator */ platform = navigator.platform || ''; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
