...

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

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

     1default: {
     2  start: ""
     3  end: ""
     4
     5  start.1 <-> end.1: 1 {
     6    style.stroke-width: 1
     7  }
     8  start.2 <-> end.2: 2 {
     9    style.stroke-width: 2
    10  }
    11  start.4 <-> end.4: 4 {
    12    style.stroke-width: 4
    13  }
    14  start.8 <-> end.8: 8 {
    15    style.stroke-width: 8
    16  }
    17  start.15 <-> end.15: 15 {
    18    style.stroke-width: 15
    19  }
    20}
    21
    22line: {
    23  start: ""
    24  end: ""
    25
    26  start.1 -- end.1: 1 {
    27    style.stroke-width: 1
    28  }
    29  start.2 -- end.2: 2 {
    30    style.stroke-width: 2
    31  }
    32  start.4 -- end.4: 4 {
    33    style.stroke-width: 4
    34  }
    35  start.8 -- end.8: 8 {
    36    style.stroke-width: 8
    37  }
    38  start.15 -- end.15: 15 {
    39    style.stroke-width: 15
    40  }
    41}
    42
    43arrow: {
    44  start: ""
    45  end: ""
    46
    47  start.1 <-> end.1: 1 {
    48    style.stroke-width: 1
    49    source-arrowhead.shape: arrow
    50    target-arrowhead.shape: arrow
    51  }
    52  start.2 <-> end.2: 2 {
    53    style.stroke-width: 2
    54    source-arrowhead.shape: arrow
    55    target-arrowhead.shape: arrow
    56  }
    57  start.4 <-> end.4: 4 {
    58    style.stroke-width: 4
    59    source-arrowhead.shape: arrow
    60    target-arrowhead.shape: arrow
    61  }
    62  start.8 <-> end.8: 8 {
    63    style.stroke-width: 8
    64    source-arrowhead.shape: arrow
    65    target-arrowhead.shape: arrow
    66  }
    67  start.15 <-> end.15: 15 {
    68    style.stroke-width: 15
    69    source-arrowhead.shape: arrow
    70    target-arrowhead.shape: arrow
    71  }
    72}
    73
    74diamond: {
    75  start: ""
    76  end: ""
    77
    78  start.1 <-> end.1: 1 {
    79    style.stroke-width: 1
    80    source-arrowhead.shape: diamond
    81    target-arrowhead.shape: diamond
    82  }
    83  start.2 <-> end.2: 2 {
    84    style.stroke-width: 2
    85    source-arrowhead.shape: diamond
    86    target-arrowhead.shape: diamond
    87  }
    88  start.4 <-> end.4: 4 {
    89    style.stroke-width: 4
    90    source-arrowhead.shape: diamond
    91    target-arrowhead.shape: diamond
    92  }
    93  start.8 <-> end.8: 8 {
    94    style.stroke-width: 8
    95    source-arrowhead.shape: diamond
    96    target-arrowhead.shape: diamond
    97  }
    98  start.15 <-> end.15: 15 {
    99    style.stroke-width: 15
   100    source-arrowhead.shape: diamond
   101    target-arrowhead.shape: diamond
   102  }
   103}
   104
   105filled diamond: {
   106  start: ""
   107  end: ""
   108
   109  start.1 <-> end.1: 1 {
   110    style.stroke-width: 1
   111    source-arrowhead.shape: diamond
   112    target-arrowhead.shape: diamond
   113    source-arrowhead.style.filled: true
   114    target-arrowhead.style.filled: true
   115  }
   116  start.2 <-> end.2: 2 {
   117    style.stroke-width: 2
   118    source-arrowhead.shape: diamond
   119    target-arrowhead.shape: diamond
   120    source-arrowhead.style.filled: true
   121    target-arrowhead.style.filled: true
   122  }
   123  start.4 <-> end.4: 4 {
   124    style.stroke-width: 4
   125    source-arrowhead.shape: diamond
   126    target-arrowhead.shape: diamond
   127    source-arrowhead.style.filled: true
   128    target-arrowhead.style.filled: true
   129  }
   130  start.8 <-> end.8: 8 {
   131    style.stroke-width: 8
   132    source-arrowhead.shape: diamond
   133    target-arrowhead.shape: diamond
   134    source-arrowhead.style.filled: true
   135    target-arrowhead.style.filled: true
   136  }
   137  start.15 <-> end.15: 15 {
   138    style.stroke-width: 15
   139    source-arrowhead.shape: diamond
   140    target-arrowhead.shape: diamond
   141    source-arrowhead.style.filled: true
   142    target-arrowhead.style.filled: true
   143  }
   144}
   145
   146circle: {
   147  start: ""
   148  end: ""
   149
   150  start.1 <-> end.1: 1 {
   151    style.stroke-width: 1
   152    source-arrowhead.shape: circle
   153    target-arrowhead.shape: circle
   154  }
   155  start.2 <-> end.2: 2 {
   156    style.stroke-width: 2
   157    source-arrowhead.shape: circle
   158    target-arrowhead.shape: circle
   159  }
   160  start.4 <-> end.4: 4 {
   161    style.stroke-width: 4
   162    source-arrowhead.shape: circle
   163    target-arrowhead.shape: circle
   164  }
   165  start.8 <-> end.8: 8 {
   166    style.stroke-width: 8
   167    source-arrowhead.shape: circle
   168    target-arrowhead.shape: circle
   169  }
   170  start.15 <-> end.15: 15 {
   171    style.stroke-width: 15
   172    source-arrowhead.shape: circle
   173    target-arrowhead.shape: circle
   174  }
   175}
   176
   177filled circle: {
   178  start: ""
   179  end: ""
   180
   181  start.1 <-> end.1: 1 {
   182    style.stroke-width: 1
   183    source-arrowhead.shape: circle
   184    target-arrowhead.shape: circle
   185    source-arrowhead.style.filled: true
   186    target-arrowhead.style.filled: true
   187  }
   188  start.2 <-> end.2: 2 {
   189    style.stroke-width: 2
   190    source-arrowhead.shape: circle
   191    target-arrowhead.shape: circle
   192    source-arrowhead.style.filled: true
   193    target-arrowhead.style.filled: true
   194  }
   195  start.4 <-> end.4: 4 {
   196    style.stroke-width: 4
   197    source-arrowhead.shape: circle
   198    target-arrowhead.shape: circle
   199    source-arrowhead.style.filled: true
   200    target-arrowhead.style.filled: true
   201  }
   202  start.8 <-> end.8: 8 {
   203    style.stroke-width: 8
   204    source-arrowhead.shape: circle
   205    target-arrowhead.shape: circle
   206    source-arrowhead.style.filled: true
   207    target-arrowhead.style.filled: true
   208  }
   209  start.15 <-> end.15: 15 {
   210    style.stroke-width: 15
   211    source-arrowhead.shape: circle
   212    target-arrowhead.shape: circle
   213    source-arrowhead.style.filled: true
   214    target-arrowhead.style.filled: true
   215  }
   216}
   217
   218cf one: {
   219  start: ""
   220  end: ""
   221
   222  start.1 <-> end.1: 1 {
   223    style.stroke-width: 1
   224    source-arrowhead.shape: cf-one
   225    target-arrowhead.shape: cf-one
   226  }
   227  start.2 <-> end.2: 2 {
   228    style.stroke-width: 2
   229    source-arrowhead.shape: cf-one
   230    target-arrowhead.shape: cf-one
   231  }
   232  start.4 <-> end.4: 4 {
   233    style.stroke-width: 4
   234    source-arrowhead.shape: cf-one
   235    target-arrowhead.shape: cf-one
   236  }
   237  start.8 <-> end.8: 8 {
   238    style.stroke-width: 8
   239    source-arrowhead.shape: cf-one
   240    target-arrowhead.shape: cf-one
   241  }
   242  start.15 <-> end.15: 15 {
   243    style.stroke-width: 15
   244    source-arrowhead.shape: cf-one
   245    target-arrowhead.shape: cf-one
   246  }
   247}
   248
   249cf one required: {
   250  start: ""
   251  end: ""
   252
   253  start.1 <-> end.1: 1 {
   254    style.stroke-width: 1
   255    source-arrowhead.shape: cf-one-required
   256    target-arrowhead.shape: cf-one-required
   257  }
   258  start.2 <-> end.2: 2 {
   259    style.stroke-width: 2
   260    source-arrowhead.shape: cf-one-required
   261    target-arrowhead.shape: cf-one-required
   262  }
   263  start.4 <-> end.4: 4 {
   264    style.stroke-width: 4
   265    source-arrowhead.shape: cf-one-required
   266    target-arrowhead.shape: cf-one-required
   267  }
   268  start.8 <-> end.8: 8 {
   269    style.stroke-width: 8
   270    source-arrowhead.shape: cf-one-required
   271    target-arrowhead.shape: cf-one-required
   272  }
   273  start.15 <-> end.15: 15 {
   274    style.stroke-width: 15
   275    source-arrowhead.shape: cf-one-required
   276    target-arrowhead.shape: cf-one-required
   277  }
   278}
   279
   280cf many: {
   281  start: ""
   282  end: ""
   283
   284  start.1 <-> end.1: 1 {
   285    style.stroke-width: 1
   286    source-arrowhead.shape: cf-many
   287    target-arrowhead.shape: cf-many
   288  }
   289  start.2 <-> end.2: 2 {
   290    style.stroke-width: 2
   291    source-arrowhead.shape: cf-many
   292    target-arrowhead.shape: cf-many
   293  }
   294  start.4 <-> end.4: 4 {
   295    style.stroke-width: 4
   296    source-arrowhead.shape: cf-many
   297    target-arrowhead.shape: cf-many
   298  }
   299  start.8 <-> end.8: 8 {
   300    style.stroke-width: 8
   301    source-arrowhead.shape: cf-many
   302    target-arrowhead.shape: cf-many
   303  }
   304  start.15 <-> end.15: 15 {
   305    style.stroke-width: 15
   306    source-arrowhead.shape: cf-many
   307    target-arrowhead.shape: cf-many
   308  }
   309}
   310
   311cf many required: {
   312  start: ""
   313  end: ""
   314
   315  start.1 <-> end.1: 1 {
   316    style.stroke-width: 1
   317    source-arrowhead.shape: cf-many-required
   318    target-arrowhead.shape: cf-many-required
   319  }
   320  start.2 <-> end.2: 2 {
   321    style.stroke-width: 2
   322    source-arrowhead.shape: cf-many-required
   323    target-arrowhead.shape: cf-many-required
   324  }
   325  start.4 <-> end.4: 4 {
   326    style.stroke-width: 4
   327    source-arrowhead.shape: cf-many-required
   328    target-arrowhead.shape: cf-many-required
   329  }
   330  start.8 <-> end.8: 8 {
   331    style.stroke-width: 8
   332    source-arrowhead.shape: cf-many-required
   333    target-arrowhead.shape: cf-many-required
   334  }
   335  start.15 <-> end.15: 15 {
   336    style.stroke-width: 15
   337    source-arrowhead.shape: cf-many-required
   338    target-arrowhead.shape: cf-many-required
   339  }
   340}

View as plain text