feat: add line shape (#371)
* feat: add line shape * fix: align line tool * fix: hitbox bug sw to ne * fix: add stroke width n sloppiness for line * fix: center line inside a panel box * fix: use color as a unique key
This commit is contained in:
committed by
Timur Khazamov
parent
42968ef44d
commit
8db8827c6f
@ -55,6 +55,22 @@ export const SHAPES = [
|
||||
</svg>
|
||||
),
|
||||
value: "text"
|
||||
},
|
||||
{
|
||||
icon: (
|
||||
// custom
|
||||
<svg viewBox="0 0 6 6">
|
||||
<line
|
||||
x1="0"
|
||||
y1="3"
|
||||
x2="6"
|
||||
y2="3"
|
||||
stroke="black"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
value: "line"
|
||||
}
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user