Skip to content

Commit

Permalink
Fix some minor issues with splittable position (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia authored Aug 1, 2024
1 parent 8903301 commit 1f28069
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/specs/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ Animatable 2D {link:values/vector} with optional spatial tangents.
{schema_object:properties/position-keyframe}

<div id="split-position"></div>
<h4 id="splitable-position-property">Split Position</h4>
<h4 id="splittable-position-property">Split Position</h4>

{schema_string:properties/splitable-position-property/description}
{schema_string:properties/splittable-position-property/description}

{schema_object:properties/split-position}

Expand Down
2 changes: 1 addition & 1 deletion schema/helpers/transform.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"p": {
"title": "Position",
"description": "Position / Translation",
"$ref": "#/$defs/properties/splitable-position-property"
"$ref": "#/$defs/properties/splittable-position-property"
},
"r": {
"title": "Rotation",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Splitable Position Property",
"title": "Splittable Position Property",
"description": "An animatable position where position values may be defined and animated separately.",
"oneOf": [
{
"$comment": "Grouped XY position coordinates",
"$ref": "#/$defs/properties/position-property"
"$ref": "#/$defs/properties/position-property",
"properties": {
"s": {
"title": "Split",
"description": "Whether the position has split values",
"type": "boolean",
"const": false
}
}
},
{
"$comment": "Split XY position coordinates",
Expand Down

0 comments on commit 1f28069

Please sign in to comment.