d2compiler: fix shape value casing
This commit is contained in:
parent
9d31a41c1e
commit
029c17caac
5 changed files with 457 additions and 5 deletions
|
|
@ -514,13 +514,14 @@ func (c *compiler) compileReserved(attrs *d2graph.Attributes, f *d2ir.Field) {
|
|||
c.compileLabel(attrs, f)
|
||||
c.compilePosition(attrs, f)
|
||||
case "shape":
|
||||
in := d2target.IsShape(scalar.ScalarString())
|
||||
_, isArrowhead := d2target.Arrowheads[scalar.ScalarString()]
|
||||
shapeVal := strings.ToLower(scalar.ScalarString())
|
||||
in := d2target.IsShape(shapeVal)
|
||||
_, isArrowhead := d2target.Arrowheads[shapeVal]
|
||||
if !in && !isArrowhead {
|
||||
c.errorf(scalar, "unknown shape %q", scalar.ScalarString())
|
||||
return
|
||||
}
|
||||
attrs.Shape.Value = scalar.ScalarString()
|
||||
attrs.Shape.Value = shapeVal
|
||||
if strings.EqualFold(attrs.Shape.Value, d2target.ShapeCode) {
|
||||
// Explicit code shape is plaintext.
|
||||
attrs.Language = d2target.ShapeText
|
||||
|
|
@ -596,11 +597,12 @@ func (c *compiler) compileReserved(attrs *d2graph.Attributes, f *d2ir.Field) {
|
|||
attrs.Link.MapKey = f.LastPrimaryKey()
|
||||
case "direction":
|
||||
dirs := []string{"up", "down", "right", "left"}
|
||||
if !go2.Contains(dirs, scalar.ScalarString()) {
|
||||
val := strings.ToLower(scalar.ScalarString())
|
||||
if !go2.Contains(dirs, val) {
|
||||
c.errorf(scalar, `direction must be one of %v, got %q`, strings.Join(dirs, ", "), scalar.ScalarString())
|
||||
return
|
||||
}
|
||||
attrs.Direction.Value = scalar.ScalarString()
|
||||
attrs.Direction.Value = val
|
||||
attrs.Direction.MapKey = f.LastPrimaryKey()
|
||||
case "constraint":
|
||||
if _, ok := scalar.(d2ast.String); !ok {
|
||||
|
|
|
|||
130
e2etests/testdata/txtar/sql-casing-panic/dagre/board.exp.json
generated
vendored
Normal file
130
e2etests/testdata/txtar/sql-casing-panic/dagre/board.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
{
|
||||
"name": "",
|
||||
"config": {
|
||||
"sketch": false,
|
||||
"themeID": 0,
|
||||
"darkThemeID": null,
|
||||
"pad": null,
|
||||
"center": null,
|
||||
"layoutEngine": null
|
||||
},
|
||||
"isFolderOnly": false,
|
||||
"fontFamily": "SourceSansPro",
|
||||
"shapes": [
|
||||
{
|
||||
"id": "asdf",
|
||||
"type": "sql_table",
|
||||
"pos": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"width": 87,
|
||||
"height": 72,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "N1",
|
||||
"stroke": "N7",
|
||||
"animated": false,
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"double-border": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": [
|
||||
{
|
||||
"name": {
|
||||
"label": "zxcv",
|
||||
"fontSize": 0,
|
||||
"fontFamily": "",
|
||||
"language": "",
|
||||
"color": "",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
"labelWidth": 37,
|
||||
"labelHeight": 26
|
||||
},
|
||||
"type": {
|
||||
"label": "",
|
||||
"fontSize": 0,
|
||||
"fontFamily": "",
|
||||
"language": "",
|
||||
"color": "",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
"labelWidth": 0,
|
||||
"labelHeight": 0
|
||||
},
|
||||
"constraint": null,
|
||||
"reference": ""
|
||||
}
|
||||
],
|
||||
"label": "asdf",
|
||||
"fontSize": 20,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "",
|
||||
"color": "N1",
|
||||
"italic": false,
|
||||
"bold": true,
|
||||
"underline": false,
|
||||
"labelWidth": 46,
|
||||
"labelHeight": 31,
|
||||
"zIndex": 0,
|
||||
"level": 1,
|
||||
"primaryAccentColor": "B2",
|
||||
"secondaryAccentColor": "AA2",
|
||||
"neutralAccentColor": "N2"
|
||||
}
|
||||
],
|
||||
"connections": [],
|
||||
"root": {
|
||||
"id": "",
|
||||
"type": "",
|
||||
"pos": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"width": 0,
|
||||
"height": 0,
|
||||
"opacity": 0,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 0,
|
||||
"borderRadius": 0,
|
||||
"fill": "N7",
|
||||
"stroke": "",
|
||||
"animated": false,
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"double-border": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": null,
|
||||
"label": "",
|
||||
"fontSize": 0,
|
||||
"fontFamily": "",
|
||||
"language": "",
|
||||
"color": "",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
"labelWidth": 0,
|
||||
"labelHeight": 0,
|
||||
"zIndex": 0,
|
||||
"level": 0
|
||||
}
|
||||
}
|
||||
95
e2etests/testdata/txtar/sql-casing-panic/dagre/sketch.exp.svg
vendored
Normal file
95
e2etests/testdata/txtar/sql-casing-panic/dagre/sketch.exp.svg
vendored
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 89 74"><svg class="d2-4262245251 d2-svg" width="89" height="74" viewBox="-1 -1 89 74"><rect x="-1.000000" y="-1.000000" width="89.000000" height="74.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||
.d2-4262245251 .text {
|
||||
font-family: "d2-4262245251-font-regular";
|
||||
}
|
||||
@font-face {
|
||||
font-family: d2-4262245251-font-regular;
|
||||
src: url("data:application/font-woff;base64,d09GRgABAAAAAAhgAAoAAAAADWwAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXd/Vo2NtYXAAAAFUAAAAWAAAAG4BjAJcZ2x5ZgAAAawAAAK8AAADCP//bXtoZWFkAAAEaAAAADYAAAA2G4Ue32hoZWEAAASgAAAAJAAAACQKhAXLaG10eAAABMQAAAAkAAAAJBB5AV1sb2NhAAAE6AAAABQAAAAUA7wEam1heHAAAAT8AAAAIAAAACAAIQD2bmFtZQAABRwAAAMjAAAIFAbDVU1wb3N0AAAIQAAAAB0AAAAg/9EAMgADAgkBkAAFAAACigJYAAAASwKKAlgAAAFeADIBIwAAAgsFAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPAEAAIP//Au7/BgAAA9gBESAAAZ8AAAAAAeYClAAAACAAA3icVMy5DQIxAAXRZ2yOgMAtcogGkBCiCEAUAHT6V3K0O+ELBkVVsNcc0XUVB2cXVzd3j2TIaS7555dvPnnnled4LCtWqmZtY2vHBAAA//8BAAD//6j0Fdx4nDyQz2sjZRjHn2eSzthN0jXNzLxJOvkx82ZnmkmaxMyPN01jup0kul12TWqoa9i1uOwhQlXY9VB6sQcV8SAV2pugB69C9dybIHoSBBEEjxIKerFE8NKJJLb9A57v5/N5YA4GAJzDHUMA5uEmLIIEYEXV6C3VMKjALMYoCTADo8IAf/c/Q9y0g64bfMH709s/OMDX3+eOL96ufzgcfr+zt+d/Ojrzq/jTGXBgT8b4LZ5DEnIARNMd22W2rlONFwzXtaqyFKUG5Xmj6jKH5yVR/u7FrcPPo4Vl824qqz2pD3ptIaBtybRJ9x9Xw5sbve1opkaz4qqcf+eh/2tdMT0t8/HNRjl/CxBKkzGe4DkoAHOaPsVNIUSYIafzVtVlhOdx8fZbjY3dZqWTMKVyqtgx+i2tLufUXrjxrP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ThxpNbe9DhUTIk6VcUZEhiNnTE5GwpnqVFQU7NGiRclQfAsqSgJKpqQE5MwZ06LHEccMmDClxHGkSp5ZSM6Iiksine8swndmSEJGaazOyYjF04lfouwuxzh6FIpdrXy8VuEpju+U7bnliv2KQL9uhdn6uUs2ERfqZ6qupNq5lIIT7fpzO3wrXLGHu1d/1pl8uEex/leqfMq59I+lVCYmGc5t0SGUg0L3BMeB1l1CdeR7ugx4Q493DLTu0KdPhxMGdHmt3B59HF/T44RDZXSFF3tHcswJP+L4hq5ifO3E+rNQLOEXCnN3KY5z3WNGoZ575oHumuiGd1fYz1C+5o5SOUPNkY900i/TnEWMzRWFGM7Uy6U3SutfbI6Y6S5e25t9Pw0XNnvLKb4i1wx7ty44eeUWjD6kanDLM5f6CYiIyTlVxJCcGS0qrsT7LRHnpDgO1b03mpKKznWOP+dKLkmYiUGXTHXmFPobmW9C4z5c872ztyRWvmd6dn2r+5zi1Ksbjd6pe8u90LqcrCjQMlXzFTcNxTUz7yeaqVX+oXJLvW45z+iTSPVUN7j9DjwnoM0Ou+wz0TlD7VzYG9HWO9HmFfvqwRmJokZydWIVdgl4wS67vOLFWs0OhxzQY/8OHBdZPQ54fWtnXadlFWd1/hSbtvg6nl2vXt5br8/v4MsvNFE3L2Nf2vhuX1i1G/+fEDHzXNzW6p3cE4L/AAAA//8BAAD//wdbTDAAeJxiYGYAg//nGIwYsAAAAAAA//8BAAD//y8BAgMAAAA=");
|
||||
}]]></style><style type="text/css"><![CDATA[.shape {
|
||||
shape-rendering: geometricPrecision;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.connection {
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.blend {
|
||||
mix-blend-mode: multiply;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.d2-4262245251 .fill-N1{fill:#0A0F25;}
|
||||
.d2-4262245251 .fill-N2{fill:#676C7E;}
|
||||
.d2-4262245251 .fill-N3{fill:#9499AB;}
|
||||
.d2-4262245251 .fill-N4{fill:#CFD2DD;}
|
||||
.d2-4262245251 .fill-N5{fill:#DEE1EB;}
|
||||
.d2-4262245251 .fill-N6{fill:#EEF1F8;}
|
||||
.d2-4262245251 .fill-N7{fill:#FFFFFF;}
|
||||
.d2-4262245251 .fill-B1{fill:#0D32B2;}
|
||||
.d2-4262245251 .fill-B2{fill:#0D32B2;}
|
||||
.d2-4262245251 .fill-B3{fill:#E3E9FD;}
|
||||
.d2-4262245251 .fill-B4{fill:#E3E9FD;}
|
||||
.d2-4262245251 .fill-B5{fill:#EDF0FD;}
|
||||
.d2-4262245251 .fill-B6{fill:#F7F8FE;}
|
||||
.d2-4262245251 .fill-AA2{fill:#4A6FF3;}
|
||||
.d2-4262245251 .fill-AA4{fill:#EDF0FD;}
|
||||
.d2-4262245251 .fill-AA5{fill:#F7F8FE;}
|
||||
.d2-4262245251 .fill-AB4{fill:#EDF0FD;}
|
||||
.d2-4262245251 .fill-AB5{fill:#F7F8FE;}
|
||||
.d2-4262245251 .stroke-N1{stroke:#0A0F25;}
|
||||
.d2-4262245251 .stroke-N2{stroke:#676C7E;}
|
||||
.d2-4262245251 .stroke-N3{stroke:#9499AB;}
|
||||
.d2-4262245251 .stroke-N4{stroke:#CFD2DD;}
|
||||
.d2-4262245251 .stroke-N5{stroke:#DEE1EB;}
|
||||
.d2-4262245251 .stroke-N6{stroke:#EEF1F8;}
|
||||
.d2-4262245251 .stroke-N7{stroke:#FFFFFF;}
|
||||
.d2-4262245251 .stroke-B1{stroke:#0D32B2;}
|
||||
.d2-4262245251 .stroke-B2{stroke:#0D32B2;}
|
||||
.d2-4262245251 .stroke-B3{stroke:#E3E9FD;}
|
||||
.d2-4262245251 .stroke-B4{stroke:#E3E9FD;}
|
||||
.d2-4262245251 .stroke-B5{stroke:#EDF0FD;}
|
||||
.d2-4262245251 .stroke-B6{stroke:#F7F8FE;}
|
||||
.d2-4262245251 .stroke-AA2{stroke:#4A6FF3;}
|
||||
.d2-4262245251 .stroke-AA4{stroke:#EDF0FD;}
|
||||
.d2-4262245251 .stroke-AA5{stroke:#F7F8FE;}
|
||||
.d2-4262245251 .stroke-AB4{stroke:#EDF0FD;}
|
||||
.d2-4262245251 .stroke-AB5{stroke:#F7F8FE;}
|
||||
.d2-4262245251 .background-color-N1{background-color:#0A0F25;}
|
||||
.d2-4262245251 .background-color-N2{background-color:#676C7E;}
|
||||
.d2-4262245251 .background-color-N3{background-color:#9499AB;}
|
||||
.d2-4262245251 .background-color-N4{background-color:#CFD2DD;}
|
||||
.d2-4262245251 .background-color-N5{background-color:#DEE1EB;}
|
||||
.d2-4262245251 .background-color-N6{background-color:#EEF1F8;}
|
||||
.d2-4262245251 .background-color-N7{background-color:#FFFFFF;}
|
||||
.d2-4262245251 .background-color-B1{background-color:#0D32B2;}
|
||||
.d2-4262245251 .background-color-B2{background-color:#0D32B2;}
|
||||
.d2-4262245251 .background-color-B3{background-color:#E3E9FD;}
|
||||
.d2-4262245251 .background-color-B4{background-color:#E3E9FD;}
|
||||
.d2-4262245251 .background-color-B5{background-color:#EDF0FD;}
|
||||
.d2-4262245251 .background-color-B6{background-color:#F7F8FE;}
|
||||
.d2-4262245251 .background-color-AA2{background-color:#4A6FF3;}
|
||||
.d2-4262245251 .background-color-AA4{background-color:#EDF0FD;}
|
||||
.d2-4262245251 .background-color-AA5{background-color:#F7F8FE;}
|
||||
.d2-4262245251 .background-color-AB4{background-color:#EDF0FD;}
|
||||
.d2-4262245251 .background-color-AB5{background-color:#F7F8FE;}
|
||||
.d2-4262245251 .color-N1{color:#0A0F25;}
|
||||
.d2-4262245251 .color-N2{color:#676C7E;}
|
||||
.d2-4262245251 .color-N3{color:#9499AB;}
|
||||
.d2-4262245251 .color-N4{color:#CFD2DD;}
|
||||
.d2-4262245251 .color-N5{color:#DEE1EB;}
|
||||
.d2-4262245251 .color-N6{color:#EEF1F8;}
|
||||
.d2-4262245251 .color-N7{color:#FFFFFF;}
|
||||
.d2-4262245251 .color-B1{color:#0D32B2;}
|
||||
.d2-4262245251 .color-B2{color:#0D32B2;}
|
||||
.d2-4262245251 .color-B3{color:#E3E9FD;}
|
||||
.d2-4262245251 .color-B4{color:#E3E9FD;}
|
||||
.d2-4262245251 .color-B5{color:#EDF0FD;}
|
||||
.d2-4262245251 .color-B6{color:#F7F8FE;}
|
||||
.d2-4262245251 .color-AA2{color:#4A6FF3;}
|
||||
.d2-4262245251 .color-AA4{color:#EDF0FD;}
|
||||
.d2-4262245251 .color-AA5{color:#F7F8FE;}
|
||||
.d2-4262245251 .color-AB4{color:#EDF0FD;}
|
||||
.d2-4262245251 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-4262245251);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-4262245251);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-4262245251);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-4262245251);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-4262245251);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-4262245251);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-4262245251);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-4262245251);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="YXNkZg=="><g class="shape" ><rect x="0.000000" y="0.000000" width="87.000000" height="72.000000" stroke="#0A0F25" fill="#FFFFFF" class="shape stroke-N1 fill-N7" style="stroke-width:2;" /><rect x="0.000000" y="0.000000" width="87.000000" height="36.000000" fill="#0A0F25" class="class_header fill-N1" /><text x="10.000000" y="25.750000" fill="#FFFFFF" class="text fill-N7" style="text-anchor:start;font-size:24px">asdf</text><text x="10.000000" y="59.000000" fill="#0D32B2" class="text fill-B2" style="text-anchor:start;font-size:20px">zxcv</text><text x="67.000000" y="59.000000" fill="#676C7E" class="text fill-N2" style="text-anchor:start;font-size:20px" /><text x="77.000000" y="59.000000" fill="#4A6FF3" class="text fill-AA2" style="text-anchor:end;font-size:20px" /><line x1="0.000000" x2="87.000000" y1="72.000000" y2="72.000000" stroke="#0A0F25" class=" stroke-N1" style="stroke-width:2" /></g></g><mask id="d2-4262245251" maskUnits="userSpaceOnUse" x="-1" y="-1" width="89" height="74">
|
||||
<rect x="-1" y="-1" width="89" height="74" fill="white"></rect>
|
||||
|
||||
</mask></svg></svg>
|
||||
|
After Width: | Height: | Size: 10 KiB |
130
e2etests/testdata/txtar/sql-casing-panic/elk/board.exp.json
generated
vendored
Normal file
130
e2etests/testdata/txtar/sql-casing-panic/elk/board.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
{
|
||||
"name": "",
|
||||
"config": {
|
||||
"sketch": false,
|
||||
"themeID": 0,
|
||||
"darkThemeID": null,
|
||||
"pad": null,
|
||||
"center": null,
|
||||
"layoutEngine": null
|
||||
},
|
||||
"isFolderOnly": false,
|
||||
"fontFamily": "SourceSansPro",
|
||||
"shapes": [
|
||||
{
|
||||
"id": "asdf",
|
||||
"type": "sql_table",
|
||||
"pos": {
|
||||
"x": 12,
|
||||
"y": 12
|
||||
},
|
||||
"width": 87,
|
||||
"height": 72,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "N1",
|
||||
"stroke": "N7",
|
||||
"animated": false,
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"double-border": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": [
|
||||
{
|
||||
"name": {
|
||||
"label": "zxcv",
|
||||
"fontSize": 0,
|
||||
"fontFamily": "",
|
||||
"language": "",
|
||||
"color": "",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
"labelWidth": 37,
|
||||
"labelHeight": 26
|
||||
},
|
||||
"type": {
|
||||
"label": "",
|
||||
"fontSize": 0,
|
||||
"fontFamily": "",
|
||||
"language": "",
|
||||
"color": "",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
"labelWidth": 0,
|
||||
"labelHeight": 0
|
||||
},
|
||||
"constraint": null,
|
||||
"reference": ""
|
||||
}
|
||||
],
|
||||
"label": "asdf",
|
||||
"fontSize": 20,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "",
|
||||
"color": "N1",
|
||||
"italic": false,
|
||||
"bold": true,
|
||||
"underline": false,
|
||||
"labelWidth": 46,
|
||||
"labelHeight": 31,
|
||||
"zIndex": 0,
|
||||
"level": 1,
|
||||
"primaryAccentColor": "B2",
|
||||
"secondaryAccentColor": "AA2",
|
||||
"neutralAccentColor": "N2"
|
||||
}
|
||||
],
|
||||
"connections": [],
|
||||
"root": {
|
||||
"id": "",
|
||||
"type": "",
|
||||
"pos": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"width": 0,
|
||||
"height": 0,
|
||||
"opacity": 0,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 0,
|
||||
"borderRadius": 0,
|
||||
"fill": "N7",
|
||||
"stroke": "",
|
||||
"animated": false,
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"double-border": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": null,
|
||||
"label": "",
|
||||
"fontSize": 0,
|
||||
"fontFamily": "",
|
||||
"language": "",
|
||||
"color": "",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
"labelWidth": 0,
|
||||
"labelHeight": 0,
|
||||
"zIndex": 0,
|
||||
"level": 0
|
||||
}
|
||||
}
|
||||
95
e2etests/testdata/txtar/sql-casing-panic/elk/sketch.exp.svg
vendored
Normal file
95
e2etests/testdata/txtar/sql-casing-panic/elk/sketch.exp.svg
vendored
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 89 74"><svg class="d2-3082948363 d2-svg" width="89" height="74" viewBox="11 11 89 74"><rect x="11.000000" y="11.000000" width="89.000000" height="74.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||
.d2-3082948363 .text {
|
||||
font-family: "d2-3082948363-font-regular";
|
||||
}
|
||||
@font-face {
|
||||
font-family: d2-3082948363-font-regular;
|
||||
src: url("data:application/font-woff;base64,d09GRgABAAAAAAhgAAoAAAAADWwAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXd/Vo2NtYXAAAAFUAAAAWAAAAG4BjAJcZ2x5ZgAAAawAAAK8AAADCP//bXtoZWFkAAAEaAAAADYAAAA2G4Ue32hoZWEAAASgAAAAJAAAACQKhAXLaG10eAAABMQAAAAkAAAAJBB5AV1sb2NhAAAE6AAAABQAAAAUA7wEam1heHAAAAT8AAAAIAAAACAAIQD2bmFtZQAABRwAAAMjAAAIFAbDVU1wb3N0AAAIQAAAAB0AAAAg/9EAMgADAgkBkAAFAAACigJYAAAASwKKAlgAAAFeADIBIwAAAgsFAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPAEAAIP//Au7/BgAAA9gBESAAAZ8AAAAAAeYClAAAACAAA3icVMy5DQIxAAXRZ2yOgMAtcogGkBCiCEAUAHT6V3K0O+ELBkVVsNcc0XUVB2cXVzd3j2TIaS7555dvPnnnled4LCtWqmZtY2vHBAAA//8BAAD//6j0Fdx4nDyQz2sjZRjHn2eSzthN0jXNzLxJOvkx82ZnmkmaxMyPN01jup0kul12TWqoa9i1uOwhQlXY9VB6sQcV8SAV2pugB69C9dybIHoSBBEEjxIKerFE8NKJJLb9A57v5/N5YA4GAJzDHUMA5uEmLIIEYEXV6C3VMKjALMYoCTADo8IAf/c/Q9y0g64bfMH709s/OMDX3+eOL96ufzgcfr+zt+d/Ojrzq/jTGXBgT8b4LZ5DEnIARNMd22W2rlONFwzXtaqyFKUG5Xmj6jKH5yVR/u7FrcPPo4Vl824qqz2pD3ptIaBtybRJ9x9Xw5sbve1opkaz4qqcf+eh/2tdMT0t8/HNRjl/CxBKkzGe4DkoAHOaPsVNIUSYIafzVtVlhOdx8fZbjY3dZqWTMKVyqtgx+i2tLuf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xir8qK+etThxpNbe9DhUTIk6VcUZEhiNnTE5GwpnqVFQU7NGiRclQfAsqSgJKpqQE5MwZ06LHEccMmDClxHGkSp5ZSM6Iiksine8swndmSEJGaazOyYjF04lfouwuxzh6FIpdrXy8VuEpju+U7bnliv2KQL9uhdn6uUs2ERfqZ6qupNq5lIIT7fpzO3wrXLGHu1d/1pl8uEex/leqfMq59I+lVCYmGc5t0SGUg0L3BMeB1l1CdeR7ugx4Q493DLTu0KdPhxMGdHmt3B59HF/T44RDZXSFF3tHcswJP+L4hq5ifO3E+rNQLOEXCnN3KY5z3WNGoZ575oHumuiGd1fYz1C+5o5SOUPNkY900i/TnEWMzRWFGM7Uy6U3SutfbI6Y6S5e25t9Pw0XNnvLKb4i1wx7ty44eeUWjD6kanDLM5f6CYiIyTlVxJCcGS0qrsT7LRHnpDgO1b03mpKKznWOP+dKLkmYiUGXTHXmFPobmW9C4z5c872ztyRWvmd6dn2r+5zi1Ksbjd6pe8u90LqcrCjQMlXzFTcNxTUz7yeaqVX+oXJLvW45z+iTSPVUN7j9DjwnoM0Ou+wz0TlD7VzYG9HWO9HmFfvqwRmJokZydWIVdgl4wS67vOLFWs0OhxzQY/8OHBdZPQ54fWtnXadlFWd1/hSbtvg6nl2vXt5br8/v4MsvNFE3L2Nf2vhuX1i1G/+fEDHzXNzW6p3cE4L/AAAA//8BAAD//wdbTDAAeJxiYGYAg//nGIwYsAAAAAAA//8BAAD//y8BAgMAAAA=");
|
||||
}]]></style><style type="text/css"><![CDATA[.shape {
|
||||
shape-rendering: geometricPrecision;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.connection {
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.blend {
|
||||
mix-blend-mode: multiply;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.d2-3082948363 .fill-N1{fill:#0A0F25;}
|
||||
.d2-3082948363 .fill-N2{fill:#676C7E;}
|
||||
.d2-3082948363 .fill-N3{fill:#9499AB;}
|
||||
.d2-3082948363 .fill-N4{fill:#CFD2DD;}
|
||||
.d2-3082948363 .fill-N5{fill:#DEE1EB;}
|
||||
.d2-3082948363 .fill-N6{fill:#EEF1F8;}
|
||||
.d2-3082948363 .fill-N7{fill:#FFFFFF;}
|
||||
.d2-3082948363 .fill-B1{fill:#0D32B2;}
|
||||
.d2-3082948363 .fill-B2{fill:#0D32B2;}
|
||||
.d2-3082948363 .fill-B3{fill:#E3E9FD;}
|
||||
.d2-3082948363 .fill-B4{fill:#E3E9FD;}
|
||||
.d2-3082948363 .fill-B5{fill:#EDF0FD;}
|
||||
.d2-3082948363 .fill-B6{fill:#F7F8FE;}
|
||||
.d2-3082948363 .fill-AA2{fill:#4A6FF3;}
|
||||
.d2-3082948363 .fill-AA4{fill:#EDF0FD;}
|
||||
.d2-3082948363 .fill-AA5{fill:#F7F8FE;}
|
||||
.d2-3082948363 .fill-AB4{fill:#EDF0FD;}
|
||||
.d2-3082948363 .fill-AB5{fill:#F7F8FE;}
|
||||
.d2-3082948363 .stroke-N1{stroke:#0A0F25;}
|
||||
.d2-3082948363 .stroke-N2{stroke:#676C7E;}
|
||||
.d2-3082948363 .stroke-N3{stroke:#9499AB;}
|
||||
.d2-3082948363 .stroke-N4{stroke:#CFD2DD;}
|
||||
.d2-3082948363 .stroke-N5{stroke:#DEE1EB;}
|
||||
.d2-3082948363 .stroke-N6{stroke:#EEF1F8;}
|
||||
.d2-3082948363 .stroke-N7{stroke:#FFFFFF;}
|
||||
.d2-3082948363 .stroke-B1{stroke:#0D32B2;}
|
||||
.d2-3082948363 .stroke-B2{stroke:#0D32B2;}
|
||||
.d2-3082948363 .stroke-B3{stroke:#E3E9FD;}
|
||||
.d2-3082948363 .stroke-B4{stroke:#E3E9FD;}
|
||||
.d2-3082948363 .stroke-B5{stroke:#EDF0FD;}
|
||||
.d2-3082948363 .stroke-B6{stroke:#F7F8FE;}
|
||||
.d2-3082948363 .stroke-AA2{stroke:#4A6FF3;}
|
||||
.d2-3082948363 .stroke-AA4{stroke:#EDF0FD;}
|
||||
.d2-3082948363 .stroke-AA5{stroke:#F7F8FE;}
|
||||
.d2-3082948363 .stroke-AB4{stroke:#EDF0FD;}
|
||||
.d2-3082948363 .stroke-AB5{stroke:#F7F8FE;}
|
||||
.d2-3082948363 .background-color-N1{background-color:#0A0F25;}
|
||||
.d2-3082948363 .background-color-N2{background-color:#676C7E;}
|
||||
.d2-3082948363 .background-color-N3{background-color:#9499AB;}
|
||||
.d2-3082948363 .background-color-N4{background-color:#CFD2DD;}
|
||||
.d2-3082948363 .background-color-N5{background-color:#DEE1EB;}
|
||||
.d2-3082948363 .background-color-N6{background-color:#EEF1F8;}
|
||||
.d2-3082948363 .background-color-N7{background-color:#FFFFFF;}
|
||||
.d2-3082948363 .background-color-B1{background-color:#0D32B2;}
|
||||
.d2-3082948363 .background-color-B2{background-color:#0D32B2;}
|
||||
.d2-3082948363 .background-color-B3{background-color:#E3E9FD;}
|
||||
.d2-3082948363 .background-color-B4{background-color:#E3E9FD;}
|
||||
.d2-3082948363 .background-color-B5{background-color:#EDF0FD;}
|
||||
.d2-3082948363 .background-color-B6{background-color:#F7F8FE;}
|
||||
.d2-3082948363 .background-color-AA2{background-color:#4A6FF3;}
|
||||
.d2-3082948363 .background-color-AA4{background-color:#EDF0FD;}
|
||||
.d2-3082948363 .background-color-AA5{background-color:#F7F8FE;}
|
||||
.d2-3082948363 .background-color-AB4{background-color:#EDF0FD;}
|
||||
.d2-3082948363 .background-color-AB5{background-color:#F7F8FE;}
|
||||
.d2-3082948363 .color-N1{color:#0A0F25;}
|
||||
.d2-3082948363 .color-N2{color:#676C7E;}
|
||||
.d2-3082948363 .color-N3{color:#9499AB;}
|
||||
.d2-3082948363 .color-N4{color:#CFD2DD;}
|
||||
.d2-3082948363 .color-N5{color:#DEE1EB;}
|
||||
.d2-3082948363 .color-N6{color:#EEF1F8;}
|
||||
.d2-3082948363 .color-N7{color:#FFFFFF;}
|
||||
.d2-3082948363 .color-B1{color:#0D32B2;}
|
||||
.d2-3082948363 .color-B2{color:#0D32B2;}
|
||||
.d2-3082948363 .color-B3{color:#E3E9FD;}
|
||||
.d2-3082948363 .color-B4{color:#E3E9FD;}
|
||||
.d2-3082948363 .color-B5{color:#EDF0FD;}
|
||||
.d2-3082948363 .color-B6{color:#F7F8FE;}
|
||||
.d2-3082948363 .color-AA2{color:#4A6FF3;}
|
||||
.d2-3082948363 .color-AA4{color:#EDF0FD;}
|
||||
.d2-3082948363 .color-AA5{color:#F7F8FE;}
|
||||
.d2-3082948363 .color-AB4{color:#EDF0FD;}
|
||||
.d2-3082948363 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-3082948363);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-3082948363);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-3082948363);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-3082948363);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-3082948363);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-3082948363);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-3082948363);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-3082948363);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="YXNkZg=="><g class="shape" ><rect x="12.000000" y="12.000000" width="87.000000" height="72.000000" stroke="#0A0F25" fill="#FFFFFF" class="shape stroke-N1 fill-N7" style="stroke-width:2;" /><rect x="12.000000" y="12.000000" width="87.000000" height="36.000000" fill="#0A0F25" class="class_header fill-N1" /><text x="22.000000" y="37.750000" fill="#FFFFFF" class="text fill-N7" style="text-anchor:start;font-size:24px">asdf</text><text x="22.000000" y="71.000000" fill="#0D32B2" class="text fill-B2" style="text-anchor:start;font-size:20px">zxcv</text><text x="79.000000" y="71.000000" fill="#676C7E" class="text fill-N2" style="text-anchor:start;font-size:20px" /><text x="89.000000" y="71.000000" fill="#4A6FF3" class="text fill-AA2" style="text-anchor:end;font-size:20px" /><line x1="12.000000" x2="99.000000" y1="84.000000" y2="84.000000" stroke="#0A0F25" class=" stroke-N1" style="stroke-width:2" /></g></g><mask id="d2-3082948363" maskUnits="userSpaceOnUse" x="11" y="11" width="89" height="74">
|
||||
<rect x="11" y="11" width="89" height="74" fill="white"></rect>
|
||||
|
||||
</mask></svg></svg>
|
||||
|
After Width: | Height: | Size: 10 KiB |
Loading…
Reference in a new issue