1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-30 19:50:01 +02:00

curve/curve intersections

This commit is contained in:
Pomax
2016-01-05 23:08:39 -08:00
parent 60dba38725
commit f5b75693e0
6 changed files with 602 additions and 20 deletions

View File

@@ -43,6 +43,7 @@ var Graphic = React.createClass({
getPlayInterval: function() { return this.playinterval; },
play: function() { this.playing = true; this.animate(); },
pause: function() { this.playing = false; },
redraw: function() { if (this.props.draw) { this.props.draw(this, this.curve); }},
render: function() {
var href = "data:text/plain," + this.props.code;
@@ -58,7 +59,7 @@ var Graphic = React.createClass({
onKeyDown={this.onKeyDown}
onKeyPress={this.onKeyPress}
/>
<figcaption>{this.props.title}</figcaption>
<figcaption>{this.props.title} {this.props.children}</figcaption>
</figure>
);
},