mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
add visible bounds caching by UIElementPath
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"type": "text",
|
||||
"text": "text",
|
||||
"visibility": "gone",
|
||||
"visibility_actions": [
|
||||
{
|
||||
"log_id": "some",
|
||||
"log_limit": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "text",
|
||||
"text": "text",
|
||||
"visibility": "invisible",
|
||||
"visibility_actions": [
|
||||
{
|
||||
"log_id": "some",
|
||||
"log_limit": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "text",
|
||||
"text": "text",
|
||||
"visibility": "visibile",
|
||||
"visibility_actions": [
|
||||
{
|
||||
"log_id": "some",
|
||||
"log_limit": 0,
|
||||
"visibility_duration": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"log_id": "sample_card",
|
||||
"states": [
|
||||
{
|
||||
"state_id": 0,
|
||||
"div": {
|
||||
"type": "text",
|
||||
"text": "state zero",
|
||||
"visibility_action": {
|
||||
"log_id": "zero state visible",
|
||||
"log_limit": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"state_id": 1,
|
||||
"div": {
|
||||
"type": "text",
|
||||
"text": "state first",
|
||||
"visibility_action": {
|
||||
"log_id": "first state visible",
|
||||
"log_limit": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"type": "state",
|
||||
"id": "mystate",
|
||||
"states": [
|
||||
{
|
||||
"state_id": "first",
|
||||
"div": {
|
||||
"type": "text",
|
||||
"text": "state first",
|
||||
"visibility_action": {
|
||||
"log_id": "first state visible",
|
||||
"log_limit": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"state_id": "second",
|
||||
"div": {
|
||||
"type": "text",
|
||||
"text": "seconds first",
|
||||
"visibility_action": {
|
||||
"log_id": "second state visible",
|
||||
"log_limit": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user