GT2/GT2-iOS/node_modules/art/modes/current.js

17 lines
358 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
function warning(){
throw new Error('You must require a mode before requiring anything else.');
}
exports.Surface = warning;
exports.Path = warning;
exports.Shape = warning;
exports.Group = warning;
exports.ClippingRectangle = warning;
exports.Text = warning;
exports.setCurrent = function(mode){
for (var key in mode){
exports[key] = mode[key];
}
};