{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "# drayman-ngx-graph\n\nGraph powered by [ngx-charts](https://github.com/swimlane/ngx-graph) library.\n\n## Example of usage\n\n### Simple graph\n\n![](media://drayman-ngx-graph.gif)\n\n```typescript\nmodule.exports = async ({ forceUpdate }) => {\n\n     const links = [{\n         id: 'a',\n         source: 'first',\n         target: 'second',\n         label: 'is parent of'\n     }, {\n         id: 'b',\n         source: 'first',\n         target: 'third',\n         label: 'custom label'\n     }];\n\n     return () => (\n         <container key=\"wrapper\">\n             <drayman-button\n                 key=\"add-link-btn\"\n                 label=\"Add link\"\n                 view=\"raised\"\n                 onClick={async () => {\n                     links.push({\n                         id: `new-link-${links.length}`,\n                         source: 'first',\n                         target: 'third',\n                         label: 'new link'\n                     })\n                     await forceUpdate();\n                 }}\n             />\n             <drayman-ngx-graph\n                 key=\"graph\"\n                 showMiniMap\n                 links={links}\n                 nodes={[{\n                     id: 'first',\n                     label: 'A'\n                 }, {\n                     id: 'second',\n                     label: 'B'\n                 }, {\n                     id: 'third',\n                     label: 'C',\n                     data: {\n                         customColor: 'orange'\n                     }\n                 }]}\n             />\n         </container>\n     );\n}\n```",
    "properties": {
        "autoCenter": {
            "description": "Center the graph in the viewport when the graph is updated.",
            "type": "boolean"
        },
        "autoZoom": {
            "description": "Automatically zoom the graph to fit in the avialable viewport when the graph is updated.",
            "type": "boolean"
        },
        "clusters": {
            "description": "List of cluster nodes."
        },
        "draggingEnabled": {
            "description": "Enable dragging nodes.",
            "type": "boolean"
        },
        "links": {
            "description": "List of graph edges.",
            "items": {
            },
            "type": "array"
        },
        "nodes": {
            "description": "List of graph nodes.",
            "items": {
            },
            "type": "array"
        },
        "showMiniMap": {
            "description": "Show/hide minimap.",
            "type": "boolean"
        }
    },
    "type": "object"
}

