Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0] [FEATURE] decal #13304

Merged
merged 38 commits into from Oct 23, 2020
Merged

[5.0] [FEATURE] decal #13304

merged 38 commits into from Oct 23, 2020

Conversation

Ovilia
Copy link
Contributor

@Ovilia Ovilia commented Sep 18, 2020

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Support decal in ECharts, see #13263 for more details.

Fixed issues

Usage

Are there any API changes?

  • The API has been changed.

Related test cases or examples to use the new APIs

NA.

Others

Merging options

  • Please squash the commits into a single one when merge.

Other information

@echarts-bot
Copy link

echarts-bot bot commented Sep 18, 2020

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

Document changes are required in this PR. Please also make a PR to apache/incubator-echarts-doc for document changes. When the doc PR is merged, the maintainers will remove the PR: awaiting doc label.

@pull-request-size pull-request-size bot added size/M and removed size/L labels Oct 9, 2020
@pull-request-size pull-request-size bot added size/L and removed size/M labels Oct 12, 2020
@Ovilia Ovilia marked this pull request as ready for review October 12, 2020 11:21
@Ovilia
Copy link
Contributor Author

Ovilia commented Oct 12, 2020

TODO:

  • Default decal styles for aria

src/util/decal.ts Show resolved Hide resolved
src/util/decal.ts Show resolved Hide resolved
src/visual/aria.ts Outdated Show resolved Hide resolved
src/visual/decal.ts Outdated Show resolved Hide resolved
src/component/aria.ts Show resolved Hide resolved
if (userConfig == null) {
const pathArr = path.split('.');
let result = ecModel.getLocale('aria');
// FIXME: remove as any
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pissang Please help improve the type here.

function getSeriesTypeName(type) {
return ecModel.getLocale(['series', 'typeNames'])[type] || '自定义图';
function getSeriesTypeName(type: string) {
// FIXME: remove as any
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pissang Please help improve the type here.

@pissang pissang changed the title feat: decal [5.0] [FEATURE] decal Oct 19, 2020
src/visual/aria.ts Outdated Show resolved Hide resolved
src/component/aria.ts Outdated Show resolved Hide resolved
src/component/aria.ts Show resolved Hide resolved
src/visual/aria.ts Show resolved Hide resolved
@pissang
Copy link
Contributor

pissang commented Oct 20, 2020

Some bugs from my test:

  • Chart has no effect when decal is enabled: Scatter, Graph, Tree series which use Symbol. Sankey, Line, Treemap
  • SVG has performance issues.
  • When toggling legend in pie series. Decal doesn't follow the fade out animation

src/visual/aria.ts Outdated Show resolved Hide resolved
src/component/aria/preprocessor.ts Show resolved Hide resolved
@pissang pissang merged commit 63d0909 into next Oct 23, 2020
@pissang pissang deleted the feat-decal branch October 23, 2020 09:42
@Ovilia Ovilia removed the PR: awaiting doc Document changes is required for this PR. label Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Decals support
2 participants