Box should switch between perspective and flat
First dump layer tree:
-(GraphicsLayer
- (bounds 800.00 600.00)
- (children 1
- (GraphicsLayer
- (bounds 800.00 600.00)
- (contentsOpaque 1)
- (drawsContent 1)
- )
- )
-)
+{
+ "bounds": [800, 600],
+ "children": [
+ {
+ "bounds": [800, 600],
+ "contentsOpaque": true,
+ "drawsContent": true
+ }
+ ]
+}
Second dump layer tree:
-(GraphicsLayer
- (bounds 800.00 600.00)
- (children 1
- (GraphicsLayer
- (bounds 800.00 600.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (children 1
- (GraphicsLayer
- (position 8.00 8.00)
- (bounds 242.00 192.00)
- (drawsContent 1)
- (children 1
- (GraphicsLayer
- (position 121.00 41.00)
- (bounds 250.00 100.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (backgroundColor #008000)
- (transform [0.71 0.00 -0.71 0.00] [0.00 1.00 0.00 0.00] [0.71 0.00 0.71 -0.00] [-50.00 10.00 100.00 0.83])
- )
- )
- )
- )
- )
- )
-)
+{
+ "bounds": [800, 600],
+ "children": [
+ {
+ "bounds": [800, 600],
+ "contentsOpaque": true,
+ "drawsContent": true,
+ "children": [
+ {
+ "position": [8, 8],
+ "bounds": [242, 192],
+ "drawsContent": true,
+ "children": [
+ {
+ "position": [121, 41],
+ "bounds": [250, 100],
+ "contentsOpaque": true,
+ "drawsContent": true,
+ "backgroundColor": "#008000",
+ "transform": [
+ [0.707106781186548, 0, -0.707106781186548, 0.00117851130197758],
+ [0, 1, 0, 0],
+ [0.707106781186548, 0, 0.707106781186548, -0.00117851130197758],
+ [-50, 10, 100, 0.833333333333333]
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
Third dump layer tree:
-(GraphicsLayer
- (bounds 968.00 882.00)
- (children 1
- (GraphicsLayer
- (bounds 968.00 882.00)
- (contentsOpaque 1)
- (drawsContent 1)
- )
- )
-)
+{
+ "bounds": [785, 962],
+ "children": [
+ {
+ "bounds": [785, 962],
+ "contentsOpaque": true,
+ "drawsContent": true
+ }
+ ]
+}