Updating demos

This commit is contained in:
Jeff Avallone 2019-01-29 17:48:14 -05:00
parent 97509773af
commit 67ca83ff16
2 changed files with 72 additions and 34 deletions

View File

@ -17,27 +17,46 @@ const parse = expr => {
{ {
type: 'Box', type: 'Box',
props: { props: {
theme: 'literal' theme: 'capture',
label: 'Demo rendering',
useAnchors: true
}, },
children: [ children: [
{ {
type: 'Text', type: 'HorizontalLayout',
props: {
withConnectors: true
},
children: [ children: [
'JS' {
] type: 'Box',
} props: {
] theme: 'literal'
}, },
{ children: [
type: 'Box', {
props: { type: 'Text',
theme: 'literal' children: [
}, 'JS'
children: [ ]
{ }
type: 'Text', ]
children: [ },
expr {
type: 'Box',
props: {
theme: 'literal',
label: 'Expression'
},
children: [
{
type: 'Text',
children: [
expr
]
}
]
}
] ]
} }
] ]

View File

@ -17,27 +17,46 @@ const parse = expr => {
{ {
type: 'Box', type: 'Box',
props: { props: {
theme: 'literal' theme: 'capture',
label: 'Demo rendering',
useAnchors: true
}, },
children: [ children: [
{ {
type: 'Text', type: 'HorizontalLayout',
props: {
withConnectors: true
},
children: [ children: [
'PCRE' {
] type: 'Box',
} props: {
] theme: 'literal'
}, },
{ children: [
type: 'Box', {
props: { type: 'Text',
theme: 'literal' children: [
}, 'PCRE'
children: [ ]
{ }
type: 'Text', ]
children: [ },
expr {
type: 'Box',
props: {
theme: 'literal',
label: 'Expression'
},
children: [
{
type: 'Text',
children: [
expr
]
}
]
}
] ]
} }
] ]