"use strict";
/* Copyright 2015 Bloomberg Finance L.P.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const base_1 = require("@jupyter-widgets/base");
const BaseModel_1 = require("./BaseModel");
const version_1 = require("./version");
const serialize = __importStar(require("./serialize"));
class SelectorModel extends BaseModel_1.BaseModel {
    defaults() {
        return Object.assign({}, BaseModel_1.BaseModel.prototype.defaults(), { _model_name: "SelectorModel", _model_module: "bqplot", _view_module: "bqplot", _model_module_version: version_1.semver_range, _view_module_version: version_1.semver_range, marks: [] });
    }
}
SelectorModel.serializers = Object.assign({}, BaseModel_1.BaseModel.serializers, { marks: { deserialize: base_1.unpack_models } });
exports.SelectorModel = SelectorModel;
class OneDSelectorModel extends SelectorModel {
    defaults() {
        return Object.assign({}, SelectorModel.prototype.defaults(), { _model_name: "OneDSelectorModel", scale: null });
    }
}
OneDSelectorModel.serializers = Object.assign({}, SelectorModel.serializers, { scale: { deserialize: base_1.unpack_models } });
exports.OneDSelectorModel = OneDSelectorModel;
class TwoDSelectorModel extends SelectorModel {
    defaults() {
        return Object.assign({}, SelectorModel.prototype.defaults(), { _model_name: "TwoDSelectorModel", x_scale: null, y_scale: null });
    }
}
TwoDSelectorModel.serializers = Object.assign({}, SelectorModel.serializers, { x_scale: { deserialize: base_1.unpack_models }, y_scale: { deserialize: base_1.unpack_models } });
exports.TwoDSelectorModel = TwoDSelectorModel;
class FastIntervalSelectorModel extends OneDSelectorModel {
    defaults() {
        return Object.assign({}, OneDSelectorModel.prototype.defaults(), { _model_name: "FastIntervalSelectorModel", _view_name: "FastIntervalSelector", selected: null, color: null, size: null });
    }
}
FastIntervalSelectorModel.serializers = Object.assign({}, OneDSelectorModel.serializers, { selected: serialize.array_or_json });
exports.FastIntervalSelectorModel = FastIntervalSelectorModel;
class IndexSelectorModel extends OneDSelectorModel {
    defaults() {
        return Object.assign({}, OneDSelectorModel.prototype.defaults(), { _model_name: "IndexSelectorModel", _view_name: "IndexSelector", selected: null, line_width: 2, color: null });
    }
}
IndexSelectorModel.serializers = Object.assign({}, OneDSelectorModel.serializers, { selected: serialize.array_or_json });
exports.IndexSelectorModel = IndexSelectorModel;
class BrushIntervalSelectorModel extends OneDSelectorModel {
    defaults() {
        return Object.assign({}, OneDSelectorModel.prototype.defaults(), { _model_name: "BrushIntervalSelectorModel", _view_name: "BrushIntervalSelector", brushing: false, selected: null, color: null, orientation: "horizontal" });
    }
}
BrushIntervalSelectorModel.serializers = Object.assign({}, OneDSelectorModel.serializers, { selected: serialize.array_or_json });
exports.BrushIntervalSelectorModel = BrushIntervalSelectorModel;
class BrushSelectorModel extends TwoDSelectorModel {
    defaults() {
        return Object.assign({}, TwoDSelectorModel.prototype.defaults(), { _model_name: "BrushSelectorModel", _view_name: "BrushSelector", clear: false, brushing: false, selected_x: null, selected_y: null, color: null });
    }
}
BrushSelectorModel.serializers = Object.assign({}, TwoDSelectorModel.serializers, { selected_x: serialize.array_or_json, selected_y: serialize.array_or_json });
exports.BrushSelectorModel = BrushSelectorModel;
class MultiSelectorModel extends OneDSelectorModel {
    defaults() {
        return Object.assign({}, OneDSelectorModel.prototype.defaults(), { _model_name: "MultiSelectorModel", _view_name: "MultiSelector", names: [], brushing: false, selected: {}, _selected: {}, show_names: true });
    }
}
exports.MultiSelectorModel = MultiSelectorModel;
class LassoSelectorModel extends TwoDSelectorModel {
    defaults() {
        return Object.assign({}, TwoDSelectorModel.prototype.defaults(), { _model_name: "LassoSelectorModel", _view_name: "LassoSelector", color: null });
    }
}
exports.LassoSelectorModel = LassoSelectorModel;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VsZWN0b3JNb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9TZWxlY3Rvck1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7OztHQWFHOzs7Ozs7Ozs7QUFFSCxnREFBc0Q7QUFDdEQsMkNBQXdDO0FBQ3hDLHVDQUF5QztBQUN6Qyx1REFBeUM7QUFFekMsTUFBYSxhQUFjLFNBQVEscUJBQVM7SUFFeEMsUUFBUTtRQUNKLHlCQUFXLHFCQUFTLENBQUMsU0FBUyxDQUFDLFFBQVEsRUFBRSxJQUNyQyxXQUFXLEVBQUUsZUFBZSxFQUM1QixhQUFhLEVBQUUsUUFBUSxFQUN2QixZQUFZLEVBQUUsUUFBUSxFQUN0QixxQkFBcUIsRUFBRSxzQkFBWSxFQUNuQyxvQkFBb0IsRUFBRSxzQkFBWSxFQUNsQyxLQUFLLEVBQUUsRUFBRSxJQUNYO0lBQ04sQ0FBQzs7QUFFTSx5QkFBVyxxQkFDWCxxQkFBUyxDQUFDLFdBQVcsSUFDeEIsS0FBSyxFQUFFLEVBQUUsV0FBVyxFQUFFLG9CQUFhLEVBQUUsSUFDeEM7QUFoQkwsc0NBaUJDO0FBRUQsTUFBYSxpQkFBa0IsU0FBUSxhQUFhO0lBRWhELFFBQVE7UUFDSix5QkFBVyxhQUFhLENBQUMsU0FBUyxDQUFDLFFBQVEsRUFBRSxJQUN6QyxXQUFXLEVBQUUsbUJBQW1CLEVBQ2hDLEtBQUssRUFBRSxJQUFJLElBQ2I7SUFDTixDQUFDOztBQUVNLDZCQUFXLHFCQUNYLGFBQWEsQ0FBQyxXQUFXLElBQz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