...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/files/simple_grid_edges.d2

Documentation: oss.terrastruct.com/d2/e2etests/testdata/files

     1grid-rows: 4
     2grid-columns: 5
     3horizontal-gap: 20
     4vertical-gap: 5
     5
     6*.class: [text; blue]
     7
     80,0: {
     9  label: "npm i -g\n@forge/cli"
    10  style: {
    11    fill: "#30304c"
    12    stroke: transparent
    13    font-color: white
    14    font: mono
    15    font-size: 10
    16    bold: false
    17  }
    18}
    190,1: {
    20  label: "Set up an\nAtlassian site"
    21  class: [text; gray]
    22}
    230,2.class: empty
    240,3: {
    25  label: "View the hello\nworld app"
    26  class: [text; gray]
    27}
    280,4: forge\ntunnel
    29
    301*.class: note
    311*.label: ""
    321,0
    331,1
    341,2
    351,3
    361,4
    37
    382,0: forge\nlogin
    392,1: forge\ncreate
    402,2: forge\ndeploy
    412,3: forge\ninstall
    422,4: {
    43  shape: diamond
    44  label: "Hot reload\nchanges?"
    45  class: [text; gray]
    46}
    47
    483*.class: note
    493,0: Step 1
    503,1: Step 2
    513,2: Step 3
    523,3: Step 4
    533,4: ""
    54
    554,0: "" {
    56  grid-rows: 3
    57  grid-columns: 1
    58  grid-gap: 0
    59
    60  class: []
    61
    62  style: {
    63    fill: transparent
    64    stroke: transparent
    65  }
    66
    67  *.style: {
    68    fill: transparent
    69    stroke: transparent
    70    font-color: "#30304c"
    71    font-size: 10
    72    bold: false
    73  }
    74  *.label.near: center-left
    75  *.height: 20
    76  a: ⬤ Forge CLI {
    77    style.font-color: "#0033cc"
    78  }
    79
    80  b: ⬤ Required {
    81    style.font-color: "#30304c"
    82  }
    83  c: ⬤ Optional {
    84    style.font-color: "#cecece"
    85  }
    86}
    874,1.class: empty
    884,2.class: empty
    894,3.class: empty
    904,4: forge\ndeploy
    91
    920,0 -> 2,0 -> 2,1 -> 2,2 -> 2,3 -> 2,4: {
    93  class: arrow
    94}
    952,1 -> 0,1: {
    96  class: arrow
    97  style.stroke: "#cecece"
    98}
    992,3 -> 0,3: {
   100  class: arrow
   101  style.stroke: "#cecece"
   102}
   1032,4 -> 0,4: Yes {
   104  class: arrow
   105  style.font-size: 10
   106}
   1072,4 -> 4,4: No {
   108  class: arrow
   109  style.font-size: 10
   110}
   111
   112classes: {
   113  text.style: {
   114    stroke: transparent
   115    font-color: white
   116    font: mono
   117    font-size: 10
   118    bold: false
   119  }
   120  text: {
   121    width: 100
   122    height: 60
   123  }
   124  blue.style: {
   125    fill: "#0033cc"
   126    stroke: "#0033cc"
   127    border-radius: 10
   128  }
   129  gray.style: {
   130    fill: "#cecece"
   131    stroke: "#cecece"
   132    border-radius: 10
   133  }
   134  note: {
   135    height: 30
   136    label.near: top-center
   137    style: {
   138      font-size: 10
   139      bold: false
   140      fill: transparent
   141      stroke: transparent
   142    }
   143  }
   144  empty: {
   145    label: ""
   146    width: 50
   147    height: 50
   148    style: {
   149      fill: transparent
   150      stroke: transparent
   151    }
   152  }
   153  arrow: {
   154    target-arrowhead.shape: arrow
   155    style: {
   156      stroke: black
   157      stroke-width: 2
   158    }
   159  }
   160}

View as plain text