UNPKG

item-selection

Version:
41 lines (31 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = mutableItemSelection; exports.MutableItemSelection = void 0; var _immutable = require("./immutable"); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } var MutableItemSelection = /*#__PURE__*/ function (_ItemSelection) { _inheritsLoose(MutableItemSelection, _ItemSelection); function MutableItemSelection() { return _ItemSelection.apply(this, arguments) || this; } var _proto = MutableItemSelection.prototype; _proto.set = function set(selection, lastIndex) { this.selection = selection; this.lastIndex = lastIndex; return this; }; return MutableItemSelection; }(_immutable.ItemSelection); exports.MutableItemSelection = MutableItemSelection; function mutableItemSelection(items, selection, lastIndex) { return new MutableItemSelection(items, selection, lastIndex); }