Merge remote-tracking branch 'origin/master' into aakansha-custom-elements

Update customType
This commit is contained in:
ad1992 2022-03-25 22:32:28 +05:30
commit 3d459076fb
25 changed files with 381 additions and 229 deletions

View file

@ -62,7 +62,7 @@ export const isLinearElement = (
};
export const isLinearElementType = (
elementType: AppState["elementType"],
elementType: AppState["activeTool"]["type"],
): boolean => {
return (
elementType === "arrow" || elementType === "line" // || elementType === "freedraw"
@ -76,7 +76,7 @@ export const isBindingElement = (
};
export const isBindingElementType = (
elementType: AppState["elementType"],
elementType: AppState["activeTool"]["type"],
): boolean => {
return elementType === "arrow";
};