Fill a looped curve with the selected background color (#1315)

This commit is contained in:
Preet
2020-04-09 01:46:47 -07:00
committed by GitHub
parent fe6f482e96
commit 57bbc9fe55
11 changed files with 240 additions and 32 deletions

View File

@ -7,7 +7,10 @@ import { getElementAbsoluteCoords, hitTest } from "../element";
import { AppState } from "../types";
export const hasBackground = (type: string) =>
type === "rectangle" || type === "ellipse" || type === "diamond";
type === "rectangle" ||
type === "ellipse" ||
type === "diamond" ||
type === "line";
export const hasStroke = (type: string) =>
type === "rectangle" ||