From 1db6939cce50ccc3ffa2c5eccaaa2a770e985c81 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Mon, 28 Nov 2022 21:01:42 -0800 Subject: [PATCH] 2022-11-28 09:01:42PM --- d2compiler/compile_test.go | 8 ++ d2graph/d2graph.go | 5 + .../TestCompile/basic_icon.exp.json | 6 ++ .../TestCompile/basic_sequence.exp.json | 6 ++ .../TestCompile/basic_shape.exp.json | 6 ++ .../TestCompile/basic_style.exp.json | 6 ++ .../TestCompile/class_paren.exp.json | 6 ++ .../TestCompile/class_style.exp.json | 6 ++ .../TestCompile/default_orientation.exp.json | 100 ++++++++++++++++++ testdata/d2compiler/TestCompile/edge.exp.json | 12 +++ .../edge_arrowhead_fields.exp.json | 18 ++++ .../TestCompile/edge_chain.exp.json | 18 ++++ .../TestCompile/edge_chain_map.exp.json | 18 ++++ .../TestCompile/edge_column_index.exp.json | 12 +++ .../TestCompile/edge_exclusive_style.exp.json | 12 +++ .../TestCompile/edge_flat_arrowhead.exp.json | 15 +++ .../edge_flat_label_arrowhead.exp.json | 15 +++ .../TestCompile/edge_in_column.exp.json | 6 ++ .../TestCompile/edge_index.exp.json | 12 +++ .../TestCompile/edge_index_map.exp.json | 12 +++ .../TestCompile/edge_index_nested.exp.json | 15 +++ .../edge_index_nested_cross_scope.exp.json | 15 +++ .../edge_key_group_flat_nested.exp.json | 15 +++ ..._key_group_flat_nested_underscore.exp.json | 15 +++ ..._group_map_flat_nested_underscore.exp.json | 15 +++ ...e_key_group_map_nested_underscore.exp.json | 15 +++ .../TestCompile/edge_label_map.exp.json | 12 +++ .../d2compiler/TestCompile/edge_map.exp.json | 12 +++ .../TestCompile/edge_map_arrowhead.exp.json | 15 +++ .../TestCompile/edge_map_group_flat.exp.json | 12 +++ .../edge_map_group_semiflat.exp.json | 12 +++ .../TestCompile/edge_map_nested.exp.json | 12 +++ .../TestCompile/edge_map_nested_flat.exp.json | 12 +++ .../TestCompile/edge_mixed_arrowhead.exp.json | 18 ++++ .../edge_non_shape_arrowhead.exp.json | 15 +++ .../edge_semiflat_arrowhead.exp.json | 15 +++ .../TestCompile/escaped_id.exp.json | 6 ++ .../TestCompile/image_style.exp.json | 6 ++ .../TestCompile/nested_sql.exp.json | 9 ++ .../d2compiler/TestCompile/path_link.exp.json | 6 ++ .../reserved_icon_near_style.exp.json | 9 ++ .../TestCompile/root_sequence.exp.json | 3 + .../d2compiler/TestCompile/sql_paren.exp.json | 6 ++ .../TestCompile/stroke-width.exp.json | 6 ++ .../TestCompile/table_style.exp.json | 6 ++ .../TestCompile/table_style_map.exp.json | 6 ++ .../TestCompile/underscore_edge.exp.json | 12 +++ .../underscore_edge_chain.exp.json | 18 ++++ .../underscore_edge_existing.exp.json | 18 ++++ .../underscore_edge_index.exp.json | 15 +++ .../underscore_edge_nested.exp.json | 15 +++ .../underscore_parent_create.exp.json | 9 ++ .../underscore_parent_not_root.exp.json | 12 +++ .../underscore_parent_preference_1.exp.json | 9 ++ .../underscore_parent_preference_2.exp.json | 9 ++ .../underscore_parent_squared.exp.json | 12 +++ .../d2compiler/TestCompile/url_link.exp.json | 6 ++ 57 files changed, 722 insertions(+) create mode 100644 testdata/d2compiler/TestCompile/default_orientation.exp.json diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index dbcc86071..9da6c3c14 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -1521,6 +1521,14 @@ dst.id <-> src.dst_id diff.AssertStringEq(t, "sequence_diagram", g.Root.Attributes.Shape.Value) }, }, + { + name: "default_orientation", + + text: `x`, + assertions: func(t *testing.T, g *d2graph.Graph) { + diff.AssertStringEq(t, "vertical", g.Objects[0].Attributes.Orientation.Value) + }, + }, } for _, tc := range testCases { diff --git a/d2graph/d2graph.go b/d2graph/d2graph.go index 1fe88fba4..376c59177 100644 --- a/d2graph/d2graph.go +++ b/d2graph/d2graph.go @@ -97,6 +97,8 @@ type Attributes struct { Language string `json:"language,omitempty"` // TODO: default to ShapeRectangle instead of empty string Shape Scalar `json:"shape"` + + Orientation Scalar `json:"orientation"` } // TODO references at the root scope should have their Scope set to root graph AST @@ -442,6 +444,9 @@ func (obj *Object) newObject(id string) *Object { Label: Scalar{ Value: idval, }, + Orientation: Scalar{ + Value: "vertical", + }, }, Graph: obj.Graph, diff --git a/testdata/d2compiler/TestCompile/basic_icon.exp.json b/testdata/d2compiler/TestCompile/basic_icon.exp.json index 400adef99..170f485c7 100644 --- a/testdata/d2compiler/TestCompile/basic_icon.exp.json +++ b/testdata/d2compiler/TestCompile/basic_icon.exp.json @@ -87,6 +87,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -141,6 +144,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/basic_sequence.exp.json b/testdata/d2compiler/TestCompile/basic_sequence.exp.json index 91a49f9f6..5d0cdb027 100644 --- a/testdata/d2compiler/TestCompile/basic_sequence.exp.json +++ b/testdata/d2compiler/TestCompile/basic_sequence.exp.json @@ -82,6 +82,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -124,6 +127,9 @@ "near_key": null, "shape": { "value": "sequence_diagram" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/basic_shape.exp.json b/testdata/d2compiler/TestCompile/basic_shape.exp.json index c7e4a0ac6..d115f84a4 100644 --- a/testdata/d2compiler/TestCompile/basic_shape.exp.json +++ b/testdata/d2compiler/TestCompile/basic_shape.exp.json @@ -82,6 +82,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -124,6 +127,9 @@ "near_key": null, "shape": { "value": "circle" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/basic_style.exp.json b/testdata/d2compiler/TestCompile/basic_style.exp.json index d2a35e1a6..c07d66429 100644 --- a/testdata/d2compiler/TestCompile/basic_style.exp.json +++ b/testdata/d2compiler/TestCompile/basic_style.exp.json @@ -89,6 +89,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -135,6 +138,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/class_paren.exp.json b/testdata/d2compiler/TestCompile/class_paren.exp.json index aede137ff..7af924f6f 100644 --- a/testdata/d2compiler/TestCompile/class_paren.exp.json +++ b/testdata/d2compiler/TestCompile/class_paren.exp.json @@ -181,6 +181,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -244,6 +247,9 @@ "near_key": null, "shape": { "value": "class" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/class_style.exp.json b/testdata/d2compiler/TestCompile/class_style.exp.json index 070d91c08..3a13a01e4 100644 --- a/testdata/d2compiler/TestCompile/class_style.exp.json +++ b/testdata/d2compiler/TestCompile/class_style.exp.json @@ -155,6 +155,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -211,6 +214,9 @@ "near_key": null, "shape": { "value": "class" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/default_orientation.exp.json b/testdata/d2compiler/TestCompile/default_orientation.exp.json new file mode 100644 index 000000000..3b04ce12b --- /dev/null +++ b/testdata/d2compiler/TestCompile/default_orientation.exp.json @@ -0,0 +1,100 @@ +{ + "graph": { + "ast": { + "range": "d2/testdata/d2compiler/TestCompile/default_orientation.d2,0:0:0-0:1:1", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile/default_orientation.d2,0:0:0-0:1:1", + "key": { + "range": "d2/testdata/d2compiler/TestCompile/default_orientation.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile/default_orientation.d2,0:0:0-0:1:1", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "label_dimensions": { + "width": 0, + "height": 0 + }, + "attributes": { + "label": { + "value": "" + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "orientation": { + "value": "" + } + } + }, + "edges": null, + "objects": [ + { + "id": "x", + "id_val": "x", + "label_dimensions": { + "width": 0, + "height": 0 + }, + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile/default_orientation.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile/default_orientation.d2,0:0:0-0:1:1", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "x" + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "orientation": { + "value": "vertical" + } + } + } + ] + }, + "err": null +} diff --git a/testdata/d2compiler/TestCompile/edge.exp.json b/testdata/d2compiler/TestCompile/edge.exp.json index 9ca4f6511..d96d3a40b 100644 --- a/testdata/d2compiler/TestCompile/edge.exp.json +++ b/testdata/d2compiler/TestCompile/edge.exp.json @@ -66,6 +66,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -94,6 +97,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -136,6 +142,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -176,6 +185,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_arrowhead_fields.exp.json b/testdata/d2compiler/TestCompile/edge_arrowhead_fields.exp.json index 3110298fc..c2017c38a 100644 --- a/testdata/d2compiler/TestCompile/edge_arrowhead_fields.exp.json +++ b/testdata/d2compiler/TestCompile/edge_arrowhead_fields.exp.json @@ -245,6 +245,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -267,6 +270,9 @@ "near_key": null, "shape": { "value": "diamond" + }, + "orientation": { + "value": "" } }, "dst_arrow": true, @@ -282,6 +288,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } }, "references": [ @@ -297,6 +306,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -339,6 +351,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -379,6 +394,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_chain.exp.json b/testdata/d2compiler/TestCompile/edge_chain.exp.json index fad3904ac..6d0eddc10 100644 --- a/testdata/d2compiler/TestCompile/edge_chain.exp.json +++ b/testdata/d2compiler/TestCompile/edge_chain.exp.json @@ -113,6 +113,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -141,6 +144,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -168,6 +174,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -210,6 +219,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -270,6 +282,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -310,6 +325,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_chain_map.exp.json b/testdata/d2compiler/TestCompile/edge_chain_map.exp.json index df003d462..22dad3d61 100644 --- a/testdata/d2compiler/TestCompile/edge_chain_map.exp.json +++ b/testdata/d2compiler/TestCompile/edge_chain_map.exp.json @@ -142,6 +142,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -170,6 +173,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -197,6 +203,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -239,6 +248,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -299,6 +311,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -339,6 +354,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_column_index.exp.json b/testdata/d2compiler/TestCompile/edge_column_index.exp.json index 8a9fde6d3..5d2786fb9 100644 --- a/testdata/d2compiler/TestCompile/edge_column_index.exp.json +++ b/testdata/d2compiler/TestCompile/edge_column_index.exp.json @@ -344,6 +344,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -374,6 +377,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -463,6 +469,9 @@ "near_key": null, "shape": { "value": "sql_table" + }, + "orientation": { + "value": "vertical" } } }, @@ -550,6 +559,9 @@ "near_key": null, "shape": { "value": "sql_table" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_exclusive_style.exp.json b/testdata/d2compiler/TestCompile/edge_exclusive_style.exp.json index 47a51ab19..1c93e5f5b 100644 --- a/testdata/d2compiler/TestCompile/edge_exclusive_style.exp.json +++ b/testdata/d2compiler/TestCompile/edge_exclusive_style.exp.json @@ -111,6 +111,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -143,6 +146,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -185,6 +191,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -225,6 +234,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_flat_arrowhead.exp.json b/testdata/d2compiler/TestCompile/edge_flat_arrowhead.exp.json index 5655158a5..da5fbf56a 100644 --- a/testdata/d2compiler/TestCompile/edge_flat_arrowhead.exp.json +++ b/testdata/d2compiler/TestCompile/edge_flat_arrowhead.exp.json @@ -154,6 +154,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -176,6 +179,9 @@ "near_key": null, "shape": { "value": "diamond" + }, + "orientation": { + "value": "" } }, "dst_arrow": true, @@ -195,6 +201,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -257,6 +266,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -317,6 +329,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_flat_label_arrowhead.exp.json b/testdata/d2compiler/TestCompile/edge_flat_label_arrowhead.exp.json index cb91401f8..373d9ea13 100644 --- a/testdata/d2compiler/TestCompile/edge_flat_label_arrowhead.exp.json +++ b/testdata/d2compiler/TestCompile/edge_flat_label_arrowhead.exp.json @@ -122,6 +122,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -144,6 +147,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } }, "dst_arrow": true, @@ -160,6 +166,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -202,6 +211,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -242,6 +254,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_in_column.exp.json b/testdata/d2compiler/TestCompile/edge_in_column.exp.json index 76b269f31..2bd593b35 100644 --- a/testdata/d2compiler/TestCompile/edge_in_column.exp.json +++ b/testdata/d2compiler/TestCompile/edge_in_column.exp.json @@ -157,6 +157,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -209,6 +212,9 @@ "near_key": null, "shape": { "value": "sql_table" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_index.exp.json b/testdata/d2compiler/TestCompile/edge_index.exp.json index 4ac3a630e..7942263db 100644 --- a/testdata/d2compiler/TestCompile/edge_index.exp.json +++ b/testdata/d2compiler/TestCompile/edge_index.exp.json @@ -137,6 +137,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -168,6 +171,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -230,6 +236,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -290,6 +299,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_index_map.exp.json b/testdata/d2compiler/TestCompile/edge_index_map.exp.json index 35a310c17..600254fdb 100644 --- a/testdata/d2compiler/TestCompile/edge_index_map.exp.json +++ b/testdata/d2compiler/TestCompile/edge_index_map.exp.json @@ -156,6 +156,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -187,6 +190,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -249,6 +255,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -309,6 +318,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_index_nested.exp.json b/testdata/d2compiler/TestCompile/edge_index_nested.exp.json index b27801d49..e8c64cc88 100644 --- a/testdata/d2compiler/TestCompile/edge_index_nested.exp.json +++ b/testdata/d2compiler/TestCompile/edge_index_nested.exp.json @@ -166,6 +166,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -197,6 +200,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -239,6 +245,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -299,6 +308,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -359,6 +371,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.exp.json b/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.exp.json index 87518a63e..f4dc0346e 100644 --- a/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.exp.json +++ b/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.exp.json @@ -182,6 +182,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -213,6 +216,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -275,6 +281,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -335,6 +344,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -395,6 +407,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.exp.json b/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.exp.json index 169522086..8c4b7a3b0 100644 --- a/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.exp.json +++ b/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.exp.json @@ -195,6 +195,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -230,6 +233,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -292,6 +298,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -352,6 +361,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -412,6 +424,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_key_group_flat_nested_underscore.exp.json b/testdata/d2compiler/TestCompile/edge_key_group_flat_nested_underscore.exp.json index 6db8f6429..cdb035c7a 100644 --- a/testdata/d2compiler/TestCompile/edge_key_group_flat_nested_underscore.exp.json +++ b/testdata/d2compiler/TestCompile/edge_key_group_flat_nested_underscore.exp.json @@ -201,6 +201,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -236,6 +239,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -278,6 +284,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -349,6 +358,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -420,6 +432,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_key_group_map_flat_nested_underscore.exp.json b/testdata/d2compiler/TestCompile/edge_key_group_map_flat_nested_underscore.exp.json index c85eccedc..bb8dff5ab 100644 --- a/testdata/d2compiler/TestCompile/edge_key_group_map_flat_nested_underscore.exp.json +++ b/testdata/d2compiler/TestCompile/edge_key_group_map_flat_nested_underscore.exp.json @@ -214,6 +214,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -249,6 +252,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -291,6 +297,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -362,6 +371,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -433,6 +445,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_key_group_map_nested_underscore.exp.json b/testdata/d2compiler/TestCompile/edge_key_group_map_nested_underscore.exp.json index f689762ad..3adcb13cd 100644 --- a/testdata/d2compiler/TestCompile/edge_key_group_map_nested_underscore.exp.json +++ b/testdata/d2compiler/TestCompile/edge_key_group_map_nested_underscore.exp.json @@ -232,6 +232,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -267,6 +270,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -309,6 +315,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -380,6 +389,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -451,6 +463,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_label_map.exp.json b/testdata/d2compiler/TestCompile/edge_label_map.exp.json index e91142b98..4c7710a2c 100644 --- a/testdata/d2compiler/TestCompile/edge_label_map.exp.json +++ b/testdata/d2compiler/TestCompile/edge_label_map.exp.json @@ -122,6 +122,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -154,6 +157,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -196,6 +202,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -236,6 +245,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_map.exp.json b/testdata/d2compiler/TestCompile/edge_map.exp.json index e1d436a20..b113797eb 100644 --- a/testdata/d2compiler/TestCompile/edge_map.exp.json +++ b/testdata/d2compiler/TestCompile/edge_map.exp.json @@ -105,6 +105,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -133,6 +136,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -175,6 +181,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -215,6 +224,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_map_arrowhead.exp.json b/testdata/d2compiler/TestCompile/edge_map_arrowhead.exp.json index 9abaa0abc..be019a02e 100644 --- a/testdata/d2compiler/TestCompile/edge_map_arrowhead.exp.json +++ b/testdata/d2compiler/TestCompile/edge_map_arrowhead.exp.json @@ -134,6 +134,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -156,6 +159,9 @@ "near_key": null, "shape": { "value": "diamond" + }, + "orientation": { + "value": "" } }, "dst_arrow": true, @@ -172,6 +178,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -214,6 +223,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -254,6 +266,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_map_group_flat.exp.json b/testdata/d2compiler/TestCompile/edge_map_group_flat.exp.json index 77788e717..f784f9f80 100644 --- a/testdata/d2compiler/TestCompile/edge_map_group_flat.exp.json +++ b/testdata/d2compiler/TestCompile/edge_map_group_flat.exp.json @@ -150,6 +150,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -185,6 +188,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -247,6 +253,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -307,6 +316,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_map_group_semiflat.exp.json b/testdata/d2compiler/TestCompile/edge_map_group_semiflat.exp.json index 67b44e188..c786c3268 100644 --- a/testdata/d2compiler/TestCompile/edge_map_group_semiflat.exp.json +++ b/testdata/d2compiler/TestCompile/edge_map_group_semiflat.exp.json @@ -168,6 +168,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -203,6 +206,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -265,6 +271,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -325,6 +334,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_map_nested.exp.json b/testdata/d2compiler/TestCompile/edge_map_nested.exp.json index 44d73ca4d..83af61916 100644 --- a/testdata/d2compiler/TestCompile/edge_map_nested.exp.json +++ b/testdata/d2compiler/TestCompile/edge_map_nested.exp.json @@ -130,6 +130,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -162,6 +165,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -204,6 +210,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -244,6 +253,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_map_nested_flat.exp.json b/testdata/d2compiler/TestCompile/edge_map_nested_flat.exp.json index 18161ea9f..eaa7028dd 100644 --- a/testdata/d2compiler/TestCompile/edge_map_nested_flat.exp.json +++ b/testdata/d2compiler/TestCompile/edge_map_nested_flat.exp.json @@ -112,6 +112,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -144,6 +147,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -186,6 +192,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -226,6 +235,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.exp.json b/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.exp.json index 40af4edf1..be0220793 100644 --- a/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.exp.json +++ b/testdata/d2compiler/TestCompile/edge_mixed_arrowhead.exp.json @@ -222,6 +222,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -244,6 +247,9 @@ "near_key": null, "shape": { "value": "diamond" + }, + "orientation": { + "value": "" } }, "dst_arrow": true, @@ -255,6 +261,9 @@ "near_key": null, "shape": { "value": "diamond" + }, + "orientation": { + "value": "" } }, "references": [ @@ -273,6 +282,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -335,6 +347,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -395,6 +410,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_non_shape_arrowhead.exp.json b/testdata/d2compiler/TestCompile/edge_non_shape_arrowhead.exp.json index 0298cbd45..5565fad95 100644 --- a/testdata/d2compiler/TestCompile/edge_non_shape_arrowhead.exp.json +++ b/testdata/d2compiler/TestCompile/edge_non_shape_arrowhead.exp.json @@ -116,6 +116,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -138,6 +141,9 @@ "near_key": null, "shape": { "value": "triangle" + }, + "orientation": { + "value": "" } }, "dst_arrow": true, @@ -154,6 +160,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -196,6 +205,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -236,6 +248,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/edge_semiflat_arrowhead.exp.json b/testdata/d2compiler/TestCompile/edge_semiflat_arrowhead.exp.json index d55583d16..0ac2ac3e8 100644 --- a/testdata/d2compiler/TestCompile/edge_semiflat_arrowhead.exp.json +++ b/testdata/d2compiler/TestCompile/edge_semiflat_arrowhead.exp.json @@ -172,6 +172,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -194,6 +197,9 @@ "near_key": null, "shape": { "value": "diamond" + }, + "orientation": { + "value": "" } }, "dst_arrow": true, @@ -213,6 +219,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -275,6 +284,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -335,6 +347,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/escaped_id.exp.json b/testdata/d2compiler/TestCompile/escaped_id.exp.json index 66ab3db4b..18df30816 100644 --- a/testdata/d2compiler/TestCompile/escaped_id.exp.json +++ b/testdata/d2compiler/TestCompile/escaped_id.exp.json @@ -43,6 +43,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -85,6 +88,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/image_style.exp.json b/testdata/d2compiler/TestCompile/image_style.exp.json index 560a8afd4..466e46944 100644 --- a/testdata/d2compiler/TestCompile/image_style.exp.json +++ b/testdata/d2compiler/TestCompile/image_style.exp.json @@ -164,6 +164,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -222,6 +225,9 @@ "near_key": null, "shape": { "value": "image" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/nested_sql.exp.json b/testdata/d2compiler/TestCompile/nested_sql.exp.json index 20e9543c7..7de6092fa 100644 --- a/testdata/d2compiler/TestCompile/nested_sql.exp.json +++ b/testdata/d2compiler/TestCompile/nested_sql.exp.json @@ -177,6 +177,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -219,6 +222,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -275,6 +281,9 @@ "near_key": null, "shape": { "value": "sql_table" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/path_link.exp.json b/testdata/d2compiler/TestCompile/path_link.exp.json index 3c3090156..5e3e1c2ce 100644 --- a/testdata/d2compiler/TestCompile/path_link.exp.json +++ b/testdata/d2compiler/TestCompile/path_link.exp.json @@ -82,6 +82,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -125,6 +128,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/reserved_icon_near_style.exp.json b/testdata/d2compiler/TestCompile/reserved_icon_near_style.exp.json index f68047661..81d98affb 100644 --- a/testdata/d2compiler/TestCompile/reserved_icon_near_style.exp.json +++ b/testdata/d2compiler/TestCompile/reserved_icon_near_style.exp.json @@ -277,6 +277,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -387,6 +390,9 @@ }, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -427,6 +433,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/root_sequence.exp.json b/testdata/d2compiler/TestCompile/root_sequence.exp.json index c7697577a..cb3b7e599 100644 --- a/testdata/d2compiler/TestCompile/root_sequence.exp.json +++ b/testdata/d2compiler/TestCompile/root_sequence.exp.json @@ -53,6 +53,9 @@ "near_key": null, "shape": { "value": "sequence_diagram" + }, + "orientation": { + "value": "" } } }, diff --git a/testdata/d2compiler/TestCompile/sql_paren.exp.json b/testdata/d2compiler/TestCompile/sql_paren.exp.json index 9af237e20..e4e9783f1 100644 --- a/testdata/d2compiler/TestCompile/sql_paren.exp.json +++ b/testdata/d2compiler/TestCompile/sql_paren.exp.json @@ -158,6 +158,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -216,6 +219,9 @@ "near_key": null, "shape": { "value": "sql_table" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/stroke-width.exp.json b/testdata/d2compiler/TestCompile/stroke-width.exp.json index 09fcdd941..a276be175 100644 --- a/testdata/d2compiler/TestCompile/stroke-width.exp.json +++ b/testdata/d2compiler/TestCompile/stroke-width.exp.json @@ -89,6 +89,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -135,6 +138,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/table_style.exp.json b/testdata/d2compiler/TestCompile/table_style.exp.json index 112aa3a40..0e9baf10f 100644 --- a/testdata/d2compiler/TestCompile/table_style.exp.json +++ b/testdata/d2compiler/TestCompile/table_style.exp.json @@ -155,6 +155,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -211,6 +214,9 @@ "near_key": null, "shape": { "value": "sql_table" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/table_style_map.exp.json b/testdata/d2compiler/TestCompile/table_style_map.exp.json index 12baf6065..cfa3bd760 100644 --- a/testdata/d2compiler/TestCompile/table_style_map.exp.json +++ b/testdata/d2compiler/TestCompile/table_style_map.exp.json @@ -206,6 +206,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -262,6 +265,9 @@ "near_key": null, "shape": { "value": "sql_table" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_edge.exp.json b/testdata/d2compiler/TestCompile/underscore_edge.exp.json index eb8834c51..f2209a434 100644 --- a/testdata/d2compiler/TestCompile/underscore_edge.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_edge.exp.json @@ -117,6 +117,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -145,6 +148,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -218,6 +224,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -269,6 +278,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_edge_chain.exp.json b/testdata/d2compiler/TestCompile/underscore_edge_chain.exp.json index 6d20bf30c..7bb4d8162 100644 --- a/testdata/d2compiler/TestCompile/underscore_edge_chain.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_edge_chain.exp.json @@ -176,6 +176,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -204,6 +207,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -231,6 +237,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -335,6 +344,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -386,6 +398,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -437,6 +452,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_edge_existing.exp.json b/testdata/d2compiler/TestCompile/underscore_edge_existing.exp.json index cdbb0e417..45935ba7a 100644 --- a/testdata/d2compiler/TestCompile/underscore_edge_existing.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_edge_existing.exp.json @@ -183,6 +183,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -211,6 +214,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -238,6 +244,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -280,6 +289,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -351,6 +363,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -422,6 +437,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_edge_index.exp.json b/testdata/d2compiler/TestCompile/underscore_edge_index.exp.json index 9dc877365..d2e3c7efd 100644 --- a/testdata/d2compiler/TestCompile/underscore_edge_index.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_edge_index.exp.json @@ -188,6 +188,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -219,6 +222,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -261,6 +267,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -332,6 +341,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -403,6 +415,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_edge_nested.exp.json b/testdata/d2compiler/TestCompile/underscore_edge_nested.exp.json index f69c79872..5469d878f 100644 --- a/testdata/d2compiler/TestCompile/underscore_edge_nested.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_edge_nested.exp.json @@ -157,6 +157,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -185,6 +188,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } } @@ -227,6 +233,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -298,6 +307,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -360,6 +372,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_parent_create.exp.json b/testdata/d2compiler/TestCompile/underscore_parent_create.exp.json index aca48bc91..706b5c5a7 100644 --- a/testdata/d2compiler/TestCompile/underscore_parent_create.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_parent_create.exp.json @@ -83,6 +83,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -125,6 +128,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -176,6 +182,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_parent_not_root.exp.json b/testdata/d2compiler/TestCompile/underscore_parent_not_root.exp.json index 28f0903f3..c46f425ae 100644 --- a/testdata/d2compiler/TestCompile/underscore_parent_not_root.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_parent_not_root.exp.json @@ -112,6 +112,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -154,6 +157,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -194,6 +200,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -245,6 +254,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_parent_preference_1.exp.json b/testdata/d2compiler/TestCompile/underscore_parent_preference_1.exp.json index db0e2f7dd..2970baaae 100644 --- a/testdata/d2compiler/TestCompile/underscore_parent_preference_1.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_parent_preference_1.exp.json @@ -126,6 +126,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -168,6 +171,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -239,6 +245,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_parent_preference_2.exp.json b/testdata/d2compiler/TestCompile/underscore_parent_preference_2.exp.json index 18754b590..5de8bc701 100644 --- a/testdata/d2compiler/TestCompile/underscore_parent_preference_2.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_parent_preference_2.exp.json @@ -126,6 +126,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -199,6 +202,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -239,6 +245,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/underscore_parent_squared.exp.json b/testdata/d2compiler/TestCompile/underscore_parent_squared.exp.json index e45990c65..4cc238109 100644 --- a/testdata/d2compiler/TestCompile/underscore_parent_squared.exp.json +++ b/testdata/d2compiler/TestCompile/underscore_parent_squared.exp.json @@ -123,6 +123,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -165,6 +168,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -205,6 +211,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }, @@ -267,6 +276,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } } diff --git a/testdata/d2compiler/TestCompile/url_link.exp.json b/testdata/d2compiler/TestCompile/url_link.exp.json index 8b73b1ff3..cffd8a386 100644 --- a/testdata/d2compiler/TestCompile/url_link.exp.json +++ b/testdata/d2compiler/TestCompile/url_link.exp.json @@ -82,6 +82,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "" } } }, @@ -125,6 +128,9 @@ "near_key": null, "shape": { "value": "" + }, + "orientation": { + "value": "vertical" } } }