mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-30 11:40:27 +02:00
index files are mechanical, so now they're script-generated
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("abc", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("aligning", handler);
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("arcapproximation", handler));
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("arclength", handler);
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("arclengthapprox", handler));
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("boundingbox", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("bsplined", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("bsplines", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("canonical", handler);
|
@@ -1,2 +0,0 @@
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("catmullconv");
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("catmullmoulding", handler));
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("circles", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("circles_cubic", handler);
|
@@ -1,43 +0,0 @@
|
||||
var React = require("react");
|
||||
|
||||
var style = {
|
||||
width: 'calc(960px + 2em)',
|
||||
marginTop: 0,
|
||||
borderTop: '1px solid rgba(255, 0, 0, 0.5)',
|
||||
paddingTop: '3em'
|
||||
};
|
||||
|
||||
var sectionHTML = (
|
||||
<section id="comments" style={style}>
|
||||
<h2>Comments and questions</h2>
|
||||
|
||||
<p>If you enjoyed this book, or you simply found it useful for something you were trying to
|
||||
get done, and you were wondering how to let me know you appreciated this book, you can
|
||||
always <a className="link" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QPRDLNGDANJSW"
|
||||
>buy me a coffee</a>, however much a coffee is where you live. This work has grown over the
|
||||
years, from a small primer to a 70ish print-page-equivalent reader on the subject of Bézier
|
||||
curves, and a lot of coffee went into the making of it. I don't regret a minute I spent
|
||||
on writing it, but I can always do with some more coffee to keep on writing!</p>
|
||||
|
||||
<div id="disqus_thread"/>
|
||||
</section>
|
||||
);
|
||||
|
||||
var CommentsAndQuestions = React.createClass({
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
title: "Comments and Questions"
|
||||
};
|
||||
},
|
||||
componentDidMount: function() {
|
||||
if (typeof document !== "undefined") {
|
||||
var disqusScript = document.createElement("script");
|
||||
disqusScript.setAttribute("async", "async");
|
||||
disqusScript.src = "lib/site/disqus.js";
|
||||
document.head.appendChild(disqusScript);
|
||||
}
|
||||
},
|
||||
render: function() { return sectionHTML; }
|
||||
});
|
||||
|
||||
module.exports = CommentsAndQuestions;
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("components", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("control", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("curveintersection", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("decasteljau", handler);
|
@@ -1,2 +0,0 @@
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("derivatives");
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("explanation", handler));
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("extended", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("extremities", handler);
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("flattening", handler));
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("graduatedoffset", handler));
|
@@ -1,59 +0,0 @@
|
||||
/**
|
||||
* This is an ordered list of all sections for the article
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = {
|
||||
preface: require("./preface"),
|
||||
introduction: require("./introduction"),
|
||||
whatis: require("./whatis"),
|
||||
explanation: require("./explanation"),
|
||||
control: require("./control"),
|
||||
extended: require("./extended"),
|
||||
|
||||
matrix: require("./matrix"),
|
||||
decasteljau: require("./decasteljau"),
|
||||
flattening: require("./flattening"),
|
||||
splitting: require("./splitting"),
|
||||
matrixsplit: require("./matrixsplit"),
|
||||
reordering: require("./reordering"),
|
||||
|
||||
derivatives: require("./derivatives"),
|
||||
pointvectors: require("./pointvectors"),
|
||||
components: require("./components"),
|
||||
extremities: require("./extremities"),
|
||||
boundingbox: require("./boundingbox"),
|
||||
aligning: require("./aligning"),
|
||||
tightbounds: require("./tightbounds"),
|
||||
inflections: require("./inflections"),
|
||||
canonical: require("./canonical"),
|
||||
|
||||
arclength: require("./arclength"),
|
||||
arclengthapprox: require("./arclengthapprox"),
|
||||
tracing: require("./tracing"),
|
||||
|
||||
intersections: require("./intersections"),
|
||||
curveintersection: require("./curveintersection"),
|
||||
|
||||
abc: require("./abc"),
|
||||
moulding: require("./moulding"),
|
||||
pointcurves: require("./pointcurves"),
|
||||
|
||||
catmullconv: require("./catmullconv"),
|
||||
catmullmoulding: require("./catmullmoulding"),
|
||||
|
||||
polybezier: require("./polybezier"),
|
||||
|
||||
shapes: require("./shapes"),
|
||||
|
||||
projections: require("./projections"),
|
||||
offsetting: require("./offsetting"),
|
||||
graduatedoffset: require("./graduatedoffset"),
|
||||
|
||||
circles: require("./circles"),
|
||||
circles_cubic: require("./circles_cubic"),
|
||||
arcapproximation: require("./arcapproximation"),
|
||||
|
||||
bsplines: require("./bsplines"),
|
||||
|
||||
comments: require("./comments")
|
||||
};
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("inflections", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("intersections", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("introduction", handler);
|
@@ -1,2 +0,0 @@
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("matrix");
|
@@ -1,2 +0,0 @@
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("matrixsplit");
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("moulding", handler);
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("offsetting", handler));
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("pointcurves", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("pointvectors", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("polybezier", handler);
|
@@ -1,2 +0,0 @@
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("preface");
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("projections", handler);
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("reordering", handler));
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("shapes", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("splitting", handler);
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("tightbounds", handler);
|
@@ -1,4 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
var keyHandling = require("../../decorators/keyhandling-decorator.jsx");
|
||||
module.exports = keyHandling(generateBase("tracing", handler));
|
@@ -1,3 +0,0 @@
|
||||
var handler = require("./handler.js");
|
||||
var generateBase = require("../../generate-base");
|
||||
module.exports = generateBase("whatis", handler);
|
Reference in New Issue
Block a user