Files
yoga/java/css-layout.js

30 lines
956 B
JavaScript
Raw Normal View History

2015-02-07 00:01:35 -05:00
// UMD (Universal Module Definition)
// See https://github.com/umdjs/umd for reference
//
// This file uses the following specific UMD implementation:
2016-02-04 23:31:16 -08:00
// https://github.com/umdjs/umd/blob/master/templates/returnExports.js
(function(root, factory) {
2015-02-07 00:01:35 -05:00
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
// Browser globals (root is window)
root.computeLayout = factory();
2015-02-07 00:01:35 -05:00
}
}(this, function() {
// @@include('./Layout.js')
return function(node) {
/*eslint-disable */
// disabling ESLint because this code relies on the above include
computeLayout.fillNodes(node);
computeLayout.computeLayout(node);
/*eslint-enable */
};
}));