feat: Add support for rounded corners in diamond (#4369)

This commit is contained in:
Jai Kumar Dewani 2021-12-05 21:26:19 +05:30 committed by GitHub
parent 618f204ddd
commit 4ea73d5d5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 10 deletions

View file

@ -29,7 +29,10 @@ export const hasStrokeStyle = (type: string) =>
type === "line";
export const canChangeSharpness = (type: string) =>
type === "rectangle" || type === "arrow" || type === "line";
type === "rectangle" ||
type === "arrow" ||
type === "line" ||
type === "diamond";
export const hasText = (type: string) => type === "text";