Skip to content

Commit

Permalink
refactor(angles): new --to-radians custom prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Oct 3, 2023
1 parent fd2e600 commit a5d2013
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 17 deletions.
4 changes: 2 additions & 2 deletions _site/templates/css/examples/pie.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
--zoom: .75;
--part: calc(var(--value) * 3.6);
--main-angle: calc(var(--part) - (90 * (var(--gt-25, 0) + var(--gt-50, 0) + var(--gt-75, 0))));
--β: calc(var(--main-angle) * 0.01745329251);
--α: calc((90 - var(--main-angle)) * 0.01745329251);
--β: calc(var(--main-angle) * var(--to-radians));
--α: calc((90 - var(--main-angle)) * var(--to-radians));
--sin-β: sin(var(--β));
--sin-α: sin(var(--α));
--pos-B: calc(var(--sin-β) * 50);
Expand Down
2 changes: 1 addition & 1 deletion _site/templates/css/examples/radar.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

.chaarts[class*=radar] span {
--opposite: calc(180 - (90 + (90 - (360 / var(--items)))));
--angle: calc(var(--opposite) * 0.01745329251);
--angle: calc(var(--opposite) * var(--to-radians));
--sin-angle: sin(var(--angle));
--hypo: calc(var(--unitless-radius) / var(--sin-angle));
--ratio: calc(var(--hypo) / var(--unitless-radius));
Expand Down
7 changes: 4 additions & 3 deletions dist/chaarts.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/chaarts.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/chaarts.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit a5d2013

Please sign in to comment.