...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/regression/unnamed_class_table_code/dagre/board.exp.json

Documentation: oss.terrastruct.com/d2/e2etests/testdata/regression/unnamed_class_table_code/dagre

     1{
     2  "name": "",
     3  "isFolderOnly": false,
     4  "fontFamily": "SourceSansPro",
     5  "shapes": [
     6    {
     7      "id": "class2",
     8      "type": "class",
     9      "pos": {
    10        "x": 0,
    11        "y": 0
    12      },
    13      "width": 422,
    14      "height": 368,
    15      "opacity": 1,
    16      "strokeDash": 0,
    17      "strokeWidth": 2,
    18      "borderRadius": 0,
    19      "fill": "N1",
    20      "stroke": "N7",
    21      "shadow": false,
    22      "3d": false,
    23      "multiple": false,
    24      "double-border": false,
    25      "tooltip": "",
    26      "link": "",
    27      "icon": null,
    28      "iconPosition": "",
    29      "blend": false,
    30      "fields": [
    31        {
    32          "name": "num",
    33          "type": "int",
    34          "visibility": "private"
    35        },
    36        {
    37          "name": "timeout",
    38          "type": "int",
    39          "visibility": "private"
    40        },
    41        {
    42          "name": "pid",
    43          "type": "",
    44          "visibility": "private"
    45        }
    46      ],
    47      "methods": [
    48        {
    49          "name": "getStatus()",
    50          "return": "Enum",
    51          "visibility": "public"
    52        },
    53        {
    54          "name": "getJobs()",
    55          "return": "Job[]",
    56          "visibility": "public"
    57        },
    58        {
    59          "name": "setTimeout(seconds int)",
    60          "return": "void",
    61          "visibility": "public"
    62        }
    63      ],
    64      "columns": null,
    65      "label": "",
    66      "fontSize": 20,
    67      "fontFamily": "DEFAULT",
    68      "language": "",
    69      "color": "N1",
    70      "italic": false,
    71      "bold": false,
    72      "underline": false,
    73      "labelWidth": 0,
    74      "labelHeight": 0,
    75      "zIndex": 0,
    76      "level": 1,
    77      "primaryAccentColor": "B2",
    78      "secondaryAccentColor": "AA2",
    79      "neutralAccentColor": "N2"
    80    },
    81    {
    82      "id": "users",
    83      "type": "sql_table",
    84      "pos": {
    85        "x": 107,
    86        "y": 468
    87      },
    88      "width": 208,
    89      "height": 186,
    90      "opacity": 1,
    91      "strokeDash": 0,
    92      "strokeWidth": 2,
    93      "borderRadius": 0,
    94      "fill": "N1",
    95      "stroke": "N7",
    96      "shadow": false,
    97      "3d": false,
    98      "multiple": false,
    99      "double-border": false,
   100      "tooltip": "",
   101      "link": "",
   102      "icon": null,
   103      "iconPosition": "",
   104      "blend": false,
   105      "fields": null,
   106      "methods": null,
   107      "columns": [
   108        {
   109          "name": {
   110            "label": "id",
   111            "fontSize": 0,
   112            "fontFamily": "",
   113            "language": "",
   114            "color": "",
   115            "italic": false,
   116            "bold": false,
   117            "underline": false,
   118            "labelWidth": 15,
   119            "labelHeight": 26
   120          },
   121          "type": {
   122            "label": "int",
   123            "fontSize": 0,
   124            "fontFamily": "",
   125            "language": "",
   126            "color": "",
   127            "italic": false,
   128            "bold": false,
   129            "underline": false,
   130            "labelWidth": 23,
   131            "labelHeight": 26
   132          },
   133          "constraint": null,
   134          "reference": ""
   135        },
   136        {
   137          "name": {
   138            "label": "name",
   139            "fontSize": 0,
   140            "fontFamily": "",
   141            "language": "",
   142            "color": "",
   143            "italic": false,
   144            "bold": false,
   145            "underline": false,
   146            "labelWidth": 47,
   147            "labelHeight": 26
   148          },
   149          "type": {
   150            "label": "string",
   151            "fontSize": 0,
   152            "fontFamily": "",
   153            "language": "",
   154            "color": "",
   155            "italic": false,
   156            "bold": false,
   157            "underline": false,
   158            "labelWidth": 48,
   159            "labelHeight": 26
   160          },
   161          "constraint": null,
   162          "reference": ""
   163        },
   164        {
   165          "name": {
   166            "label": "email",
   167            "fontSize": 0,
   168            "fontFamily": "",
   169            "language": "",
   170            "color": "",
   171            "italic": false,
   172            "bold": false,
   173            "underline": false,
   174            "labelWidth": 47,
   175            "labelHeight": 26
   176          },
   177          "type": {
   178            "label": "string",
   179            "fontSize": 0,
   180            "fontFamily": "",
   181            "language": "",
   182            "color": "",
   183            "italic": false,
   184            "bold": false,
   185            "underline": false,
   186            "labelWidth": 48,
   187            "labelHeight": 26
   188          },
   189          "constraint": null,
   190          "reference": ""
   191        },
   192        {
   193          "name": {
   194            "label": "password",
   195            "fontSize": 0,
   196            "fontFamily": "",
   197            "language": "",
   198            "color": "",
   199            "italic": false,
   200            "bold": false,
   201            "underline": false,
   202            "labelWidth": 80,
   203            "labelHeight": 26
   204          },
   205          "type": {
   206            "label": "string",
   207            "fontSize": 0,
   208            "fontFamily": "",
   209            "language": "",
   210            "color": "",
   211            "italic": false,
   212            "bold": false,
   213            "underline": false,
   214            "labelWidth": 48,
   215            "labelHeight": 26
   216          },
   217          "constraint": null,
   218          "reference": ""
   219        },
   220        {
   221          "name": {
   222            "label": "last_login",
   223            "fontSize": 0,
   224            "fontFamily": "",
   225            "language": "",
   226            "color": "",
   227            "italic": false,
   228            "bold": false,
   229            "underline": false,
   230            "labelWidth": 81,
   231            "labelHeight": 26
   232          },
   233          "type": {
   234            "label": "datetime",
   235            "fontSize": 0,
   236            "fontFamily": "",
   237            "language": "",
   238            "color": "",
   239            "italic": false,
   240            "bold": false,
   241            "underline": false,
   242            "labelWidth": 77,
   243            "labelHeight": 26
   244          },
   245          "constraint": null,
   246          "reference": ""
   247        }
   248      ],
   249      "label": "",
   250      "fontSize": 20,
   251      "fontFamily": "DEFAULT",
   252      "language": "",
   253      "color": "N1",
   254      "italic": false,
   255      "bold": true,
   256      "underline": false,
   257      "labelWidth": 59,
   258      "labelHeight": 31,
   259      "zIndex": 0,
   260      "level": 1,
   261      "primaryAccentColor": "B2",
   262      "secondaryAccentColor": "AA2",
   263      "neutralAccentColor": "N2"
   264    },
   265    {
   266      "id": "code",
   267      "type": "code",
   268      "pos": {
   269        "x": 112,
   270        "y": 754
   271      },
   272      "width": 199,
   273      "height": 78,
   274      "opacity": 1,
   275      "strokeDash": 0,
   276      "strokeWidth": 2,
   277      "borderRadius": 0,
   278      "fill": "N7",
   279      "stroke": "N1",
   280      "shadow": false,
   281      "3d": false,
   282      "multiple": false,
   283      "double-border": false,
   284      "tooltip": "",
   285      "link": "",
   286      "icon": null,
   287      "iconPosition": "",
   288      "blend": false,
   289      "fields": null,
   290      "methods": null,
   291      "columns": null,
   292      "label": "a := 5\nb := a + 7\nfmt.Printf(\"%d\", b)",
   293      "fontSize": 16,
   294      "fontFamily": "DEFAULT",
   295      "language": "golang",
   296      "color": "N1",
   297      "italic": false,
   298      "bold": true,
   299      "underline": false,
   300      "labelWidth": 183,
   301      "labelHeight": 62,
   302      "zIndex": 0,
   303      "level": 1
   304    }
   305  ],
   306  "connections": [
   307    {
   308      "id": "(class2 -> users)[0]",
   309      "src": "class2",
   310      "srcArrow": "none",
   311      "dst": "users",
   312      "dstArrow": "triangle",
   313      "opacity": 1,
   314      "strokeDash": 0,
   315      "strokeWidth": 2,
   316      "stroke": "B1",
   317      "borderRadius": 10,
   318      "label": "",
   319      "fontSize": 16,
   320      "fontFamily": "DEFAULT",
   321      "language": "",
   322      "color": "N2",
   323      "italic": true,
   324      "bold": false,
   325      "underline": false,
   326      "labelWidth": 0,
   327      "labelHeight": 0,
   328      "labelPosition": "",
   329      "labelPercentage": 0,
   330      "route": [
   331        {
   332          "x": 211,
   333          "y": 368
   334        },
   335        {
   336          "x": 211,
   337          "y": 408
   338        },
   339        {
   340          "x": 211,
   341          "y": 428
   342        },
   343        {
   344          "x": 211,
   345          "y": 468
   346        }
   347      ],
   348      "isCurve": true,
   349      "animated": false,
   350      "tooltip": "",
   351      "icon": null,
   352      "zIndex": 0
   353    },
   354    {
   355      "id": "(users -> code)[0]",
   356      "src": "users",
   357      "srcArrow": "none",
   358      "dst": "code",
   359      "dstArrow": "triangle",
   360      "opacity": 1,
   361      "strokeDash": 0,
   362      "strokeWidth": 2,
   363      "stroke": "B1",
   364      "borderRadius": 10,
   365      "label": "",
   366      "fontSize": 16,
   367      "fontFamily": "DEFAULT",
   368      "language": "",
   369      "color": "N2",
   370      "italic": true,
   371      "bold": false,
   372      "underline": false,
   373      "labelWidth": 0,
   374      "labelHeight": 0,
   375      "labelPosition": "",
   376      "labelPercentage": 0,
   377      "route": [
   378        {
   379          "x": 211,
   380          "y": 654
   381        },
   382        {
   383          "x": 211,
   384          "y": 694
   385        },
   386        {
   387          "x": 211,
   388          "y": 714
   389        },
   390        {
   391          "x": 211,
   392          "y": 754
   393        }
   394      ],
   395      "isCurve": true,
   396      "animated": false,
   397      "tooltip": "",
   398      "icon": null,
   399      "zIndex": 0
   400    }
   401  ],
   402  "root": {
   403    "id": "",
   404    "type": "",
   405    "pos": {
   406      "x": 0,
   407      "y": 0
   408    },
   409    "width": 0,
   410    "height": 0,
   411    "opacity": 0,
   412    "strokeDash": 0,
   413    "strokeWidth": 0,
   414    "borderRadius": 0,
   415    "fill": "N7",
   416    "stroke": "",
   417    "shadow": false,
   418    "3d": false,
   419    "multiple": false,
   420    "double-border": false,
   421    "tooltip": "",
   422    "link": "",
   423    "icon": null,
   424    "iconPosition": "",
   425    "blend": false,
   426    "fields": null,
   427    "methods": null,
   428    "columns": null,
   429    "label": "",
   430    "fontSize": 0,
   431    "fontFamily": "",
   432    "language": "",
   433    "color": "",
   434    "italic": false,
   435    "bold": false,
   436    "underline": false,
   437    "labelWidth": 0,
   438    "labelHeight": 0,
   439    "zIndex": 0,
   440    "level": 0
   441  }
   442}

View as plain text