chore: show bounding box only when flag is true (#6490)
This commit is contained in:
parent
ff3c2e5a16
commit
98a77d7426
@ -864,7 +864,8 @@ const drawElementFromCanvas = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
process.env.REACT_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX &&
|
process.env.REACT_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX ===
|
||||||
|
"true" &&
|
||||||
hasBoundTextElement(element)
|
hasBoundTextElement(element)
|
||||||
) {
|
) {
|
||||||
const coords = getContainerCoords(element);
|
const coords = getContainerCoords(element);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user