Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 1 | { |
Simon Hunt | fd8c7d7 | 2015-04-14 17:53:37 -0700 | [diff] [blame^] | 2 | "defn_name": "sample", |
| 3 | "defn_desc": "Sample Cloud Sprite Data", |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 4 | |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 5 | "_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 Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 11 | "_comment_custom": "'custom' contains custom path data", |
| 12 | "custom": [ |
| 13 | |
| 14 | ], |
| 15 | |
| 16 | "_comment_defn": "'defn' array contains sprite definitions", |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 17 | "defn": [ |
Simon Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 18 | { |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 19 | "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 Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 35 | } |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 36 | ], |
| 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 Hunt | 9c1c45e | 2015-04-10 13:38:27 -0700 | [diff] [blame] | 44 | ] |
| 45 | } |