lepu-test-platform-web/node_modules/less/lib/less-browser/image-size.js

30 lines
1.0 KiB
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var function_registry_1 = __importDefault(require("./../less/functions/function-registry"));
exports.default = (function () {
function imageSize() {
throw {
type: 'Runtime',
message: 'Image size functions are not supported in browser version of less'
};
}
var imageFunctions = {
'image-size': function (filePathNode) {
imageSize(this, filePathNode);
return -1;
},
'image-width': function (filePathNode) {
imageSize(this, filePathNode);
return -1;
},
'image-height': function (filePathNode) {
imageSize(this, filePathNode);
return -1;
}
};
function_registry_1.default.addMultiple(imageFunctions);
});
//# sourceMappingURL=image-size.js.map