Adding HorizontalLayout

This commit is contained in:
Jeff Avallone
2019-01-28 18:27:40 -05:00
parent 4f1ad26635
commit 4e27c4ef87
5 changed files with 146 additions and 11 deletions
+24 -5
View File
@@ -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
View File
@@ -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
]
}
]
}
]