fix: remove draw element from codebase (#3559)

This commit is contained in:
David Luzar
2021-05-10 11:01:10 +02:00
committed by GitHub
parent 6bebfe63be
commit 11b8cc2caa
4 changed files with 22 additions and 9 deletions

View File

@ -180,7 +180,6 @@ const hitTestPointAgainstElement = (args: HitTestArgs): boolean => {
}
case "arrow":
case "line":
case "draw":
return hitTestLinear(args);
case "selection":
console.warn(

View File

@ -114,7 +114,7 @@ export type Arrowhead = "arrow" | "bar" | "dot";
export type ExcalidrawLinearElement = _ExcalidrawElementBase &
Readonly<{
type: "line" | "draw" | "arrow";
type: "line" | "arrow";
points: readonly Point[];
lastCommittedPoint: Point | null;
startBinding: PointBinding | null;