2022-11-03 13:54:49 +00:00
|
|
|
{
|
|
|
|
|
"graph": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"name": "",
|
2023-02-27 22:33:33 +00:00
|
|
|
"isFolderOnly": false,
|
2022-11-03 13:54:49 +00:00
|
|
|
"ast": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-8:0:113",
|
2022-11-03 13:54:49 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-7:1:112",
|
2022-11-03 13:54:49 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "IUserProperties",
|
|
|
|
|
"raw_string": "IUserProperties"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:17:17-7:0:111",
|
2022-11-03 13:54:49 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:2:21-1:18:37",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:2:21-1:7:26",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:2:21-1:7:26",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "shape",
|
|
|
|
|
"raw_string": "shape"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,1:9:28-1:18:37",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "sql_table",
|
|
|
|
|
"raw_string": "sql_table"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:2:40-2:19:57",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:2:40-2:11:49",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:2:40-2:11:49",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "GetType()",
|
|
|
|
|
"raw_string": "GetType()"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,2:13:51-2:19:57",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "string",
|
|
|
|
|
"raw_string": "string"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:2:60-6:3:110",
|
2022-11-03 13:54:49 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:2:60-3:7:65",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:2:60-3:7:65",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "style",
|
|
|
|
|
"raw_string": "style"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,3:9:67-6:2:109",
|
2022-11-03 13:54:49 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:4:73-4:16:85",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:4:73-4:11:80",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:4:73-4:11:80",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "opacity",
|
|
|
|
|
"raw_string": "opacity"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"number": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,4:13:82-4:16:85",
|
|
|
|
|
"raw": "0.4",
|
|
|
|
|
"value": "2/5"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:4:90-5:20:106",
|
2022-11-03 13:54:49 +00:00
|
|
|
"key": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:4:90-5:14:100",
|
2022-11-03 13:54:49 +00:00
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:4:90-5:14:100",
|
2022-11-03 13:54:49 +00:00
|
|
|
"value": [
|
|
|
|
|
{
|
2023-01-24 11:09:40 +00:00
|
|
|
"string": "font-color",
|
|
|
|
|
"raw_string": "font-color"
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,5:16:102-5:20:106",
|
2022-11-03 13:54:49 +00:00
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "blue",
|
|
|
|
|
"raw_string": "blue"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"root": {
|
|
|
|
|
"id": "",
|
|
|
|
|
"id_val": "",
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": ""
|
2022-11-29 05:01:42 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
|
|
|
|
"constraint": {
|
|
|
|
|
"value": ""
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
2023-01-24 11:09:40 +00:00
|
|
|
"edges": null,
|
2022-11-03 13:54:49 +00:00
|
|
|
"objects": [
|
|
|
|
|
{
|
|
|
|
|
"id": "IUserProperties",
|
|
|
|
|
"id_val": "IUserProperties",
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/table_style_map.d2,0:0:0-0:15:15",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "IUserProperties",
|
|
|
|
|
"raw_string": "IUserProperties"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
2023-01-24 11:09:40 +00:00
|
|
|
"map_key_edge_index": -1
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"sql_table": {
|
|
|
|
|
"columns": [
|
|
|
|
|
{
|
2022-12-20 01:46:33 +00:00
|
|
|
"name": {
|
|
|
|
|
"label": "GetType()",
|
|
|
|
|
"fontSize": 0,
|
|
|
|
|
"fontFamily": "",
|
|
|
|
|
"language": "",
|
|
|
|
|
"color": "",
|
|
|
|
|
"italic": false,
|
|
|
|
|
"bold": false,
|
|
|
|
|
"underline": false,
|
|
|
|
|
"labelWidth": 0,
|
|
|
|
|
"labelHeight": 0
|
|
|
|
|
},
|
|
|
|
|
"type": {
|
|
|
|
|
"label": "string",
|
|
|
|
|
"fontSize": 0,
|
|
|
|
|
"fontFamily": "",
|
|
|
|
|
"language": "",
|
|
|
|
|
"color": "",
|
|
|
|
|
"italic": false,
|
|
|
|
|
"bold": false,
|
|
|
|
|
"underline": false,
|
|
|
|
|
"labelWidth": 0,
|
|
|
|
|
"labelHeight": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"constraint": "",
|
|
|
|
|
"reference": ""
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "IUserProperties"
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {
|
|
|
|
|
"opacity": {
|
|
|
|
|
"value": "0.4"
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
|
|
|
|
"fontColor": {
|
|
|
|
|
"value": "blue"
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": "sql_table"
|
2022-11-29 05:01:42 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
|
|
|
|
"constraint": {
|
|
|
|
|
"value": ""
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"err": null
|
|
|
|
|
}
|