1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-22 08:13:51 +02:00

incomplete gfx-api liftout

This commit is contained in:
Pomax
2017-03-31 07:51:53 -07:00
parent 7140fe7ad7
commit f4861ccacc
7 changed files with 99409 additions and 66 deletions

View File

@@ -52,9 +52,11 @@ var baseClass = {
}
};
// For some reason we can copy from gfx into base but
// not the other way around, while preserving context.
var gfxObject = require("./gfx-api");
Object.keys(baseClass).forEach(fname => {
gfxObject[fname] = baseClass[fname];
Object.keys(gfxObject).forEach(fname => {
baseClass[fname] = gfxObject[fname];
});
module.exports = React.createClass(gfxObject);
module.exports = React.createClass(baseClass);