-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support separated xy position coordinates (#33)
* WIP Seperate XY position properties * Support separated xy position coordinates * Update separatable position to only apply to transform.position field * Update separated position name to split position * Remove Z property from split position 3D is not in scope for 1.0 spec
- Loading branch information
Showing
6 changed files
with
190 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"title": "Split Position", | ||
"description": "An animatable position where x and y are definied and animated separately.", | ||
"properties": { | ||
"s": { | ||
"title": "Split", | ||
"description": "Whether the position has split values", | ||
"type": "boolean", | ||
"const": true | ||
}, | ||
"x": { | ||
"title": "X Position", | ||
"description": "X Position", | ||
"$ref": "#/$defs/properties/scalar-property" | ||
}, | ||
"y": { | ||
"title": "Y Position", | ||
"description": "Y Position", | ||
"$ref": "#/$defs/properties/scalar-property" | ||
} | ||
}, | ||
"required": ["s", "x", "y"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"title": "Splitable 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" | ||
}, | ||
{ | ||
"$comment": "Split XY position coordinates", | ||
"$ref": "#/$defs/properties/split-position" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
{ | ||
"v": "5.5.7", | ||
"ip": 0, | ||
"op": 180, | ||
"nm": "Animation", | ||
"mn": "{8f1618e3-6f83-4531-8f65-07dd4b68ee2e}", | ||
"fr": 60, | ||
"w": 512, | ||
"h": 512, | ||
"assets": [ | ||
], | ||
"layers": [ | ||
{ | ||
"ddd": 0, | ||
"ty": 4, | ||
"ind": 0, | ||
"st": 0, | ||
"ip": 0, | ||
"op": 180, | ||
"nm": "Layer", | ||
"mn": "{85f37d8b-1792-4a4f-82d2-1b3b6d829c07}", | ||
"ks": { | ||
"a": { | ||
"a": 0, | ||
"k": [ | ||
256, | ||
256 | ||
] | ||
}, | ||
"p": { | ||
"s": true, | ||
"x": { | ||
"a": 0, | ||
"k": 256 | ||
}, | ||
"y": { | ||
"a": 0, | ||
"k": 256 | ||
} | ||
}, | ||
"s": { | ||
"a": 0, | ||
"k": [ | ||
100, | ||
100 | ||
] | ||
}, | ||
"r": { | ||
"a": 0, | ||
"k": 0 | ||
}, | ||
"o": { | ||
"a": 0, | ||
"k": 100 | ||
} | ||
}, | ||
"shapes": [ | ||
{ | ||
"ty": "gr", | ||
"nm": "Group", | ||
"it": [ | ||
{ | ||
"ty": "el", | ||
"nm": "Ellipse", | ||
"p": { | ||
"a": 0, | ||
"k": [ | ||
256, | ||
256 | ||
] | ||
}, | ||
"s": { | ||
"a": 0, | ||
"k": [ | ||
256, | ||
256 | ||
] | ||
} | ||
}, | ||
{ | ||
"ty": "st", | ||
"nm": "Stroke", | ||
"mn": "{0930ce27-c8f9-4371-b0cf-111a859abfaf}", | ||
"o": { | ||
"a": 0, | ||
"k": 100 | ||
}, | ||
"c": { | ||
"a": 0, | ||
"k": [ | ||
1, | ||
0.9803921568627451, | ||
0.2823529411764706 | ||
] | ||
}, | ||
"lc": 2, | ||
"lj": 2, | ||
"ml": 0, | ||
"w": { | ||
"a": 0, | ||
"k": 30 | ||
} | ||
}, | ||
{ | ||
"ty": "tr", | ||
"a": { | ||
"a": 0, | ||
"k": [ | ||
249.3134328358209, | ||
254.47164179104476 | ||
] | ||
}, | ||
"p": { | ||
"a": 0, | ||
"k": [ | ||
249.3134328358209, | ||
254.47164179104476 | ||
] | ||
}, | ||
"s": { | ||
"a": 0, | ||
"k": [ | ||
100, | ||
100 | ||
] | ||
}, | ||
"r": { | ||
"a": 0, | ||
"k": 0 | ||
}, | ||
"o": { | ||
"a": 0, | ||
"k": 100 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |