mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
feat: support Image binding (#4347)
This commit is contained in:
parent
ca15b0a008
commit
1c7ee09010
2 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,7 @@ export const isBindableElement = (
|
|||
(element.type === "rectangle" ||
|
||||
element.type === "diamond" ||
|
||||
element.type === "ellipse" ||
|
||||
element.type === "image" ||
|
||||
element.type === "text")
|
||||
);
|
||||
};
|
||||
|
|
|
@ -683,6 +683,7 @@ const renderBindingHighlightForBindableElement = (
|
|||
switch (element.type) {
|
||||
case "rectangle":
|
||||
case "text":
|
||||
case "image":
|
||||
strokeRectWithRotation(
|
||||
context,
|
||||
x1 - padding,
|
||||
|
|
Loading…
Add table
Reference in a new issue