mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
6be80e7c84
commit_hash:ce8bd5eb3c7414eaa4ba4068f6aed544a269f0dd
74 lines
1.9 KiB
JSON
74 lines
1.9 KiB
JSON
{
|
|
"type": "object",
|
|
"definitions": {
|
|
"color_point": {
|
|
"type": "object",
|
|
"suppress_inline": true,
|
|
"$description": "translations.json#/div_gradient_color_point",
|
|
"properties": {
|
|
"color": {
|
|
"$ref": "common.json#/color",
|
|
"$description": "translations.json#/div_gradient_color_point_color"
|
|
},
|
|
"position": {
|
|
"type": "number",
|
|
"constraint": "number >= 0.0 && number <= 1.0",
|
|
"$description": "translations.json#/div_gradient_color_point_position"
|
|
}
|
|
},
|
|
"required": [
|
|
"color",
|
|
"position"
|
|
]
|
|
}
|
|
},
|
|
"$description": "translations.json#/div_gradient_radial",
|
|
"properties": {
|
|
"color_map": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/color_point"
|
|
},
|
|
"minItems": 2,
|
|
"platforms": [
|
|
"web",
|
|
"ios",
|
|
"android"
|
|
],
|
|
"$description": "translations.json#/div_gradient_color_map"
|
|
},
|
|
"colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "common.json#/color"
|
|
},
|
|
"minItems": 2,
|
|
"$description": "translations.json#/div_gradient_colors"
|
|
},
|
|
"radius": {
|
|
"$ref": "div-radial-gradient-radius.json",
|
|
"default_value": "{\"type\": \"relative\", \"value\": \"farthest_corner\" }",
|
|
"$description": "translations.json#/div_gradient_radial_radius"
|
|
},
|
|
"center_x": {
|
|
"$ref": "div-radial-gradient-center.json",
|
|
"default_value": "{\"type\": \"relative\", \"value\": 0.5 }",
|
|
"$description": "translations.json#/div_gradient_radial_center_x"
|
|
},
|
|
"center_y": {
|
|
"$ref": "div-radial-gradient-center.json",
|
|
"default_value": "{\"type\": \"relative\", \"value\": 0.5 }",
|
|
"$description": "translations.json#/div_gradient_radial_center_y"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"radial_gradient"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
}
|