Skip to content
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

Refactor padding parsing under helpers.options #4544

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

simonbrunel
Copy link
Member

New Chart.helpers.options.toPadding helpers that converts a number or object into a padding {top, right, bottom, left, height, width} object.

Adapted from chartjs-plugin-datalabels

New Chart.helpers.options.toPadding helpers that converts a number or object into a padding {top, right, bottom, left, height, width} object.
@simonbrunel simonbrunel added this to the Version 2.7 milestone Jul 21, 2017
@simonbrunel simonbrunel requested a review from etimberg July 21, 2017 10:17
@simonbrunel simonbrunel merged commit 7b63888 into chartjs:master Jul 21, 2017
@simonbrunel simonbrunel deleted the options-padding branch July 21, 2017 13:03
yofreke pushed a commit to yofreke/Chart.js that referenced this pull request Dec 30, 2017
New Chart.helpers.options.toPadding helpers that converts a number or object into a padding {top, right, bottom, left, height, width} object.
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
New Chart.helpers.options.toPadding helpers that converts a number or object into a padding {top, right, bottom, left, height, width} object.
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.

2 participants