Adding HorizontalLayout
This commit is contained in:
+24
-5
@@ -6,18 +6,37 @@ const parse = expr => {
|
||||
type: 'SVG',
|
||||
children: [
|
||||
{
|
||||
type: 'Box',
|
||||
type: 'HorizontalLayout',
|
||||
props: {
|
||||
theme: 'literal'
|
||||
withConnectors: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
type: 'Box',
|
||||
props: {
|
||||
quoted: true
|
||||
theme: 'literal'
|
||||
},
|
||||
children: [
|
||||
`JS => ${ expr }`
|
||||
{
|
||||
type: 'Text',
|
||||
children: [
|
||||
'JS'
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'Box',
|
||||
props: {
|
||||
theme: 'literal'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
children: [
|
||||
expr
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
+24
-5
@@ -6,18 +6,37 @@ const parse = expr => {
|
||||
type: 'SVG',
|
||||
children: [
|
||||
{
|
||||
type: 'Box',
|
||||
type: 'HorizontalLayout',
|
||||
props: {
|
||||
theme: 'literal'
|
||||
withConnectors: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
type: 'Box',
|
||||
props: {
|
||||
quoted: true
|
||||
theme: 'literal'
|
||||
},
|
||||
children: [
|
||||
`PCRE => ${ expr }`
|
||||
{
|
||||
type: 'Text',
|
||||
children: [
|
||||
'PCRE'
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'Box',
|
||||
props: {
|
||||
theme: 'literal'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
children: [
|
||||
expr
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user