color-math
Version:
expressions to manipulate colors
38 lines (27 loc) • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _LocPos = _interopRequireDefault(require("./LocPos"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
var Loc =
/*#__PURE__*/
function () {
function Loc(loc) {
_classCallCheck(this, Loc);
this.start = new _LocPos["default"](loc.first_line, loc.first_column, loc.range[0]);
this.end = new _LocPos["default"](loc.last_line, loc.last_column, loc.range[1]);
}
_createClass(Loc, [{
key: "toString",
value: function toString() {
return "".concat(this.start, "..").concat(this.end);
}
}]);
return Loc;
}();
exports["default"] = Loc;