Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var _ = require('underscore');
var React = require('react');
var ReactART = require('react-art');
var Group = ReactART.Group;
var Path = ReactART.Path;
var Shape = ReactART.Shape;
var Surface = ReactART.Surface;
var Text = ReactART.Text;
var Pattern = ReactART.Pattern;
var circlePath = function(r) {
return new Path()
.moveTo(0, -r)
// Two arcs make a circle
.arcTo(0, r, r, r, true)
.arcTo(0, -r, r, r, true)
.close();
};
var linePath = function(x1, y1, x2, y2) {
return new Path()
.moveTo(x1, y1)
.lineTo(x2, y2);
};
var _ = require('underscore');
var React = require('react');
var ReactART = require('react-art');
var Group = ReactART.Group;
var Path = ReactART.Path;
var Shape = ReactART.Shape;
var Surface = ReactART.Surface;
var Text = ReactART.Text;
var Pattern = ReactART.Pattern;
var circlePath = function(r) {
return new Path()
.moveTo(0, -r)
// Two arcs make a circle
.arcTo(0, r, r, r, true)
.arcTo(0, -r, r, r, true)
.close();
};
var linePath = function(x1, y1, x2, y2) {
return new Path()
.moveTo(x1, y1)
.lineTo(x2, y2);