From e027eede4c2d76ec5c647cb05980389d2d1f442f Mon Sep 17 00:00:00 2001 From: Gunnar Velle Date: Fri, 3 Jan 2025 10:19:23 +0100 Subject: [PATCH] Support data-fields for focal and crop for contact block --- .../src/main/resources/embed-tag-rules.json | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/validation/src/main/resources/embed-tag-rules.json b/validation/src/main/resources/embed-tag-rules.json index d820f42a1..62926e3f0 100644 --- a/validation/src/main/resources/embed-tag-rules.json +++ b/validation/src/main/resources/embed-tag-rules.json @@ -938,6 +938,74 @@ "dataType": "NUMBER" } }, + { + "name": "data-focal-x", + "validation": { + "required": false, + "dataType": "NUMBER", + "mustCoexistWith": [ + "data-focal-y" + ] + } + }, + { + "name": "data-focal-y", + "validation": { + "required": false, + "dataType": "NUMBER", + "mustCoexistWith": [ + "data-focal-x" + ] + } + }, + { + "name": "data-upper-left-x", + "validation": { + "required": false, + "dataType": "NUMBER", + "mustCoexistWith": [ + "data-upper-left-y", + "data-lower-right-x", + "data-lower-right-y" + ] + } + }, + { + "name": "data-upper-left-y", + "validation": { + "required": false, + "dataType": "NUMBER", + "mustCoexistWith": [ + "data-upper-left-x", + "data-lower-right-x", + "data-lower-right-y" + ] + } + }, + { + "name": "data-lower-right-x", + "validation": { + "required": false, + "dataType": "NUMBER", + "mustCoexistWith": [ + "data-upper-left-x", + "data-upper-left-y", + "data-lower-right-y" + ] + } + }, + { + "name": "data-lower-right-y", + "validation": { + "required": false, + "dataType": "NUMBER", + "mustCoexistWith": [ + "data-upper-left-x", + "data-upper-left-y", + "data-lower-right-x" + ] + } + }, { "name": "data-alt", "validation": {