feat: support Image binding (#4347)
This commit is contained in:
parent
ca15b0a008
commit
1c7ee09010
@ -85,6 +85,7 @@ export const isBindableElement = (
|
|||||||
(element.type === "rectangle" ||
|
(element.type === "rectangle" ||
|
||||||
element.type === "diamond" ||
|
element.type === "diamond" ||
|
||||||
element.type === "ellipse" ||
|
element.type === "ellipse" ||
|
||||||
|
element.type === "image" ||
|
||||||
element.type === "text")
|
element.type === "text")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -683,6 +683,7 @@ const renderBindingHighlightForBindableElement = (
|
|||||||
switch (element.type) {
|
switch (element.type) {
|
||||||
case "rectangle":
|
case "rectangle":
|
||||||
case "text":
|
case "text":
|
||||||
|
case "image":
|
||||||
strokeRectWithRotation(
|
strokeRectWithRotation(
|
||||||
context,
|
context,
|
||||||
x1 - padding,
|
x1 - padding,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user