Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 1 | { |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame^] | 2 | "file_desc": "Cloud Sprite Data", |
| 3 | |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 4 | "_comment": [ |
| 5 | "configuration file for loading canned and/or custom sprites (and labels)", |
| 6 | "into the topology view. These appear above the map layer, but below", |
| 7 | "the nodes/links layer." |
| 8 | ], |
| 9 | |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame^] | 10 | "_comment_custom": "'custom' contains custom path data", |
| 11 | "custom": [ |
| 12 | |
| 13 | ], |
| 14 | |
| 15 | "_comment_defn": "'defn' array contains sprite definitions", |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 16 | "defn": [ |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 17 | { |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame^] | 18 | "id": "subnet", |
| 19 | "class": "sprite1", |
| 20 | "use": "cloud", |
| 21 | "width": 120, |
| 22 | "height": 120, |
| 23 | "scale": 3.0, |
| 24 | "textyoff": 0.4 |
| 25 | }, |
| 26 | { |
| 27 | "id": "subnet2", |
| 28 | "class": "sprite2", |
| 29 | "use": "cloud", |
| 30 | "width": 200, |
| 31 | "height": 200, |
| 32 | "scale": 3.0, |
| 33 | "textyoff": 0.4 |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 34 | } |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame^] | 35 | ], |
| 36 | |
| 37 | "_comment_load": "'load' array contains list of sprites to load", |
| 38 | "load": [ |
| 39 | { "id": "subnet", "x": -40, "y":20, "label":"apples" }, |
| 40 | { "id": "subnet", "x":400, "y":40, "label":"bananas" }, |
| 41 | { "id": "subnet", "x":840, "y":60, "label":"cherries" }, |
| 42 | { "id": "subnet2", "x":300, "y":400 } |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 43 | ] |
| 44 | } |