{
  "scriptappy": "1.1.3",
  "info": {
    "name": "@nebula.js/sn-org-chart:properties",
    "description": "Org chart generic object definition",
    "version": "1.6.0",
    "license": "MIT",
    "stability": "experimental",
    "x-qlik-visibility": "public"
  },
  "entries": {
    "properties": {
      "extends": [
        {
          "type": "EngineAPI.GenericObjectProperties"
        }
      ],
      "kind": "object",
      "entries": {
        "showTitles": {
          "description": "Show title for the visualization",
          "defaultValue": true,
          "type": "boolean"
        },
        "title": {
          "description": "Visualization title",
          "defaultValue": "",
          "type": "string"
        },
        "subtitle": {
          "description": "Visualization subtitle",
          "defaultValue": "",
          "type": "string"
        },
        "footnote": {
          "description": "Visualization footnote",
          "defaultValue": "",
          "type": "string"
        },
        "navigationMode": {
          "description": "How the org chart is navigated",
          "defaultValue": "free",
          "kind": "union",
          "items": [
            {
              "kind": "literal",
              "value": "'expandAll'"
            },
            {
              "kind": "literal",
              "value": "'free'"
            }
          ]
        },
        "resizeOnExpand": {
          "description": "Resize and pan chart when a node's list of children is expanded",
          "defaultValue": false,
          "type": "boolean"
        },
        "style": {
          "description": "Holds chart styling",
          "type": "#/definitions/Style"
        }
      }
    }
  },
  "definitions": {
    "Style": {
      "description": "Holds styling options",
      "kind": "alias",
      "items": {
        "kind": "object",
        "entries": {
          "fontColor": {
            "description": "Color of the text, by default #484848",
            "optional": true,
            "type": "#/definitions/FontColor"
          },
          "backgroundColor": {
            "description": "Color of the background, by default #ffffff",
            "optional": true,
            "type": "#/definitions/Background"
          },
          "border": {
            "description": "Styling for border, by default #737373",
            "optional": true,
            "type": "#/definitions/Border"
          }
        }
      }
    },
    "FontColor": {
      "kind": "alias",
      "items": {
        "kind": "object",
        "entries": {
          "colorType": {
            "description": "How the font color is defined",
            "optional": true,
            "defaultValue": "'auto'",
            "kind": "union",
            "items": [
              {
                "kind": "literal",
                "value": "'auto'"
              },
              {
                "kind": "literal",
                "value": "'colorPicker'"
              },
              {
                "kind": "literal",
                "value": "'byExpression'"
              }
            ]
          },
          "color": {
            "description": "Color defined by index or hex code, needed if colorType is colorPicker",
            "optional": true,
            "type": "#/definitions/PaletteColor"
          },
          "colorExpression": {
            "description": "Color defined by expression, needed if colorType is byExpression",
            "optional": true,
            "type": "#/definitions/ColorExpression"
          }
        }
      }
    },
    "Background": {
      "kind": "alias",
      "items": {
        "kind": "object",
        "entries": {
          "colorType": {
            "description": "How the background color is defined",
            "optional": true,
            "defaultValue": "'colorPicker'",
            "kind": "union",
            "items": [
              {
                "kind": "literal",
                "value": "'auto'"
              },
              {
                "kind": "literal",
                "value": "'colorPicker'"
              },
              {
                "kind": "literal",
                "value": "'byExpression'"
              }
            ]
          },
          "color": {
            "description": "Color defined by index or hex code, needed if colorType is colorPicker",
            "optional": true,
            "type": "#/definitions/PaletteColor"
          },
          "colorExpression": {
            "description": "Color defined by expression, needed if colorType is byExpression",
            "optional": true,
            "type": "#/definitions/ColorExpression"
          }
        }
      }
    },
    "Border": {
      "kind": "alias",
      "items": {
        "kind": "object",
        "entries": {
          "top": {
            "description": "Set to true to show thicker top border",
            "optional": true,
            "defaultValue": true,
            "type": "boolean"
          },
          "fullBorder": {
            "description": "Set to true to show full border",
            "optional": true,
            "defaultValue": true,
            "type": "boolean"
          },
          "colorType": {
            "description": "How the border color is defined",
            "optional": true,
            "defaultValue": "'auto'",
            "kind": "union",
            "items": [
              {
                "kind": "literal",
                "value": "'auto'"
              },
              {
                "kind": "literal",
                "value": "'colorPicker'"
              },
              {
                "kind": "literal",
                "value": "'byExpression'"
              }
            ]
          },
          "color": {
            "description": "Color defined by index or hex code, needed if colorType is colorPicker",
            "optional": true,
            "type": "#/definitions/PaletteColor"
          },
          "colorExpression": {
            "description": "Color defined by expression, needed if colorType is byExpression",
            "optional": true,
            "type": "#/definitions/ColorExpression"
          }
        }
      }
    },
    "PaletteColor": {
      "description": "Color information structure. Holds the actual color and index in palette.",
      "kind": "alias",
      "items": {
        "kind": "object",
        "entries": {
          "color": {
            "description": "Color as hex string (only used if index: -1)",
            "optional": true,
            "type": "string"
          },
          "index": {
            "description": "Index in palette",
            "optional": true,
            "type": "number"
          }
        }
      }
    },
    "ColorExpression": {
      "description": "Format for using color expressions",
      "kind": "alias",
      "items": {
        "kind": "object",
        "entries": {
          "qStringExpression": {
            "kind": "object",
            "entries": {
              "qExpr": {
                "description": "expression that resolves to a supported color format",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}