mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fill a looped curve with the selected background color (#1315)
This commit is contained in:
parent
fe6f482e96
commit
57bbc9fe55
11 changed files with 240 additions and 32 deletions
|
@ -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" ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue