import {mapChildren} from '../utils'; import {DShape} from './shapes/shape'; import {DLayout} from './layouts/layout'; import {getRestProps} from '../utils'; const {children, className, style} = self.get();
{{ mapChildren(children, vNode => { if (vNode.tag) { const proto = vNode.tag.prototype; if (proto instanceof DShape || proto instanceof DLayout) { vNode.props = { ...vNode.props, _diagram: self, _parent: self, }; } } return vNode; }) }}