Merge pull request #2394 from alixander/suspension
implement suspension
This commit is contained in:
commit
e111c22549
14 changed files with 2038 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#### Features 🚀
|
#### Features 🚀
|
||||||
|
|
||||||
- Icons: connections can include icons [#12](https://github.com/terrastruct/d2/issues/12)
|
- 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)
|
||||||
|
|
||||||
#### Improvements 🧹
|
#### Improvements 🧹
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ var _ Node = &Comment{}
|
||||||
var _ Node = &BlockComment{}
|
var _ Node = &BlockComment{}
|
||||||
|
|
||||||
var _ Node = &Null{}
|
var _ Node = &Null{}
|
||||||
|
var _ Node = &Suspension{}
|
||||||
var _ Node = &Boolean{}
|
var _ Node = &Boolean{}
|
||||||
var _ Node = &Number{}
|
var _ Node = &Number{}
|
||||||
var _ Node = &UnquotedString{}
|
var _ Node = &UnquotedString{}
|
||||||
|
|
@ -329,6 +330,7 @@ type Scalar interface {
|
||||||
|
|
||||||
// See String for rest.
|
// See String for rest.
|
||||||
var _ Scalar = &Null{}
|
var _ Scalar = &Null{}
|
||||||
|
var _ Scalar = &Suspension{}
|
||||||
var _ Scalar = &Boolean{}
|
var _ Scalar = &Boolean{}
|
||||||
var _ Scalar = &Number{}
|
var _ Scalar = &Number{}
|
||||||
|
|
||||||
|
|
@ -349,6 +351,7 @@ var _ String = &BlockString{}
|
||||||
func (c *Comment) node() {}
|
func (c *Comment) node() {}
|
||||||
func (c *BlockComment) node() {}
|
func (c *BlockComment) node() {}
|
||||||
func (n *Null) node() {}
|
func (n *Null) node() {}
|
||||||
|
func (n *Suspension) node() {}
|
||||||
func (b *Boolean) node() {}
|
func (b *Boolean) node() {}
|
||||||
func (n *Number) node() {}
|
func (n *Number) node() {}
|
||||||
func (s *UnquotedString) node() {}
|
func (s *UnquotedString) node() {}
|
||||||
|
|
@ -367,6 +370,7 @@ func (i *EdgeIndex) node() {}
|
||||||
func (c *Comment) Type() string { return "comment" }
|
func (c *Comment) Type() string { return "comment" }
|
||||||
func (c *BlockComment) Type() string { return "block comment" }
|
func (c *BlockComment) Type() string { return "block comment" }
|
||||||
func (n *Null) Type() string { return "null" }
|
func (n *Null) Type() string { return "null" }
|
||||||
|
func (n *Suspension) Type() string { return "suspension" }
|
||||||
func (b *Boolean) Type() string { return "boolean" }
|
func (b *Boolean) Type() string { return "boolean" }
|
||||||
func (n *Number) Type() string { return "number" }
|
func (n *Number) Type() string { return "number" }
|
||||||
func (s *UnquotedString) Type() string { return "unquoted string" }
|
func (s *UnquotedString) Type() string { return "unquoted string" }
|
||||||
|
|
@ -385,6 +389,7 @@ func (i *EdgeIndex) Type() string { return "edge index" }
|
||||||
func (c *Comment) GetRange() Range { return c.Range }
|
func (c *Comment) GetRange() Range { return c.Range }
|
||||||
func (c *BlockComment) GetRange() Range { return c.Range }
|
func (c *BlockComment) GetRange() Range { return c.Range }
|
||||||
func (n *Null) GetRange() Range { return n.Range }
|
func (n *Null) GetRange() Range { return n.Range }
|
||||||
|
func (n *Suspension) GetRange() Range { return n.Range }
|
||||||
func (b *Boolean) GetRange() Range { return b.Range }
|
func (b *Boolean) GetRange() Range { return b.Range }
|
||||||
func (n *Number) GetRange() Range { return n.Range }
|
func (n *Number) GetRange() Range { return n.Range }
|
||||||
func (s *UnquotedString) GetRange() Range { return s.Range }
|
func (s *UnquotedString) GetRange() Range { return s.Range }
|
||||||
|
|
@ -409,6 +414,7 @@ func (i *Import) mapNode() {}
|
||||||
func (c *Comment) arrayNode() {}
|
func (c *Comment) arrayNode() {}
|
||||||
func (c *BlockComment) arrayNode() {}
|
func (c *BlockComment) arrayNode() {}
|
||||||
func (n *Null) arrayNode() {}
|
func (n *Null) arrayNode() {}
|
||||||
|
func (n *Suspension) arrayNode() {}
|
||||||
func (b *Boolean) arrayNode() {}
|
func (b *Boolean) arrayNode() {}
|
||||||
func (n *Number) arrayNode() {}
|
func (n *Number) arrayNode() {}
|
||||||
func (s *UnquotedString) arrayNode() {}
|
func (s *UnquotedString) arrayNode() {}
|
||||||
|
|
@ -421,6 +427,7 @@ func (a *Array) arrayNode() {}
|
||||||
func (m *Map) arrayNode() {}
|
func (m *Map) arrayNode() {}
|
||||||
|
|
||||||
func (n *Null) value() {}
|
func (n *Null) value() {}
|
||||||
|
func (n *Suspension) value() {}
|
||||||
func (b *Boolean) value() {}
|
func (b *Boolean) value() {}
|
||||||
func (n *Number) value() {}
|
func (n *Number) value() {}
|
||||||
func (s *UnquotedString) value() {}
|
func (s *UnquotedString) value() {}
|
||||||
|
|
@ -432,6 +439,7 @@ func (m *Map) value() {}
|
||||||
func (i *Import) value() {}
|
func (i *Import) value() {}
|
||||||
|
|
||||||
func (n *Null) scalar() {}
|
func (n *Null) scalar() {}
|
||||||
|
func (n *Suspension) scalar() {}
|
||||||
func (b *Boolean) scalar() {}
|
func (b *Boolean) scalar() {}
|
||||||
func (n *Number) scalar() {}
|
func (n *Number) scalar() {}
|
||||||
func (s *UnquotedString) scalar() {}
|
func (s *UnquotedString) scalar() {}
|
||||||
|
|
@ -442,6 +450,7 @@ func (s *BlockString) scalar() {}
|
||||||
func (c *Comment) Children() []Node { return nil }
|
func (c *Comment) Children() []Node { return nil }
|
||||||
func (c *BlockComment) Children() []Node { return nil }
|
func (c *BlockComment) Children() []Node { return nil }
|
||||||
func (n *Null) Children() []Node { return nil }
|
func (n *Null) Children() []Node { return nil }
|
||||||
|
func (n *Suspension) Children() []Node { return nil }
|
||||||
func (b *Boolean) Children() []Node { return nil }
|
func (b *Boolean) Children() []Node { return nil }
|
||||||
func (n *Number) Children() []Node { return nil }
|
func (n *Number) Children() []Node { return nil }
|
||||||
func (s *SingleQuotedString) Children() []Node { return nil }
|
func (s *SingleQuotedString) Children() []Node { return nil }
|
||||||
|
|
@ -574,6 +583,7 @@ func Walk(node Node, fn func(Node) bool) {
|
||||||
|
|
||||||
// TODO: mistake, move into parse.go
|
// TODO: mistake, move into parse.go
|
||||||
func (n *Null) ScalarString() string { return "" }
|
func (n *Null) ScalarString() string { return "" }
|
||||||
|
func (n *Suspension) ScalarString() string { return "" }
|
||||||
func (b *Boolean) ScalarString() string { return strconv.FormatBool(b.Value) }
|
func (b *Boolean) ScalarString() string { return strconv.FormatBool(b.Value) }
|
||||||
func (n *Number) ScalarString() string { return n.Raw }
|
func (n *Number) ScalarString() string { return n.Raw }
|
||||||
func (s *UnquotedString) ScalarString() string {
|
func (s *UnquotedString) ScalarString() string {
|
||||||
|
|
@ -631,6 +641,11 @@ type Null struct {
|
||||||
Range Range `json:"range"`
|
Range Range `json:"range"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Suspension struct {
|
||||||
|
Range Range `json:"range"`
|
||||||
|
Value bool `json:"value"`
|
||||||
|
}
|
||||||
|
|
||||||
type Boolean struct {
|
type Boolean struct {
|
||||||
Range Range `json:"range"`
|
Range Range `json:"range"`
|
||||||
Value bool `json:"value"`
|
Value bool `json:"value"`
|
||||||
|
|
@ -1369,6 +1384,7 @@ func (ab ArrayNodeBox) Unbox() ArrayNode {
|
||||||
// ValueBox is used to box Value for JSON persistence.
|
// ValueBox is used to box Value for JSON persistence.
|
||||||
type ValueBox struct {
|
type ValueBox struct {
|
||||||
Null *Null `json:"null,omitempty"`
|
Null *Null `json:"null,omitempty"`
|
||||||
|
Suspension *Suspension `json:"suspension,omitempty"`
|
||||||
Boolean *Boolean `json:"boolean,omitempty"`
|
Boolean *Boolean `json:"boolean,omitempty"`
|
||||||
Number *Number `json:"number,omitempty"`
|
Number *Number `json:"number,omitempty"`
|
||||||
UnquotedString *UnquotedString `json:"unquoted_string,omitempty"`
|
UnquotedString *UnquotedString `json:"unquoted_string,omitempty"`
|
||||||
|
|
@ -1384,6 +1400,8 @@ func (vb ValueBox) Unbox() Value {
|
||||||
switch {
|
switch {
|
||||||
case vb.Null != nil:
|
case vb.Null != nil:
|
||||||
return vb.Null
|
return vb.Null
|
||||||
|
case vb.Suspension != nil:
|
||||||
|
return vb.Suspension
|
||||||
case vb.Boolean != nil:
|
case vb.Boolean != nil:
|
||||||
return vb.Boolean
|
return vb.Boolean
|
||||||
case vb.Number != nil:
|
case vb.Number != nil:
|
||||||
|
|
@ -1412,6 +1430,8 @@ func MakeValueBox(v Value) ValueBox {
|
||||||
switch v := v.(type) {
|
switch v := v.(type) {
|
||||||
case *Null:
|
case *Null:
|
||||||
vb.Null = v
|
vb.Null = v
|
||||||
|
case *Suspension:
|
||||||
|
vb.Suspension = v
|
||||||
case *Boolean:
|
case *Boolean:
|
||||||
vb.Boolean = v
|
vb.Boolean = v
|
||||||
case *Number:
|
case *Number:
|
||||||
|
|
@ -1437,6 +1457,7 @@ func MakeValueBox(v Value) ValueBox {
|
||||||
func (vb ValueBox) ScalarBox() ScalarBox {
|
func (vb ValueBox) ScalarBox() ScalarBox {
|
||||||
var sb ScalarBox
|
var sb ScalarBox
|
||||||
sb.Null = vb.Null
|
sb.Null = vb.Null
|
||||||
|
sb.Suspension = vb.Suspension
|
||||||
sb.Boolean = vb.Boolean
|
sb.Boolean = vb.Boolean
|
||||||
sb.Number = vb.Number
|
sb.Number = vb.Number
|
||||||
sb.UnquotedString = vb.UnquotedString
|
sb.UnquotedString = vb.UnquotedString
|
||||||
|
|
@ -1459,6 +1480,7 @@ func (vb ValueBox) StringBox() *StringBox {
|
||||||
// TODO: implement ScalarString()
|
// TODO: implement ScalarString()
|
||||||
type ScalarBox struct {
|
type ScalarBox struct {
|
||||||
Null *Null `json:"null,omitempty"`
|
Null *Null `json:"null,omitempty"`
|
||||||
|
Suspension *Suspension `json:"suspension,omitempty"`
|
||||||
Boolean *Boolean `json:"boolean,omitempty"`
|
Boolean *Boolean `json:"boolean,omitempty"`
|
||||||
Number *Number `json:"number,omitempty"`
|
Number *Number `json:"number,omitempty"`
|
||||||
UnquotedString *UnquotedString `json:"unquoted_string,omitempty"`
|
UnquotedString *UnquotedString `json:"unquoted_string,omitempty"`
|
||||||
|
|
@ -1471,6 +1493,8 @@ func (sb ScalarBox) Unbox() Scalar {
|
||||||
switch {
|
switch {
|
||||||
case sb.Null != nil:
|
case sb.Null != nil:
|
||||||
return sb.Null
|
return sb.Null
|
||||||
|
case sb.Suspension != nil:
|
||||||
|
return sb.Suspension
|
||||||
case sb.Boolean != nil:
|
case sb.Boolean != nil:
|
||||||
return sb.Boolean
|
return sb.Boolean
|
||||||
case sb.Number != nil:
|
case sb.Number != nil:
|
||||||
|
|
@ -1559,7 +1583,7 @@ func RawString(s string, inKey bool) String {
|
||||||
return &SingleQuotedString{Value: s}
|
return &SingleQuotedString{Value: s}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if s == "null" || strings.ContainsAny(s, UnquotedValueSpecials) {
|
} else if s == "null" || s == "suspend" || s == "unsuspend" || strings.ContainsAny(s, UnquotedValueSpecials) {
|
||||||
if !strings.ContainsRune(s, '"') && !strings.ContainsRune(s, '$') {
|
if !strings.ContainsRune(s, '"') && !strings.ContainsRune(s, '$') {
|
||||||
return FlatDoubleQuotedString(s)
|
return FlatDoubleQuotedString(s)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5471,6 +5471,34 @@ a.width: 339
|
||||||
assert.Equal(t, 5, len(g.Objects))
|
assert.Equal(t, 5, len(g.Objects))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "suspension-lazy",
|
||||||
|
run: func(t *testing.T) {
|
||||||
|
g, _ := assertCompile(t, `
|
||||||
|
a -> b
|
||||||
|
c
|
||||||
|
**: suspend
|
||||||
|
(** -> **)[*]: suspend
|
||||||
|
d
|
||||||
|
`, ``)
|
||||||
|
assert.Equal(t, 1, len(g.Objects))
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "suspension-quotes",
|
||||||
|
run: func(t *testing.T) {
|
||||||
|
g, _ := assertCompile(t, `
|
||||||
|
a -> b
|
||||||
|
c
|
||||||
|
**: suspend
|
||||||
|
(** -> **)[*]: suspend
|
||||||
|
d: "suspend"
|
||||||
|
d -> d: "suspend"
|
||||||
|
`, ``)
|
||||||
|
assert.Equal(t, 1, len(g.Objects))
|
||||||
|
assert.Equal(t, 1, len(g.Edges))
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range tca {
|
for _, tc := range tca {
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ func Compile(ast *d2ast.Map, opts *CompileOptions) (*Map, []string, error) {
|
||||||
c.compileMap(m, ast, ast)
|
c.compileMap(m, ast, ast)
|
||||||
c.compileSubstitutions(m, nil)
|
c.compileSubstitutions(m, nil)
|
||||||
c.overlayClasses(m)
|
c.overlayClasses(m)
|
||||||
|
m.removeSuspendedFields()
|
||||||
if !c.err.Empty() {
|
if !c.err.Empty() {
|
||||||
return nil, nil, c.err
|
return nil, nil, c.err
|
||||||
}
|
}
|
||||||
|
|
@ -866,6 +867,17 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(refctx.Key.Edges) == 0 && (refctx.Key.Primary.Suspension != nil || refctx.Key.Value.Suspension != nil) {
|
||||||
|
if !c.lazyGlobBeingApplied {
|
||||||
|
if refctx.Key.Primary.Suspension != nil {
|
||||||
|
f.suspended = refctx.Key.Primary.Suspension.Value
|
||||||
|
} else {
|
||||||
|
f.suspended = refctx.Key.Value.Suspension.Value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if refctx.Key.Primary.Unbox() != nil {
|
if refctx.Key.Primary.Unbox() != nil {
|
||||||
if c.ignoreLazyGlob(f) {
|
if c.ignoreLazyGlob(f) {
|
||||||
return
|
return
|
||||||
|
|
@ -1164,6 +1176,17 @@ func (c *compiler) _compileEdges(refctx *RefContext) {
|
||||||
refctx.ScopeMap.DeleteEdge(e.ID)
|
refctx.ScopeMap.DeleteEdge(e.ID)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if refctx.Key.Primary.Suspension != nil || refctx.Key.Value.Suspension != nil {
|
||||||
|
if !c.lazyGlobBeingApplied {
|
||||||
|
if refctx.Key.Primary.Suspension != nil {
|
||||||
|
e.suspended = refctx.Key.Primary.Suspension.Value
|
||||||
|
} else {
|
||||||
|
e.suspended = refctx.Key.Value.Suspension.Value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
e.References = append(e.References, &EdgeReference{
|
e.References = append(e.References, &EdgeReference{
|
||||||
Context_: refctx,
|
Context_: refctx,
|
||||||
DueToGlob_: len(c.globRefContextStack) > 0,
|
DueToGlob_: len(c.globRefContextStack) > 0,
|
||||||
|
|
@ -1289,3 +1312,39 @@ func (c *compiler) compileArray(dst *Array, a *d2ast.Array, scopeAST *d2ast.Map)
|
||||||
dst.Values = append(dst.Values, irv)
|
dst.Values = append(dst.Values, irv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Map) removeSuspendedFields() {
|
||||||
|
if m == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, f := range m.Fields {
|
||||||
|
if f.Map() != nil {
|
||||||
|
f.Map().removeSuspendedFields()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for i := len(m.Fields) - 1; i >= 0; i-- {
|
||||||
|
if m.Fields[i].Name == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
_, isReserved := d2ast.ReservedKeywords[m.Fields[i].Name.ScalarString()]
|
||||||
|
if isReserved {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if m.Fields[i].suspended {
|
||||||
|
m.DeleteField(m.Fields[i].Name.ScalarString())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, e := range m.Edges {
|
||||||
|
if e.Map() != nil {
|
||||||
|
e.Map().removeSuspendedFields()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for i := len(m.Edges) - 1; i >= 0; i-- {
|
||||||
|
if m.Edges[i].suspended {
|
||||||
|
m.DeleteEdge(m.Edges[i].ID)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -318,6 +318,7 @@ type Field struct {
|
||||||
// *Map.
|
// *Map.
|
||||||
parent Node
|
parent Node
|
||||||
importAST d2ast.Node
|
importAST d2ast.Node
|
||||||
|
suspended bool
|
||||||
|
|
||||||
Name d2ast.String `json:"name"`
|
Name d2ast.String `json:"name"`
|
||||||
|
|
||||||
|
|
@ -488,6 +489,7 @@ type Edge struct {
|
||||||
// *Map
|
// *Map
|
||||||
parent Node
|
parent Node
|
||||||
importAST d2ast.Node
|
importAST d2ast.Node
|
||||||
|
suspended bool
|
||||||
|
|
||||||
ID *EdgeID `json:"edge_id"`
|
ID *EdgeID `json:"edge_id"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1668,6 +1668,20 @@ func (p *parser) parseValue() d2ast.ValueBox {
|
||||||
}
|
}
|
||||||
return box
|
return box
|
||||||
}
|
}
|
||||||
|
if strings.EqualFold(s.ScalarString(), "suspend") {
|
||||||
|
box.Suspension = &d2ast.Suspension{
|
||||||
|
Range: s.Range,
|
||||||
|
Value: true,
|
||||||
|
}
|
||||||
|
return box
|
||||||
|
}
|
||||||
|
if strings.EqualFold(s.ScalarString(), "unsuspend") {
|
||||||
|
box.Suspension = &d2ast.Suspension{
|
||||||
|
Range: s.Range,
|
||||||
|
Value: false,
|
||||||
|
}
|
||||||
|
return box
|
||||||
|
}
|
||||||
|
|
||||||
if strings.EqualFold(s.ScalarString(), "true") {
|
if strings.EqualFold(s.ScalarString(), "true") {
|
||||||
box.Boolean = &d2ast.Boolean{
|
box.Boolean = &d2ast.Boolean{
|
||||||
|
|
|
||||||
322
e2etests/testdata/txtar/model-view/dagre/board.exp.json
generated
vendored
Normal file
322
e2etests/testdata/txtar/model-view/dagre/board.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,322 @@
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"config": {
|
||||||
|
"sketch": false,
|
||||||
|
"themeID": 0,
|
||||||
|
"darkThemeID": null,
|
||||||
|
"pad": null,
|
||||||
|
"center": null,
|
||||||
|
"layoutEngine": null
|
||||||
|
},
|
||||||
|
"isFolderOnly": false,
|
||||||
|
"fontFamily": "SourceSansPro",
|
||||||
|
"shapes": [
|
||||||
|
{
|
||||||
|
"id": "user",
|
||||||
|
"type": "rectangle",
|
||||||
|
"pos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 50
|
||||||
|
},
|
||||||
|
"width": 77,
|
||||||
|
"height": 66,
|
||||||
|
"opacity": 1,
|
||||||
|
"strokeDash": 0,
|
||||||
|
"strokeWidth": 2,
|
||||||
|
"borderRadius": 0,
|
||||||
|
"fill": "blue",
|
||||||
|
"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": "user",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 32,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "softwareSystem",
|
||||||
|
"type": "rectangle",
|
||||||
|
"pos": {
|
||||||
|
"x": 127,
|
||||||
|
"y": 20
|
||||||
|
},
|
||||||
|
"width": 331,
|
||||||
|
"height": 126,
|
||||||
|
"opacity": 1,
|
||||||
|
"strokeDash": 0,
|
||||||
|
"strokeWidth": 2,
|
||||||
|
"borderRadius": 0,
|
||||||
|
"fill": "B4",
|
||||||
|
"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": "softwareSystem",
|
||||||
|
"fontSize": 28,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": false,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 188,
|
||||||
|
"labelHeight": 36,
|
||||||
|
"labelPosition": "OUTSIDE_TOP_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "softwareSystem.serviceA",
|
||||||
|
"type": "rectangle",
|
||||||
|
"classes": [
|
||||||
|
"ok"
|
||||||
|
],
|
||||||
|
"pos": {
|
||||||
|
"x": 157,
|
||||||
|
"y": 50
|
||||||
|
},
|
||||||
|
"width": 106,
|
||||||
|
"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": "serviceA",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 61,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "softwareSystem.serviceC",
|
||||||
|
"type": "rectangle",
|
||||||
|
"classes": [
|
||||||
|
"ok"
|
||||||
|
],
|
||||||
|
"pos": {
|
||||||
|
"x": 323,
|
||||||
|
"y": 50
|
||||||
|
},
|
||||||
|
"width": 105,
|
||||||
|
"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": "serviceC",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 60,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "externalSystem",
|
||||||
|
"type": "rectangle",
|
||||||
|
"pos": {
|
||||||
|
"x": 297,
|
||||||
|
"y": 266
|
||||||
|
},
|
||||||
|
"width": 157,
|
||||||
|
"height": 66,
|
||||||
|
"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": "externalSystem",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 112,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"connections": [
|
||||||
|
{
|
||||||
|
"id": "(softwareSystem -> externalSystem)[0]",
|
||||||
|
"src": "softwareSystem",
|
||||||
|
"srcArrow": "none",
|
||||||
|
"dst": "externalSystem",
|
||||||
|
"dstArrow": "triangle",
|
||||||
|
"opacity": 1,
|
||||||
|
"strokeDash": 0,
|
||||||
|
"strokeWidth": 2,
|
||||||
|
"stroke": "B1",
|
||||||
|
"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": 375.5,
|
||||||
|
"y": 146
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 375.5,
|
||||||
|
"y": 202
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 375.5,
|
||||||
|
"y": 226
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 375.5,
|
||||||
|
"y": 266
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"isCurve": true,
|
||||||
|
"animated": false,
|
||||||
|
"tooltip": "",
|
||||||
|
"icon": null,
|
||||||
|
"zIndex": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
106
e2etests/testdata/txtar/model-view/dagre/sketch.exp.svg
vendored
Normal file
106
e2etests/testdata/txtar/model-view/dagre/sketch.exp.svg
vendored
Normal file
|
|
@ -0,0 +1,106 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 460 354"><svg class="d2-949415426 d2-svg" width="460" height="354" viewBox="-1 -21 460 354"><rect x="-1.000000" y="-21.000000" width="460.000000" height="354.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||||
|
.d2-949415426 .text {
|
||||||
|
font-family: "d2-949415426-font-regular";
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: d2-949415426-font-regular;
|
||||||
|
src: url("data:application/font-woff;base64,d09GRgABAAAAAAuoAAoAAAAAEigAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXd/Vo2NtYXAAAAFUAAAAdgAAAJYCGgMLZ2x5ZgAAAcwAAAWOAAAHSD74GAhoZWFkAAAHXAAAADYAAAA2G4Ue32hoZWEAAAeUAAAAJAAAACQKhAXZaG10eAAAB7gAAABcAAAAXCjeA/tsb2NhAAAIFAAAADAAAAAwFiQYOG1heHAAAAhEAAAAIAAAACAALwD2bmFtZQAACGQAAAMjAAAIFAbDVU1wb3N0AAALiAAAAB0AAAAg/9EAMgADAgkBkAAFAAACigJYAAAASwKKAlgAAAFeADIBIwAAAgsFAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPAEAAIP//Au7/BgAAA9gBESAAAZ8AAAAAAeYClA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n2r+5zi1Ksbjd6pe8u90LqcrCjQMlXzFTcNxTUz7yeaqVX+oXJLvW45z+iTSPVUN7j9DjwnoM0Ou+wz0TlD7VzYG9HWO9HmFfvqwRmJokZydWIVdgl4wS67vOLFWs0OhxzQY/8OHBdZPQ54fWtnXadlFWd1/hSbtvg6nl2vXt5br8/v4MsvNFE3L2Nf2vhuX1i1G/+fEDHzXNzW6p3cE4L/AAAA//8BAAD//wdbTDAAeJxiYGYAg//nGIwYsAAAAAAA//8BAAD//y8BAgMAAAA=");
|
||||||
|
}
|
||||||
|
.d2-949415426 .text-bold {
|
||||||
|
font-family: "d2-949415426-font-bold";
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: d2-949415426-font-bold;
|
||||||
|
src: url("data:application/font-woff;base64,d09GRgABAAAAAAugAAoAAAAAEigAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAdgAAAJYCGgMLZ2x5ZgAAAcwAAAWDAAAHMN46FOpoZWFkAAAHUAAAADYAAAA2G38e1GhoZWEAAAeIAAAAJAAAACQKfwXWaG10eAAAB6wAAABcAAAAXCvEAxJsb2NhAAAICAAAADAAAAAwFc4X2G1heHAAAAg4AAAAIAAAACAALwD3bmFtZQAACFgAAAMoAAAIKgjwVkFwb3N0AAALgAAAAB0AAAAg/9EAMgADAioCvAAFAAACigJYAAAASwKKAlgAAAFeADIBKQAAAgsHAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPACAAIP//Au7/BgAAA9gBESAAAZ8AAAAAAfAClAAAACAAA3icZMxNCgFxHIDh52/G92AwF5IjOIFETSll5wquIAkXcANu9lOzUt7lu3iQZBIKuTMqpUxuYWllbWOndnCK4Odu1faOEfGJd7ziGY+4xy2ucWm8/5JWI7d1dPX0DQwVRsYmSlMzcxVfAAAA//8BAAD//+M0GxYAAHicXFRLTBv5Gf/+f49nsBkwY3tm/MDP8czYBhvssT2YR4zBPEKABRMg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TbrTgjYFpycbvrNbnHeP8AAAD//wEAAP//9LdPUXicYmBmAIP/5xiMGLAAAAAAAP//AQAA//8vAQIDAAAA");
|
||||||
|
}]]></style><style type="text/css"><![CDATA[.shape {
|
||||||
|
shape-rendering: geometricPrecision;
|
||||||
|
stroke-linejoin: round;
|
||||||
|
}
|
||||||
|
.connection {
|
||||||
|
stroke-linecap: round;
|
||||||
|
stroke-linejoin: round;
|
||||||
|
}
|
||||||
|
.blend {
|
||||||
|
mix-blend-mode: multiply;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.d2-949415426 .fill-N1{fill:#0A0F25;}
|
||||||
|
.d2-949415426 .fill-N2{fill:#676C7E;}
|
||||||
|
.d2-949415426 .fill-N3{fill:#9499AB;}
|
||||||
|
.d2-949415426 .fill-N4{fill:#CFD2DD;}
|
||||||
|
.d2-949415426 .fill-N5{fill:#DEE1EB;}
|
||||||
|
.d2-949415426 .fill-N6{fill:#EEF1F8;}
|
||||||
|
.d2-949415426 .fill-N7{fill:#FFFFFF;}
|
||||||
|
.d2-949415426 .fill-B1{fill:#0D32B2;}
|
||||||
|
.d2-949415426 .fill-B2{fill:#0D32B2;}
|
||||||
|
.d2-949415426 .fill-B3{fill:#E3E9FD;}
|
||||||
|
.d2-949415426 .fill-B4{fill:#E3E9FD;}
|
||||||
|
.d2-949415426 .fill-B5{fill:#EDF0FD;}
|
||||||
|
.d2-949415426 .fill-B6{fill:#F7F8FE;}
|
||||||
|
.d2-949415426 .fill-AA2{fill:#4A6FF3;}
|
||||||
|
.d2-949415426 .fill-AA4{fill:#EDF0FD;}
|
||||||
|
.d2-949415426 .fill-AA5{fill:#F7F8FE;}
|
||||||
|
.d2-949415426 .fill-AB4{fill:#EDF0FD;}
|
||||||
|
.d2-949415426 .fill-AB5{fill:#F7F8FE;}
|
||||||
|
.d2-949415426 .stroke-N1{stroke:#0A0F25;}
|
||||||
|
.d2-949415426 .stroke-N2{stroke:#676C7E;}
|
||||||
|
.d2-949415426 .stroke-N3{stroke:#9499AB;}
|
||||||
|
.d2-949415426 .stroke-N4{stroke:#CFD2DD;}
|
||||||
|
.d2-949415426 .stroke-N5{stroke:#DEE1EB;}
|
||||||
|
.d2-949415426 .stroke-N6{stroke:#EEF1F8;}
|
||||||
|
.d2-949415426 .stroke-N7{stroke:#FFFFFF;}
|
||||||
|
.d2-949415426 .stroke-B1{stroke:#0D32B2;}
|
||||||
|
.d2-949415426 .stroke-B2{stroke:#0D32B2;}
|
||||||
|
.d2-949415426 .stroke-B3{stroke:#E3E9FD;}
|
||||||
|
.d2-949415426 .stroke-B4{stroke:#E3E9FD;}
|
||||||
|
.d2-949415426 .stroke-B5{stroke:#EDF0FD;}
|
||||||
|
.d2-949415426 .stroke-B6{stroke:#F7F8FE;}
|
||||||
|
.d2-949415426 .stroke-AA2{stroke:#4A6FF3;}
|
||||||
|
.d2-949415426 .stroke-AA4{stroke:#EDF0FD;}
|
||||||
|
.d2-949415426 .stroke-AA5{stroke:#F7F8FE;}
|
||||||
|
.d2-949415426 .stroke-AB4{stroke:#EDF0FD;}
|
||||||
|
.d2-949415426 .stroke-AB5{stroke:#F7F8FE;}
|
||||||
|
.d2-949415426 .background-color-N1{background-color:#0A0F25;}
|
||||||
|
.d2-949415426 .background-color-N2{background-color:#676C7E;}
|
||||||
|
.d2-949415426 .background-color-N3{background-color:#9499AB;}
|
||||||
|
.d2-949415426 .background-color-N4{background-color:#CFD2DD;}
|
||||||
|
.d2-949415426 .background-color-N5{background-color:#DEE1EB;}
|
||||||
|
.d2-949415426 .background-color-N6{background-color:#EEF1F8;}
|
||||||
|
.d2-949415426 .background-color-N7{background-color:#FFFFFF;}
|
||||||
|
.d2-949415426 .background-color-B1{background-color:#0D32B2;}
|
||||||
|
.d2-949415426 .background-color-B2{background-color:#0D32B2;}
|
||||||
|
.d2-949415426 .background-color-B3{background-color:#E3E9FD;}
|
||||||
|
.d2-949415426 .background-color-B4{background-color:#E3E9FD;}
|
||||||
|
.d2-949415426 .background-color-B5{background-color:#EDF0FD;}
|
||||||
|
.d2-949415426 .background-color-B6{background-color:#F7F8FE;}
|
||||||
|
.d2-949415426 .background-color-AA2{background-color:#4A6FF3;}
|
||||||
|
.d2-949415426 .background-color-AA4{background-color:#EDF0FD;}
|
||||||
|
.d2-949415426 .background-color-AA5{background-color:#F7F8FE;}
|
||||||
|
.d2-949415426 .background-color-AB4{background-color:#EDF0FD;}
|
||||||
|
.d2-949415426 .background-color-AB5{background-color:#F7F8FE;}
|
||||||
|
.d2-949415426 .color-N1{color:#0A0F25;}
|
||||||
|
.d2-949415426 .color-N2{color:#676C7E;}
|
||||||
|
.d2-949415426 .color-N3{color:#9499AB;}
|
||||||
|
.d2-949415426 .color-N4{color:#CFD2DD;}
|
||||||
|
.d2-949415426 .color-N5{color:#DEE1EB;}
|
||||||
|
.d2-949415426 .color-N6{color:#EEF1F8;}
|
||||||
|
.d2-949415426 .color-N7{color:#FFFFFF;}
|
||||||
|
.d2-949415426 .color-B1{color:#0D32B2;}
|
||||||
|
.d2-949415426 .color-B2{color:#0D32B2;}
|
||||||
|
.d2-949415426 .color-B3{color:#E3E9FD;}
|
||||||
|
.d2-949415426 .color-B4{color:#E3E9FD;}
|
||||||
|
.d2-949415426 .color-B5{color:#EDF0FD;}
|
||||||
|
.d2-949415426 .color-B6{color:#F7F8FE;}
|
||||||
|
.d2-949415426 .color-AA2{color:#4A6FF3;}
|
||||||
|
.d2-949415426 .color-AA4{color:#EDF0FD;}
|
||||||
|
.d2-949415426 .color-AA5{color:#F7F8FE;}
|
||||||
|
.d2-949415426 .color-AB4{color:#EDF0FD;}
|
||||||
|
.d2-949415426 .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-949415426);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-949415426);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-949415426);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-949415426);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-949415426);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-949415426);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-949415426);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-949415426);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="dXNlcg=="><g class="shape" ><rect x="0.000000" y="50.000000" width="77.000000" height="66.000000" stroke="#0D32B2" fill="blue" class=" stroke-B1" style="stroke-width:2;" /></g><text x="38.500000" y="88.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">user</text></g><g class="c29mdHdhcmVTeXN0ZW0="><g class="shape" ><rect x="127.000000" y="20.000000" width="331.000000" height="126.000000" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B4" style="stroke-width:2;" /></g><text x="292.500000" y="7.000000" fill="#0A0F25" class="text fill-N1" style="text-anchor:middle;font-size:28px">softwareSystem</text></g><g class="ZXh0ZXJuYWxTeXN0ZW0="><g class="shape" ><rect x="297.000000" y="266.000000" width="157.000000" height="66.000000" stroke="#0D32B2" fill="#F7F8FE" class=" stroke-B1 fill-B6" style="stroke-width:2;" /></g><text x="375.500000" y="304.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">externalSystem</text></g><g class="c29mdHdhcmVTeXN0ZW0uc2VydmljZUE= ok"><g class="shape" ><rect x="157.000000" y="50.000000" width="106.000000" height="66.000000" stroke="#0D32B2" fill="#EDF0FD" class=" stroke-B1 fill-B5" style="stroke-width:2;" /></g><text x="210.000000" y="88.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">serviceA</text></g><g class="c29mdHdhcmVTeXN0ZW0uc2VydmljZUM= ok"><g class="shape" ><rect x="323.000000" y="50.000000" width="105.000000" height="66.000000" stroke="#0D32B2" fill="#EDF0FD" class=" stroke-B1 fill-B5" style="stroke-width:2;" /></g><text x="375.500000" y="88.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">serviceC</text></g><g class="KHNvZnR3YXJlU3lzdGVtIC0mZ3Q7IGV4dGVybmFsU3lzdGVtKVswXQ=="><marker id="mk-d2-949415426-3488378134" markerWidth="10.000000" markerHeight="12.000000" refX="7.000000" refY="6.000000" viewBox="0.000000 0.000000 10.000000 12.000000" orient="auto" markerUnits="userSpaceOnUse"> <polygon points="0.000000,0.000000 10.000000,6.000000 0.000000,12.000000" fill="#0D32B2" class="connection fill-B1" stroke-width="2" /> </marker><path d="M 375.500000 148.000000 C 375.500000 202.000000 375.500000 226.000000 375.500000 262.000000" stroke="#0D32B2" fill="none" class="connection stroke-B1" style="stroke-width:2;" marker-end="url(#mk-d2-949415426-3488378134)" mask="url(#d2-949415426)" /></g><mask id="d2-949415426" maskUnits="userSpaceOnUse" x="-1" y="-21" width="460" height="354">
|
||||||
|
<rect x="-1" y="-21" width="460" height="354" fill="white"></rect>
|
||||||
|
<rect x="22.500000" y="72.500000" width="32" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="198.500000" y="-21.000000" width="188" height="36" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="319.500000" y="288.500000" width="112" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="179.500000" y="72.500000" width="61" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="345.500000" y="72.500000" width="60" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
</mask></svg></svg>
|
||||||
|
After Width: | Height: | Size: 17 KiB |
313
e2etests/testdata/txtar/model-view/elk/board.exp.json
generated
vendored
Normal file
313
e2etests/testdata/txtar/model-view/elk/board.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,313 @@
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"config": {
|
||||||
|
"sketch": false,
|
||||||
|
"themeID": 0,
|
||||||
|
"darkThemeID": null,
|
||||||
|
"pad": null,
|
||||||
|
"center": null,
|
||||||
|
"layoutEngine": null
|
||||||
|
},
|
||||||
|
"isFolderOnly": false,
|
||||||
|
"fontFamily": "SourceSansPro",
|
||||||
|
"shapes": [
|
||||||
|
{
|
||||||
|
"id": "user",
|
||||||
|
"type": "rectangle",
|
||||||
|
"pos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 62
|
||||||
|
},
|
||||||
|
"width": 77,
|
||||||
|
"height": 66,
|
||||||
|
"opacity": 1,
|
||||||
|
"strokeDash": 0,
|
||||||
|
"strokeWidth": 2,
|
||||||
|
"borderRadius": 0,
|
||||||
|
"fill": "blue",
|
||||||
|
"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": "user",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 32,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "softwareSystem",
|
||||||
|
"type": "rectangle",
|
||||||
|
"pos": {
|
||||||
|
"x": 109,
|
||||||
|
"y": 12
|
||||||
|
},
|
||||||
|
"width": 331,
|
||||||
|
"height": 166,
|
||||||
|
"opacity": 1,
|
||||||
|
"strokeDash": 0,
|
||||||
|
"strokeWidth": 2,
|
||||||
|
"borderRadius": 0,
|
||||||
|
"fill": "B4",
|
||||||
|
"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": "softwareSystem",
|
||||||
|
"fontSize": 28,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": false,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 188,
|
||||||
|
"labelHeight": 36,
|
||||||
|
"labelPosition": "INSIDE_TOP_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "softwareSystem.serviceA",
|
||||||
|
"type": "rectangle",
|
||||||
|
"classes": [
|
||||||
|
"ok"
|
||||||
|
],
|
||||||
|
"pos": {
|
||||||
|
"x": 159,
|
||||||
|
"y": 62
|
||||||
|
},
|
||||||
|
"width": 106,
|
||||||
|
"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": "serviceA",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 61,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "softwareSystem.serviceC",
|
||||||
|
"type": "rectangle",
|
||||||
|
"classes": [
|
||||||
|
"ok"
|
||||||
|
],
|
||||||
|
"pos": {
|
||||||
|
"x": 285,
|
||||||
|
"y": 62
|
||||||
|
},
|
||||||
|
"width": 105,
|
||||||
|
"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": "serviceC",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 60,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "externalSystem",
|
||||||
|
"type": "rectangle",
|
||||||
|
"pos": {
|
||||||
|
"x": 196,
|
||||||
|
"y": 248
|
||||||
|
},
|
||||||
|
"width": 157,
|
||||||
|
"height": 66,
|
||||||
|
"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": "externalSystem",
|
||||||
|
"fontSize": 16,
|
||||||
|
"fontFamily": "DEFAULT",
|
||||||
|
"language": "",
|
||||||
|
"color": "N1",
|
||||||
|
"italic": false,
|
||||||
|
"bold": true,
|
||||||
|
"underline": false,
|
||||||
|
"labelWidth": 112,
|
||||||
|
"labelHeight": 21,
|
||||||
|
"labelPosition": "INSIDE_MIDDLE_CENTER",
|
||||||
|
"zIndex": 0,
|
||||||
|
"level": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"connections": [
|
||||||
|
{
|
||||||
|
"id": "(softwareSystem -> externalSystem)[0]",
|
||||||
|
"src": "softwareSystem",
|
||||||
|
"srcArrow": "none",
|
||||||
|
"dst": "externalSystem",
|
||||||
|
"dstArrow": "triangle",
|
||||||
|
"opacity": 1,
|
||||||
|
"strokeDash": 0,
|
||||||
|
"strokeWidth": 2,
|
||||||
|
"stroke": "B1",
|
||||||
|
"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": 274.5,
|
||||||
|
"y": 178
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 274.5,
|
||||||
|
"y": 248
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"animated": false,
|
||||||
|
"tooltip": "",
|
||||||
|
"icon": null,
|
||||||
|
"zIndex": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
106
e2etests/testdata/txtar/model-view/elk/sketch.exp.svg
vendored
Normal file
106
e2etests/testdata/txtar/model-view/elk/sketch.exp.svg
vendored
Normal file
|
|
@ -0,0 +1,106 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 430 304"><svg class="d2-2717104929 d2-svg" width="430" height="304" viewBox="11 11 430 304"><rect x="11.000000" y="11.000000" width="430.000000" height="304.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||||
|
.d2-2717104929 .text {
|
||||||
|
font-family: "d2-2717104929-font-regular";
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: d2-2717104929-font-regular;
|
||||||
|
src: url("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RclQfAsqSgJKpqQE5MwZ06LHEccMmDClxHGkSp5ZSM6Iiksine8swndmSEJGaazOyYjF04lfouwuxzh6FIpdrXy8VuEpju+U7bnliv2KQL9uhdn6uUs2ERfqZ6qupNq5lIIT7fpzO3wrXLGHu1d/1pl8uEex/leqfMq59I+lVCYmGc5t0SGUg0L3BMeB1l1CdeR7ugx4Q493DLTu0KdPhxMGdHmt3B59HF/T44RDZXSFF3tHcswJP+L4hq5ifO3E+rNQLOEXCnN3KY5z3WNGoZ575oHumuiGd1fYz1C+5o5SOUPNkY900i/TnEWMzRWFGM7Uy6U3SutfbI6Y6S5e25t9Pw0XNnvLKb4i1wx7ty44eeUWjD6kanDLM5f6CYiIyTlVxJCcGS0qrsT7LRHnpDgO1b03mpKKznWOP+dKLkmYiUGXTHXmFPobmW9C4z5c872ztyRWvmd6dn2r+5zi1Ksbjd6pe8u90LqcrCjQMlXzFTcNxTUz7yeaqVX+oXJLvW45z+iTSPVUN7j9DjwnoM0Ou+wz0TlD7VzYG9HWO9HmFfvqwRmJokZydWIVdgl4wS67vOLFWs0OhxzQY/8OHBdZPQ54fWtnXadlFWd1/hSbtvg6nl2vXt5br8/v4MsvNFE3L2Nf2vhuX1i1G/+fEDHzXNzW6p3cE4L/AAAA//8BAAD//wdbTDAAeJxiYGYAg//nGIwYsAAAAAAA//8BAAD//y8BAgMAAAA=");
|
||||||
|
}
|
||||||
|
.d2-2717104929 .text-bold {
|
||||||
|
font-family: "d2-2717104929-font-bold";
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: d2-2717104929-font-bold;
|
||||||
|
src: url("data:application/font-woff;base64,d09GRgABAAAAAAugAAoAAAAAEigAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAdgAAAJYCGgMLZ2x5ZgAAAcwAAAWDAAAHMN46FOpoZWFkAAAHUAAAADYAAAA2G38e1GhoZWEAAAeIAAAAJAAAACQKfwXWa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pzRp8Nr+Xbp4fiaLmccy6MjvLhrSzFn/IDjGzqyKWNH1p/FxCJ+JjN15+I4Ux1TMvW8ZO6p1kgV3n3C5Q6lG+rI5TPQHpWWTvNLtGcBI1NFJoZT9XKpjdz6F5oipqqlnO3tfbkNc9u95RbfkGqHS7UuOJWTWzB631S9dzRzrR+PgJCUC1kMSJnSoOBGvM8JuCLGcazunWhLClornzLPjVQSMRWDDonizMj0NzDd+MZ9sKF7Z29JKP+S6eWqqvtkcerV7YzeqHvLO9+6HK1NoGFTTdfUNBDXxLQfaafW+fvyzfW6pTzliJSY8F8vwDM8muxzwCFjZRjoZm6vQ1MvRJOXHKr6SyJZDaXnyCIc4PGcAw54yfN3+rhk4oyLW3FZz93imCO6HH5QFQv7Lke8Xn37/6y/i2lTtTierk4v7j3FJ3dQ6xfas9v3sqeJlZOYW7TbrTgjYFpycbvrNbnHeP8AAAD//wEAAP//9LdPUXicYmBmAIP/5xiMGLAAAAAAAP//AQAA//8vAQIDAAAA");
|
||||||
|
}]]></style><style type="text/css"><![CDATA[.shape {
|
||||||
|
shape-rendering: geometricPrecision;
|
||||||
|
stroke-linejoin: round;
|
||||||
|
}
|
||||||
|
.connection {
|
||||||
|
stroke-linecap: round;
|
||||||
|
stroke-linejoin: round;
|
||||||
|
}
|
||||||
|
.blend {
|
||||||
|
mix-blend-mode: multiply;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.d2-2717104929 .fill-N1{fill:#0A0F25;}
|
||||||
|
.d2-2717104929 .fill-N2{fill:#676C7E;}
|
||||||
|
.d2-2717104929 .fill-N3{fill:#9499AB;}
|
||||||
|
.d2-2717104929 .fill-N4{fill:#CFD2DD;}
|
||||||
|
.d2-2717104929 .fill-N5{fill:#DEE1EB;}
|
||||||
|
.d2-2717104929 .fill-N6{fill:#EEF1F8;}
|
||||||
|
.d2-2717104929 .fill-N7{fill:#FFFFFF;}
|
||||||
|
.d2-2717104929 .fill-B1{fill:#0D32B2;}
|
||||||
|
.d2-2717104929 .fill-B2{fill:#0D32B2;}
|
||||||
|
.d2-2717104929 .fill-B3{fill:#E3E9FD;}
|
||||||
|
.d2-2717104929 .fill-B4{fill:#E3E9FD;}
|
||||||
|
.d2-2717104929 .fill-B5{fill:#EDF0FD;}
|
||||||
|
.d2-2717104929 .fill-B6{fill:#F7F8FE;}
|
||||||
|
.d2-2717104929 .fill-AA2{fill:#4A6FF3;}
|
||||||
|
.d2-2717104929 .fill-AA4{fill:#EDF0FD;}
|
||||||
|
.d2-2717104929 .fill-AA5{fill:#F7F8FE;}
|
||||||
|
.d2-2717104929 .fill-AB4{fill:#EDF0FD;}
|
||||||
|
.d2-2717104929 .fill-AB5{fill:#F7F8FE;}
|
||||||
|
.d2-2717104929 .stroke-N1{stroke:#0A0F25;}
|
||||||
|
.d2-2717104929 .stroke-N2{stroke:#676C7E;}
|
||||||
|
.d2-2717104929 .stroke-N3{stroke:#9499AB;}
|
||||||
|
.d2-2717104929 .stroke-N4{stroke:#CFD2DD;}
|
||||||
|
.d2-2717104929 .stroke-N5{stroke:#DEE1EB;}
|
||||||
|
.d2-2717104929 .stroke-N6{stroke:#EEF1F8;}
|
||||||
|
.d2-2717104929 .stroke-N7{stroke:#FFFFFF;}
|
||||||
|
.d2-2717104929 .stroke-B1{stroke:#0D32B2;}
|
||||||
|
.d2-2717104929 .stroke-B2{stroke:#0D32B2;}
|
||||||
|
.d2-2717104929 .stroke-B3{stroke:#E3E9FD;}
|
||||||
|
.d2-2717104929 .stroke-B4{stroke:#E3E9FD;}
|
||||||
|
.d2-2717104929 .stroke-B5{stroke:#EDF0FD;}
|
||||||
|
.d2-2717104929 .stroke-B6{stroke:#F7F8FE;}
|
||||||
|
.d2-2717104929 .stroke-AA2{stroke:#4A6FF3;}
|
||||||
|
.d2-2717104929 .stroke-AA4{stroke:#EDF0FD;}
|
||||||
|
.d2-2717104929 .stroke-AA5{stroke:#F7F8FE;}
|
||||||
|
.d2-2717104929 .stroke-AB4{stroke:#EDF0FD;}
|
||||||
|
.d2-2717104929 .stroke-AB5{stroke:#F7F8FE;}
|
||||||
|
.d2-2717104929 .background-color-N1{background-color:#0A0F25;}
|
||||||
|
.d2-2717104929 .background-color-N2{background-color:#676C7E;}
|
||||||
|
.d2-2717104929 .background-color-N3{background-color:#9499AB;}
|
||||||
|
.d2-2717104929 .background-color-N4{background-color:#CFD2DD;}
|
||||||
|
.d2-2717104929 .background-color-N5{background-color:#DEE1EB;}
|
||||||
|
.d2-2717104929 .background-color-N6{background-color:#EEF1F8;}
|
||||||
|
.d2-2717104929 .background-color-N7{background-color:#FFFFFF;}
|
||||||
|
.d2-2717104929 .background-color-B1{background-color:#0D32B2;}
|
||||||
|
.d2-2717104929 .background-color-B2{background-color:#0D32B2;}
|
||||||
|
.d2-2717104929 .background-color-B3{background-color:#E3E9FD;}
|
||||||
|
.d2-2717104929 .background-color-B4{background-color:#E3E9FD;}
|
||||||
|
.d2-2717104929 .background-color-B5{background-color:#EDF0FD;}
|
||||||
|
.d2-2717104929 .background-color-B6{background-color:#F7F8FE;}
|
||||||
|
.d2-2717104929 .background-color-AA2{background-color:#4A6FF3;}
|
||||||
|
.d2-2717104929 .background-color-AA4{background-color:#EDF0FD;}
|
||||||
|
.d2-2717104929 .background-color-AA5{background-color:#F7F8FE;}
|
||||||
|
.d2-2717104929 .background-color-AB4{background-color:#EDF0FD;}
|
||||||
|
.d2-2717104929 .background-color-AB5{background-color:#F7F8FE;}
|
||||||
|
.d2-2717104929 .color-N1{color:#0A0F25;}
|
||||||
|
.d2-2717104929 .color-N2{color:#676C7E;}
|
||||||
|
.d2-2717104929 .color-N3{color:#9499AB;}
|
||||||
|
.d2-2717104929 .color-N4{color:#CFD2DD;}
|
||||||
|
.d2-2717104929 .color-N5{color:#DEE1EB;}
|
||||||
|
.d2-2717104929 .color-N6{color:#EEF1F8;}
|
||||||
|
.d2-2717104929 .color-N7{color:#FFFFFF;}
|
||||||
|
.d2-2717104929 .color-B1{color:#0D32B2;}
|
||||||
|
.d2-2717104929 .color-B2{color:#0D32B2;}
|
||||||
|
.d2-2717104929 .color-B3{color:#E3E9FD;}
|
||||||
|
.d2-2717104929 .color-B4{color:#E3E9FD;}
|
||||||
|
.d2-2717104929 .color-B5{color:#EDF0FD;}
|
||||||
|
.d2-2717104929 .color-B6{color:#F7F8FE;}
|
||||||
|
.d2-2717104929 .color-AA2{color:#4A6FF3;}
|
||||||
|
.d2-2717104929 .color-AA4{color:#EDF0FD;}
|
||||||
|
.d2-2717104929 .color-AA5{color:#F7F8FE;}
|
||||||
|
.d2-2717104929 .color-AB4{color:#EDF0FD;}
|
||||||
|
.d2-2717104929 .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-2717104929);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2717104929);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2717104929);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2717104929);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2717104929);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2717104929);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2717104929);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2717104929);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="dXNlcg=="><g class="shape" ><rect x="12.000000" y="62.000000" width="77.000000" height="66.000000" stroke="#0D32B2" fill="blue" class=" stroke-B1" style="stroke-width:2;" /></g><text x="50.500000" y="100.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">user</text></g><g class="c29mdHdhcmVTeXN0ZW0="><g class="shape" ><rect x="109.000000" y="12.000000" width="331.000000" height="166.000000" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B4" style="stroke-width:2;" /></g><text x="274.500000" y="45.000000" fill="#0A0F25" class="text fill-N1" style="text-anchor:middle;font-size:28px">softwareSystem</text></g><g class="ZXh0ZXJuYWxTeXN0ZW0="><g class="shape" ><rect x="196.000000" y="248.000000" width="157.000000" height="66.000000" stroke="#0D32B2" fill="#F7F8FE" class=" stroke-B1 fill-B6" style="stroke-width:2;" /></g><text x="274.500000" y="286.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">externalSystem</text></g><g class="c29mdHdhcmVTeXN0ZW0uc2VydmljZUE= ok"><g class="shape" ><rect x="159.000000" y="62.000000" width="106.000000" height="66.000000" stroke="#0D32B2" fill="#EDF0FD" class=" stroke-B1 fill-B5" style="stroke-width:2;" /></g><text x="212.000000" y="100.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">serviceA</text></g><g class="c29mdHdhcmVTeXN0ZW0uc2VydmljZUM= ok"><g class="shape" ><rect x="285.000000" y="62.000000" width="105.000000" height="66.000000" stroke="#0D32B2" fill="#EDF0FD" class=" stroke-B1 fill-B5" style="stroke-width:2;" /></g><text x="337.500000" y="100.500000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">serviceC</text></g><g class="KHNvZnR3YXJlU3lzdGVtIC0mZ3Q7IGV4dGVybmFsU3lzdGVtKVswXQ=="><marker id="mk-d2-2717104929-3488378134" markerWidth="10.000000" markerHeight="12.000000" refX="7.000000" refY="6.000000" viewBox="0.000000 0.000000 10.000000 12.000000" orient="auto" markerUnits="userSpaceOnUse"> <polygon points="0.000000,0.000000 10.000000,6.000000 0.000000,12.000000" fill="#0D32B2" class="connection fill-B1" stroke-width="2" /> </marker><path d="M 274.500000 180.000000 L 274.500000 244.000000" stroke="#0D32B2" fill="none" class="connection stroke-B1" style="stroke-width:2;" marker-end="url(#mk-d2-2717104929-3488378134)" mask="url(#d2-2717104929)" /></g><mask id="d2-2717104929" maskUnits="userSpaceOnUse" x="11" y="11" width="430" height="304">
|
||||||
|
<rect x="11" y="11" width="430" height="304" fill="white"></rect>
|
||||||
|
<rect x="34.500000" y="84.500000" width="32" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="180.500000" y="17.000000" width="188" height="36" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="218.500000" y="270.500000" width="112" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="181.500000" y="84.500000" width="61" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
<rect x="307.500000" y="84.500000" width="60" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||||
|
</mask></svg></svg>
|
||||||
|
After Width: | Height: | Size: 17 KiB |
|
|
@ -775,3 +775,33 @@ a -> b: hello {
|
||||||
b -> c: {
|
b -> c: {
|
||||||
icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
|
icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- model-view --
|
||||||
|
# Models
|
||||||
|
user.style.fill: blue
|
||||||
|
softwareSystem: {
|
||||||
|
serviceA.class: ok
|
||||||
|
serviceB
|
||||||
|
serviceC.class: ok
|
||||||
|
serviceD
|
||||||
|
|
||||||
|
serviceA -> serviceB
|
||||||
|
serviceA -> serviceD
|
||||||
|
serviceC -> serviceB
|
||||||
|
}
|
||||||
|
externalSystem
|
||||||
|
user -> softwareSystem
|
||||||
|
softwareSystem -> externalSystem
|
||||||
|
|
||||||
|
# Clear models
|
||||||
|
**: suspend
|
||||||
|
(** -> **)[*]: suspend
|
||||||
|
|
||||||
|
# Include all top-level objects
|
||||||
|
*: unsuspend
|
||||||
|
# Include all objects with a certain class
|
||||||
|
**: unsuspend {
|
||||||
|
&class: ok
|
||||||
|
}
|
||||||
|
# Include all connections/objects connected to an object
|
||||||
|
(** -> externalSystem)[*]: unsuspend
|
||||||
|
|
|
||||||
274
testdata/d2compiler/TestCompile2/globs/suspension-lazy.exp.json
generated
vendored
Normal file
274
testdata/d2compiler/TestCompile2/globs/suspension-lazy.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,274 @@
|
||||||
|
{
|
||||||
|
"graph": {
|
||||||
|
"name": "",
|
||||||
|
"isFolderOnly": false,
|
||||||
|
"ast": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,0:0:0-6:0:47",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,1:0:1-1:6:7",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,1:0:1-1:6:7",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,1:0:1-1:1:2",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,1:0:1-1:1:2",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "a",
|
||||||
|
"raw_string": "a"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,1:5:6-1:6:7",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,1:5:6-1:6:7",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "b",
|
||||||
|
"raw_string": "b"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,2:0:8-2:1:9",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,2:0:8-2:1:9",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,2:0:8-2:1:9",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "c",
|
||||||
|
"raw_string": "c"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,3:0:10-3:11:21",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,3:0:10-3:2:12",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,3:0:10-3:2:12",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"suspension": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,3:4:14-3:11:21",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:0:22-4:22:44",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:1:23-4:9:31",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:1:23-4:3:25",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:1:23-4:3:25",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:7:29-4:9:31",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:7:29-4:9:31",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edge_index": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:10:32-4:13:35",
|
||||||
|
"int": null,
|
||||||
|
"glob": true
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"suspension": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,4:15:37-4:22:44",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,5:0:45-5:1:46",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,5:0:45-5:1:46",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,5:0:45-5:1:46",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"id": "",
|
||||||
|
"id_val": "",
|
||||||
|
"attributes": {
|
||||||
|
"label": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"labelDimensions": {
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"style": {},
|
||||||
|
"near_key": null,
|
||||||
|
"shape": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"direction": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"constraint": null
|
||||||
|
},
|
||||||
|
"zIndex": 0
|
||||||
|
},
|
||||||
|
"edges": null,
|
||||||
|
"objects": [
|
||||||
|
{
|
||||||
|
"id": "d",
|
||||||
|
"id_val": "d",
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,5:0:45-5:1:46",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-lazy.d2,5:0:45-5:1:46",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"key_path_index": 0,
|
||||||
|
"map_key_edge_index": -1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"attributes": {
|
||||||
|
"label": {
|
||||||
|
"value": "d"
|
||||||
|
},
|
||||||
|
"labelDimensions": {
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"style": {},
|
||||||
|
"near_key": null,
|
||||||
|
"shape": {
|
||||||
|
"value": "rectangle"
|
||||||
|
},
|
||||||
|
"direction": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"constraint": null
|
||||||
|
},
|
||||||
|
"zIndex": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"err": null
|
||||||
|
}
|
||||||
414
testdata/d2compiler/TestCompile2/globs/suspension-quotes.exp.json
generated
vendored
Normal file
414
testdata/d2compiler/TestCompile2/globs/suspension-quotes.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,414 @@
|
||||||
|
{
|
||||||
|
"graph": {
|
||||||
|
"name": "",
|
||||||
|
"isFolderOnly": false,
|
||||||
|
"ast": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,0:0:0-7:0:76",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,1:0:1-1:6:7",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,1:0:1-1:6:7",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,1:0:1-1:1:2",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,1:0:1-1:1:2",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "a",
|
||||||
|
"raw_string": "a"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,1:5:6-1:6:7",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,1:5:6-1:6:7",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "b",
|
||||||
|
"raw_string": "b"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,2:0:8-2:1:9",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,2:0:8-2:1:9",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,2:0:8-2:1:9",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "c",
|
||||||
|
"raw_string": "c"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,3:0:10-3:11:21",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,3:0:10-3:2:12",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,3:0:10-3:2:12",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"suspension": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,3:4:14-3:11:21",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:0:22-4:22:44",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:1:23-4:9:31",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:1:23-4:3:25",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:1:23-4:3:25",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:7:29-4:9:31",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:7:29-4:9:31",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edge_index": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:10:32-4:13:35",
|
||||||
|
"int": null,
|
||||||
|
"glob": true
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"suspension": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,4:15:37-4:22:44",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,5:0:45-5:12:57",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,5:0:45-5:1:46",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,5:0:45-5:1:46",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"double_quoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,5:3:48-5:12:57",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "suspend",
|
||||||
|
"raw_string": "suspend"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:0:58-6:17:75",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:0:58-6:6:64",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:0:58-6:1:59",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:0:58-6:1:59",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:5:63-6:6:64",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:5:63-6:6:64",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"double_quoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:8:66-6:17:75",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "suspend",
|
||||||
|
"raw_string": "suspend"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"id": "",
|
||||||
|
"id_val": "",
|
||||||
|
"attributes": {
|
||||||
|
"label": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"labelDimensions": {
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"style": {},
|
||||||
|
"near_key": null,
|
||||||
|
"shape": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"direction": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"constraint": null
|
||||||
|
},
|
||||||
|
"zIndex": 0
|
||||||
|
},
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"index": 0,
|
||||||
|
"isCurve": false,
|
||||||
|
"src_arrow": false,
|
||||||
|
"dst_arrow": true,
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"map_key_edge_index": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key_edge_index": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"attributes": {
|
||||||
|
"label": {
|
||||||
|
"value": "suspend"
|
||||||
|
},
|
||||||
|
"labelDimensions": {
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"style": {},
|
||||||
|
"near_key": null,
|
||||||
|
"shape": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"direction": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"constraint": null
|
||||||
|
},
|
||||||
|
"zIndex": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"objects": [
|
||||||
|
{
|
||||||
|
"id": "d",
|
||||||
|
"id_val": "d",
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,5:0:45-5:1:46",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,5:0:45-5:1:46",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"key_path_index": 0,
|
||||||
|
"map_key_edge_index": -1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:0:58-6:1:59",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:0:58-6:1:59",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"key_path_index": 0,
|
||||||
|
"map_key_edge_index": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:5:63-6:6:64",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-quotes.d2,6:5:63-6:6:64",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"key_path_index": 0,
|
||||||
|
"map_key_edge_index": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"attributes": {
|
||||||
|
"label": {
|
||||||
|
"value": "suspend"
|
||||||
|
},
|
||||||
|
"labelDimensions": {
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"style": {},
|
||||||
|
"near_key": null,
|
||||||
|
"shape": {
|
||||||
|
"value": "rectangle"
|
||||||
|
},
|
||||||
|
"direction": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"constraint": null
|
||||||
|
},
|
||||||
|
"zIndex": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"err": null
|
||||||
|
}
|
||||||
341
testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.exp.json
generated
vendored
Normal file
341
testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,341 @@
|
||||||
|
{
|
||||||
|
"graph": {
|
||||||
|
"name": "",
|
||||||
|
"isFolderOnly": false,
|
||||||
|
"ast": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,0:0:0-9:0:108",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,1:0:1-1:6:7",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,1:0:1-1:6:7",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,1:0:1-1:1:2",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,1:0:1-1:1:2",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "a",
|
||||||
|
"raw_string": "a"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,1:5:6-1:6:7",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,1:5:6-1:6:7",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "b",
|
||||||
|
"raw_string": "b"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,2:0:8-2:1:9",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,2:0:8-2:1:9",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,2:0:8-2:1:9",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "c",
|
||||||
|
"raw_string": "c"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,3:0:10-3:11:21",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,3:0:10-3:2:12",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,3:0:10-3:2:12",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"suspension": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,3:4:14-3:11:21",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:0:22-4:22:44",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:1:23-4:9:31",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:1:23-4:3:25",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:1:23-4:3:25",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:7:29-4:9:31",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:7:29-4:9:31",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edge_index": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:10:32-4:13:35",
|
||||||
|
"int": null,
|
||||||
|
"glob": true
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"suspension": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,4:15:37-4:22:44",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,5:0:45-5:1:46",
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,5:0:45-5:1:46",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,5:0:45-5:1:46",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"comment": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,7:0:48-7:37:85",
|
||||||
|
"value": "Also restores the objects connected"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"map_key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:0:86-8:21:107",
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:1:87-8:8:94",
|
||||||
|
"src": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:1:87-8:3:89",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:1:87-8:3:89",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "**",
|
||||||
|
"raw_string": "**"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"*",
|
||||||
|
"",
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"src_arrow": "",
|
||||||
|
"dst": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:7:93-8:8:94",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:7:93-8:8:94",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "b",
|
||||||
|
"raw_string": "b"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dst_arrow": ">"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edge_index": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:9:95-8:12:98",
|
||||||
|
"int": null,
|
||||||
|
"glob": true
|
||||||
|
},
|
||||||
|
"primary": {},
|
||||||
|
"value": {
|
||||||
|
"suspension": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,8:14:100-8:21:107",
|
||||||
|
"value": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"id": "",
|
||||||
|
"id_val": "",
|
||||||
|
"attributes": {
|
||||||
|
"label": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"labelDimensions": {
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"style": {},
|
||||||
|
"near_key": null,
|
||||||
|
"shape": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"direction": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"constraint": null
|
||||||
|
},
|
||||||
|
"zIndex": 0
|
||||||
|
},
|
||||||
|
"edges": null,
|
||||||
|
"objects": [
|
||||||
|
{
|
||||||
|
"id": "d",
|
||||||
|
"id_val": "d",
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"key": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,5:0:45-5:1:46",
|
||||||
|
"path": [
|
||||||
|
{
|
||||||
|
"unquoted_string": {
|
||||||
|
"range": "d2/testdata/d2compiler/TestCompile2/globs/suspension-restore-edge.d2,5:0:45-5:1:46",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"string": "d",
|
||||||
|
"raw_string": "d"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"key_path_index": 0,
|
||||||
|
"map_key_edge_index": -1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"attributes": {
|
||||||
|
"label": {
|
||||||
|
"value": "d"
|
||||||
|
},
|
||||||
|
"labelDimensions": {
|
||||||
|
"width": 0,
|
||||||
|
"height": 0
|
||||||
|
},
|
||||||
|
"style": {},
|
||||||
|
"near_key": null,
|
||||||
|
"shape": {
|
||||||
|
"value": "rectangle"
|
||||||
|
},
|
||||||
|
"direction": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"constraint": null
|
||||||
|
},
|
||||||
|
"zIndex": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"err": null
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue