mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Elbow arrow z-index binding (#9067)
This commit is contained in:
parent
86c67bd37f
commit
302664e500
8 changed files with 165 additions and 31 deletions
|
@ -9,7 +9,11 @@ import {
|
|||
isDarwin,
|
||||
WINDOWS_EMOJI_FALLBACK_FONT,
|
||||
} from "./constants";
|
||||
import type { FontFamilyValues, FontString } from "./element/types";
|
||||
import type {
|
||||
ExcalidrawBindableElement,
|
||||
FontFamilyValues,
|
||||
FontString,
|
||||
} from "./element/types";
|
||||
import type {
|
||||
ActiveTool,
|
||||
AppState,
|
||||
|
@ -543,6 +547,9 @@ export const isTransparent = (color: string) => {
|
|||
);
|
||||
};
|
||||
|
||||
export const isBindingFallthroughEnabled = (el: ExcalidrawBindableElement) =>
|
||||
el.fillStyle !== "solid" || isTransparent(el.backgroundColor);
|
||||
|
||||
export type ResolvablePromise<T> = Promise<T> & {
|
||||
resolve: [T] extends [undefined]
|
||||
? (value?: MaybePromise<Awaited<T>>) => void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue