Skip to content

Commit

Permalink
fix(shape): don't apply strokeDasharray on dottedtriangle highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed May 20, 2019
1 parent 751ab52 commit 6017018
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/GraphNode/shapes/_ShapeDottedTriangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import React from 'react';

import Shape, { curvedUnitPolygonPath } from './_Shape';

const renderTemplate = attrs => (
<path d={curvedUnitPolygonPath(3)} strokeDasharray="0.1, 0.05" {...attrs} />
);
const renderTemplate = (attrs, { allowStroke = true } = {}) =>
allowStroke ? (
<path d={curvedUnitPolygonPath(3)} strokeDasharray="0.1, 0.05" {...attrs} />
) : (
<path d={curvedUnitPolygonPath(3)} {...attrs} />
);

export default class ShapeDottedTriangle extends React.Component {
render() {
Expand Down

0 comments on commit 6017018

Please sign in to comment.