Skip to content

Conversation

@plainheart
Copy link
Member

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

symbolRotate for markLine accepts an array as the parameter to specify symbol rotation at the two ends of the mark line. I think it may be very helpful in some cases.

Related issues

Details

Before: What was the problem?

We can not specify different rotations for symbols at the two endpoints of the mark line.

After: How is it fixed in this PR?

By specifying an array like [fromSymbolRotation, toSymbolRotation] for markLine.symbolRotate, we can set different rotations for symbols at the two endpoints of the mark line

image

Usage

Are there any API changes?

  • The API has been changed.

Added an option markLine.symbolRotate, which accepts a number or an array having two numeric elements.

Related test cases or examples to use the new APIs

Please reder to test/markLine-symbolRotate.html.

…er to specify symbol rotation at the two ends of the mark line.
@YiYingWu1302
Copy link

Sorry for the very late replay, I suddenly saw this PR and it looks perfect! Thanks again!!

plainheart added a commit that referenced this pull request Mar 1, 2021
- Resolves #9325
- Resolves #14106
- Resolves #4771
2) feat: `markLine.symbolRotate` can be an array to specify symbol rotation at the two endpoints.
- Related #12736, #12392
3) feat: add `markLine.symbolKeepAspect` and fix `symbolKeepAspect` doesn't work bug.
4) feat: `symbolOffset` can be a callback function, close #12495.
@plainheart plainheart closed this Mar 1, 2021
@plainheart plainheart deleted the fix-12388 branch March 1, 2021 16:10
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.

3 participants