-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
fix #8009 & #5969, symbol symbolSize and opacity setting for category itemStyle in graph #9171
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c309055
fix categoryVisual symbol symbolSize opacity
Vvvickie 4a8e61c
fix symbolKeepAspect symbolRotate symbolOffset
Vvvickie fa319d2
delete console
Vvvickie 81e8caf
do symbolStyle Configs in a loop
Vvvickie 104005c
format codeStyle
Vvvickie d011ec2
format codeStyle
Vvvickie 360e0d5
reduct the latter symbolStyleList
Vvvickie 8767981
use itemMode to get symbol
Vvvickie 0e390af
review
Vvvickie d801e18
add symbol
Vvvickie 9dccfd0
add symbol
Vvvickie 886d4c5
about symbol
Vvvickie 2c2d8ef
add symbol
Vvvickie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After we have done all of this, there is another work need to do:
properties like
color
,opacity
,symbolSize
have been saved to data bydata.setItemVisual
,but only
color
is retrieved from data (by data.getItemVisual(...)) and be used to render inGraphView.js
.We need to make
opacity
andsymbolSize
follow the same way, and then the entire patch can work.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ummm, I am confused about this. Where is color retrieved?
The opacity and symbolSize also work currently...What's wrong? O.O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color
,opacity
,symbolSize
are retrieved insrc/chart/helper/Symbol.js
(search'getItemVisual'
in this file). Thesrc/chart/helper/Symbol.js
, used byGraphView.js
, is a common module abstracting the drawing and other behaviors of each node of the graph.