-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(slider): support for tick marks (#924)
* Initial drawing of ticks without calculations * Calculate the optimal distance between ticks * Add support for tick interval with numbers * Add comment to perf test * Always add a tick on the end and hide the second to last one if too close * Add tests for tick marks * Comment to clarify tick interval is relative to steps. * Remove fdescribe * Move 30 into a constant for minimum auto tick separation * Remove comment that claims tick interval defaults to auto * Simplify tick interval input * Add missing parenthesis * Use toContain for background gradient tests * Improve comments * Use 'black' rather than '#000000' for tick color * Calculate auto tick separation without loop * Better explain the calculations for the auto tick location. * Merge with NgModules
- Loading branch information
Showing
5 changed files
with
220 additions
and
2 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
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