Skip to content

Commit

Permalink
add new properties to data bind
Browse files Browse the repository at this point in the history
adds several new properties to data bind
adds support for the EditorSwitcher component to display its binded state
switches feature flag on for data binding in UAT!

Diffs=
cea19ecc6 add new properties to data bind (#8211)

Co-authored-by: hernan <[email protected]>
  • Loading branch information
bodymovin and bodymovin committed Sep 24, 2024
1 parent 1060111 commit 508b6cb
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e67109195d8606b51551fe6df42eaa4c67cdc920
cea19ecc68bf92bad671389b5f00ba08ed6f04bf
3 changes: 2 additions & 1 deletion dev/defs/constraints/distance_constraint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"int": 177,
"string": "distance"
},
"description": "The unit distance the constraint will move the constrained object relative to the target."
"description": "The unit distance the constraint will move the constrained object relative to the target.",
"bindable": true
},
"modeValue": {
"type": "uint",
Expand Down
9 changes: 6 additions & 3 deletions dev/defs/constraints/follow_path_constraint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"int": 363,
"string": "distance"
},
"description": "Distance along the path to follow."
"description": "Distance along the path to follow.",
"bindable": true
},
"orient": {
"type": "bool",
Expand All @@ -24,7 +25,8 @@
"int": 364,
"string": "orient"
},
"description": "True when the orientation from the path is copied to the constrained transform."
"description": "True when the orientation from the path is copied to the constrained transform.",
"bindable": true
},
"offset": {
"type": "bool",
Expand All @@ -33,7 +35,8 @@
"int": 365,
"string": "offset"
},
"description": "True when the local translation is used to offset the transformed one."
"description": "True when the local translation is used to offset the transformed one.",
"bindable": true
}
}
}
3 changes: 2 additions & 1 deletion dev/defs/constraints/ik_constraint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"int": 174,
"string": "invert_direction"
},
"description": "True when the direction taken towards the target should be inverted from the default."
"description": "True when the direction taken towards the target should be inverted from the default.",
"bindable": true
},
"parentBoneCount": {
"type": "uint",
Expand Down
6 changes: 4 additions & 2 deletions dev/defs/constraints/transform_constraint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"int": 372,
"string": "originx"
},
"description": "Origin x in normalized coordinates (0.5 = center, 0 = left, 1 = right)."
"description": "Origin x in normalized coordinates (0.5 = center, 0 = left, 1 = right).",
"bindable": true
},
"originY": {
"type": "double",
Expand All @@ -24,7 +25,8 @@
"int": 373,
"string": "originy"
},
"description": "Origin y in normalized coordinates (0.5 = center, 0 = top, 1 = bottom)."
"description": "Origin y in normalized coordinates (0.5 = center, 0 = top, 1 = bottom).",
"bindable": true
}
}
}
3 changes: 2 additions & 1 deletion dev/defs/layout/axis.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"key": {
"int": 675,
"string": "offset"
}
},
"bindable": true
},
"normalized": {
"type": "bool",
Expand Down
3 changes: 2 additions & 1 deletion dev/defs/shapes/paint/dash.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"key": {
"int": 692,
"string": "length"
}
},
"bindable": true
},
"lengthIsPercentage": {
"type": "bool",
Expand Down
3 changes: 2 additions & 1 deletion dev/defs/shapes/paint/stroke.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"key": {
"int": 47,
"string": "thickness"
}
},
"bindable": true
},
"cap": {
"type": "uint",
Expand Down
9 changes: 6 additions & 3 deletions dev/defs/shapes/paint/trim_path.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"key": {
"int": 114,
"string": "trimStart"
}
},
"bindable": true
},
"end": {
"type": "double",
Expand All @@ -22,7 +23,8 @@
"key": {
"int": 115,
"string": "trimEnd"
}
},
"bindable": true
},
"offset": {
"type": "double",
Expand All @@ -31,7 +33,8 @@
"key": {
"int": 116,
"string": "trimOffset"
}
},
"bindable": true
},
"modeValue": {
"type": "uint",
Expand Down
12 changes: 8 additions & 4 deletions dev/defs/shapes/parametric_path.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"int": 20,
"string": "width"
},
"description": "Width of the parametric path."
"description": "Width of the parametric path.",
"bindable": true
},
"height": {
"type": "double",
Expand All @@ -25,7 +26,8 @@
"int": 21,
"string": "height"
},
"description": "Height of the parametric path."
"description": "Height of the parametric path.",
"bindable": true
},
"originX": {
"type": "double",
Expand All @@ -35,7 +37,8 @@
"int": 123,
"string": "originx"
},
"description": "Origin x in normalized coordinates (0.5 = center, 0 = left, 1 = right)."
"description": "Origin x in normalized coordinates (0.5 = center, 0 = left, 1 = right).",
"bindable": true
},
"originY": {
"type": "double",
Expand All @@ -45,7 +48,8 @@
"int": 124,
"string": "originy"
},
"description": "Origin y in normalized coordinates (0.5 = center, 0 = top, 1 = bottom)."
"description": "Origin y in normalized coordinates (0.5 = center, 0 = top, 1 = bottom).",
"bindable": true
}
}
}
12 changes: 8 additions & 4 deletions dev/defs/shapes/rectangle.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"int": 164,
"string": "linkcornerradius"
},
"description": "Whether the TL corner radius defines all the radiuses"
"description": "Whether the TL corner radius defines all the radiuses",
"bindable": true
},
"cornerRadiusTL": {
"type": "double",
Expand All @@ -33,7 +34,8 @@
"int": 161,
"string": "cornerRadiusTR"
},
"description": "Top right radius of the corners of this rectangle"
"description": "Top right radius of the corners of this rectangle",
"bindable": true
},
"cornerRadiusBL": {
"type": "double",
Expand All @@ -43,7 +45,8 @@
"int": 162,
"string": "cornerRadiusBL"
},
"description": "Bottom left radius of the corners of this rectangle"
"description": "Bottom left radius of the corners of this rectangle",
"bindable": true
},
"cornerRadiusBR": {
"type": "double",
Expand All @@ -53,7 +56,8 @@
"int": 163,
"string": "cornerRadiusBR"
},
"description": "Bottom right radius of the corners of this rectangle"
"description": "Bottom right radius of the corners of this rectangle",
"bindable": true
}
}
}
3 changes: 2 additions & 1 deletion dev/defs/shapes/star.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"int": 127,
"string": "inner_radius"
},
"description": "Percentage of width/height to project inner points of the star."
"description": "Percentage of width/height to project inner points of the star.",
"bindable": true
}
}
}

0 comments on commit 508b6cb

Please sign in to comment.