image-size.js 935 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var tslib_1 = require("tslib");
  4. var function_registry_1 = tslib_1.__importDefault(require("./../less/functions/function-registry"));
  5. exports.default = (function () {
  6. function imageSize() {
  7. throw {
  8. type: 'Runtime',
  9. message: 'Image size functions are not supported in browser version of less'
  10. };
  11. }
  12. var imageFunctions = {
  13. 'image-size': function (filePathNode) {
  14. imageSize(this, filePathNode);
  15. return -1;
  16. },
  17. 'image-width': function (filePathNode) {
  18. imageSize(this, filePathNode);
  19. return -1;
  20. },
  21. 'image-height': function (filePathNode) {
  22. imageSize(this, filePathNode);
  23. return -1;
  24. }
  25. };
  26. function_registry_1.default.addMultiple(imageFunctions);
  27. });
  28. //# sourceMappingURL=image-size.js.map