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
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";