regexper-static/src/syntax/pcre.js
Jeff Avallone b299d32fc3 Adding a layout pass to SVG image components
text nodes are the only elements that need to be "measured". The
dimensions of all other image components can be determined based on the
dimensions of their children. This adds a pre-rendering pass to work out
dimensions so multiple renders don't need to happen
2019-01-26 17:25:38 -05:00

26 lines
342 B
JavaScript

import Render from 'components/Render';
import layout from 'layout';
const parse = expr => {
return {
type: 'SVG',
children: [
{
type: 'Text',
props: {
quoted: true
},
children: [
`PCRE => ${ expr }`
]
}
]
};
};
export {
parse,
layout,
Render
};