visibility_hide

Hides nodeIds (added to what is hidden), or with xray: true ghosts them (x-ray: drawn translucent, not pickable). Unknown ids are ignored and listed. Returns { hidden: count, xray: count, ignored }.

Command

Usage

TypeScript
surface.execute('visibility_hide', { nodeIds, xray? })

Parameters

  • nodeIdsstring[]

    Required

  • 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