From c2177999f4564eed91f44abb599171b5ac72617a Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Mon, 9 Sep 2024 10:38:12 +0200 Subject: [PATCH] Fix some typos --- docs/specs/constants.md | 2 +- docs/specs/helpers.md | 2 +- docs/specs/properties.md | 5 +++-- docs/specs/shapes.md | 4 ++-- docs/specs/values.md | 4 ++-- schema/composition/animation.json | 2 +- schema/helpers/slottable-object.json | 4 ++-- schema/helpers/slottable-property.json | 4 ++-- schema/shapes/graphic-element.json | 2 +- schema/values/gradient.json | 2 +- 10 files changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/specs/constants.md b/docs/specs/constants.md index b04fc90..8e3929c 100644 --- a/docs/specs/constants.md +++ b/docs/specs/constants.md @@ -161,7 +161,7 @@ {schema_string:constants/matte-mode/description} -The value for Luma is calculated accourding to [Rec.709](https://www.itu.int/rec/R-REC-BT.709) standard: +The value for Luma is calculated according to [Rec.709](https://www.itu.int/rec/R-REC-BT.709) standard: $$Y = 0.2126 R + 0.7152 G + 0.0722 B$$ diff --git a/docs/specs/helpers.md b/docs/specs/helpers.md index 4932f17..78279e5 100644 --- a/docs/specs/helpers.md +++ b/docs/specs/helpers.md @@ -161,7 +161,7 @@ The operations need to be chained using right multiplication instead of left mul Slots are a way to define a property value once and use the value in multiple properties. Slot definitions are in a dictionary, the slot definition key is the -key that is used to match all properties with an `sid` field to the same key for +key that is used to match all properties with a `sid` field to the same key for replacement.

Slot

diff --git a/docs/specs/properties.md b/docs/specs/properties.md index ab301ad..13dd6bc 100644 --- a/docs/specs/properties.md +++ b/docs/specs/properties.md @@ -17,7 +17,7 @@ Their structure depends on whether it's animated or not: Keyframe arrays MUST be stored in order of ascending `t` frame number. -Two consecutive keyframes MAY have the same `t` value but a property MUST NOT have more that two keyframes with the same `t`. +Two consecutive keyframes MAY have the same `t` value but a property MUST NOT have more than two keyframes with the same `t`. If two keyframes share the `t` value, the implementation MUST render one of the two values at the given frame. All keyframes MUST have an `i` and `o` value, unless- @@ -26,7 +26,8 @@ All keyframes MUST have an `i` and `o` value, unless- * `h` is present and it's 1, as the property will keep the same value until the next keyframe. -If the first keyframe occurs after the start of the animation, the initial property value will be from the first keyframe. Similarly if the last keyframe is before the end of the animation, the last keyframe value will be held until the end. +If the first keyframe occurs after the start of the animation, the initial property value will be from the first keyframe. +Similarly, if the last keyframe is before the end of the animation, the last keyframe value will be held until the end.

Keyframe Easing

diff --git a/docs/specs/shapes.md b/docs/specs/shapes.md index 3a032dd..c4ed478 100644 --- a/docs/specs/shapes.md +++ b/docs/specs/shapes.md @@ -76,7 +76,7 @@ the instructions are equivalent to `value[0]` and `value[1]` respectively. All paths MUST be closed unless specified otherwise in the rendering instructions. When instructions call for an equality comparison between two values, -implementaions MAY consider similar values to be equal to overcome numerical instability. +implementations MAY consider similar values to be equal to overcome numerical instability. ### Drawing Commands @@ -85,7 +85,7 @@ Drawing instructions will contain the following commands: * _add vertex_: Adds a vertex to the bezier shape in global coordinates * _set in tangent_: Sets the cubic tangent to the last added vertex, with coordinates relative to it. If omitted, tangents MUST be $(0, 0)$. * _set out tangent_: Sets the cubic tangent from the last added vertex, with coordinates relative to it. If omitted, tangents MUST be $(0, 0)$. -* _lerp_: Linerarly interpolates two points or scalars by a given amount. +* _lerp_: Linearly interpolates two points or scalars by a given amount. ### Approximating Ellipses with Cubic Bezier diff --git a/docs/specs/values.md b/docs/specs/values.md index 58ec69b..810166c 100644 --- a/docs/specs/values.md +++ b/docs/specs/values.md @@ -17,12 +17,12 @@ second corresponding to the _Y_. Colors are [Vectors](#vector) with values between 0 and 1 for the RGB components. -for example: +For example: * {lottie_color:1, 0, 0} * {lottie_color:1, 0.5, 0} -Note sometimes you might find color values with 4 components (the 4th being alpha) +Note: sometimes you might find color values with 4 components (the 4th being alpha) but most players ignore the last component.

Hex Color

diff --git a/schema/composition/animation.json b/schema/composition/animation.json index 1e3c847..58e8e83 100644 --- a/schema/composition/animation.json +++ b/schema/composition/animation.json @@ -62,7 +62,7 @@ }, "slots": { "title": "Slots", - "description": "Dictionary of slot ids that that will replace matching properties.", + "description": "Dictionary of slot ids that will replace matching properties.", "type": "object", "additionalProperties": { "$ref": "#/$defs/helpers/slot" diff --git a/schema/helpers/slottable-object.json b/schema/helpers/slottable-object.json index 1f3bd77..c9a955b 100644 --- a/schema/helpers/slottable-object.json +++ b/schema/helpers/slottable-object.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "title": "Slottable Object", - "description": "Object that may have it's value replaced with a slot value", + "description": "Object that may have its value replaced with a slot value", "properties": { "sid": { "title": "Slot Id", @@ -10,4 +10,4 @@ "type": "string" } } -} \ No newline at end of file +} diff --git a/schema/helpers/slottable-property.json b/schema/helpers/slottable-property.json index d07016b..710da19 100644 --- a/schema/helpers/slottable-property.json +++ b/schema/helpers/slottable-property.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "title": "Slottable Property", - "description": "Property that may have it's value replaced with a slot value", + "description": "Property that may have its value replaced with a slot value", "allOf": [ { "$ref": "#/$defs/helpers/slottable-object" @@ -14,4 +14,4 @@ "else": { "required": ["a", "k"] } -} \ No newline at end of file +} diff --git a/schema/shapes/graphic-element.json b/schema/shapes/graphic-element.json index 22d28f1..77a93ef 100644 --- a/schema/shapes/graphic-element.json +++ b/schema/shapes/graphic-element.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "title": "Graphic Element", - "description": "Element used to display vector daya in a shape layer", + "description": "Element used to display vector data in a shape layer", "allOf": [ { "$ref": "#/$defs/helpers/visual-object" diff --git a/schema/values/gradient.json b/schema/values/gradient.json index 298d809..238b9cd 100644 --- a/schema/values/gradient.json +++ b/schema/values/gradient.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "array", "title": "Gradient", - "description": "A flat list of color stops followed by optional transparency stops. A color stop is [offset, red, green, blue]. A transperency stop is [offset, transparency]. All values are between 0 and 1", + "description": "A flat list of color stops followed by optional transparency stops. A color stop is [offset, red, green, blue]. A transparency stop is [offset, transparency]. All values are between 0 and 1", "items": { "type": "number", "minimum": 0,