-(GraphicsLayer
- (bounds 800.00 600.00)
- (children 1
- (GraphicsLayer
- (bounds 800.00 600.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (children 2
- (GraphicsLayer
- (children 2
- (GraphicsLayer
- (position 60.00 60.00)
- (bounds 400.00 400.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (backgroundColor #808080)
- )
- (GraphicsLayer
- (position 140.00 140.00)
- (bounds 10.00 10.00)
- (drawsContent 1)
- )
- )
- )
- (GraphicsLayer
- (children 2
- (GraphicsLayer
- (position 220.00 220.00)
- (bounds 10.00 10.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (backgroundColor #00FF00)
- )
- (GraphicsLayer
- (position 220.00 300.00)
- (bounds 25.00 10.00)
- (drawsContent 1)
- )
- )
- )
- )
- )
- )
-)
+{
+ "bounds": [800, 600],
+ "children": [
+ {
+ "bounds": [800, 600],
+ "contentsOpaque": true,
+ "drawsContent": true,
+ "children": [
+ {
+ "children": [
+ {
+ "position": [60, 60],
+ "bounds": [400, 400],
+ "contentsOpaque": true,
+ "drawsContent": true,
+ "backgroundColor": "#808080"
+ },
+ {
+ "position": [140, 140],
+ "bounds": [10, 10],
+ "drawsContent": true
+ }
+ ]
+ },
+ {
+ "children": [
+ {
+ "position": [220, 220],
+ "bounds": [10, 10],
+ "contentsOpaque": true,
+ "drawsContent": true,
+ "backgroundColor": "#00FF00"
+ },
+ {
+ "position": [220, 300],
+ "bounds": [25, 10],
+ "drawsContent": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}