Fix IO text masks being grouped (#3128)

(cherry picked from commit 29bdc47482)
This commit is contained in:
Abdo 2024-04-10 10:36:00 +03:00 committed by Damien Elmes
parent ca24eed1ac
commit e72fec18ae

View file

@ -28,7 +28,9 @@ export function extractShapesFromClozedField(
group.push(buildShape(shape.shape, props));
}
}
if (group.length > 1) {
if (occlusion.ordinal === 0) {
output.push(...group);
} else if (group.length > 1) {
output.push(group);
} else {
output.push(group[0]);