mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-19 04:16:21 +00:00
Adds node-shapes to the canvas
- circle - rect (w/ radius) - fluffy cloud shape - hexagons - stacks
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user