Files
weave-scope/client/app/scripts/charts/node-shape-stack.js
Simon Howe a34d9c97b8 Adds node-shapes to the canvas
- circle
- rect (w/ radius)
- fluffy cloud shape
- hexagons
- stacks
2016-02-22 12:42:36 +01:00

20 lines
476 B
JavaScript

import React from 'react';
import _ from 'lodash';
export default function NodeShapeCircleStack(props) {
const propsNoHighlight = _.clone(props);
const Shape = props.shape;
delete propsNoHighlight.highlighted;
return (
<g className="stack">
<g transform="translate(0, 4)">
<Shape {...propsNoHighlight} />
</g>
<Shape {...props} />
<g transform="translate(0, -4)">
<Shape {...propsNoHighlight} />
</g>
</g>
);
}