Skip to content

Commit 9815c79

Browse files
committed
Added the ability to do Dashed Lines
1 parent cb98c95 commit 9815c79

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ReactART.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,17 @@ var RenderableMixin = merge(NodeMixin, {
467467
oldProps.stroke !== props.stroke ||
468468
oldProps.strokeWidth !== props.strokeWidth ||
469469
oldProps.strokeCap !== props.strokeCap ||
470-
oldProps.strokeJoin !== props.strokeJoin
470+
oldProps.strokeJoin !== props.strokeJoin ||
471+
// TODO: Consider a deep check of stokeDash.
472+
// This may benefit the VML version in IE.
473+
oldProps.strokeDash !== props.strokeDash
471474
) {
472475
this.node.stroke(
473476
props.stroke,
474477
props.strokeWidth,
475478
props.strokeCap,
476-
props.strokeJoin
479+
props.strokeJoin,
480+
props.strokeDash
477481
);
478482
}
479483
this.applyNodeProps(oldProps, props);

0 commit comments

Comments
 (0)