File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import MatchedText from '../MatchedText';
88
99import ShapeCircle from './shapes/_ShapeCircle' ;
1010import ShapeTriangle from './shapes/_ShapeTriangle' ;
11+ import ShapeDottedTriangle from './shapes/_ShapeDottedTriangle' ;
1112import ShapeSquare from './shapes/_ShapeSquare' ;
1213import ShapePentagon from './shapes/_ShapePentagon' ;
1314import ShapeHexagon from './shapes/_ShapeHexagon' ;
@@ -25,6 +26,7 @@ export const shapes = {
2526 cloud : ShapeCloud ,
2627 cylinder : ShapeCylinder ,
2728 dottedcylinder : ShapeDottedCylinder ,
29+ dottedtriangle : ShapeDottedTriangle ,
2830 heptagon : ShapeHeptagon ,
2931 hexagon : ShapeHexagon ,
3032 octagon : ShapeOctagon ,
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ import Shape , { curvedUnitPolygonPath } from './_Shape' ;
4+
5+ const renderTemplate = attrs => (
6+ < path d = { curvedUnitPolygonPath ( 3 ) } strokeDasharray = "0.1, 0.05" { ...attrs } />
7+ ) ;
8+
9+ export default class ShapeDottedTriangle extends React . Component {
10+ render ( ) {
11+ return < Shape renderTemplate = { renderTemplate } { ...this . props } /> ;
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments