Files
divkit/schema/div-base.json
T
man-y 7f00e3b5aa Mark supported features of Flutter
e5a6a0f23d3e399f39c492c585359ca1666ccddf
2024-05-14 11:19:28 +03:00

217 lines
5.2 KiB
JSON

{
"protocol_name": "div-base",
"codegen": {
"swift": {
"super_protocol": "DivBlockModeling"
},
"documentation": {
"include_in_toc": true
}
},
"type": "object",
"properties": {
"id": {
"$ref": "common.json#/id",
"$description": "translations.json#/div_base_id"
},
"border": {
"$ref": "div-border.json",
"$description": "translations.json#/div_base_border"
},
"width": {
"$ref": "div-size.json",
"default_value": "{\"type\": \"match_parent\"}",
"$description": "translations.json#/div_base_width"
},
"height": {
"$ref": "div-size.json",
"default_value": "{\"type\": \"wrap_content\"}",
"$description": "translations.json#/div_base_height"
},
"background": {
"type": "array",
"items": {
"$ref": "div-background.json"
},
"$description": "translations.json#/div_base_background"
},
"paddings": {
"$ref": "div-edge-insets.json",
"$description": "translations.json#/div_base_paddings"
},
"margins": {
"$ref": "div-edge-insets.json",
"$description": "translations.json#/div_base_margins"
},
"alpha": {
"type": "number",
"default_value": "1.0",
"constraint": "number >= 0.0 && number <= 1.0",
"$description": "translations.json#/div_base_alpha"
},
"alignment_vertical": {
"$ref": "div-alignment-vertical.json",
"$description": "translations.json#/div_base_alignment_vertical"
},
"alignment_horizontal": {
"$ref": "div-alignment-horizontal.json",
"$description": "translations.json#/div_base_alignment_horizontal"
},
"row_span": {
"$ref": "common.json#/non_negative_integer",
"$description": "translations.json#/div_base_row_span",
"platforms": [
"android",
"ios",
"web"
]
},
"column_span": {
"$ref": "common.json#/non_negative_integer",
"$description": "translations.json#/div_base_column_span",
"platforms": [
"android",
"ios",
"web"
]
},
"visibility_action": {
"$ref": "div-visibility-action.json",
"$description": "translations.json#/div_base_visibility_action",
"platforms": [
"android",
"ios",
"web"
]
},
"visibility_actions": {
"type": "array",
"items": {
"$ref": "div-visibility-action.json"
},
"$description": "translations.json#/div_base_visibility_actions",
"platforms": [
"android",
"ios",
"web"
]
},
"disappear_actions": {
"type": "array",
"items": {
"$ref": "div-disappear-action.json"
},
"$description": "translations.json#/div_base_disappear_actions",
"platforms": [
"android",
"ios",
"web"
]
},
"tooltips": {
"type": "array",
"items": {
"$ref": "div-tooltip.json"
},
"$description": "translations.json#/div_base_tooltips",
"platforms": [
"android",
"ios",
"web"
]
},
"accessibility": {
"$ref": "div-accessibility.json",
"$description": "translations.json#/div_base_accessibility",
"platforms": [
"android",
"ios",
"web"
]
},
"extensions": {
"type": "array",
"items": {
"$ref": "div-extension.json"
},
"$description": "translations.json#/div_base_extensions",
"platforms": [
"android",
"ios",
"web"
]
},
"transition_triggers": {
"type": "array",
"items": {
"$ref": "div-transition-trigger.json"
},
"minItems": 1,
"supports_expressions": false,
"$description": "translations.json#/div_base_transition_triggers",
"platforms": [
"android",
"ios",
"web"
]
},
"transition_in": {
"$ref": "div-appearance-transition.json",
"$description": "translations.json#/div_base_transition_in",
"platforms": [
"android",
"ios",
"web"
]
},
"transition_change": {
"$ref": "div-change-transition.json",
"$description": "translations.json#/div_base_transition_change",
"platforms": [
"android",
"ios",
"web"
]
},
"transition_out": {
"$ref": "div-appearance-transition.json",
"$description": "translations.json#/div_base_transition_out",
"platforms": [
"android",
"ios",
"web"
]
},
"selected_actions": {
"type": "array",
"items": {
"$ref": "div-action.json"
},
"$description": "translations.json#/div_base_selected_actions",
"platforms": [
"android",
"ios",
"web"
]
},
"focus": {
"$ref": "div-focus.json",
"$description": "translations.json#/div_base_focus"
},
"visibility": {
"$ref": "div-visibility.json",
"$description": "translations.json#/div_base_visibility",
"default_value": "visible"
},
"transform": {
"$ref": "div-transform.json",
"$description": "translations.json#/div_base_transform",
"platforms": [
"android",
"ios",
"web"
]
}
}
}