We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
All / latest
Hey there 👋 I was wondering - how difficult would it be to add values for selectedRanges like so (see blue titles on the edge):
selectedRanges
Maybe something like this:
selectedRangesText={true|false}
selectedRangesTextOffset={[x, y]}
textOffset={[x, y]}
selectedRangesTextColor
textColor='#xxx'
https://github.com/daybrush/ruler/blob/master/packages/react-ruler/src/react-ruler/Ruler.tsx#L206 (I'm not familiar with drawing in canvas, but maybe it would be easy then to draw text on each side of selected range?)
The text was updated successfully, but these errors were encountered:
feat: add selectedRangesText props #38
6b1f77a
@bytasv
ruler, guides's new version is released. selectedRangesText, selectedRangesTextOffset, selectedRangesTextColor props are added. Try it.
ruler
guides
selectedRangesText
selectedRangesTextOffset
Sorry, something went wrong.
Thanks alot! 🙇
No branches or pull requests
Environments
All / latest
Description
Hey there 👋 I was wondering - how difficult would it be to add values for
selectedRanges
like so (see blue titles on the edge):Maybe something like this:
selectedRangesText={true|false}
selectedRangesTextOffset={[x, y]}
(so to maintain the same API astextOffset={[x, y]}
selectedRangesTextColor
(so to maintain the same API astextColor='#xxx'
https://github.com/daybrush/ruler/blob/master/packages/react-ruler/src/react-ruler/Ruler.tsx#L206
(I'm not familiar with drawing in canvas, but maybe it would be easy then to draw text on each side of selected range?)
The text was updated successfully, but these errors were encountered: