From c29ab65bdbb8dcbb1cb6ebc2da0274f9b5c930eb Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Tue, 2 May 2023 21:45:20 +0200 Subject: [PATCH] Essential properties / slots schema --- .../animated-property.json | 5 ++++ docs/schema/animation/animation.json | 26 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/docs/schema/animated-properties/animated-property.json b/docs/schema/animated-properties/animated-property.json index 53875cf3..8653452d 100644 --- a/docs/schema/animated-properties/animated-property.json +++ b/docs/schema/animated-properties/animated-property.json @@ -19,6 +19,11 @@ "x": { "title": "Expression", "type": "string" + }, + "sid": { + "title": "Slot ID", + "description": "One of the ID in the file's slots", + "type": "string" } } }, diff --git a/docs/schema/animation/animation.json b/docs/schema/animation/animation.json index 52c642da..efe5c625 100644 --- a/docs/schema/animation/animation.json +++ b/docs/schema/animation/animation.json @@ -112,6 +112,32 @@ "mb": { "title": "Motion Blur", "$ref": "#/$defs/animation/motion-blur" + }, + "slots": { + "title": "Slots", + "description": "Available property overrides", + "type": "object", + "patternProperties": { + ".*": { + "anyOf": [ + { + "$ref": "#/$defs/animated-properties/multi-dimensional" + }, + { + "$ref": "#/$defs/animated-properties/color-value" + }, + { + "$ref": "#/$defs/animated-properties/position" + }, + { + "$ref": "#/$defs/animated-properties/shape-property" + }, + { + "$ref": "#/$defs/animated-properties/value" + } + ] + } + } } }, "required": ["w", "h", "fr", "layers", "op", "ip"]