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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 9 deletions

View file

@ -142,7 +142,6 @@ const drawElementOnCanvas = (
break;
}
case "arrow":
case "draw":
case "line": {
context.lineJoin = "round";
context.lineCap = "round";
@ -270,7 +269,6 @@ export const generateRoughOptions = (element: ExcalidrawElement): Options => {
}
return options;
}
case "draw":
case "line": {
if (isPathALoop(element.points)) {
options.fillStyle = element.fillStyle;
@ -359,7 +357,6 @@ const generateElementShape = (
generateRoughOptions(element),
);
break;
case "draw":
case "line":
case "arrow": {
const options = generateRoughOptions(element);
@ -589,7 +586,6 @@ export const renderElement = (
case "rectangle":
case "diamond":
case "ellipse":
case "draw":
case "line":
case "arrow":
case "text": {
@ -661,7 +657,6 @@ export const renderElementToSvg = (
svgRoot.appendChild(node);
break;
}
case "draw":
case "line":
case "arrow": {
generateElementShape(element, generator);