diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index a984b37fce..e979de270d 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -3,6 +3,7 @@ - Icons: connections can include icons [#12](https://github.com/terrastruct/d2/issues/12) - Syntax: `suspend`/`unsuspend` to define models and instantiate them [#2394](https://github.com/terrastruct/d2/pull/2394) - Globs: support for filtering edges based on properties of endpoint nodes (e.g., `&src.style.fill: blue`) [#2395](https://github.com/terrastruct/d2/pull/2395) +- Render: markdown, latex, and code can be used as object labels [#2204](https://github.com/terrastruct/d2/pull/2204/files) #### Improvements 🧹 diff --git a/d2compiler/compile.go b/d2compiler/compile.go index 28c6ba7f29..35bf27c370 100644 --- a/d2compiler/compile.go +++ b/d2compiler/compile.go @@ -356,7 +356,14 @@ func (c *compiler) compileField(obj *d2graph.Object, f *d2ir.Field) { parent := obj obj = obj.EnsureChild(([]d2ast.String{f.Name})) if f.Primary() != nil { + var s string + if obj.OuterSequenceDiagram() != nil { + s = obj.Attributes.Shape.Value + } c.compileLabel(&obj.Attributes, f) + if s != "" { + obj.Attributes.Shape.Value = s + } } if f.Map() != nil { c.compileMap(obj, f.Map()) diff --git a/d2exporter/export.go b/d2exporter/export.go index fb820b782f..faf026c6ff 100644 --- a/d2exporter/export.go +++ b/d2exporter/export.go @@ -146,6 +146,7 @@ func toShape(obj *d2graph.Object, g *d2graph.Graph) d2target.Shape { shape.Pos = d2target.NewPoint(int(obj.TopLeft.X), int(obj.TopLeft.Y)) shape.Width = int(obj.Width) shape.Height = int(obj.Height) + shape.Language = obj.Language text := obj.Text() shape.Bold = text.IsBold @@ -166,10 +167,7 @@ func toShape(obj *d2graph.Object, g *d2graph.Graph) d2target.Shape { shape.Color = text.GetColor(shape.Italic) applyStyles(shape, obj) - switch obj.Shape.Value { - case d2target.ShapeCode, d2target.ShapeText: - shape.Language = obj.Language - shape.Label = obj.Label.Value + switch strings.ToLower(obj.Shape.Value) { case d2target.ShapeClass: shape.Class = *obj.Class // The label is the header for classes and tables, which is set in client to be 4 px larger than the object's set font size diff --git a/d2graph/d2graph.go b/d2graph/d2graph.go index 52848bc1a4..d47b319777 100644 --- a/d2graph/d2graph.go +++ b/d2graph/d2graph.go @@ -946,14 +946,16 @@ func (obj *Object) GetLabelSize(mtexts []*d2target.MText, ruler *textmeasure.Rul var dims *d2target.TextDimensions switch shapeType { - case d2target.ShapeText: + case d2target.ShapeClass: + dims = GetTextDimensions(mtexts, ruler, obj.Text(), go2.Pointer(d2fonts.SourceCodePro)) + default: if obj.Language == "latex" { width, height, err := d2latex.Measure(obj.Text().Text) if err != nil { return nil, err } dims = d2target.NewTextDimensions(width, height) - } else if obj.Language != "" { + } else if obj.Language != "" && shapeType != d2target.ShapeCode { var err error dims, err = getMarkdownDimensions(mtexts, ruler, obj.Text(), fontFamily) if err != nil { @@ -962,12 +964,6 @@ func (obj *Object) GetLabelSize(mtexts []*d2target.MText, ruler *textmeasure.Rul } else { dims = GetTextDimensions(mtexts, ruler, obj.Text(), fontFamily) } - - case d2target.ShapeClass: - dims = GetTextDimensions(mtexts, ruler, obj.Text(), go2.Pointer(d2fonts.SourceCodePro)) - - default: - dims = GetTextDimensions(mtexts, ruler, obj.Text(), fontFamily) } if shapeType == d2target.ShapeSQLTable && obj.Label.Value == "" { diff --git a/d2renderers/d2svg/d2svg.go b/d2renderers/d2svg/d2svg.go index 153b7b3451..974ac60aa7 100644 --- a/d2renderers/d2svg/d2svg.go +++ b/d2renderers/d2svg/d2svg.go @@ -1414,7 +1414,82 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape fontClass += " text-underline" } - if targetShape.Type == d2target.ShapeCode { + if targetShape.Language == "latex" { + render, err := d2latex.Render(targetShape.Label) + if err != nil { + return labelMask, err + } + gEl := d2themes.NewThemableElement("g", inlineTheme) + + labelPosition := label.FromString(targetShape.LabelPosition) + if labelPosition == label.Unset { + labelPosition = label.InsideMiddleCenter + } + var box *geo.Box + if labelPosition.IsOutside() { + box = s.GetBox() + } else { + box = s.GetInnerBox() + } + labelTL := labelPosition.GetPointOnBox(box, label.PADDING, + float64(targetShape.LabelWidth), + float64(targetShape.LabelHeight), + ) + gEl.SetTranslate(labelTL.X, labelTL.Y) + + gEl.Color = targetShape.Stroke + gEl.Content = render + fmt.Fprint(writer, gEl.Render()) + } else if targetShape.Language == "markdown" { + render, err := textmeasure.RenderMarkdown(targetShape.Label) + if err != nil { + return labelMask, err + } + + labelPosition := label.FromString(targetShape.LabelPosition) + if labelPosition == label.Unset { + labelPosition = label.InsideMiddleCenter + } + var box *geo.Box + if labelPosition.IsOutside() { + box = s.GetBox() + } else { + box = s.GetInnerBox() + } + labelTL := labelPosition.GetPointOnBox(box, label.PADDING, + float64(targetShape.LabelWidth), + float64(targetShape.LabelHeight), + ) + + fmt.Fprintf(writer, ``, + labelTL.X, labelTL.Y, targetShape.LabelWidth, targetShape.LabelHeight, + ) + + // we need the self closing form in this svg/xhtml context + render = strings.ReplaceAll(render, "
", "
") + + mdEl := d2themes.NewThemableElement("div", inlineTheme) + mdEl.ClassName = "md" + mdEl.Content = render + + // We have to set with styles since within foreignObject, we're in html + // land and not SVG attributes + var styles []string + if targetShape.FontSize != textmeasure.MarkdownFontSize { + styles = append(styles, fmt.Sprintf("font-size:%vpx", targetShape.FontSize)) + } + if targetShape.Fill != "" && targetShape.Fill != "transparent" { + styles = append(styles, fmt.Sprintf(`background-color:%s`, targetShape.Fill)) + } + if !color.IsThemeColor(targetShape.Color) { + styles = append(styles, fmt.Sprintf(`color:%s`, targetShape.Color)) + } + + mdEl.Style = strings.Join(styles, ";") + + fmt.Fprint(writer, mdEl.Render()) + fmt.Fprint(writer, `
`) + } else if targetShape.Language != "" { lexer := lexers.Get(targetShape.Language) if lexer == nil { lexer = lexers.Fallback @@ -1478,48 +1553,6 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape } fmt.Fprint(writer, "") } - } else if targetShape.Type == d2target.ShapeText && targetShape.Language == "latex" { - render, err := d2latex.Render(targetShape.Label) - if err != nil { - return labelMask, err - } - gEl := d2themes.NewThemableElement("g", inlineTheme) - gEl.SetTranslate(float64(box.TopLeft.X), float64(box.TopLeft.Y)) - gEl.Color = targetShape.Stroke - gEl.Content = render - fmt.Fprint(writer, gEl.Render()) - } else if targetShape.Type == d2target.ShapeText && targetShape.Language != "" { - render, err := textmeasure.RenderMarkdown(targetShape.Label) - if err != nil { - return labelMask, err - } - fmt.Fprintf(writer, ``, - box.TopLeft.X, box.TopLeft.Y, targetShape.Width, targetShape.Height, - ) - // we need the self closing form in this svg/xhtml context - render = strings.ReplaceAll(render, "
", "
") - - mdEl := d2themes.NewThemableElement("div", inlineTheme) - mdEl.ClassName = "md" - mdEl.Content = render - - // We have to set with styles since within foreignObject, we're in html - // land and not SVG attributes - var styles []string - if targetShape.FontSize != textmeasure.MarkdownFontSize { - styles = append(styles, fmt.Sprintf("font-size:%vpx", targetShape.FontSize)) - } - if targetShape.Fill != "" && targetShape.Fill != "transparent" { - styles = append(styles, fmt.Sprintf(`background-color:%s`, targetShape.Fill)) - } - if !color.IsThemeColor(targetShape.Color) { - styles = append(styles, fmt.Sprintf(`color:%s`, targetShape.Color)) - } - - mdEl.Style = strings.Join(styles, ";") - - fmt.Fprint(writer, mdEl.Render()) - fmt.Fprint(writer, `
`) } else { if targetShape.LabelFill != "" { rectEl := d2themes.NewThemableElement("rect", inlineTheme) @@ -2075,7 +2108,7 @@ func Render(diagram *d2target.Diagram, opts *RenderOpts) ([]byte, error) { hasMarkdown := false for _, s := range diagram.Shapes { - if s.Label != "" && s.Type == d2target.ShapeText { + if s.Language == "markdown" { hasMarkdown = true break } diff --git a/e2etests/testdata/regression/grid_with_latex/dagre/sketch.exp.svg b/e2etests/testdata/regression/grid_with_latex/dagre/sketch.exp.svg index 7577c17031..c3bfb6ec38 100644 --- a/e2etests/testdata/regression/grid_with_latex/dagre/sketch.exp.svg +++ b/e2etests/testdata/regression/grid_with_latex/dagre/sketch.exp.svg @@ -96,743 +96,7 @@ .d2-4250858284 .color-AA4{color:#EDF0FD;} .d2-4250858284 .color-AA5{color:#F7F8FE;} .d2-4250858284 .color-AB4{color:#EDF0FD;} - .d2-4250858284 .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-4250858284);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-4250858284);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-4250858284);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-4250858284);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-4250858284);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-4250858284);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-4250858284);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzabab + .d2-4250858284 .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-4250858284);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-4250858284);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-4250858284);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-4250858284);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-4250858284);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-4250858284);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-4250858284);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-4250858284);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzabab diff --git a/e2etests/testdata/regression/grid_with_latex/elk/sketch.exp.svg b/e2etests/testdata/regression/grid_with_latex/elk/sketch.exp.svg index 89faf6a80e..80eb1ac71c 100644 --- a/e2etests/testdata/regression/grid_with_latex/elk/sketch.exp.svg +++ b/e2etests/testdata/regression/grid_with_latex/elk/sketch.exp.svg @@ -96,743 +96,7 @@ .d2-1013566819 .color-AA4{color:#EDF0FD;} .d2-1013566819 .color-AA5{color:#F7F8FE;} .d2-1013566819 .color-AB4{color:#EDF0FD;} - .d2-1013566819 .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-1013566819);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1013566819);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1013566819);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1013566819);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1013566819);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1013566819);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1013566819);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzabab + .d2-1013566819 .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-1013566819);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1013566819);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1013566819);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1013566819);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1013566819);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1013566819);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1013566819);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1013566819);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzabab diff --git a/e2etests/testdata/stable/chaos2/dagre/sketch.exp.svg b/e2etests/testdata/stable/chaos2/dagre/sketch.exp.svg index da201c18f0..8afa614c45 100644 --- a/e2etests/testdata/stable/chaos2/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/chaos2/dagre/sketch.exp.svg @@ -103,743 +103,7 @@ .d2-1133025763 .color-AA4{color:#EDF0FD;} .d2-1133025763 .color-AA5{color:#F7F8FE;} .d2-1133025763 .color-AB4{color:#EDF0FD;} - .d2-1133025763 .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-1133025763);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1133025763);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1133025763);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1133025763);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1133025763);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1133025763);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1133025763);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>aabbllmmnnoocciikkddgghhjjeeff1122 334455667788 + .d2-1133025763 .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-1133025763);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1133025763);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1133025763);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1133025763);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1133025763);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1133025763);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1133025763);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1133025763);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>aabbllmmnnoocciikkddgghhjjeeff1122 334455667788 diff --git a/e2etests/testdata/stable/chaos2/elk/sketch.exp.svg b/e2etests/testdata/stable/chaos2/elk/sketch.exp.svg index 9ec76165b1..22fec50c96 100644 --- a/e2etests/testdata/stable/chaos2/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/chaos2/elk/sketch.exp.svg @@ -103,743 +103,7 @@ .d2-3265274365 .color-AA4{color:#EDF0FD;} .d2-3265274365 .color-AA5{color:#F7F8FE;} .d2-3265274365 .color-AB4{color:#EDF0FD;} - .d2-3265274365 .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-3265274365);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-3265274365);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-3265274365);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-3265274365);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-3265274365);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-3265274365);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-3265274365);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>aabbllmmnnoocciikkddgghhjjeeff1122 334455667788 + .d2-3265274365 .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-3265274365);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-3265274365);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-3265274365);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-3265274365);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-3265274365);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-3265274365);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-3265274365);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-3265274365);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>aabbllmmnnoocciikkddgghhjjeeff1122 334455667788 diff --git a/e2etests/testdata/stable/grid_outside_labels/dagre/sketch.exp.svg b/e2etests/testdata/stable/grid_outside_labels/dagre/sketch.exp.svg index b7c9b32c9d..518aab5528 100644 --- a/e2etests/testdata/stable/grid_outside_labels/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/grid_outside_labels/dagre/sketch.exp.svg @@ -89,743 +89,7 @@ .d2-269116138 .color-AA4{color:#EDF0FD;} .d2-269116138 .color-AA5{color:#F7F8FE;} .d2-269116138 .color-AB4{color:#EDF0FD;} - .d2-269116138 .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-269116138);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-269116138);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-269116138);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-269116138);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-269116138);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-269116138);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-269116138);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>___________________________________container____________________________________amscd plugin + .d2-269116138 .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-269116138);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-269116138);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-269116138);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-269116138);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-269116138);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-269116138);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-269116138);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-269116138);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>___________________________________container____________________________________amscd plugin braket plugincancel plugincolor plugingensymb pluginmhchem pluginphysics pluginmultilinesasmµ diff --git a/e2etests/testdata/stable/grid_outside_labels/elk/sketch.exp.svg b/e2etests/testdata/stable/grid_outside_labels/elk/sketch.exp.svg index afd6d4cab1..00da4b7683 100644 --- a/e2etests/testdata/stable/grid_outside_labels/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/grid_outside_labels/elk/sketch.exp.svg @@ -89,743 +89,7 @@ .d2-1333473382 .color-AA4{color:#EDF0FD;} .d2-1333473382 .color-AA5{color:#F7F8FE;} .d2-1333473382 .color-AB4{color:#EDF0FD;} - .d2-1333473382 .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-1333473382);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1333473382);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1333473382);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1333473382);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1333473382);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1333473382);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1333473382);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>___________________________________container____________________________________amscd plugin + .d2-1333473382 .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-1333473382);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1333473382);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1333473382);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1333473382);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1333473382);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1333473382);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1333473382);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1333473382);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>___________________________________container____________________________________amscd plugin braket plugincancel plugincolor plugingensymb pluginmhchem pluginphysics pluginmultilinesasmµ diff --git a/e2etests/testdata/stable/latex/dagre/sketch.exp.svg b/e2etests/testdata/stable/latex/dagre/sketch.exp.svg index 987d06dbfb..e49bb4205e 100644 --- a/e2etests/testdata/stable/latex/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/latex/dagre/sketch.exp.svg @@ -103,743 +103,7 @@ .d2-1592195744 .color-AA4{color:#EDF0FD;} .d2-1592195744 .color-AA5{color:#F7F8FE;} .d2-1592195744 .color-AB4{color:#EDF0FD;} - .d2-1592195744 .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-1592195744);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1592195744);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1592195744);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1592195744);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1592195744);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1592195744);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1592195744);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>mixed togethersugarsolutionLinear program we get + .d2-1592195744 .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-1592195744);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1592195744);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1592195744);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1592195744);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1592195744);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1592195744);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1592195744);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1592195744);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>mixed togethersugarsolutionLinear program we get diff --git a/e2etests/testdata/stable/latex/elk/sketch.exp.svg b/e2etests/testdata/stable/latex/elk/sketch.exp.svg index a0925c4c7b..568657e558 100644 --- a/e2etests/testdata/stable/latex/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/latex/elk/sketch.exp.svg @@ -103,743 +103,7 @@ .d2-1402787666 .color-AA4{color:#EDF0FD;} .d2-1402787666 .color-AA5{color:#F7F8FE;} .d2-1402787666 .color-AB4{color:#EDF0FD;} - .d2-1402787666 .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-1402787666);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1402787666);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1402787666);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1402787666);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1402787666);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1402787666);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1402787666);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>mixed togethersugarsolutionLinear program we get + .d2-1402787666 .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-1402787666);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1402787666);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1402787666);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1402787666);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1402787666);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1402787666);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1402787666);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1402787666);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>mixed togethersugarsolutionLinear program we get diff --git a/e2etests/testdata/stable/legend_with_near_key/dagre/sketch.exp.svg b/e2etests/testdata/stable/legend_with_near_key/dagre/sketch.exp.svg index 229562c8ac..3eb62ad94d 100644 --- a/e2etests/testdata/stable/legend_with_near_key/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/legend_with_near_key/dagre/sketch.exp.svg @@ -96,743 +96,7 @@ .d2-3802857277 .color-AA4{color:#EDF0FD;} .d2-3802857277 .color-AA5{color:#F7F8FE;} .d2-3802857277 .color-AB4{color:#EDF0FD;} - .d2-3802857277 .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-3802857277);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-3802857277);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-3802857277);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-3802857277);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-3802857277);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-3802857277);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-3802857277);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzlegendfoobar + .d2-3802857277 .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-3802857277);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-3802857277);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-3802857277);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-3802857277);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-3802857277);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-3802857277);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-3802857277);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-3802857277);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzlegendfoobar diff --git a/e2etests/testdata/stable/legend_with_near_key/elk/sketch.exp.svg b/e2etests/testdata/stable/legend_with_near_key/elk/sketch.exp.svg index bc06411bc3..9edb42e864 100644 --- a/e2etests/testdata/stable/legend_with_near_key/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/legend_with_near_key/elk/sketch.exp.svg @@ -96,743 +96,7 @@ .d2-2470799862 .color-AA4{color:#EDF0FD;} .d2-2470799862 .color-AA5{color:#F7F8FE;} .d2-2470799862 .color-AB4{color:#EDF0FD;} - .d2-2470799862 .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-2470799862);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2470799862);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2470799862);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2470799862);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2470799862);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2470799862);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2470799862);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzlegendfoobar + .d2-2470799862 .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-2470799862);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2470799862);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2470799862);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2470799862);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2470799862);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2470799862);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2470799862);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2470799862);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xyzlegendfoobar diff --git a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json index b76732578a..facf6dc0f0 100644 --- a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json +++ b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/board.exp.json @@ -196,19 +196,19 @@ }, { "id": "e", - "type": "code", + "type": "rectangle", "pos": { "x": 943, - "y": 158 + "y": 167 }, - "width": 199, - "height": 78, + "width": 270, + "height": 69, "opacity": 1, "strokeDash": 0, "strokeWidth": 2, "borderRadius": 0, "fill": "B5", - "stroke": "N1", + "stroke": "B1", "animated": false, "shadow": false, "3d": false, @@ -230,8 +230,8 @@ "italic": false, "bold": false, "underline": false, - "labelWidth": 183, - "labelHeight": 62, + "labelWidth": 225, + "labelHeight": 24, "labelPosition": "INSIDE_MIDDLE_CENTER", "zIndex": 0, "level": 1 @@ -240,7 +240,7 @@ "id": "f", "type": "cylinder", "pos": { - "x": 1164, + "x": 1235, "y": 118 }, "width": 100, @@ -282,7 +282,7 @@ "id": "g", "type": "diamond", "pos": { - "x": 1314, + "x": 1385, "y": 144 }, "width": 100, @@ -324,7 +324,7 @@ "id": "h", "type": "document", "pos": { - "x": 1464, + "x": 1535, "y": 160 }, "width": 100, @@ -366,7 +366,7 @@ "id": "i", "type": "hexagon", "pos": { - "x": 1604, + "x": 1675, "y": 167 }, "width": 146, @@ -408,7 +408,7 @@ "id": "j", "type": "image", "pos": { - "x": 1790, + "x": 1861, "y": 87 }, "width": 128, @@ -462,7 +462,7 @@ "id": "k", "type": "oval", "pos": { - "x": 1956, + "x": 2027, "y": 163 }, "width": 100, @@ -504,7 +504,7 @@ "id": "l", "type": "package", "pos": { - "x": 2106, + "x": 2177, "y": 163 }, "width": 100, @@ -546,7 +546,7 @@ "id": "m", "type": "page", "pos": { - "x": 2250, + "x": 2321, "y": 149 }, "width": 113, @@ -588,7 +588,7 @@ "id": "n", "type": "parallelogram", "pos": { - "x": 2403, + "x": 2474, "y": 154 }, "width": 169, @@ -630,7 +630,7 @@ "id": "o", "type": "person", "pos": { - "x": 2592, + "x": 2663, "y": 64 }, "width": 100, @@ -672,7 +672,7 @@ "id": "p", "type": "queue", "pos": { - "x": 2732, + "x": 2803, "y": 170 }, "width": 151, @@ -714,7 +714,7 @@ "id": "q", "type": "rectangle", "pos": { - "x": 2923, + "x": 2994, "y": 133 }, "width": 103, @@ -756,7 +756,7 @@ "id": "r", "type": "step", "pos": { - "x": 3066, + "x": 3137, "y": 135 }, "width": 187, @@ -798,7 +798,7 @@ "id": "s", "type": "stored_data", "pos": { - "x": 3291, + "x": 3362, "y": 170 }, "width": 100, @@ -840,7 +840,7 @@ "id": "t", "type": "sql_table", "pos": { - "x": 3431, + "x": 3502, "y": 128 }, "width": 161, @@ -1111,7 +1111,7 @@ "y": 556 }, { - "x": 1042.5, + "x": 1078, "y": 556 } ], @@ -1146,11 +1146,11 @@ "link": "", "route": [ { - "x": 1042.5, + "x": 1078, "y": 626 }, { - "x": 1214, + "x": 1285, "y": 626 } ], @@ -1185,11 +1185,11 @@ "link": "", "route": [ { - "x": 1214, + "x": 1285, "y": 696 }, { - "x": 1364, + "x": 1435, "y": 696 } ], @@ -1224,11 +1224,11 @@ "link": "", "route": [ { - "x": 1364, + "x": 1435, "y": 766 }, { - "x": 1514, + "x": 1585, "y": 766 } ], @@ -1263,11 +1263,11 @@ "link": "", "route": [ { - "x": 1514, + "x": 1585, "y": 836 }, { - "x": 1677, + "x": 1748, "y": 836 } ], @@ -1302,11 +1302,11 @@ "link": "", "route": [ { - "x": 1677, + "x": 1748, "y": 906 }, { - "x": 1854, + "x": 1925, "y": 906 } ], @@ -1341,11 +1341,11 @@ "link": "", "route": [ { - "x": 1854, + "x": 1925, "y": 976 }, { - "x": 2006, + "x": 2077, "y": 976 } ], @@ -1380,11 +1380,11 @@ "link": "", "route": [ { - "x": 2006, + "x": 2077, "y": 1046 }, { - "x": 2156, + "x": 2227, "y": 1046 } ], @@ -1419,11 +1419,11 @@ "link": "", "route": [ { - "x": 2156, + "x": 2227, "y": 1116 }, { - "x": 2306.5, + "x": 2377.5, "y": 1116 } ], @@ -1458,11 +1458,11 @@ "link": "", "route": [ { - "x": 2306.5, + "x": 2377.5, "y": 1186 }, { - "x": 2487.5, + "x": 2558.5, "y": 1186 } ], @@ -1497,11 +1497,11 @@ "link": "", "route": [ { - "x": 2487.5, + "x": 2558.5, "y": 1256 }, { - "x": 2642, + "x": 2713, "y": 1256 } ], @@ -1536,11 +1536,11 @@ "link": "", "route": [ { - "x": 2642, + "x": 2713, "y": 1326 }, { - "x": 2807.5, + "x": 2878.5, "y": 1326 } ], @@ -1575,11 +1575,11 @@ "link": "", "route": [ { - "x": 2807.5, + "x": 2878.5, "y": 1396 }, { - "x": 2974.5, + "x": 3045.5, "y": 1396 } ], @@ -1614,11 +1614,11 @@ "link": "", "route": [ { - "x": 2974.5, + "x": 3045.5, "y": 1466 }, { - "x": 3159.5, + "x": 3230.5, "y": 1466 } ], @@ -1653,11 +1653,11 @@ "link": "", "route": [ { - "x": 3159.5, + "x": 3230.5, "y": 1536 }, { - "x": 3341, + "x": 3412, "y": 1536 } ], @@ -1692,11 +1692,11 @@ "link": "", "route": [ { - "x": 3341, + "x": 3412, "y": 1606 }, { - "x": 3511.5, + "x": 3582.5, "y": 1606 } ], @@ -1887,11 +1887,11 @@ "link": "", "route": [ { - "x": 1042.5, + "x": 1078, "y": 236 }, { - "x": 1042.5, + "x": 1078, "y": 1676 } ], @@ -1926,11 +1926,11 @@ "link": "", "route": [ { - "x": 1214, + "x": 1285, "y": 236 }, { - "x": 1214, + "x": 1285, "y": 1676 } ], @@ -1965,11 +1965,11 @@ "link": "", "route": [ { - "x": 1364, + "x": 1435, "y": 236 }, { - "x": 1364, + "x": 1435, "y": 1676 } ], @@ -2004,11 +2004,11 @@ "link": "", "route": [ { - "x": 1514, + "x": 1585, "y": 236 }, { - "x": 1514, + "x": 1585, "y": 1676 } ], @@ -2043,11 +2043,11 @@ "link": "", "route": [ { - "x": 1677, + "x": 1748, "y": 236 }, { - "x": 1677, + "x": 1748, "y": 1676 } ], @@ -2082,11 +2082,11 @@ "link": "", "route": [ { - "x": 1854, + "x": 1925, "y": 241 }, { - "x": 1854, + "x": 1925, "y": 1676 } ], @@ -2121,11 +2121,11 @@ "link": "", "route": [ { - "x": 2006, + "x": 2077, "y": 236 }, { - "x": 2006, + "x": 2077, "y": 1676 } ], @@ -2160,11 +2160,11 @@ "link": "", "route": [ { - "x": 2156, + "x": 2227, "y": 236 }, { - "x": 2156, + "x": 2227, "y": 1676 } ], @@ -2199,11 +2199,11 @@ "link": "", "route": [ { - "x": 2306.5, + "x": 2377.5, "y": 236 }, { - "x": 2306.5, + "x": 2377.5, "y": 1676 } ], @@ -2238,11 +2238,11 @@ "link": "", "route": [ { - "x": 2487.5, + "x": 2558.5, "y": 236 }, { - "x": 2487.5, + "x": 2558.5, "y": 1676 } ], @@ -2277,11 +2277,11 @@ "link": "", "route": [ { - "x": 2642, + "x": 2713, "y": 241 }, { - "x": 2642, + "x": 2713, "y": 1676 } ], @@ -2316,11 +2316,11 @@ "link": "", "route": [ { - "x": 2807.5, + "x": 2878.5, "y": 236 }, { - "x": 2807.5, + "x": 2878.5, "y": 1676 } ], @@ -2355,11 +2355,11 @@ "link": "", "route": [ { - "x": 2974.5, + "x": 3045.5, "y": 236 }, { - "x": 2974.5, + "x": 3045.5, "y": 1676 } ], @@ -2394,11 +2394,11 @@ "link": "", "route": [ { - "x": 3159.5, + "x": 3230.5, "y": 236 }, { - "x": 3159.5, + "x": 3230.5, "y": 1676 } ], @@ -2433,11 +2433,11 @@ "link": "", "route": [ { - "x": 3341, + "x": 3412, "y": 236 }, { - "x": 3341, + "x": 3412, "y": 1676 } ], @@ -2472,11 +2472,11 @@ "link": "", "route": [ { - "x": 3511.5, + "x": 3582.5, "y": 236 }, { - "x": 3511.5, + "x": 3582.5, "y": 1676 } ], diff --git a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg index 0c3a917928..bcee78aee6 100644 --- a/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/sequence_diagram_all_shapes/dagre/sketch.exp.svg @@ -1,30 +1,30 @@ -a labelblabelsa class+public() boolvoid-private() intvoidcloudyyyy:= 5 + .d2-2618151458 .fill-N1{fill:#0A0F25;} + .d2-2618151458 .fill-N2{fill:#676C7E;} + .d2-2618151458 .fill-N3{fill:#9499AB;} + .d2-2618151458 .fill-N4{fill:#CFD2DD;} + .d2-2618151458 .fill-N5{fill:#DEE1EB;} + .d2-2618151458 .fill-N6{fill:#EEF1F8;} + .d2-2618151458 .fill-N7{fill:#FFFFFF;} + .d2-2618151458 .fill-B1{fill:#0D32B2;} + .d2-2618151458 .fill-B2{fill:#0D32B2;} + .d2-2618151458 .fill-B3{fill:#E3E9FD;} + .d2-2618151458 .fill-B4{fill:#E3E9FD;} + .d2-2618151458 .fill-B5{fill:#EDF0FD;} + .d2-2618151458 .fill-B6{fill:#F7F8FE;} + .d2-2618151458 .fill-AA2{fill:#4A6FF3;} + .d2-2618151458 .fill-AA4{fill:#EDF0FD;} + .d2-2618151458 .fill-AA5{fill:#F7F8FE;} + .d2-2618151458 .fill-AB4{fill:#EDF0FD;} + .d2-2618151458 .fill-AB5{fill:#F7F8FE;} + .d2-2618151458 .stroke-N1{stroke:#0A0F25;} + .d2-2618151458 .stroke-N2{stroke:#676C7E;} + .d2-2618151458 .stroke-N3{stroke:#9499AB;} + .d2-2618151458 .stroke-N4{stroke:#CFD2DD;} + .d2-2618151458 .stroke-N5{stroke:#DEE1EB;} + .d2-2618151458 .stroke-N6{stroke:#EEF1F8;} + .d2-2618151458 .stroke-N7{stroke:#FFFFFF;} + .d2-2618151458 .stroke-B1{stroke:#0D32B2;} + .d2-2618151458 .stroke-B2{stroke:#0D32B2;} + .d2-2618151458 .stroke-B3{stroke:#E3E9FD;} + .d2-2618151458 .stroke-B4{stroke:#E3E9FD;} + .d2-2618151458 .stroke-B5{stroke:#EDF0FD;} + .d2-2618151458 .stroke-B6{stroke:#F7F8FE;} + .d2-2618151458 .stroke-AA2{stroke:#4A6FF3;} + .d2-2618151458 .stroke-AA4{stroke:#EDF0FD;} + .d2-2618151458 .stroke-AA5{stroke:#F7F8FE;} + .d2-2618151458 .stroke-AB4{stroke:#EDF0FD;} + .d2-2618151458 .stroke-AB5{stroke:#F7F8FE;} + .d2-2618151458 .background-color-N1{background-color:#0A0F25;} + .d2-2618151458 .background-color-N2{background-color:#676C7E;} + .d2-2618151458 .background-color-N3{background-color:#9499AB;} + .d2-2618151458 .background-color-N4{background-color:#CFD2DD;} + .d2-2618151458 .background-color-N5{background-color:#DEE1EB;} + .d2-2618151458 .background-color-N6{background-color:#EEF1F8;} + .d2-2618151458 .background-color-N7{background-color:#FFFFFF;} + .d2-2618151458 .background-color-B1{background-color:#0D32B2;} + .d2-2618151458 .background-color-B2{background-color:#0D32B2;} + .d2-2618151458 .background-color-B3{background-color:#E3E9FD;} + .d2-2618151458 .background-color-B4{background-color:#E3E9FD;} + .d2-2618151458 .background-color-B5{background-color:#EDF0FD;} + .d2-2618151458 .background-color-B6{background-color:#F7F8FE;} + .d2-2618151458 .background-color-AA2{background-color:#4A6FF3;} + .d2-2618151458 .background-color-AA4{background-color:#EDF0FD;} + .d2-2618151458 .background-color-AA5{background-color:#F7F8FE;} + .d2-2618151458 .background-color-AB4{background-color:#EDF0FD;} + .d2-2618151458 .background-color-AB5{background-color:#F7F8FE;} + .d2-2618151458 .color-N1{color:#0A0F25;} + .d2-2618151458 .color-N2{color:#676C7E;} + .d2-2618151458 .color-N3{color:#9499AB;} + .d2-2618151458 .color-N4{color:#CFD2DD;} + .d2-2618151458 .color-N5{color:#DEE1EB;} + .d2-2618151458 .color-N6{color:#EEF1F8;} + .d2-2618151458 .color-N7{color:#FFFFFF;} + .d2-2618151458 .color-B1{color:#0D32B2;} + .d2-2618151458 .color-B2{color:#0D32B2;} + .d2-2618151458 .color-B3{color:#E3E9FD;} + .d2-2618151458 .color-B4{color:#E3E9FD;} + .d2-2618151458 .color-B5{color:#EDF0FD;} + .d2-2618151458 .color-B6{color:#F7F8FE;} + .d2-2618151458 .color-AA2{color:#4A6FF3;} + .d2-2618151458 .color-AA4{color:#EDF0FD;} + .d2-2618151458 .color-AA5{color:#F7F8FE;} + .d2-2618151458 .color-AB4{color:#EDF0FD;} + .d2-2618151458 .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-2618151458);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2618151458);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2618151458);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2618151458);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2618151458);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2618151458);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2618151458);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>a labelblabelsa class+public() boolvoid-private() intvoidcloudyyyy:= 5 := a + 7 -fmt.Printf("%d", b)a := 5 +fmt.Printf("%d", b)a := 5 b := a + 7 -fmt.Printf("%d", b)cyldiadocssix cornersa random iconoverpackdocs pagetoohard o saysinglepersona queuea squarea step at a timedatausersidintnamevarchar result := callThisFunction(obj, 5) midthis sideother side - +fmt.Printf("%d", b)cyldiadocssix cornersa random iconoverpackdocs pagetoohard o saysinglepersona queuea squarea step at a timedatausersidintnamevarchar result := callThisFunction(obj, 5) midthis sideother side + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/board.exp.json b/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/board.exp.json index b76732578a..facf6dc0f0 100644 --- a/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/board.exp.json +++ b/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/board.exp.json @@ -196,19 +196,19 @@ }, { "id": "e", - "type": "code", + "type": "rectangle", "pos": { "x": 943, - "y": 158 + "y": 167 }, - "width": 199, - "height": 78, + "width": 270, + "height": 69, "opacity": 1, "strokeDash": 0, "strokeWidth": 2, "borderRadius": 0, "fill": "B5", - "stroke": "N1", + "stroke": "B1", "animated": false, "shadow": false, "3d": false, @@ -230,8 +230,8 @@ "italic": false, "bold": false, "underline": false, - "labelWidth": 183, - "labelHeight": 62, + "labelWidth": 225, + "labelHeight": 24, "labelPosition": "INSIDE_MIDDLE_CENTER", "zIndex": 0, "level": 1 @@ -240,7 +240,7 @@ "id": "f", "type": "cylinder", "pos": { - "x": 1164, + "x": 1235, "y": 118 }, "width": 100, @@ -282,7 +282,7 @@ "id": "g", "type": "diamond", "pos": { - "x": 1314, + "x": 1385, "y": 144 }, "width": 100, @@ -324,7 +324,7 @@ "id": "h", "type": "document", "pos": { - "x": 1464, + "x": 1535, "y": 160 }, "width": 100, @@ -366,7 +366,7 @@ "id": "i", "type": "hexagon", "pos": { - "x": 1604, + "x": 1675, "y": 167 }, "width": 146, @@ -408,7 +408,7 @@ "id": "j", "type": "image", "pos": { - "x": 1790, + "x": 1861, "y": 87 }, "width": 128, @@ -462,7 +462,7 @@ "id": "k", "type": "oval", "pos": { - "x": 1956, + "x": 2027, "y": 163 }, "width": 100, @@ -504,7 +504,7 @@ "id": "l", "type": "package", "pos": { - "x": 2106, + "x": 2177, "y": 163 }, "width": 100, @@ -546,7 +546,7 @@ "id": "m", "type": "page", "pos": { - "x": 2250, + "x": 2321, "y": 149 }, "width": 113, @@ -588,7 +588,7 @@ "id": "n", "type": "parallelogram", "pos": { - "x": 2403, + "x": 2474, "y": 154 }, "width": 169, @@ -630,7 +630,7 @@ "id": "o", "type": "person", "pos": { - "x": 2592, + "x": 2663, "y": 64 }, "width": 100, @@ -672,7 +672,7 @@ "id": "p", "type": "queue", "pos": { - "x": 2732, + "x": 2803, "y": 170 }, "width": 151, @@ -714,7 +714,7 @@ "id": "q", "type": "rectangle", "pos": { - "x": 2923, + "x": 2994, "y": 133 }, "width": 103, @@ -756,7 +756,7 @@ "id": "r", "type": "step", "pos": { - "x": 3066, + "x": 3137, "y": 135 }, "width": 187, @@ -798,7 +798,7 @@ "id": "s", "type": "stored_data", "pos": { - "x": 3291, + "x": 3362, "y": 170 }, "width": 100, @@ -840,7 +840,7 @@ "id": "t", "type": "sql_table", "pos": { - "x": 3431, + "x": 3502, "y": 128 }, "width": 161, @@ -1111,7 +1111,7 @@ "y": 556 }, { - "x": 1042.5, + "x": 1078, "y": 556 } ], @@ -1146,11 +1146,11 @@ "link": "", "route": [ { - "x": 1042.5, + "x": 1078, "y": 626 }, { - "x": 1214, + "x": 1285, "y": 626 } ], @@ -1185,11 +1185,11 @@ "link": "", "route": [ { - "x": 1214, + "x": 1285, "y": 696 }, { - "x": 1364, + "x": 1435, "y": 696 } ], @@ -1224,11 +1224,11 @@ "link": "", "route": [ { - "x": 1364, + "x": 1435, "y": 766 }, { - "x": 1514, + "x": 1585, "y": 766 } ], @@ -1263,11 +1263,11 @@ "link": "", "route": [ { - "x": 1514, + "x": 1585, "y": 836 }, { - "x": 1677, + "x": 1748, "y": 836 } ], @@ -1302,11 +1302,11 @@ "link": "", "route": [ { - "x": 1677, + "x": 1748, "y": 906 }, { - "x": 1854, + "x": 1925, "y": 906 } ], @@ -1341,11 +1341,11 @@ "link": "", "route": [ { - "x": 1854, + "x": 1925, "y": 976 }, { - "x": 2006, + "x": 2077, "y": 976 } ], @@ -1380,11 +1380,11 @@ "link": "", "route": [ { - "x": 2006, + "x": 2077, "y": 1046 }, { - "x": 2156, + "x": 2227, "y": 1046 } ], @@ -1419,11 +1419,11 @@ "link": "", "route": [ { - "x": 2156, + "x": 2227, "y": 1116 }, { - "x": 2306.5, + "x": 2377.5, "y": 1116 } ], @@ -1458,11 +1458,11 @@ "link": "", "route": [ { - "x": 2306.5, + "x": 2377.5, "y": 1186 }, { - "x": 2487.5, + "x": 2558.5, "y": 1186 } ], @@ -1497,11 +1497,11 @@ "link": "", "route": [ { - "x": 2487.5, + "x": 2558.5, "y": 1256 }, { - "x": 2642, + "x": 2713, "y": 1256 } ], @@ -1536,11 +1536,11 @@ "link": "", "route": [ { - "x": 2642, + "x": 2713, "y": 1326 }, { - "x": 2807.5, + "x": 2878.5, "y": 1326 } ], @@ -1575,11 +1575,11 @@ "link": "", "route": [ { - "x": 2807.5, + "x": 2878.5, "y": 1396 }, { - "x": 2974.5, + "x": 3045.5, "y": 1396 } ], @@ -1614,11 +1614,11 @@ "link": "", "route": [ { - "x": 2974.5, + "x": 3045.5, "y": 1466 }, { - "x": 3159.5, + "x": 3230.5, "y": 1466 } ], @@ -1653,11 +1653,11 @@ "link": "", "route": [ { - "x": 3159.5, + "x": 3230.5, "y": 1536 }, { - "x": 3341, + "x": 3412, "y": 1536 } ], @@ -1692,11 +1692,11 @@ "link": "", "route": [ { - "x": 3341, + "x": 3412, "y": 1606 }, { - "x": 3511.5, + "x": 3582.5, "y": 1606 } ], @@ -1887,11 +1887,11 @@ "link": "", "route": [ { - "x": 1042.5, + "x": 1078, "y": 236 }, { - "x": 1042.5, + "x": 1078, "y": 1676 } ], @@ -1926,11 +1926,11 @@ "link": "", "route": [ { - "x": 1214, + "x": 1285, "y": 236 }, { - "x": 1214, + "x": 1285, "y": 1676 } ], @@ -1965,11 +1965,11 @@ "link": "", "route": [ { - "x": 1364, + "x": 1435, "y": 236 }, { - "x": 1364, + "x": 1435, "y": 1676 } ], @@ -2004,11 +2004,11 @@ "link": "", "route": [ { - "x": 1514, + "x": 1585, "y": 236 }, { - "x": 1514, + "x": 1585, "y": 1676 } ], @@ -2043,11 +2043,11 @@ "link": "", "route": [ { - "x": 1677, + "x": 1748, "y": 236 }, { - "x": 1677, + "x": 1748, "y": 1676 } ], @@ -2082,11 +2082,11 @@ "link": "", "route": [ { - "x": 1854, + "x": 1925, "y": 241 }, { - "x": 1854, + "x": 1925, "y": 1676 } ], @@ -2121,11 +2121,11 @@ "link": "", "route": [ { - "x": 2006, + "x": 2077, "y": 236 }, { - "x": 2006, + "x": 2077, "y": 1676 } ], @@ -2160,11 +2160,11 @@ "link": "", "route": [ { - "x": 2156, + "x": 2227, "y": 236 }, { - "x": 2156, + "x": 2227, "y": 1676 } ], @@ -2199,11 +2199,11 @@ "link": "", "route": [ { - "x": 2306.5, + "x": 2377.5, "y": 236 }, { - "x": 2306.5, + "x": 2377.5, "y": 1676 } ], @@ -2238,11 +2238,11 @@ "link": "", "route": [ { - "x": 2487.5, + "x": 2558.5, "y": 236 }, { - "x": 2487.5, + "x": 2558.5, "y": 1676 } ], @@ -2277,11 +2277,11 @@ "link": "", "route": [ { - "x": 2642, + "x": 2713, "y": 241 }, { - "x": 2642, + "x": 2713, "y": 1676 } ], @@ -2316,11 +2316,11 @@ "link": "", "route": [ { - "x": 2807.5, + "x": 2878.5, "y": 236 }, { - "x": 2807.5, + "x": 2878.5, "y": 1676 } ], @@ -2355,11 +2355,11 @@ "link": "", "route": [ { - "x": 2974.5, + "x": 3045.5, "y": 236 }, { - "x": 2974.5, + "x": 3045.5, "y": 1676 } ], @@ -2394,11 +2394,11 @@ "link": "", "route": [ { - "x": 3159.5, + "x": 3230.5, "y": 236 }, { - "x": 3159.5, + "x": 3230.5, "y": 1676 } ], @@ -2433,11 +2433,11 @@ "link": "", "route": [ { - "x": 3341, + "x": 3412, "y": 236 }, { - "x": 3341, + "x": 3412, "y": 1676 } ], @@ -2472,11 +2472,11 @@ "link": "", "route": [ { - "x": 3511.5, + "x": 3582.5, "y": 236 }, { - "x": 3511.5, + "x": 3582.5, "y": 1676 } ], diff --git a/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/sketch.exp.svg b/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/sketch.exp.svg index 0c3a917928..bcee78aee6 100644 --- a/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/sequence_diagram_all_shapes/elk/sketch.exp.svg @@ -1,30 +1,30 @@ -a labelblabelsa class+public() boolvoid-private() intvoidcloudyyyy:= 5 + .d2-2618151458 .fill-N1{fill:#0A0F25;} + .d2-2618151458 .fill-N2{fill:#676C7E;} + .d2-2618151458 .fill-N3{fill:#9499AB;} + .d2-2618151458 .fill-N4{fill:#CFD2DD;} + .d2-2618151458 .fill-N5{fill:#DEE1EB;} + .d2-2618151458 .fill-N6{fill:#EEF1F8;} + .d2-2618151458 .fill-N7{fill:#FFFFFF;} + .d2-2618151458 .fill-B1{fill:#0D32B2;} + .d2-2618151458 .fill-B2{fill:#0D32B2;} + .d2-2618151458 .fill-B3{fill:#E3E9FD;} + .d2-2618151458 .fill-B4{fill:#E3E9FD;} + .d2-2618151458 .fill-B5{fill:#EDF0FD;} + .d2-2618151458 .fill-B6{fill:#F7F8FE;} + .d2-2618151458 .fill-AA2{fill:#4A6FF3;} + .d2-2618151458 .fill-AA4{fill:#EDF0FD;} + .d2-2618151458 .fill-AA5{fill:#F7F8FE;} + .d2-2618151458 .fill-AB4{fill:#EDF0FD;} + .d2-2618151458 .fill-AB5{fill:#F7F8FE;} + .d2-2618151458 .stroke-N1{stroke:#0A0F25;} + .d2-2618151458 .stroke-N2{stroke:#676C7E;} + .d2-2618151458 .stroke-N3{stroke:#9499AB;} + .d2-2618151458 .stroke-N4{stroke:#CFD2DD;} + .d2-2618151458 .stroke-N5{stroke:#DEE1EB;} + .d2-2618151458 .stroke-N6{stroke:#EEF1F8;} + .d2-2618151458 .stroke-N7{stroke:#FFFFFF;} + .d2-2618151458 .stroke-B1{stroke:#0D32B2;} + .d2-2618151458 .stroke-B2{stroke:#0D32B2;} + .d2-2618151458 .stroke-B3{stroke:#E3E9FD;} + .d2-2618151458 .stroke-B4{stroke:#E3E9FD;} + .d2-2618151458 .stroke-B5{stroke:#EDF0FD;} + .d2-2618151458 .stroke-B6{stroke:#F7F8FE;} + .d2-2618151458 .stroke-AA2{stroke:#4A6FF3;} + .d2-2618151458 .stroke-AA4{stroke:#EDF0FD;} + .d2-2618151458 .stroke-AA5{stroke:#F7F8FE;} + .d2-2618151458 .stroke-AB4{stroke:#EDF0FD;} + .d2-2618151458 .stroke-AB5{stroke:#F7F8FE;} + .d2-2618151458 .background-color-N1{background-color:#0A0F25;} + .d2-2618151458 .background-color-N2{background-color:#676C7E;} + .d2-2618151458 .background-color-N3{background-color:#9499AB;} + .d2-2618151458 .background-color-N4{background-color:#CFD2DD;} + .d2-2618151458 .background-color-N5{background-color:#DEE1EB;} + .d2-2618151458 .background-color-N6{background-color:#EEF1F8;} + .d2-2618151458 .background-color-N7{background-color:#FFFFFF;} + .d2-2618151458 .background-color-B1{background-color:#0D32B2;} + .d2-2618151458 .background-color-B2{background-color:#0D32B2;} + .d2-2618151458 .background-color-B3{background-color:#E3E9FD;} + .d2-2618151458 .background-color-B4{background-color:#E3E9FD;} + .d2-2618151458 .background-color-B5{background-color:#EDF0FD;} + .d2-2618151458 .background-color-B6{background-color:#F7F8FE;} + .d2-2618151458 .background-color-AA2{background-color:#4A6FF3;} + .d2-2618151458 .background-color-AA4{background-color:#EDF0FD;} + .d2-2618151458 .background-color-AA5{background-color:#F7F8FE;} + .d2-2618151458 .background-color-AB4{background-color:#EDF0FD;} + .d2-2618151458 .background-color-AB5{background-color:#F7F8FE;} + .d2-2618151458 .color-N1{color:#0A0F25;} + .d2-2618151458 .color-N2{color:#676C7E;} + .d2-2618151458 .color-N3{color:#9499AB;} + .d2-2618151458 .color-N4{color:#CFD2DD;} + .d2-2618151458 .color-N5{color:#DEE1EB;} + .d2-2618151458 .color-N6{color:#EEF1F8;} + .d2-2618151458 .color-N7{color:#FFFFFF;} + .d2-2618151458 .color-B1{color:#0D32B2;} + .d2-2618151458 .color-B2{color:#0D32B2;} + .d2-2618151458 .color-B3{color:#E3E9FD;} + .d2-2618151458 .color-B4{color:#E3E9FD;} + .d2-2618151458 .color-B5{color:#EDF0FD;} + .d2-2618151458 .color-B6{color:#F7F8FE;} + .d2-2618151458 .color-AA2{color:#4A6FF3;} + .d2-2618151458 .color-AA4{color:#EDF0FD;} + .d2-2618151458 .color-AA5{color:#F7F8FE;} + .d2-2618151458 .color-AB4{color:#EDF0FD;} + .d2-2618151458 .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-2618151458);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2618151458);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2618151458);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2618151458);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2618151458);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2618151458);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2618151458);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2618151458);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>a labelblabelsa class+public() boolvoid-private() intvoidcloudyyyy:= 5 := a + 7 -fmt.Printf("%d", b)a := 5 +fmt.Printf("%d", b)a := 5 b := a + 7 -fmt.Printf("%d", b)cyldiadocssix cornersa random iconoverpackdocs pagetoohard o saysinglepersona queuea squarea step at a timedatausersidintnamevarchar result := callThisFunction(obj, 5) midthis sideother side - +fmt.Printf("%d", b)cyldiadocssix cornersa random iconoverpackdocs pagetoohard o saysinglepersona queuea squarea step at a timedatausersidintnamevarchar result := callThisFunction(obj, 5) midthis sideother side + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/e2etests/testdata/stable/teleport_grid/dagre/sketch.exp.svg b/e2etests/testdata/stable/teleport_grid/dagre/sketch.exp.svg index 3fbdb79f8e..1b43689511 100644 --- a/e2etests/testdata/stable/teleport_grid/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/teleport_grid/dagre/sketch.exp.svg @@ -843,7 +843,7 @@ .d2-1817135411 .md .contains-task-list:dir(rtl) .task-list-item-checkbox { margin: 0 -1.6em 0.25em 0.2em; } -TeleportJust-in-time Access viaInfrastructureIndentity ProviderEngineersMachinesHTTPS://> kubectl> tsh> apiDB Clients

Identity Native Proxy

+TeleportJust-in-time Access viaInfrastructureIndentity ProviderEngineersMachinesHTTPS://> kubectl> tsh> apiDB Clients

Identity Native Proxy

Audit LogCert AuthoritySlackMattermostJiraPagerdutyEmailsshKubernetesMy SQLMongoDBPSQLWindows all connections audited and logged diff --git a/e2etests/testdata/stable/teleport_grid/elk/sketch.exp.svg b/e2etests/testdata/stable/teleport_grid/elk/sketch.exp.svg index f22d17c4fa..ba5ff98871 100644 --- a/e2etests/testdata/stable/teleport_grid/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/teleport_grid/elk/sketch.exp.svg @@ -843,7 +843,7 @@ .d2-3185352814 .md .contains-task-list:dir(rtl) .task-list-item-checkbox { margin: 0 -1.6em 0.25em 0.2em; } -TeleportJust-in-time Access viaInfrastructureIndentity ProviderEngineersMachinesHTTPS://> kubectl> tsh> apiDB Clients

Identity Native Proxy

+TeleportJust-in-time Access viaInfrastructureIndentity ProviderEngineersMachinesHTTPS://> kubectl> tsh> apiDB Clients

Identity Native Proxy

Audit LogCert AuthoritySlackMattermostJiraPagerdutyEmailsshKubernetesMy SQLMongoDBPSQLWindows all connections audited and logged diff --git a/e2etests/testdata/stable/text_font_sizes/dagre/sketch.exp.svg b/e2etests/testdata/stable/text_font_sizes/dagre/sketch.exp.svg index abb6d351f9..95bdcb9aa3 100644 --- a/e2etests/testdata/stable/text_font_sizes/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/text_font_sizes/dagre/sketch.exp.svg @@ -106,743 +106,7 @@ .d2-2865751059 .color-AA4{color:#EDF0FD;} .d2-2865751059 .color-AA5{color:#F7F8FE;} .d2-2865751059 .color-AB4{color:#EDF0FD;} - .d2-2865751059 .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-2865751059);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2865751059);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2865751059);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2865751059);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2865751059);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2865751059);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2865751059);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>bearmama bearpapa bear + .d2-2865751059 .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-2865751059);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2865751059);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2865751059);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2865751059);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2865751059);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2865751059);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2865751059);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2865751059);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>bearmama bearpapa bear diff --git a/e2etests/testdata/stable/text_font_sizes/elk/sketch.exp.svg b/e2etests/testdata/stable/text_font_sizes/elk/sketch.exp.svg index 565116466b..b25b42ede5 100644 --- a/e2etests/testdata/stable/text_font_sizes/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/text_font_sizes/elk/sketch.exp.svg @@ -106,743 +106,7 @@ .d2-2699761263 .color-AA4{color:#EDF0FD;} .d2-2699761263 .color-AA5{color:#F7F8FE;} .d2-2699761263 .color-AB4{color:#EDF0FD;} - .d2-2699761263 .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-2699761263);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2699761263);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2699761263);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2699761263);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2699761263);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2699761263);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2699761263);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>bearmama bearpapa bear + .d2-2699761263 .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-2699761263);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2699761263);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2699761263);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2699761263);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2699761263);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2699761263);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2699761263);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2699761263);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>bearmama bearpapa bear diff --git a/e2etests/testdata/todo/dagre_container_md_label_panic/dagre/sketch.exp.svg b/e2etests/testdata/todo/dagre_container_md_label_panic/dagre/sketch.exp.svg index 028d6f6a5a..b2bd5712a5 100644 --- a/e2etests/testdata/todo/dagre_container_md_label_panic/dagre/sketch.exp.svg +++ b/e2etests/testdata/todo/dagre_container_md_label_panic/dagre/sketch.exp.svg @@ -836,7 +836,7 @@ .d2-3098341505 .md .contains-task-list:dir(rtl) .task-list-item-checkbox { margin: 0 -1.6em 0.25em 0.2em; } -OEM Factory

company Warehouse

+OEM Factory

company Warehouse

  • Asset Tagging
  • Inventory
  • diff --git a/e2etests/testdata/todo/dagre_container_md_label_panic/elk/sketch.exp.svg b/e2etests/testdata/todo/dagre_container_md_label_panic/elk/sketch.exp.svg index 5d0db61e41..0e139819f8 100644 --- a/e2etests/testdata/todo/dagre_container_md_label_panic/elk/sketch.exp.svg +++ b/e2etests/testdata/todo/dagre_container_md_label_panic/elk/sketch.exp.svg @@ -836,7 +836,7 @@ .d2-1471202586 .md .contains-task-list:dir(rtl) .task-list-item-checkbox { margin: 0 -1.6em 0.25em 0.2em; } -OEM Factory

    company Warehouse

    +OEM Factory

    company Warehouse

    • Asset Tagging
    • Inventory
    • diff --git a/e2etests/testdata/todo/shape_set_width_height/dagre/sketch.exp.svg b/e2etests/testdata/todo/shape_set_width_height/dagre/sketch.exp.svg index 74bc23cfc0..03b520f464 100644 --- a/e2etests/testdata/todo/shape_set_width_height/dagre/sketch.exp.svg +++ b/e2etests/testdata/todo/shape_set_width_height/dagre/sketch.exp.svg @@ -850,7 +850,7 @@ .d2-3326126261 .md .contains-task-list:dir(rtl) .task-list-item-checkbox { margin: 0 -1.6em 0.25em 0.2em; } -containerscloudtall cylinderclass2-numint-timeoutint-pid+getStatus()Enum+getJobs()Job[]+setTimeout(seconds int)voidusersidintnamestringemailstringpasswordstringlast_logindatetimecontainer

      markdown text expanded to 800x400

      +containerscloudtall cylinderclass2-numint-timeoutint-pid+getStatus()Enum+getJobs()Job[]+setTimeout(seconds int)voidusersidintnamestringemailstringpasswordstringlast_logindatetimecontainer

      markdown text expanded to 800x400

      := 5 := a + 7 fmt.Printf("%d", b)a := 5 diff --git a/e2etests/testdata/todo/shape_set_width_height/elk/sketch.exp.svg b/e2etests/testdata/todo/shape_set_width_height/elk/sketch.exp.svg index aa5addc189..9404b73ca6 100644 --- a/e2etests/testdata/todo/shape_set_width_height/elk/sketch.exp.svg +++ b/e2etests/testdata/todo/shape_set_width_height/elk/sketch.exp.svg @@ -850,7 +850,7 @@ .d2-71187753 .md .contains-task-list:dir(rtl) .task-list-item-checkbox { margin: 0 -1.6em 0.25em 0.2em; } -containerscloudtall cylinderclass2-numint-timeoutint-pid+getStatus()Enum+getJobs()Job[]+setTimeout(seconds int)voidusersidintnamestringemailstringpasswordstringlast_logindatetimecontainer

      markdown text expanded to 800x400

      +containerscloudtall cylinderclass2-numint-timeoutint-pid+getStatus()Enum+getJobs()Job[]+setTimeout(seconds int)voidusersidintnamestringemailstringpasswordstringlast_logindatetimecontainer

      markdown text expanded to 800x400

      := 5 := a + 7 fmt.Printf("%d", b)a := 5 diff --git a/e2etests/testdata/txtar/md-label/dagre/board.exp.json b/e2etests/testdata/txtar/md-label/dagre/board.exp.json new file mode 100644 index 0000000000..424408a9df --- /dev/null +++ b/e2etests/testdata/txtar/md-label/dagre/board.exp.json @@ -0,0 +1,772 @@ +{ + "name": "", + "config": { + "sketch": false, + "themeID": 0, + "darkThemeID": null, + "pad": null, + "center": null, + "layoutEngine": null + }, + "isFolderOnly": false, + "fontFamily": "SourceSansPro", + "shapes": [ + { + "id": "rectangle", + "type": "rectangle", + "pos": { + "x": 0, + "y": 68 + }, + "width": 116, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "square", + "type": "rectangle", + "pos": { + "x": 176, + "y": 68 + }, + "width": 176, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "page", + "type": "page", + "pos": { + "x": 412, + "y": 58 + }, + "width": 116, + "height": 197, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AB4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "parallelogram", + "type": "parallelogram", + "pos": { + "x": 588, + "y": 68 + }, + "width": 168, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N5", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "document", + "type": "document", + "pos": { + "x": 816, + "y": 44 + }, + "width": 116, + "height": 224, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AB4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "cylinder", + "type": "cylinder", + "pos": { + "x": 992, + "y": 42 + }, + "width": 116, + "height": 228, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AA4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "queue", + "type": "queue", + "pos": { + "x": 1168, + "y": 68 + }, + "width": 168, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N5", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "package", + "type": "package", + "pos": { + "x": 1396, + "y": 51 + }, + "width": 116, + "height": 210, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AA4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "step", + "type": "step", + "pos": { + "x": 1572, + "y": 51 + }, + "width": 156, + "height": 211, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AB4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "callout", + "type": "callout", + "pos": { + "x": 1788, + "y": 56 + }, + "width": 116, + "height": 201, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "stored_data", + "type": "stored_data", + "pos": { + "x": 1964, + "y": 68 + }, + "width": 136, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AA4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "person", + "type": "person", + "pos": { + "x": 2160, + "y": 68 + }, + "width": 117, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B3", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "OUTSIDE_BOTTOM_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "diamond", + "type": "diamond", + "pos": { + "x": 2337, + "y": 0 + }, + "width": 172, + "height": 312, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "oval", + "type": "oval", + "pos": { + "x": 2569, + "y": 35 + }, + "width": 136, + "height": 242, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "circle", + "type": "oval", + "pos": { + "x": 2765, + "y": 40 + }, + "width": 233, + "height": 233, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "hexagon", + "type": "hexagon", + "pos": { + "x": 3058, + "y": 39 + }, + "width": 144, + "height": 234, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N5", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "cloud", + "type": "cloud", + "pos": { + "x": 3262, + "y": 61 + }, + "width": 212, + "height": 191, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "animated": false, + "shadow": false, + "3d": false, + "multiple": false, + "double-border": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "blend": false, + "fields": null, + "methods": null, + "columns": null, + "contentAspectRatio": 0.3741391678622669, + "label": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + } + ], + "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 + } +} diff --git a/e2etests/testdata/txtar/md-label/dagre/sketch.exp.svg b/e2etests/testdata/txtar/md-label/dagre/sketch.exp.svg new file mode 100644 index 0000000000..66822ca584 --- /dev/null +++ b/e2etests/testdata/txtar/md-label/dagre/sketch.exp.svg @@ -0,0 +1,936 @@ +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +
      + + + + + + + + + + + + + + + + + + +
      \ No newline at end of file diff --git a/e2etests/testdata/txtar/md-label/elk/board.exp.json b/e2etests/testdata/txtar/md-label/elk/board.exp.json new file mode 100644 index 0000000000..221922f892 --- /dev/null +++ b/e2etests/testdata/txtar/md-label/elk/board.exp.json @@ -0,0 +1,772 @@ +{ + "name": "", + "config": { + "sketch": false, + "themeID": 0, + "darkThemeID": null, + "pad": null, + "center": null, + "layoutEngine": null + }, + "isFolderOnly": false, + "fontFamily": "SourceSansPro", + "shapes": [ + { + "id": "rectangle", + "type": "rectangle", + "pos": { + "x": 12, + "y": 80 + }, + "width": 116, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "square", + "type": "rectangle", + "pos": { + "x": 148, + "y": 80 + }, + "width": 176, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "page", + "type": "page", + "pos": { + "x": 344, + "y": 69 + }, + "width": 116, + "height": 197, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AB4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "parallelogram", + "type": "parallelogram", + "pos": { + "x": 480, + "y": 80 + }, + "width": 168, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N5", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "document", + "type": "document", + "pos": { + "x": 668, + "y": 56 + }, + "width": 116, + "height": 224, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AB4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "cylinder", + "type": "cylinder", + "pos": { + "x": 804, + "y": 54 + }, + "width": 116, + "height": 228, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AA4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "queue", + "type": "queue", + "pos": { + "x": 940, + "y": 80 + }, + "width": 168, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N5", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "package", + "type": "package", + "pos": { + "x": 1128, + "y": 63 + }, + "width": 116, + "height": 210, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AA4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "step", + "type": "step", + "pos": { + "x": 1264, + "y": 62 + }, + "width": 156, + "height": 211, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AB4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "callout", + "type": "callout", + "pos": { + "x": 1440, + "y": 67 + }, + "width": 116, + "height": 201, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "stored_data", + "type": "stored_data", + "pos": { + "x": 1576, + "y": 80 + }, + "width": 136, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "AA4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "person", + "type": "person", + "pos": { + "x": 1732, + "y": 12 + }, + "width": 117, + "height": 176, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B3", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "OUTSIDE_BOTTOM_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "diamond", + "type": "diamond", + "pos": { + "x": 1869, + "y": 12 + }, + "width": 172, + "height": 312, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N4", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "oval", + "type": "oval", + "pos": { + "x": 2061, + "y": 47 + }, + "width": 136, + "height": 242, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "circle", + "type": "oval", + "pos": { + "x": 2217, + "y": 51 + }, + "width": 233, + "height": 233, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B6", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "hexagon", + "type": "hexagon", + "pos": { + "x": 2470, + "y": 51 + }, + "width": 144, + "height": 234, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N5", + "stroke": "B1", + "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": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "cloud", + "type": "cloud", + "pos": { + "x": 2634, + "y": 72 + }, + "width": 212, + "height": 191, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "animated": false, + "shadow": false, + "3d": false, + "multiple": false, + "double-border": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "blend": false, + "fields": null, + "methods": null, + "columns": null, + "contentAspectRatio": 0.3741391678622669, + "label": "# hello\n\n- world\n\nblah blah", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 71, + "labelHeight": 131, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + } + ], + "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 + } +} diff --git a/e2etests/testdata/txtar/md-label/elk/sketch.exp.svg b/e2etests/testdata/txtar/md-label/elk/sketch.exp.svg new file mode 100644 index 0000000000..14c2e2e9ce --- /dev/null +++ b/e2etests/testdata/txtar/md-label/elk/sketch.exp.svg @@ -0,0 +1,936 @@ +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +

      hello

      +
        +
      • world
      • +
      +

      blah blah

      +
      + + + + + + + + + + + + + + + + + + +
      \ No newline at end of file diff --git a/e2etests/testdata/txtar/sequence-diagram-note-md/dagre/board.exp.json b/e2etests/testdata/txtar/sequence-diagram-note-md/dagre/board.exp.json new file mode 100644 index 0000000000..d067a7fab3 --- /dev/null +++ b/e2etests/testdata/txtar/sequence-diagram-note-md/dagre/board.exp.json @@ -0,0 +1,385 @@ +{ + "name": "", + "config": { + "sketch": false, + "themeID": 0, + "darkThemeID": null, + "pad": null, + "center": null, + "layoutEngine": null + }, + "isFolderOnly": false, + "fontFamily": "SourceSansPro", + "shapes": [ + { + "id": "x", + "type": "rectangle", + "pos": { + "x": 12, + "y": 52 + }, + "width": 100, + "height": 66, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B5", + "stroke": "B1", + "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": "x", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 7, + "labelHeight": 21, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "y", + "type": "rectangle", + "pos": { + "x": 265, + "y": 52 + }, + "width": 100, + "height": 66, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B5", + "stroke": "B1", + "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": "y", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 8, + "labelHeight": 21, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "x.x", + "type": "page", + "pos": { + "x": -150, + "y": 279 + }, + "width": 425, + "height": 164, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "## A man who fishes for marlin in ponds\n\n- ...dramatic pause\n\nwill put his money in Etruscan bonds.", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 380, + "labelHeight": 119, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 5, + "level": 2 + }, + { + "id": "y.z", + "type": "page", + "pos": { + "x": 155, + "y": 513 + }, + "width": 320, + "height": 64, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "\\\\lim_{h \\\\rightarrow 0 } \\\\frac{f(x+h)-f(x)}{h}", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "latex", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 275, + "labelHeight": 19, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 5, + "level": 2 + }, + { + "id": "x.z", + "type": "page", + "pos": { + "x": 13, + "y": 647 + }, + "width": 98, + "height": 69, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "1 + 1 = 2", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "python", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 53, + "labelHeight": 24, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 5, + "level": 2 + } + ], + "connections": [ + { + "id": "(x -> y)[0]", + "src": "x", + "srcArrow": "none", + "dst": "y", + "dstArrow": "triangle", + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "stroke": "B1", + "borderRadius": 10, + "label": "hello", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N2", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 33, + "labelHeight": 21, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "labelPercentage": 0, + "link": "", + "route": [ + { + "x": 62, + "y": 198 + }, + { + "x": 315, + "y": 198 + } + ], + "animated": false, + "tooltip": "", + "icon": null, + "zIndex": 4 + }, + { + "id": "(x -- )[0]", + "src": "x", + "srcArrow": "none", + "dst": "x-lifeline-end-1678191278", + "dstArrow": "none", + "opacity": 1, + "strokeDash": 6, + "strokeWidth": 2, + "stroke": "B2", + "borderRadius": 10, + "label": "", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N2", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0, + "labelPosition": "", + "labelPercentage": 0, + "link": "", + "route": [ + { + "x": 62, + "y": 118 + }, + { + "x": 62, + "y": 786 + } + ], + "animated": false, + "tooltip": "", + "icon": null, + "zIndex": 1 + }, + { + "id": "(y -- )[0]", + "src": "y", + "srcArrow": "none", + "dst": "y-lifeline-end-35261543", + "dstArrow": "none", + "opacity": 1, + "strokeDash": 6, + "strokeWidth": 2, + "stroke": "B2", + "borderRadius": 10, + "label": "", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N2", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0, + "labelPosition": "", + "labelPercentage": 0, + "link": "", + "route": [ + { + "x": 315, + "y": 118 + }, + { + "x": 315, + "y": 786 + } + ], + "animated": false, + "tooltip": "", + "icon": null, + "zIndex": 1 + } + ], + "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 + } +} diff --git a/e2etests/testdata/txtar/sequence-diagram-note-md/dagre/sketch.exp.svg b/e2etests/testdata/txtar/sequence-diagram-note-md/dagre/sketch.exp.svg new file mode 100644 index 0000000000..d8d19fe2ea --- /dev/null +++ b/e2etests/testdata/txtar/sequence-diagram-note-md/dagre/sketch.exp.svg @@ -0,0 +1,866 @@ +xy hello

      A man who fishes for marlin in ponds

      +
        +
      • ...dramatic pause
      • +
      +

      will put his money in Etruscan bonds.

      +
      1 + 1 = 21 + 1 = 2 + + + + + + + +
      \ No newline at end of file diff --git a/e2etests/testdata/txtar/sequence-diagram-note-md/elk/board.exp.json b/e2etests/testdata/txtar/sequence-diagram-note-md/elk/board.exp.json new file mode 100644 index 0000000000..d067a7fab3 --- /dev/null +++ b/e2etests/testdata/txtar/sequence-diagram-note-md/elk/board.exp.json @@ -0,0 +1,385 @@ +{ + "name": "", + "config": { + "sketch": false, + "themeID": 0, + "darkThemeID": null, + "pad": null, + "center": null, + "layoutEngine": null + }, + "isFolderOnly": false, + "fontFamily": "SourceSansPro", + "shapes": [ + { + "id": "x", + "type": "rectangle", + "pos": { + "x": 12, + "y": 52 + }, + "width": 100, + "height": 66, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B5", + "stroke": "B1", + "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": "x", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 7, + "labelHeight": 21, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "y", + "type": "rectangle", + "pos": { + "x": 265, + "y": 52 + }, + "width": 100, + "height": 66, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "B5", + "stroke": "B1", + "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": "y", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 8, + "labelHeight": 21, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "x.x", + "type": "page", + "pos": { + "x": -150, + "y": 279 + }, + "width": 425, + "height": 164, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "## A man who fishes for marlin in ponds\n\n- ...dramatic pause\n\nwill put his money in Etruscan bonds.", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 380, + "labelHeight": 119, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 5, + "level": 2 + }, + { + "id": "y.z", + "type": "page", + "pos": { + "x": 155, + "y": 513 + }, + "width": 320, + "height": 64, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "\\\\lim_{h \\\\rightarrow 0 } \\\\frac{f(x+h)-f(x)}{h}", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "latex", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 275, + "labelHeight": 19, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 5, + "level": 2 + }, + { + "id": "x.z", + "type": "page", + "pos": { + "x": 13, + "y": 647 + }, + "width": 98, + "height": 69, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "N7", + "stroke": "B1", + "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": "1 + 1 = 2", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "python", + "color": "N1", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 53, + "labelHeight": 24, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 5, + "level": 2 + } + ], + "connections": [ + { + "id": "(x -> y)[0]", + "src": "x", + "srcArrow": "none", + "dst": "y", + "dstArrow": "triangle", + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "stroke": "B1", + "borderRadius": 10, + "label": "hello", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N2", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 33, + "labelHeight": 21, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "labelPercentage": 0, + "link": "", + "route": [ + { + "x": 62, + "y": 198 + }, + { + "x": 315, + "y": 198 + } + ], + "animated": false, + "tooltip": "", + "icon": null, + "zIndex": 4 + }, + { + "id": "(x -- )[0]", + "src": "x", + "srcArrow": "none", + "dst": "x-lifeline-end-1678191278", + "dstArrow": "none", + "opacity": 1, + "strokeDash": 6, + "strokeWidth": 2, + "stroke": "B2", + "borderRadius": 10, + "label": "", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N2", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0, + "labelPosition": "", + "labelPercentage": 0, + "link": "", + "route": [ + { + "x": 62, + "y": 118 + }, + { + "x": 62, + "y": 786 + } + ], + "animated": false, + "tooltip": "", + "icon": null, + "zIndex": 1 + }, + { + "id": "(y -- )[0]", + "src": "y", + "srcArrow": "none", + "dst": "y-lifeline-end-35261543", + "dstArrow": "none", + "opacity": 1, + "strokeDash": 6, + "strokeWidth": 2, + "stroke": "B2", + "borderRadius": 10, + "label": "", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "N2", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0, + "labelPosition": "", + "labelPercentage": 0, + "link": "", + "route": [ + { + "x": 315, + "y": 118 + }, + { + "x": 315, + "y": 786 + } + ], + "animated": false, + "tooltip": "", + "icon": null, + "zIndex": 1 + } + ], + "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 + } +} diff --git a/e2etests/testdata/txtar/sequence-diagram-note-md/elk/sketch.exp.svg b/e2etests/testdata/txtar/sequence-diagram-note-md/elk/sketch.exp.svg new file mode 100644 index 0000000000..d8d19fe2ea --- /dev/null +++ b/e2etests/testdata/txtar/sequence-diagram-note-md/elk/sketch.exp.svg @@ -0,0 +1,866 @@ +xy hello

      A man who fishes for marlin in ponds

      +
        +
      • ...dramatic pause
      • +
      +

      will put his money in Etruscan bonds.

      +
      1 + 1 = 21 + 1 = 2 + + + + + + + +
      \ No newline at end of file diff --git a/e2etests/testdata/txtar/single-backslash-latex/dagre/sketch.exp.svg b/e2etests/testdata/txtar/single-backslash-latex/dagre/sketch.exp.svg index 8f7dea4494..55048d340e 100644 --- a/e2etests/testdata/txtar/single-backslash-latex/dagre/sketch.exp.svg +++ b/e2etests/testdata/txtar/single-backslash-latex/dagre/sketch.exp.svg @@ -89,743 +89,7 @@ .d2-868783925 .color-AA4{color:#EDF0FD;} .d2-868783925 .color-AA5{color:#F7F8FE;} .d2-868783925 .color-AB4{color:#EDF0FD;} - .d2-868783925 .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-868783925);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-868783925);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-868783925);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-868783925);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-868783925);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-868783925);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-868783925);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>formula + .d2-868783925 .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-868783925);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-868783925);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-868783925);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-868783925);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-868783925);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-868783925);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-868783925);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-868783925);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>formula diff --git a/e2etests/testdata/txtar/single-backslash-latex/elk/sketch.exp.svg b/e2etests/testdata/txtar/single-backslash-latex/elk/sketch.exp.svg index e9333259a6..9a5342ff66 100644 --- a/e2etests/testdata/txtar/single-backslash-latex/elk/sketch.exp.svg +++ b/e2etests/testdata/txtar/single-backslash-latex/elk/sketch.exp.svg @@ -89,743 +89,7 @@ .d2-4008539312 .color-AA4{color:#EDF0FD;} .d2-4008539312 .color-AA5{color:#F7F8FE;} .d2-4008539312 .color-AB4{color:#EDF0FD;} - .d2-4008539312 .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-4008539312);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-4008539312);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-4008539312);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-4008539312);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-4008539312);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-4008539312);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-4008539312);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>formula + .d2-4008539312 .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-4008539312);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-4008539312);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-4008539312);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-4008539312);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-4008539312);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-4008539312);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-4008539312);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-4008539312);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>formula diff --git a/e2etests/txtar.txt b/e2etests/txtar.txt index c4be328761..92fe71d6c8 100644 --- a/e2etests/txtar.txt +++ b/e2etests/txtar.txt @@ -805,3 +805,176 @@ softwareSystem -> externalSystem } # Include all connections/objects connected to an object (** -> externalSystem)[*]: unsuspend + +-- sequence-diagram-note-md -- +shape: sequence_diagram +x -> y: hello +x.x: |md + ## A man who fishes for marlin in ponds + + - ...dramatic pause + + will put his money in Etruscan bonds. +| + +y.z: |latex + \\lim_{h \\rightarrow 0 } \\frac{f(x+h)-f(x)}{h} +| + +x.z: |python + 1 + 1 = 2 +| + +-- md-label -- +rectangle.shape: rectangle +rectangle: |md + # hello + + - world + + blah blah +| + +square.shape: square +square: |md + # hello + + - world + + blah blah +| + +page.shape: page +page: |md + # hello + + - world + + blah blah +| + +parallelogram.shape: parallelogram +parallelogram: |md + # hello + + - world + + blah blah +| + +document.shape: document +document: |md + # hello + + - world + + blah blah +| + +cylinder.shape: cylinder +cylinder: |md + # hello + + - world + + blah blah +| + +queue.shape: queue +queue: |md + # hello + + - world + + blah blah +| + +package.shape: package +package: |md + # hello + + - world + + blah blah +| + +step.shape: step +step: |md + # hello + + - world + + blah blah +| + +callout.shape: callout +callout: |md + # hello + + - world + + blah blah +| + +stored_data.shape: stored_data +stored_data: |md + # hello + + - world + + blah blah +| + +person.shape: person +person: |md + # hello + + - world + + blah blah +| + +diamond.shape: diamond +diamond: |md + # hello + + - world + + blah blah +| + +oval.shape: oval +oval: |md + # hello + + - world + + blah blah +| + +circle.shape: circle +circle: |md + # hello + + - world + + blah blah +| + +hexagon.shape: hexagon +hexagon: |md + # hello + + - world + + blah blah +| + +cloud.shape: cloud +cloud: |md + # hello + + - world + + blah blah +|