Skip to content

Narrative Interface

Rebecca Madsen edited this page Feb 20, 2019 · 3 revisions

Purpose

Behaviors

General Interface API

See General Interface API.

Interface Specific API

In addition to all properties specified in the general interface API, this interface has the following parameters:

Example configuration

    {
      "id": "narrative1",
      "type": "Narrative",
      "label": "Narrative",
      "subject": {
        "entity": "node",
        "type": "4aebf73e-95e3-4fd1-95e7-237dcc4a4466"
      },
      "presets": [
        {
          "id": "preset1",
          "label": "My preset",
          "layoutVariable": "d13ca72d-aefe-4f48-841d-09f020e0e988",
          "groupVariable": "e343a91f-628d-4175-870c-957beffa0154",
          "edges": {
            "display": [
              "77199445-9d50-4646-b0bc-6d6b0c0e06bd",
              "867127d9-086b-403a-a3e7-2c7d32126546"
            ]
          },
          "highlight": ["03b03617-46ae-41cb-9462-9acd8a17edd6", "ae44b6ba-ad49-4ecf-bf38-b65decfce000"]
        },
        {
          "id": "preset2",
          "label": "Another preset (with more text than will fit)",
          "layoutVariable": "e13ca72d-aefe-4f48-841d-09f020e0e987",
          "groupVariable": "e343a91f-628d-4175-870c-957beffa0154",
          "edges": {
            "display": [
              "867127d9-086b-403a-a3e7-2c7d32126546"
            ]
          },
          "highlight": ["03b03617-46ae-41cb-9462-9acd8a17edd6"]
        }
      ],
      "background": {
        "concentricCircles": 4,
        "skewedTowardCenter": true
      },
      "behaviours": {
        "freeDraw": true,
        "allowRepositioning": true
      }
    },