1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
19 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
20 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
21 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
22 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
23 | };
|
24 | Object.defineProperty(exports, "__esModule", { value: true });
|
25 | exports.SelectionService = void 0;
|
26 | const inversify_1 = require("inversify");
|
27 | const event_1 = require("../common/event");
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | let SelectionService = class SelectionService {
|
33 | constructor() {
|
34 | this.onSelectionChangedEmitter = new event_1.Emitter();
|
35 | this.onSelectionChanged = this.onSelectionChangedEmitter.event;
|
36 | }
|
37 | get selection() {
|
38 | return this.currentSelection;
|
39 | }
|
40 | set selection(selection) {
|
41 | this.currentSelection = selection;
|
42 | this.onSelectionChangedEmitter.fire(this.currentSelection);
|
43 | }
|
44 | };
|
45 | SelectionService = __decorate([
|
46 | (0, inversify_1.injectable)()
|
47 | ], SelectionService);
|
48 | exports.SelectionService = SelectionService;
|
49 |
|
\ | No newline at end of file |