UNPKG

shape-points

Version:

Generate points for simple shapes and curves: arcs, rectangles, rounded rectangles, circles, ellipses, bezierCurveTo, bezierCurveThrough (i.e., bezier curves through specific points)

16 lines (15 loc) 435 B
// shows the code in the demo module.exports = function highlight() { var client = new XMLHttpRequest(); client.open('GET', 'code.js'); client.onreadystatechange = function() { var code = document.getElementById('code'); code.innerHTML = client.responseText; require('highlight.js').highlightBlock(code); }; client.send(); }; // for eslint /* globals window, XMLHttpRequest, document */