Adding Box rendering component
This commit is contained in:
1 parent
a118519c3a
commit
fe714f2363
5 files changed
+148
-7
No files matched your search
+11
-3
@@ -6,12 +6,20 @@ const parse = expr => {
|
||||
type: 'SVG',
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
type: 'Box',
|
||||
props: {
|
||||
quoted: true
|
||||
theme: 'literal'
|
||||
},
|
||||
children: [
|
||||
`JS => ${ expr }`
|
||||
{
|
||||
type: 'Text',
|
||||
props: {
|
||||
quoted: true
|
||||
},
|
||||
children: [
|
||||
`JS => ${ expr }`
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
+11
-3
@@ -6,12 +6,20 @@ const parse = expr => {
|
||||
type: 'SVG',
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
type: 'Box',
|
||||
props: {
|
||||
quoted: true
|
||||
theme: 'literal'
|
||||
},
|
||||
children: [
|
||||
`PCRE => ${ expr }`
|
||||
{
|
||||
type: 'Text',
|
||||
props: {
|
||||
quoted: true
|
||||
},
|
||||
children: [
|
||||
`PCRE => ${ expr }`
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user