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 }.

CommandAsync

Usage

TypeScript
await surface.executeAsync('visibility_isolate_where', { property, op, value?, xray? })

Parameters

  • propertystring

    Required

  • op"eq" | "ne" | "in" | "lt" | "lte" | "gt" | "gte" | "exists"

    Required

  • valueobject

    any JSON value; an array for in; required except for exists

    Optional

  • xrayboolean

    Optional

Returns

object with hidden, xray, ignored, in the ok: true envelope.

JSON
{
  "type": "object",
  "properties": {
    "hidden": {
      "type": "integer",
      "minimum": 0
    },
    "xray": {
      "type": "integer",
      "minimum": 0
    },
    "ignored": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "hidden",
    "xray",
    "ignored"
  ]
}

See also