Defensive programming update
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
2e61d46cbd
commit
68cb5056ac
@ -204,7 +204,7 @@ const renderBindingHighlightForBindableElement = (
|
|||||||
case "diamond":
|
case "diamond":
|
||||||
drawHighlightForDiamondWithRotation(context, padding, element);
|
drawHighlightForDiamondWithRotation(context, padding, element);
|
||||||
break;
|
break;
|
||||||
case "ellipse":
|
case "ellipse": {
|
||||||
const [x1, y1, x2, y2] = getElementAbsoluteCoords(element, elementsMap);
|
const [x1, y1, x2, y2] = getElementAbsoluteCoords(element, elementsMap);
|
||||||
const width = x2 - x1;
|
const width = x2 - x1;
|
||||||
const height = y2 - y1;
|
const height = y2 - y1;
|
||||||
@ -222,6 +222,7 @@ const renderBindingHighlightForBindableElement = (
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderBindingHighlightForSuggestedPointBinding = (
|
const renderBindingHighlightForSuggestedPointBinding = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user