visibility_isolate_where
visibility_isolate on the nodes whose host property property satisfies op value: eq/ne (JSON equality), in (value is an array), lt/lte/gt/gte (numbers with numbers, strings with strings), exists (no value needed). Nodes without the property never match, not even ne. xray: true ghosts the rest. Returns { hidden, xray, ignored }.
Usage
await surface.executeAsync('visibility_isolate_where', { property, op, value?, xray? })Parameters
propertystringop"eq" | "ne" | "in" | "lt" | "lte" | "gt" | "gte" | "exists"valueobjectany JSON value; an array for in; required except for exists
xrayboolean
Returns
object with hidden, xray, ignored, in the ok: true envelope.
{
"type": "object",
"properties": {
"hidden": {
"type": "integer",
"minimum": 0
},
"xray": {
"type": "integer",
"minimum": 0
},
"ignored": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"hidden",
"xray",
"ignored"
]
}