You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/01/08 03:05:22 UTC
[incubator-echarts] branch no-register-when-extend updated (3565db3
-> 24ab3e0)
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a change to branch no-register-when-extend
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.
from 3565db3 chore: no sourcemap in lib
new 490ff8f fix: fix unexpected sideeffects in extension
new 24ab3e0 expose more helper functions to extension
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
package.json | 1 +
src/component/timeline/SliderTimelineView.ts | 1 -
src/export/api/helper.ts | 10 +++++++++-
src/label/labelStyle.ts | 3 ++-
4 files changed, 12 insertions(+), 3 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[incubator-echarts] 02/02: expose more helper functions to extension
Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch no-register-when-extend
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 24ab3e0d3b44a53cba686cf72060bcb75024b5a8
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Jan 8 11:03:51 2021 +0800
expose more helper functions to extension
setTextStyle, enableHoverEmphasis
---
src/component/timeline/SliderTimelineView.ts | 1 -
src/export/api/helper.ts | 10 +++++++++-
src/label/labelStyle.ts | 3 ++-
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/component/timeline/SliderTimelineView.ts b/src/component/timeline/SliderTimelineView.ts
index 4d9e8c8..ee46521 100644
--- a/src/component/timeline/SliderTimelineView.ts
+++ b/src/component/timeline/SliderTimelineView.ts
@@ -30,7 +30,6 @@ import GlobalModel from '../../model/Global';
import ExtensionAPI from '../../core/ExtensionAPI';
import { merge, each, extend, isString, bind, defaults, retrieve2 } from 'zrender/src/core/util';
import SliderTimelineModel from './SliderTimelineModel';
-import ComponentView from '../../view/Component';
import { LayoutOrient, ZRTextAlign, ZRTextVerticalAlign, ZRElementEvent, ScaleTick } from '../../util/types';
import TimelineModel, { TimelineDataItemOption, TimelineCheckpointStyle } from './TimelineModel';
import { TimelineChangePayload, TimelinePlayChangePayload } from './timelineAction';
diff --git a/src/export/api/helper.ts b/src/export/api/helper.ts
index 8b956a4..d70390e 100644
--- a/src/export/api/helper.ts
+++ b/src/export/api/helper.ts
@@ -36,6 +36,8 @@ import {
import SeriesModel from '../../model/Series';
import { AxisBaseModel } from '../../coord/AxisBaseModel';
import { getECData } from '../../util/innerStore';
+import { createTextStyle as innerCreateTextStyle } from '../../label/labelStyle';
+import { TextCommonOption } from '../../util/types';
/**
* Create a muti dimension List structure from seriesModel.
@@ -112,4 +114,10 @@ export function mixinAxisModelCommonMethods(Model: Model) {
zrUtil.mixin(Model, AxisModelCommonMixin);
}
-export {getECData};
\ No newline at end of file
+export {getECData};
+
+export {enableHoverEmphasis} from '../../util/states';
+
+export function createTextStyle(textStyleModel: Model<TextCommonOption>) {
+ return innerCreateTextStyle(textStyleModel);
+}
\ No newline at end of file
diff --git a/src/label/labelStyle.ts b/src/label/labelStyle.ts
index dd6252e..ffc6536 100644
--- a/src/label/labelStyle.ts
+++ b/src/label/labelStyle.ts
@@ -306,7 +306,8 @@ export function createTextStyle(
textStyleModel: Model,
specifiedTextStyle?: TextStyleProps, // Fixed style in the code. Can't be set by model.
opt?: Pick<TextCommonParams, 'inheritColor' | 'disableBox'>,
- isNotNormal?: boolean, isAttached?: boolean // If text is attached on an element. If so, auto color will handling in zrender.
+ isNotNormal?: boolean,
+ isAttached?: boolean // If text is attached on an element. If so, auto color will handling in zrender.
) {
const textStyle: TextStyleProps = {};
setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[incubator-echarts] 01/02: fix: fix unexpected sideeffects in
extension
Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch no-register-when-extend
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 490ff8f854e847d7fd3c135ff7b7e5cab7e91fca
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Jan 8 11:02:58 2021 +0800
fix: fix unexpected sideeffects in extension
---
package.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/package.json b/package.json
index a824b28..0de9a28 100644
--- a/package.json
+++ b/package.json
@@ -35,6 +35,7 @@
"lib/echarts.js",
"lib/chart/*.js",
"lib/component/*.js",
+ "extension/**/*.js",
"theme/*.js",
"i18n/*.js"
],
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org