blob: f92e70547658e4ff17491b07c40cfedab4dd53d9 [file] [log] [blame]
Simon Hunt9c1c45e2015-04-10 13:38:27 -07001{
Simon Huntfd8c7d72015-04-14 17:53:37 -07002 "defn_name": "sample",
3 "defn_desc": "Sample Cloud Sprite Data",
Simon Hunt2052e5d2015-04-13 17:40:44 -07004
Simon Hunt9c1c45e2015-04-10 13:38:27 -07005 "_comment": [
6 "configuration file for loading canned and/or custom sprites (and labels)",
7 "into the topology view. These appear above the map layer, but below",
8 "the nodes/links layer."
9 ],
10
Simon Hunt2052e5d2015-04-13 17:40:44 -070011 "_comment_custom": "'custom' contains custom path data",
12 "custom": [
13
14 ],
15
16 "_comment_defn": "'defn' array contains sprite definitions",
Simon Hunt9c1c45e2015-04-10 13:38:27 -070017 "defn": [
Simon Hunt9c1c45e2015-04-10 13:38:27 -070018 {
Simon Hunt2052e5d2015-04-13 17:40:44 -070019 "id": "subnet",
20 "class": "sprite1",
21 "use": "cloud",
22 "width": 120,
23 "height": 120,
24 "scale": 3.0,
25 "textyoff": 0.4
26 },
27 {
28 "id": "subnet2",
29 "class": "sprite2",
30 "use": "cloud",
31 "width": 200,
32 "height": 200,
33 "scale": 3.0,
34 "textyoff": 0.4
Simon Hunt9c1c45e2015-04-10 13:38:27 -070035 }
Simon Hunt2052e5d2015-04-13 17:40:44 -070036 ],
37
38 "_comment_load": "'load' array contains list of sprites to load",
39 "load": [
40 { "id": "subnet", "x": -40, "y":20, "label":"apples" },
41 { "id": "subnet", "x":400, "y":40, "label":"bananas" },
42 { "id": "subnet", "x":840, "y":60, "label":"cherries" },
43 { "id": "subnet2", "x":300, "y":400 }
Simon Hunt9c1c45e2015-04-10 13:38:27 -070044 ]
45}