Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add arrows decoration to line annotation (#608)
* Add arrowheads options to line annotation * fixes CC 1 * manages borderWidth and the apex of the arrow * adds first 2 test cases * renames function and options and fixes CC * the line is not shown if borderWidth is 0 and more test cases * removes use checks and fixes CC lines of code in the draw method * adds arrowHeadsOptions types * adds documentation * re-applies previous table headers def * apply arrow heads to existing samples * adds test case with scriptable options * fix CC duplicated code * fixes background shadow color for arrow heads and the line * fixes CC max lines per function * applies shadow on border for lines and background on filled arrows * removes useless beginPath * changes display to enabled to be aligned with label subnode * changes display to enabled to be aligned with label subnode - types * apply review about shadow options * enables fallback of arrowHeads.start and arrowHeads.end * apply review 2 * enables borderWidth at arrowHeads level * changes way to get the options to describe for fallback * apply review * fixes label background color in order to work both Chrome and FF * changes defaults in arrowHeads in order to engage the fallback * updates documentation with defaults in fallback * Update src/types/line.js Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com> * optimized arrowHeads node default Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
- Loading branch information
1 parent
90898a6
commit 44f961e
Showing
25 changed files
with
1,288 additions
and
40 deletions.
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
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
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
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
Oops, something went wrong.