forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-image-background.json
57 lines (57 loc) · 1.55 KB
/
div-image-background.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"type": "object",
"$description": "translations.json#/div_image_background",
"properties": {
"image_url": {
"$ref": "common.json#/url",
"$description": "translations.json#/div_image_background_image_url"
},
"content_alignment_vertical": {
"$ref": "div-alignment-vertical.json",
"default_value": "center",
"$description": "translations.json#/div_image_background_content_alignment_vertical"
},
"content_alignment_horizontal": {
"$ref": "div-alignment-horizontal.json",
"default_value": "center",
"$description": "translations.json#/div_image_background_content_alignment_horizontal"
},
"scale": {
"$ref": "div-image-scale.json",
"default_value": "fill",
"$description": "translations.json#/div_image_background_scale"
},
"alpha": {
"type": "number",
"default_value": "1.0",
"constraint": "number >= 0.0 && number <= 1.0",
"$description": "translations.json#/div_image_background_alpha"
},
"preload_required": {
"$ref": "common.json#/boolean_int",
"default_value": "false",
"$description": "translations.json#/div_image_background_preload_required",
"platforms": [
"android"
]
},
"filters": {
"type": "array",
"items": {
"$ref": "div-filter.json"
},
"minItems": 1,
"$description": "translations.json#/div_filter"
},
"type": {
"type": "string",
"enum": [
"image"
]
}
},
"required": [
"image_url",
"type"
]
}