sprites.json 951 Bytes
{
  "_comment": [
    "configuration file for loading canned and/or custom sprites (and labels)",
    "into the topology view. These appear above the map layer, but below",
    "the nodes/links layer."
  ],

  "_comment_defn": "'defn' array contains custom sprite definitions",
  "defn": [

  ],

  "_comment_defstyle": "'defstyle' defines default styles to apply",
  "defstyle": {
    "sprite": {
      "stroke": "goldenrod",
      "stroke-width": 1.0,
      "fill": "none"
    },
    "text": {
      "text-style": "italic",
      "test-size": "20pt"
    }
  },

  "_comment_load": [
    "'load' array contains list of sprites/labels to load",
    " note that 'copies' array defines [x,y] coords to position copies"
  ],
  "load": [
    {
      "id": "cloud",
      "width": 100,
      "height": 100,
      "scale": 4.0,
      "copies": [
        [0, 50], [800, 40], [400, 450]
      ],
      "style": {
        "stroke": "green"
      }
    }
  ]
}