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

cleanup based on uglify feedback

This commit is contained in:
Pomax
2016-01-09 23:31:52 -08:00
parent b3da8f4f74
commit 6dffa0ff0f
16 changed files with 38 additions and 35233 deletions

View File

@@ -1,5 +1,4 @@
var React = require("react");
var ReactDOM = require("react-dom");
var chroma = require("chroma-js");
var fix = function(e) {
@@ -49,7 +48,7 @@ var Graphic = React.createClass({
redraw: function() { if (this.props.draw) { this.props.draw(this, this.curve); }},
render: function() {
var href = "data:text/plain," + this.props.code;
//var href = "data:text/plain," + this.props.code;
return (
<figure className={this.props.inline ? "inline": false}>
<canvas ref="canvas"
@@ -416,7 +415,7 @@ var Graphic = React.createClass({
drawCurve: function(curve, offset) {
offset = offset || { x:0, y:0 };
var p = curve.points, i;
var p = curve.points;
if (p.length <= 3 || 5 <= p.length) {
var points = curve.getLUT(100);