chore: add class border-radius testcase

This commit is contained in:
donglixiaoche 2023-03-06 18:51:04 +08:00
parent 22b14dcff7
commit 4dd974c6c1
No known key found for this signature in database
GPG key ID: F235CD35048B3752
5 changed files with 144 additions and 9 deletions

View file

@ -23,11 +23,22 @@ func testStable(t *testing.T) {
json: jsonb {constraint: unique}
last_updated: timestamp with time zone
style {
style: {
fill: red
border-radius: 10
}
}
b: {
shape: class
field: "[]string"
method(a uint64): (x, y int)
style: {
border-radius: 10
}
}
`,
},
{

View file

@ -8,7 +8,7 @@
"type": "sql_table",
"pos": {
"x": 0,
"y": 0
"y": 2
},
"width": 439,
"height": 180,
@ -158,6 +158,61 @@
"primaryAccentColor": "B2",
"secondaryAccentColor": "AA2",
"neutralAccentColor": "N2"
},
{
"id": "b",
"type": "class",
"pos": {
"x": 499,
"y": 0
},
"width": 407,
"height": 184,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 10,
"fill": "N1",
"stroke": "N7",
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": [
{
"name": "field",
"type": "[]string",
"visibility": "public"
}
],
"methods": [
{
"name": "method(a uint64)",
"return": "(x, y int)",
"visibility": "public"
}
],
"columns": null,
"label": "b",
"fontSize": 20,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 11,
"labelHeight": 31,
"zIndex": 0,
"level": 1,
"primaryAccentColor": "B2",
"secondaryAccentColor": "AA2",
"neutralAccentColor": "N2"
}
],
"connections": [],

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 331 KiB

After

Width:  |  Height:  |  Size: 513 KiB

View file

@ -8,7 +8,7 @@
"type": "sql_table",
"pos": {
"x": 12,
"y": 12
"y": 14
},
"width": 439,
"height": 180,
@ -158,6 +158,61 @@
"primaryAccentColor": "B2",
"secondaryAccentColor": "AA2",
"neutralAccentColor": "N2"
},
{
"id": "b",
"type": "class",
"pos": {
"x": 471,
"y": 12
},
"width": 407,
"height": 184,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 10,
"fill": "N1",
"stroke": "N7",
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": [
{
"name": "field",
"type": "[]string",
"visibility": "public"
}
],
"methods": [
{
"name": "method(a uint64)",
"return": "(x, y int)",
"visibility": "public"
}
],
"columns": null,
"label": "b",
"fontSize": 20,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 11,
"labelHeight": 31,
"zIndex": 0,
"level": 1,
"primaryAccentColor": "B2",
"secondaryAccentColor": "AA2",
"neutralAccentColor": "N2"
}
],
"connections": [],

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 331 KiB

After

Width:  |  Height:  |  Size: 513 KiB