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

feat(icon-view): corrected shape for size 40 #1203

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/proud-seahorses-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@alfalab/core-components-icon-view": minor
---

Исправлена форма для компонета SuperEllipse в размере 40 (стала более округлой)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions packages/icon-view/src/component.screenshots.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe(
componentName: 'IconView',
subComponentName: 'SuperEllipse',
knobs: {
size: [24, 48, 64, 80, 128],
size: [24, 48, 64, 80, 128, 16, 20, 32, 40, 56],
border: [true, false],
},
testStory: false,
Expand Down Expand Up @@ -86,7 +86,7 @@ describe(
componentName: 'IconView',
subComponentName: 'Circle',
knobs: {
size: [24, 48, 64, 80, 128],
size: [24, 48, 64, 80, 128, 16, 20, 32, 40, 56],
border: [true, false],
},
testStory: false,
Expand Down Expand Up @@ -142,7 +142,7 @@ describe(
componentName: 'IconView',
subComponentName: 'Rectangle',
knobs: {
size: [24, 48, 64, 80, 128],
size: [24, 48, 64, 80, 128, 20, 32, 40, 56],
border: [true, false],
},
testStory: false,
Expand All @@ -160,8 +160,7 @@ describe(
componentName: 'IconView',
subComponentName: 'NoShape',
knobs: {
size: [24, 48, 64, 80, 128],
border: [true, false],
size: [16, 20, 24, 32, 40, 48, 56, 64, 80, 128],
},
testStory: false,
}),
Expand Down
5 changes: 2 additions & 3 deletions packages/icon-view/src/components/super-ellipse/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const borderPaths = {
bottom: 'M0.5 20C0.5 16.7291 0.500314 14.3029 0.64182 12.3756C0.782962 10.4532 1.0626 9.06667 1.60125 7.86984C2.85477 5.08464 5.08464 2.85477 7.86984 1.60125C9.06667 1.0626 10.4532 0.782962 12.3756 0.64182C14.3029 0.500314 16.7291 0.5 20 0.5C23.2709 0.5 25.6971 0.500314 27.6244 0.64182C29.5468 0.782962 30.9333 1.0626 32.1302 1.60125C34.9154 2.85477 37.1452 5.08464 38.3987 7.86984C38.9374 9.06667 39.217 10.4532 39.3582 12.3756C39.4997 14.3029 39.5 16.7291 39.5 20C39.5 20.8451 39.5 21.6345 39.4975 22.3746C39.4957 22.9233 39.4933 23.1305 39.4773 23.2327C39.4101 23.6606 39.2742 23.9288 39.0971 24.1054C38.9199 24.2819 38.6513 24.4169 38.2231 24.4826C38.1881 24.488 38.0904 24.4942 37.873 24.4972C37.6671 24.5 37.3843 24.5 37 24.5C30.0964 24.5 24.5 30.0964 24.5 37C24.5 37.3843 24.5 37.6671 24.4972 37.873C24.4942 38.0904 24.488 38.1881 24.4826 38.2231C24.4169 38.6513 24.2819 38.9199 24.1054 39.0971C23.9288 39.2742 23.6606 39.4101 23.2327 39.4773C23.1305 39.4933 22.9233 39.4957 22.3746 39.4975C21.6345 39.5 20.8451 39.5 20 39.5C16.7291 39.5 14.3029 39.4997 12.3756 39.3582C10.4532 39.217 9.06667 38.9374 7.86984 38.3987C5.08464 37.1452 2.85477 34.9154 1.60125 32.1302C1.0626 30.9333 0.782962 29.5468 0.64182 27.6244C0.500314 25.6971 0.5 23.2709 0.5 20Z',
topBottom:
'M24.4826 1.77689C24.488 1.81192 24.4942 1.90964 24.4972 2.12695C24.5 2.33287 24.5 2.61572 24.5 3C24.5 9.90356 30.0964 15.5 37 15.5C37.3843 15.5 37.6671 15.5 37.873 15.5028C38.0904 15.5058 38.1881 15.512 38.2231 15.5174C38.6513 15.5831 38.9199 15.7181 39.0971 15.8946C39.2742 16.0712 39.4101 16.3394 39.4773 16.7673C39.4933 16.8695 39.4957 17.0767 39.4975 17.6254C39.5 18.3655 39.5 19.1549 39.5 20C39.5 20.8451 39.5 21.6345 39.4975 22.3746C39.4957 22.9233 39.4933 23.1305 39.4773 23.2327C39.4101 23.6606 39.2742 23.9288 39.0971 24.1054C38.9199 24.2819 38.6513 24.4169 38.2231 24.4826C38.1881 24.488 38.0904 24.4942 37.873 24.4972C37.6671 24.5 37.3843 24.5 37 24.5C30.0964 24.5 24.5 30.0964 24.5 37C24.5 37.3843 24.5 37.6671 24.4972 37.873C24.4942 38.0904 24.488 38.1881 24.4826 38.2231C24.4169 38.6513 24.2819 38.9199 24.1054 39.0971C23.9288 39.2742 23.6606 39.4101 23.2327 39.4773C23.1305 39.4933 22.9233 39.4957 22.3746 39.4975C21.6345 39.5 20.8451 39.5 20 39.5C16.7291 39.5 14.3029 39.4997 12.3756 39.3582C10.4532 39.217 9.06667 38.9374 7.86984 38.3987C5.08464 37.1452 2.85477 34.9154 1.60125 32.1302C1.0626 30.9333 0.782962 29.5468 0.64182 27.6244C0.500314 25.6971 0.5 23.2709 0.5 20C0.5 16.7291 0.500314 14.3029 0.64182 12.3756C0.782962 10.4532 1.0626 9.06667 1.60125 7.86984C2.85477 5.08464 5.08464 2.85477 7.86984 1.60125C9.06667 1.0626 10.4532 0.782962 12.3756 0.64182C14.3029 0.500314 16.7291 0.5 20 0.5C20.8451 0.5 21.6345 0.500001 22.3746 0.502482C22.9233 0.504321 23.1305 0.506697 23.2327 0.522742C23.6606 0.589931 23.9288 0.725773 24.1054 0.902929C24.2819 1.08009 24.4169 1.34875 24.4826 1.77689Z',
none: 'M0.5 20C0.5 16.7291 0.500314 14.3029 0.64182 12.3756C0.782962 10.4532 1.0626 9.06667 1.60125 7.86984C2.85477 5.08464 5.08464 2.85477 7.86984 1.60125C9.06667 1.0626 10.4532 0.782962 12.3756 0.64182C14.3029 0.500314 16.7291 0.5 20 0.5C23.2709 0.5 25.6971 0.500314 27.6244 0.64182C29.5468 0.782962 30.9333 1.0626 32.1302 1.60125C34.9154 2.85477 37.1452 5.08464 38.3987 7.86984C38.9374 9.06667 39.217 10.4532 39.3582 12.3756C39.4997 14.3029 39.5 16.7291 39.5 20C39.5 23.2709 39.4997 25.6971 39.3582 27.6244C39.217 29.5468 38.9374 30.9333 38.3987 32.1302C37.1452 34.9154 34.9154 37.1452 32.1302 38.3987C30.9333 38.9374 29.5468 39.217 27.6244 39.3582C25.6971 39.4997 23.2709 39.5 20 39.5C16.7291 39.5 14.3029 39.4997 12.3756 39.3582C10.4532 39.217 9.06667 38.9374 7.86984 38.3987C5.08464 37.1452 2.85477 34.9154 1.60125 32.1302C1.0626 30.9333 0.782962 29.5468 0.64182 27.6244C0.500314 25.6971 0.5 23.2709 0.5 20Z',
none: 'M1.1452 10.334C1.84134 5.47015 5.47015 1.84134 10.334 1.1452C12.9058 0.777104 16.1277 0.5 20 0.5C23.8723 0.5 27.0942 0.777104 29.666 1.1452C34.5299 1.84134 38.1587 5.47015 38.8548 10.334C39.2229 12.9058 39.5 16.1277 39.5 20C39.5 23.8723 39.2229 27.0942 38.8548 29.666C38.1587 34.5299 34.5299 38.1587 29.666 38.8548C27.0942 39.2229 23.8723 39.5 20 39.5C16.1277 39.5 12.9058 39.2229 10.334 38.8548C5.47015 38.1587 1.84134 34.5299 1.1452 29.666C0.777104 27.0942 0.5 23.8723 0.5 20C0.5 16.1277 0.777104 12.9058 1.1452 10.334Z',
top: 'M39.4773 16.7673C39.4933 16.8695 39.4957 17.0767 39.4975 17.6254C39.5 18.3655 39.5 19.1549 39.5 20C39.5 23.2709 39.4997 25.6971 39.3582 27.6244C39.217 29.5468 38.9374 30.9333 38.3987 32.1302C37.1452 34.9154 34.9154 37.1452 32.1302 38.3987C30.9333 38.9374 29.5468 39.217 27.6244 39.3582C25.6971 39.4997 23.2709 39.5 20 39.5C16.7291 39.5 14.3029 39.4997 12.3756 39.3582C10.4532 39.217 9.06667 38.9374 7.86984 38.3987C5.08464 37.1452 2.85477 34.9154 1.60125 32.1302C1.0626 30.9333 0.782962 29.5468 0.64182 27.6244C0.500314 25.6971 0.5 23.2709 0.5 20C0.5 16.7291 0.500314 14.3029 0.64182 12.3756C0.782962 10.4532 1.0626 9.06667 1.60125 7.86984C2.85477 5.08464 5.08464 2.85477 7.86984 1.60125C9.06667 1.0626 10.4532 0.782962 12.3756 0.64182C14.3029 0.500314 16.7291 0.5 20 0.5C20.8451 0.5 21.6345 0.500001 22.3746 0.502482C22.9233 0.504321 23.1305 0.506697 23.2327 0.522742C23.6606 0.589931 23.9288 0.725773 24.1054 0.902929C24.2819 1.08009 24.4169 1.34875 24.4826 1.77689C24.488 1.81192 24.4942 1.90964 24.4972 2.12695C24.5 2.33287 24.5 2.61572 24.5 3C24.5 9.90356 30.0964 15.5 37 15.5C37.3843 15.5 37.6671 15.5 37.873 15.5028C38.0904 15.5058 38.1881 15.512 38.2231 15.5174C38.6513 15.5831 38.9199 15.7181 39.0971 15.8946C39.2742 16.0712 39.4101 16.3394 39.4773 16.7673Z',
indicator:
'M29.2742 0.818539L29.3656 0.326964L29.2742 0.818539C29.7258 0.902513 30.0064 1.06314 30.182 1.26499C30.3576 1.46682 30.4778 1.7669 30.4985 2.22576C30.4984 2.22472 30.4985 2.22504 30.4985 2.2273C30.4986 2.22926 30.4986 2.23268 30.4987 2.23793L30.4992 2.28012C30.4994 2.31631 30.4996 2.36638 30.4997 2.43158C30.5 2.56187 30.5 2.7492 30.5 3C30.5 6.58985 33.4101 9.5 37 9.5C37.2508 9.5 37.4381 9.5 37.5684 9.50025C37.6336 9.50038 37.6837 9.50056 37.7199 9.50084L37.7621 9.50129C37.7712 9.50144 37.7748 9.50155 37.7748 9.50155L37.7741 9.50151C38.2331 9.52216 38.5332 9.6424 38.735 9.81799C38.9369 9.99359 39.0975 10.2742 39.1815 10.7258C39.1873 10.757 39.1907 10.7808 39.2009 10.8538C39.4988 12.9852 39.5 15.7898 39.5 20C39.5 23.2709 39.4997 25.6971 39.3582 27.6244C39.217 29.5468 38.9374 30.9333 38.3987 32.1302C37.1452 34.9154 34.9154 37.1452 32.1302 38.3987C30.9333 38.9374 29.5468 39.217 27.6244 39.3582C25.6971 39.4997 23.2709 39.5 20 39.5C16.7291 39.5 14.3029 39.4997 12.3756 39.3582C10.4532 39.217 9.06667 38.9374 7.86984 38.3987C5.08464 37.1452 2.85477 34.9154 1.60125 32.1302C1.0626 30.9333 0.782962 29.5468 0.64182 27.6244C0.500314 25.6971 0.5 23.2709 0.5 20C0.5 16.7291 0.500314 14.3029 0.64182 12.3756C0.782962 10.4532 1.0626 9.06667 1.60125 7.86984C2.85477 5.08464 5.08464 2.85477 7.86984 1.60125C9.06667 1.0626 10.4532 0.782962 12.3756 0.64182C14.3029 0.500314 16.7291 0.5 20 0.5C24.2102 0.5 27.0148 0.501183 29.1462 0.799118C29.2192 0.809318 29.243 0.812746 29.2742 0.818539Z',
Expand Down Expand Up @@ -108,8 +108,7 @@ export const shapePaths = {
bottom: 'M1.1453 7.66463C0 10.2094 0 13.4729 0 20C0 26.5271 0 29.7906 1.1453 32.3354C2.44896 35.232 4.76803 37.551 7.66463 38.8547C10.2094 40 13.4729 40 20 40C20.8449 40 21.6352 40 22.3762 39.9975C22.8983 39.9958 23.1594 39.9949 23.3102 39.9712C24.3058 39.8149 24.8238 39.2951 24.9768 38.299C25 38.1481 25 37.7654 25 37C25 30.3726 30.3726 25 37 25C37.7654 25 38.1481 25 38.299 24.9768C39.2951 24.8238 39.8149 24.3058 39.9712 23.3102C39.9949 23.1594 39.9958 22.8983 39.9975 22.3762C40 21.6352 40 20.8449 40 20C40 13.4729 40 10.2094 38.8547 7.66463C37.551 4.76803 35.232 2.44896 32.3354 1.1453C29.7906 0 26.5271 0 20 0C13.4729 0 10.2094 0 7.66463 1.1453C4.76803 2.44896 2.44896 4.76803 1.1453 7.66463Z',
topBottom:
'M25 3C25 2.2346 25 1.8519 24.9768 1.70099C24.8238 0.704878 24.3058 0.185114 23.3102 0.0287933C23.1594 0.00510986 22.8983 0.0042347 22.3762 0.00248438C21.6352 -2.32831e-10 20.8449 0 20 0C13.4729 0 10.2094 0 7.66463 1.1453C4.76803 2.44896 2.44896 4.76803 1.1453 7.66463C0 10.2094 0 13.4729 0 20C0 26.5271 0 29.7906 1.1453 32.3354C2.44896 35.232 4.76803 37.551 7.66463 38.8547C10.2094 40 13.4729 40 20 40C20.8449 40 21.6352 40 22.3762 39.9975C22.8983 39.9958 23.1594 39.9949 23.3102 39.9712C24.3058 39.8149 24.8238 39.2951 24.9768 38.299C25 38.1481 25 37.7654 25 37C25 30.3726 30.3726 25 37 25C37.7654 25 38.1481 25 38.299 24.9768C39.2951 24.8238 39.8149 24.3058 39.9712 23.3102C39.9949 23.1594 39.9958 22.8983 39.9975 22.3762C40 21.6352 40 20.8449 40 20C40 19.1551 40 18.3648 39.9975 17.6238C39.9958 17.1017 39.9949 16.8406 39.9712 16.6898C39.8149 15.6942 39.2951 15.1762 38.299 15.0232C38.1481 15 37.7654 15 37 15C30.3726 15 25 9.62742 25 3Z',
none: 'M0 20C0 13.4729 0 10.2094 1.1453 7.66463C2.44896 4.76803 4.76803 2.44896 7.66463 1.1453C10.2094 0 13.4729 0 20 0C26.5271 0 29.7906 0 32.3354 1.1453C35.232 2.44896 37.551 4.76803 38.8547 7.66463C40 10.2094 40 13.4729 40 20C40 26.5271 40 29.7906 38.8547 32.3354C37.551 35.232 35.232 37.551 32.3354 38.8547C29.7906 40 26.5271 40 20 40C13.4729 40 10.2094 40 7.66463 38.8547C4.76803 37.551 2.44896 35.232 1.1453 32.3354C0 29.7906 0 26.5271 0 20Z',
top: 'M39.9975 17.6238C39.9958 17.1017 39.9949 16.8406 39.9712 16.6898C39.8149 15.6942 39.2951 15.1762 38.299 15.0232C38.1481 15 37.7654 15 37 15C30.3726 15 25 9.62742 25 3C25 2.2346 25 1.8519 24.9768 1.70099C24.8238 0.704878 24.3058 0.185114 23.3102 0.0287933C23.1594 0.00510986 22.8983 0.00423471 22.3762 0.00248439C21.6352 -2.32831e-10 20.8449 0 20 0C13.4729 0 10.2094 0 7.66463 1.1453C4.76803 2.44896 2.44896 4.76803 1.1453 7.66463C0 10.2094 0 13.4729 0 20C0 26.5271 0 29.7906 1.1453 32.3354C2.44896 35.232 4.76803 37.551 7.66463 38.8547C10.2094 40 13.4729 40 20 40C26.5271 40 29.7906 40 32.3354 38.8547C35.232 37.551 37.551 35.232 38.8547 32.3354C40 29.7906 40 26.5271 40 20C40 19.1551 40 18.3648 39.9975 17.6238Z',
none: 'M0.65024 10.2631C1.37785 5.17942 5.17942 1.37785 10.2631 0.65024C12.8582 0.278824 16.1038 0 20 0C23.8962 0 27.1418 0.278824 29.7368 0.65024C34.8206 1.37785 38.6221 5.17942 39.3498 10.2631C39.7212 12.8582 40 16.1038 40 20C40 23.8962 39.7212 27.1418 39.3498 29.7368C38.6221 34.8206 34.8206 38.6221 29.7368 39.3498C27.1418 39.7212 23.8962 40 20 40C16.1038 40 12.8582 39.7212 10.2631 39.3498C5.17942 38.6221 1.37785 34.8206 0.65024 29.7369C0.278824 27.1418 0 23.8962 0 20C0 16.1038 0.278824 12.8582 0.65024 10.2631Z',
indicator:
'M39.6961 10.7846C39.6862 10.7139 39.6813 10.6786 39.673 10.6344C39.4769 9.57966 38.8683 9.05023 37.7966 9.00202C37.7517 9 37.5011 9 37 9C33.6863 9 31 6.31371 31 3C31 2.49887 31 2.24831 30.998 2.2034C30.9498 1.13166 30.4203 0.523072 29.3656 0.326964C29.3214 0.318746 29.2861 0.313808 29.2154 0.303932C27.0411 1.2219e-06 24.1944 0 20 0C13.4729 0 10.2094 0 7.66463 1.1453C4.76803 2.44896 2.44896 4.76803 1.1453 7.66463C0 10.2094 0 13.4729 0 20C0 26.5271 0 29.7906 1.1453 32.3354C2.44896 35.232 4.76803 37.551 7.66463 38.8547C10.2094 40 13.4729 40 20 40C26.5271 40 29.7906 40 32.3354 38.8547C35.232 37.551 37.551 35.232 38.8547 32.3354C40 29.7906 40 26.5271 40 20C40 15.8056 40 12.9589 39.6961 10.7846Z',
indicatorBottom:
Expand Down
Loading