Skip to content

Commit 97700d9

Browse files
committed
0.0.2
1 parent c082af7 commit 97700d9

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,45 @@ addCorners(element, {
1616

1717
// use background svg
1818
addCorners(element, {
19+
color: '#f00',
1920
smoothing: 1,
2021
radius: 32,
2122
})
2223

2324
// multi-radius (top left, top right, bottom right, bottom left)
2425
addCorners(element, {
26+
color: '#f00',
2527
smoothing: 1,
2628
radius: [32, 4, 8, 16],
2729
})
2830

2931
// offset
3032
addCorners(element, {
33+
color: '#f00',
3134
smoothing: 1,
3235
radius: 32,
3336
offset: 16
3437
})
3538

3639
// multi-offset (top, right, bottom, left)
3740
addCorners(element, {
41+
color: '#f00',
3842
smoothing: 1,
3943
radius: 32,
4044
offset: [16, 4, 2, 8]
4145
})
4246

4347
// border
4448
addCorners(element, {
49+
color: '#f00',
4550
smoothing: 1,
4651
radius: 32,
4752
border: [4, '#f00']
4853
})
4954

5055
// multi-border
5156
addCorners(element, {
57+
color: '#f00',
5258
smoothing: 1,
5359
radius: 32,
5460
border: [
@@ -61,13 +67,15 @@ addCorners(element, {
6167

6268
// mode (squircle, figma-squircle, round, flat)
6369
addCorners(element, {
70+
color: '#f00',
6471
smoothing: 1,
6572
radius: 32,
6673
mode: 'squircle'
6774
})
6875

6976
// observe (default: true) redraws on resize
7077
addCorners(element, {
78+
color: '#f00',
7179
smoothing: 1,
7280
radius: 32,
7381
observe: false

dist/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/src/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)