image-size.js 1.0 KB

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