feat: support Image binding (#4347)

This commit is contained in:
zsviczian 2021-12-03 11:42:28 +01:00 committed by GitHub
parent ca15b0a008
commit 1c7ee09010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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")
); );
}; };

View File

@ -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,