Skip to content

Commit

Permalink
fix(pie): ensure to stick at 50% when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Oct 12, 2023
1 parent d0f193f commit 14eef8e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _site/templates/css/examples/pie.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
100% 0%,
max(50% + (var(--pos-B) * 1%), var(--gt-25, 0) * 100%) calc(50% - (var(--pos-A) * var(--lt-25, 1) * 1%)),
max(50%, var(--gt-25, 0) * 100%) max(50%, var(--gt-25, 0) * 100%),
max(50% + (var(--pos-A) * 1%), var(--gt-50, 0) * 100%) max(50% + (var(--pos-B) * var(--lt-50, 0) * 1%), var(--gt-50, 0) * 100%),
max(50% + (var(--pos-A) * var(--gt-25, 0) * 1%), var(--gt-50, 0) * 100%) max(50% + (var(--pos-B) * var(--gt-25, 0) * var(--lt-50, 0) * 1%), var(--gt-50, 0) * 100%),
max(0%, var(--lt-50, 0) * 50%) max(50%, var(--gt-50, 0) * 100%),
min(50% - (var(--pos-B) * var(--gt-75, 0) * 1%), 0%) calc(50% + (var(--pos-A) * var(--gt-50, 0) * var(--lt-75, 1) * 1%)),
max(0%, var(--lt-75, 0) * 50%) max(0%, var(--lt-75, 0) * 50%),
Expand Down
2 changes: 1 addition & 1 deletion 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.min.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pie-charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h2>Law of sines</h2>
100% 0%,
max(50% + (var(--pos-B) * 1%), var(--gt-25, 0) * 100%) calc(50% - (var(--pos-A) * var(--lt-25, 1) * 1%)),
max(50%, var(--gt-25, 0) * 100%) max(50%, var(--gt-25, 0) * 100%),
max(50% + (var(--pos-A) * 1%), var(--gt-50, 0) * 100%) max(50% + (var(--pos-B) * var(--lt-50, 0) * 1%), var(--gt-50, 0) * 100%),
max(50% + (var(--pos-A) * var(--gt-25, 0) * 1%), var(--gt-50, 0) * 100%) max(50% + (var(--pos-B) * var(--gt-25, 0) * var(--lt-50, 0) * 1%), var(--gt-50, 0) * 100%),
max(0%, var(--lt-50, 0) * 50%) max(50%, var(--gt-50, 0) * 100%),
min(50% - (var(--pos-B) * var(--gt-75, 0) * 1%), 0%) calc(50% + (var(--pos-A) * var(--gt-50, 0) * var(--lt-75, 1) * 1%)),
max(0%, var(--lt-75, 0) * 50%) max(0%, var(--lt-75, 0) * 50%),
Expand Down
2 changes: 1 addition & 1 deletion src/_chaarts-pie.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
100% 0%,
max(50% + (var(--pos-B) * 1%), var(--gt-25, 0) * 100%) calc(50% - (var(--pos-A) * var(--lt-25, 1) * 1%)),
max(50%, var(--gt-25, 0) * 100%) max(50%, var(--gt-25, 0) * 100%),
max(50% + (var(--pos-A) * 1%), var(--gt-50, 0) * 100%) max(50% + (var(--pos-B) * var(--lt-50, 0) * 1%), var(--gt-50, 0) * 100%),
max(50% + (var(--pos-A) * var(--gt-25, 0) * 1%), var(--gt-50, 0) * 100%) max(50% + (var(--pos-B) * var(--gt-25, 0) * var(--lt-50, 0) * 1%), var(--gt-50, 0) * 100%),
max(0%, var(--lt-50, 0) * 50%) max(50%, var(--gt-50, 0) * 100%),
min(50% - (var(--pos-B) * var(--gt-75, 0) * 1%), 0%) calc(50% + (var(--pos-A) * var(--gt-50, 0) * var(--lt-75, 1) * 1%)),
max(0%, var(--lt-75, 0) * 50%) max(0%, var(--lt-75, 0) * 50%),
Expand Down

0 comments on commit 14eef8e

Please sign in to comment.