qwc2 2025.10.14 → 2025.10.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/IdentifyViewer.js +404 -314
- package/components/MapSelection.js +1 -1
- package/components/map3d/Map3D.js +1 -1
- package/components/style/App.css +4 -0
- package/components/style/AttributeTableWidget.css +1 -0
- package/components/style/IdentifyViewer.css +51 -80
- package/components/widgets/NavBar.js +2 -2
- package/components/widgets/style/NavBar.css +0 -1
- package/icons/eye-slash.svg +138 -0
- package/icons/pin.svg +41 -0
- package/icons/unpin.svg +41 -0
- package/package.json +1 -1
- package/plugins/HeightProfile.js +7 -2
- package/plugins/Identify.js +5 -4
- package/static/translations/bg-BG.json +3 -1
- package/static/translations/ca-ES.json +3 -1
- package/static/translations/cs-CZ.json +2 -0
- package/static/translations/de-CH.json +4 -2
- package/static/translations/de-DE.json +4 -2
- package/static/translations/en-US.json +3 -1
- package/static/translations/es-ES.json +2 -0
- package/static/translations/fi-FI.json +2 -0
- package/static/translations/fr-FR.json +3 -1
- package/static/translations/hu-HU.json +2 -0
- package/static/translations/it-IT.json +3 -1
- package/static/translations/ja-JP.json +3 -1
- package/static/translations/nl-NL.json +2 -0
- package/static/translations/no-NO.json +2 -0
- package/static/translations/pl-PL.json +2 -0
- package/static/translations/pt-BR.json +2 -0
- package/static/translations/pt-PT.json +2 -0
- package/static/translations/ro-RO.json +2 -0
- package/static/translations/ru-RU.json +2 -0
- package/static/translations/sv-SE.json +2 -0
- package/static/translations/tr-TR.json +2 -0
- package/static/translations/tsconfig.json +2 -0
- package/static/translations/uk-UA.json +2 -0
- package/utils/MiscUtils.js +53 -0
|
@@ -244,16 +244,18 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "Aggregierter Bericht",
|
|
246
246
|
"clipboard": "Nach Zwischenablage kopieren",
|
|
247
|
+
"comparing": "Vergleich von {0} Objekte",
|
|
247
248
|
"download": "Herunterladen",
|
|
248
249
|
"export": "Exportieren",
|
|
249
250
|
"featureReport": "Objektblatt",
|
|
250
|
-
"featurecount": "
|
|
251
|
+
"featurecount": "{0} Objekt(e)",
|
|
251
252
|
"layerall": "Alle Ebenen",
|
|
252
253
|
"link": "Link",
|
|
253
254
|
"noattributes": "Keine Attribute",
|
|
254
|
-
"noresults": "Keine
|
|
255
|
+
"noresults": "Keine Treffer an der ausgewählten Position",
|
|
255
256
|
"querying": "Objekte werden abgefragt...",
|
|
256
257
|
"reportfail": "Bericht konnt nicht erstellt werden",
|
|
258
|
+
"results": "Ergebnisse",
|
|
257
259
|
"selectreport": "Bericht auswählen...",
|
|
258
260
|
"title": "Objektinformationen"
|
|
259
261
|
},
|
|
@@ -244,16 +244,18 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "Aggregated report",
|
|
246
246
|
"clipboard": "Copy to clipboard",
|
|
247
|
+
"comparing": "Comparing {0} features",
|
|
247
248
|
"download": "Download",
|
|
248
249
|
"export": "Export",
|
|
249
250
|
"featureReport": "Feature report",
|
|
250
|
-
"featurecount": "
|
|
251
|
+
"featurecount": "{0} feature(s)",
|
|
251
252
|
"layerall": "All layers",
|
|
252
253
|
"link": "Link",
|
|
253
254
|
"noattributes": "No attributes",
|
|
254
255
|
"noresults": "No information available for the selected point",
|
|
255
256
|
"querying": "Querying...",
|
|
256
257
|
"reportfail": "Failed to generate report",
|
|
258
|
+
"results": "Results",
|
|
257
259
|
"selectreport": "Select report..",
|
|
258
260
|
"title": "Feature Info"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "Informe agregado",
|
|
246
246
|
"clipboard": "Copiar al portapapeles",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "Descargar",
|
|
248
249
|
"export": "Exportar",
|
|
249
250
|
"featureReport": "Informe del elemento",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Sin información disponible sobre el punto seleccionado",
|
|
255
256
|
"querying": "Consultando...",
|
|
256
257
|
"reportfail": "No se pudo generar el informe",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "Seleccionar informe...",
|
|
258
260
|
"title": "Información del elemento"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Vienti",
|
|
249
250
|
"featureReport": "Ominaisuustietoraportti",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Valitulla pisteellä ei ole informaatiota",
|
|
255
256
|
"querying": "Kysely käynnissä...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Ominaisuustiedot"
|
|
259
261
|
},
|
|
@@ -244,16 +244,18 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "Rapport agrégé",
|
|
246
246
|
"clipboard": "Copier dans le presse-papiers",
|
|
247
|
+
"comparing": "Comparison de {0} objets",
|
|
247
248
|
"download": "Télécharger",
|
|
248
249
|
"export": "Exporter",
|
|
249
250
|
"featureReport": "Données de l'objet",
|
|
250
|
-
"featurecount": "
|
|
251
|
+
"featurecount": "{0} élément(s)",
|
|
251
252
|
"layerall": "Toutes les couches",
|
|
252
253
|
"link": "Lien",
|
|
253
254
|
"noattributes": "Pas d'attribut",
|
|
254
255
|
"noresults": "Pas de résultats pour la position sélectionnée",
|
|
255
256
|
"querying": "Identification en cours...",
|
|
256
257
|
"reportfail": "Le rapport n'a pas été généré",
|
|
258
|
+
"results": "Résultats",
|
|
257
259
|
"selectreport": "Selectionner rapport...",
|
|
258
260
|
"title": "Informations sur l'objet"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Exportálás",
|
|
249
250
|
"featureReport": "Lekérdezés eredménye",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Nincs információ a kiválasztott pontról",
|
|
255
256
|
"querying": "Lekérdezés...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Lekérdezés információ"
|
|
259
261
|
},
|
|
@@ -244,16 +244,18 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "Rapporto aggregato",
|
|
246
246
|
"clipboard": "Copia negli appunti",
|
|
247
|
+
"comparing": "Confronto di {0} oggetti",
|
|
247
248
|
"download": "Scarica",
|
|
248
249
|
"export": "Esporta",
|
|
249
250
|
"featureReport": "Oggetto formulario",
|
|
250
|
-
"featurecount": "
|
|
251
|
+
"featurecount": "{0} oggetti",
|
|
251
252
|
"layerall": "Tutti i livelli",
|
|
252
253
|
"link": "Link",
|
|
253
254
|
"noattributes": "Nessun attributo",
|
|
254
255
|
"noresults": "Nessun risultato",
|
|
255
256
|
"querying": "Caricando...",
|
|
256
257
|
"reportfail": "Errore nella generazione del rapporto",
|
|
258
|
+
"results": "Risultati",
|
|
257
259
|
"selectreport": "Seleziona rapporto...",
|
|
258
260
|
"title": "Titolo"
|
|
259
261
|
},
|
|
@@ -244,16 +244,18 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "集合レポート",
|
|
246
246
|
"clipboard": "クリップボードにコピー",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "ダウンロード",
|
|
248
249
|
"export": "エクスポート",
|
|
249
250
|
"featureReport": "地物レポート",
|
|
250
|
-
"featurecount": "
|
|
251
|
+
"featurecount": "",
|
|
251
252
|
"layerall": "全てのレイヤ",
|
|
252
253
|
"link": "リンク",
|
|
253
254
|
"noattributes": "属性無し",
|
|
254
255
|
"noresults": "選択された点には情報がありません",
|
|
255
256
|
"querying": "検索中...",
|
|
256
257
|
"reportfail": "レポートを生成することが出来ませんでした",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "レポートを選択...",
|
|
258
260
|
"title": "地物情報"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "Kopiëren naar klembord",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Exporteren",
|
|
249
250
|
"featureReport": "Rapport",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Geen informatie beschikbaar voor het aangewezen punt",
|
|
255
256
|
"querying": "Zoeken...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Objectgegevens"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Eksporter",
|
|
249
250
|
"featureReport": "Objektrapport",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Ingen informasjon for valgt punkt",
|
|
255
256
|
"querying": "Søker...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Objektinformasjon"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Eksport",
|
|
249
250
|
"featureReport": "Feature report",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Brak dostępnych danych dla wybranego punktu",
|
|
255
256
|
"querying": "Przetwarzam zapytanie...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Feature Info"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Exportação",
|
|
249
250
|
"featureReport": "Relatório de recurso",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Nenhuma informação disponível para o ponto selecionado",
|
|
255
256
|
"querying": "Consultando...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Informação do recurso"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "Área de Transferência",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Exportar",
|
|
249
250
|
"featureReport": "Relatório de Recurso",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Nenhuma informação disponível para o ponto selecionado",
|
|
255
256
|
"querying": "A consultar...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Informações do Recurso"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "Copiere în clipboard",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Export",
|
|
249
250
|
"featureReport": "Raport obiect spațial",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Nu există informații în punctul selectat",
|
|
255
256
|
"querying": "Interogare...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Informații obiect spațial"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Экспорт",
|
|
249
250
|
"featureReport": "Отчёт об объекте",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Для выбранной точки нет доступной информации",
|
|
255
256
|
"querying": "Выполняется запрос...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Информация об объекте"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Exportera",
|
|
249
250
|
"featureReport": "Objektrapport",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Ingen information för vald punkt",
|
|
255
256
|
"querying": "Frågar...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Objektinformation"
|
|
259
261
|
},
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "Toplu rapor",
|
|
246
246
|
"clipboard": "Panoya kopyala",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "İndir",
|
|
248
249
|
"export": "Dışarıya aktar",
|
|
249
250
|
"featureReport": "Obje raporu",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Seçilen nokta için geçerli bilgi yok",
|
|
255
256
|
"querying": "Sorgulanıyor...",
|
|
256
257
|
"reportfail": "Rapor üretilemedi",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Obje Bilgisi"
|
|
259
261
|
},
|
|
@@ -234,6 +234,7 @@
|
|
|
234
234
|
"hideobjects3d.restoreall",
|
|
235
235
|
"identify.aggregatedreport",
|
|
236
236
|
"identify.clipboard",
|
|
237
|
+
"identify.comparing",
|
|
237
238
|
"identify.download",
|
|
238
239
|
"identify.export",
|
|
239
240
|
"identify.featureReport",
|
|
@@ -244,6 +245,7 @@
|
|
|
244
245
|
"identify.noresults",
|
|
245
246
|
"identify.querying",
|
|
246
247
|
"identify.reportfail",
|
|
248
|
+
"identify.results",
|
|
247
249
|
"identify.selectreport",
|
|
248
250
|
"identify.title",
|
|
249
251
|
"imageeditor.confirmclose",
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
"identify": {
|
|
245
245
|
"aggregatedreport": "",
|
|
246
246
|
"clipboard": "",
|
|
247
|
+
"comparing": "",
|
|
247
248
|
"download": "",
|
|
248
249
|
"export": "Експорт",
|
|
249
250
|
"featureReport": "Звіт по об’єкту",
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
"noresults": "Для обраної точки інформація відсутня",
|
|
255
256
|
"querying": "Обробка запиту...",
|
|
256
257
|
"reportfail": "",
|
|
258
|
+
"results": "",
|
|
257
259
|
"selectreport": "",
|
|
258
260
|
"title": "Відомості про об’єкт"
|
|
259
261
|
},
|
package/utils/MiscUtils.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
7
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
12
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2
13
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
3
14
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -191,4 +202,46 @@ var MiscUtils = {
|
|
|
191
202
|
return path && path.startsWith(":/") ? ConfigUtils.getAssetsPath() + path.substr(1) : path;
|
|
192
203
|
}
|
|
193
204
|
};
|
|
205
|
+
export var ToggleSet = /*#__PURE__*/_createClass(function ToggleSet() {
|
|
206
|
+
var _this = this;
|
|
207
|
+
var set = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Set();
|
|
208
|
+
_classCallCheck(this, ToggleSet);
|
|
209
|
+
_defineProperty(this, "has", function (key) {
|
|
210
|
+
return _this._set.has(key);
|
|
211
|
+
});
|
|
212
|
+
_defineProperty(this, "toggle", function (key) {
|
|
213
|
+
var newset = new Set(_this._set);
|
|
214
|
+
if (newset.has(key)) {
|
|
215
|
+
newset["delete"](key);
|
|
216
|
+
} else {
|
|
217
|
+
newset.add(key);
|
|
218
|
+
}
|
|
219
|
+
return new ToggleSet(newset);
|
|
220
|
+
});
|
|
221
|
+
_defineProperty(this, "delete", function (key) {
|
|
222
|
+
if (_this._set.has(key)) {
|
|
223
|
+
var newset = new Set(_this._set);
|
|
224
|
+
newset["delete"](key);
|
|
225
|
+
return new ToggleSet(newset);
|
|
226
|
+
} else {
|
|
227
|
+
return _this;
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
_defineProperty(this, "add", function (key) {
|
|
231
|
+
if (!_this._set.has(key)) {
|
|
232
|
+
var newset = new Set(_this._set);
|
|
233
|
+
newset.add(key);
|
|
234
|
+
return new ToggleSet(newset);
|
|
235
|
+
} else {
|
|
236
|
+
return _this;
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
_defineProperty(this, "size", function () {
|
|
240
|
+
return _this._set.size;
|
|
241
|
+
});
|
|
242
|
+
_defineProperty(this, "entries", function () {
|
|
243
|
+
return _toConsumableArray(_this._set);
|
|
244
|
+
});
|
|
245
|
+
this._set = set;
|
|
246
|
+
});
|
|
194
247
|
export default MiscUtils;
|