hexo/node_modules/stylus/lib/functions/math-prop.js

16 lines
253 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
var nodes = require('../nodes');
/**
* Get Math `prop`.
*
* @param {String} prop
* @return {Unit}
* @api private
*/
function math(prop){
return new nodes.Unit(Math[prop.string]);
}
math.params = ['prop'];
module.exports = math;