feat: better default radius sizes for rectangles (#5553)

Co-authored-by: Ryan <diweihao@bytedance.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Ryan Di 2022-12-08 23:48:49 +08:00 committed by GitHub
parent 65d84a5d5a
commit 5854ac3eed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 1861 additions and 818 deletions

View file

@ -24,7 +24,7 @@ export const hasStrokeStyle = (type: string) =>
type === "arrow" ||
type === "line";
export const canChangeSharpness = (type: string) =>
export const canChangeRoundness = (type: string) =>
type === "rectangle" ||
type === "arrow" ||
type === "line" ||

View file

@ -12,7 +12,7 @@ export {
hasStrokeWidth,
hasStrokeStyle,
canHaveArrowheads,
canChangeSharpness,
canChangeRoundness,
getElementAtPosition,
hasText,
getElementsAtPosition,