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';
8
8
9
9
import ShapeCircle from './shapes/_ShapeCircle' ;
10
10
import ShapeTriangle from './shapes/_ShapeTriangle' ;
11
+ import ShapeDottedTriangle from './shapes/_ShapeDottedTriangle' ;
11
12
import ShapeSquare from './shapes/_ShapeSquare' ;
12
13
import ShapePentagon from './shapes/_ShapePentagon' ;
13
14
import ShapeHexagon from './shapes/_ShapeHexagon' ;
@@ -25,6 +26,7 @@ export const shapes = {
25
26
cloud : ShapeCloud ,
26
27
cylinder : ShapeCylinder ,
27
28
dottedcylinder : ShapeDottedCylinder ,
29
+ dottedtriangle : ShapeDottedTriangle ,
28
30
heptagon : ShapeHeptagon ,
29
31
hexagon : ShapeHexagon ,
30
32
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