diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5cfce1ac..6472640d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
+## [1.12.0] - 2021-03-01
+### Added
+- Method `getMirrorsFrom` in
+ [Container](https://chird.github.io/meteoJS/doc/module-meteoJS_modelviewer_container.Container.html).
+- Time format is now dynamic in
+ [bsButtons](https://chird.github.io/meteoJS/doc/module-meteoJS_timeline_visualisation_bsButtons.html#~options).
+
+### Changed
+- The `change:selectedVariables` event in
+ [Container](https://chird.github.io/meteoJS/doc/module-meteoJS_modelviewer_container.Container.html).
+ is now fired debounced.
+- `mirrorsFrom` can now be called for different other containers on
+ [Container](https://chird.github.io/meteoJS/doc/module-meteoJS_modelviewer_container.Container.html).
+- Added internal cache for performance reasons in
+ [Node](https://chird.github.io/meteoJS/doc/module-meteoJS_modelviewer_node.Node.html).
+
+### Fixed
+- Bugfix for the `pauseOnHiddenDocument` feature in
+ [RepetitiveRequests](https://chird.github.io/meteoJS/doc/module-meteoJS_repetitiveRequests.RepetitiveRequests.html).
+- Fix to prevent some unwanted side effects with the keyboard navigation in
+ [Timeline](https://chird.github.io/meteoJS/doc/module-meteoJS_timeline.Timeline.html).
+
## [1.11.4] - 2020-11-19
### Added
- Additional keyboard navigation options in
@@ -128,7 +150,8 @@ will not work anymore, until you pass a callback to `getTimeText`.
### Fixed
- Some tests with DOM usage.
-[Unreleased]: https://github.com/chird/meteoJS/compare/v1.11.4...HEAD
+[Unreleased]: https://github.com/chird/meteoJS/compare/v1.12.0...HEAD
+[Unreleased]: https://github.com/chird/meteoJS/compare/v1.11.4...v1.12.0
[1.11.4]: https://github.com/chird/meteoJS/compare/v1.11.3...v1.11.4
[1.11.3]: https://github.com/chird/meteoJS/compare/v1.11.2...v1.11.3
[1.11.2]: https://github.com/chird/meteoJS/compare/v1.11.1...v1.11.2
diff --git a/doc/Modelviewer.js.html b/doc/Modelviewer.js.html
index adc3b692..5b11a7ec 100644
--- a/doc/Modelviewer.js.html
+++ b/doc/Modelviewer.js.html
@@ -277,7 +277,7 @@
Source: Modelviewer.js
diff --git a/doc/RepetitiveRequests.js.html b/doc/RepetitiveRequests.js.html
index 90827103..863d689c 100644
--- a/doc/RepetitiveRequests.js.html
+++ b/doc/RepetitiveRequests.js.html
@@ -145,6 +145,12 @@ Source: RepetitiveRequests.js
*/
this._pauseOnHiddenDocument = pauseOnHiddenDocument;
this._initPauseOnHiddenDocument();
+
+ /**
+ * @type boolean
+ * @private
+ */
+ this._isSuppressedByHiddenDocument = false;
/**
* @type string
@@ -250,6 +256,13 @@ Source: RepetitiveRequests.js
return;
this._timeoutID = setTimeout(() => {
+ if (this._pauseOnHiddenDocument
+ && ('hidden' in document)
+ && document.hidden) {
+ this._isSuppressedByHiddenDocument = true;
+ return;
+ }
+
this._startRequest();
}, delay);
}
@@ -348,11 +361,13 @@ Source: RepetitiveRequests.js
return;
document.addEventListener('visibilitychange', () => {
- if ('hidden' in document)
- if (document.hidden)
- this.stop();
- else
- this.start();
+ if (('hidden' in document)
+ && !document.hidden
+ && this._isSuppressedByHiddenDocument
+ && this._isStarted) {
+ this._isSuppressedByHiddenDocument = false;
+ this.start();
+ }
});
}
}
@@ -368,7 +383,7 @@ Source: RepetitiveRequests.js
diff --git a/doc/Sounding.js.html b/doc/Sounding.js.html
index 4f8c90af..12d5dade 100644
--- a/doc/Sounding.js.html
+++ b/doc/Sounding.js.html
@@ -277,7 +277,7 @@ Source: Sounding.js
diff --git a/doc/Synview.js.html b/doc/Synview.js.html
index 477d4930..a2d9e4a2 100644
--- a/doc/Synview.js.html
+++ b/doc/Synview.js.html
@@ -201,7 +201,7 @@ Source: Synview.js
diff --git a/doc/ThermodynamicDiagram.js.html b/doc/ThermodynamicDiagram.js.html
index 4879ccbc..f2bc22af 100644
--- a/doc/ThermodynamicDiagram.js.html
+++ b/doc/ThermodynamicDiagram.js.html
@@ -300,7 +300,7 @@ Source: ThermodynamicDiagram.js
diff --git a/doc/ThermodynamicDiagramPluggable.js.html b/doc/ThermodynamicDiagramPluggable.js.html
index 7414cfd8..44fb33ba 100644
--- a/doc/ThermodynamicDiagramPluggable.js.html
+++ b/doc/ThermodynamicDiagramPluggable.js.html
@@ -231,7 +231,7 @@ Source: ThermodynamicDiagramPluggable.js
diff --git a/doc/Timeline.js.html b/doc/Timeline.js.html
index 56c38e80..8be7b772 100644
--- a/doc/Timeline.js.html
+++ b/doc/Timeline.js.html
@@ -806,14 +806,19 @@ Source: Timeline.js
const matches = time.match(/^([0-9]+)\s*([a-zA-Z]+)$/);
if (matches === null)
return;
- if (_isEventMatchPressedKeys(event, this._keyboardNavigation[method][time]))
+ if (_isEventMatchPressedKeys(event, this._keyboardNavigation[method][time])) {
this[method](+matches[1], matches[2]);
+ event.preventDefault();
+ event.stopPropagation();
+ }
});
}
- else
- if (method in this &&
- _isEventMatchPressedKeys(event, this._keyboardNavigation[method]))
- this[method]();
+ else if (method in this
+ && _isEventMatchPressedKeys(event, this._keyboardNavigation[method])) {
+ this[method]();
+ event.preventDefault();
+ event.stopPropagation();
+ }
});
});
}
@@ -889,7 +894,7 @@ Source: Timeline.js
diff --git a/doc/Tooltip.js.html b/doc/Tooltip.js.html
index 5cea398d..db60d4ec 100644
--- a/doc/Tooltip.js.html
+++ b/doc/Tooltip.js.html
@@ -155,7 +155,7 @@ Source: Tooltip.js
diff --git a/doc/base_Collection.js.html b/doc/base_Collection.js.html
index 44d89ed5..76b70fc1 100644
--- a/doc/base_Collection.js.html
+++ b/doc/base_Collection.js.html
@@ -318,7 +318,7 @@ Source: base/Collection.js
diff --git a/doc/base_Named.js.html b/doc/base_Named.js.html
index 0236e0d1..de312cc4 100644
--- a/doc/base_Named.js.html
+++ b/doc/base_Named.js.html
@@ -162,7 +162,7 @@ Source: base/Named.js
diff --git a/doc/base_NamedCollection.js.html b/doc/base_NamedCollection.js.html
index f8d178f2..57bd56e8 100644
--- a/doc/base_NamedCollection.js.html
+++ b/doc/base_NamedCollection.js.html
@@ -110,7 +110,7 @@ Source: base/NamedCollection.js
diff --git a/doc/base_Unique.js.html b/doc/base_Unique.js.html
index 44f1a2b3..d7f0d801 100644
--- a/doc/base_Unique.js.html
+++ b/doc/base_Unique.js.html
@@ -83,7 +83,7 @@ Source: base/Unique.js
diff --git a/doc/base_UniqueNamed.js.html b/doc/base_UniqueNamed.js.html
index 474026e1..4db7cb7d 100644
--- a/doc/base_UniqueNamed.js.html
+++ b/doc/base_UniqueNamed.js.html
@@ -95,7 +95,7 @@ Source: base/UniqueNamed.js
diff --git a/doc/calc.js.html b/doc/calc.js.html
index 6f1812b7..96421728 100644
--- a/doc/calc.js.html
+++ b/doc/calc.js.html
@@ -523,7 +523,7 @@ Source: calc.js
diff --git a/doc/events.js.html b/doc/events.js.html
index 44fcaec0..b1462a45 100644
--- a/doc/events.js.html
+++ b/doc/events.js.html
@@ -165,7 +165,7 @@ Source: Events.js
diff --git a/doc/external-Event.html b/doc/external-Event.html
index 60abefcb..e69049e9 100644
--- a/doc/external-Event.html
+++ b/doc/external-Event.html
@@ -51,7 +51,7 @@ Event
diff --git a/doc/external-HTMLElement.html b/doc/external-HTMLElement.html
index bd678850..201e474d 100644
--- a/doc/external-HTMLElement.html
+++ b/doc/external-HTMLElement.html
@@ -51,7 +51,7 @@ HTMLElement
diff --git a/doc/external-SVG.html b/doc/external-SVG.html
index dfe65ecd..3e7629fe 100644
--- a/doc/external-SVG.html
+++ b/doc/external-SVG.html
@@ -51,7 +51,7 @@ SVG
diff --git a/doc/external-XMLHttpRequest.html b/doc/external-XMLHttpRequest.html
index 080d653d..fbbd46d3 100644
--- a/doc/external-XMLHttpRequest.html
+++ b/doc/external-XMLHttpRequest.html
@@ -51,7 +51,7 @@ XMLHttpRequest
diff --git a/doc/external-jQuery.html b/doc/external-jQuery.html
index 374bb1fb..3042b925 100644
--- a/doc/external-jQuery.html
+++ b/doc/external-jQuery.html
@@ -51,7 +51,7 @@ jQuery
diff --git a/doc/index.html b/doc/index.html
index 18c3b7f8..741073aa 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -1132,18 +1132,23 @@ meteoJS/modelviewer/container.C
+
+ meteoJS/modelviewer/container.Container#enabledTimes
+
+
+
-
-
+
+
@@ -250,12 +251,23 @@ Parameter
module:meteoJS/modelviewer/container.Container
- This.
+ getMirrorsFrom() → Object with module:meteoJS/modelviewer/container.Container keys and Array of module:meteoJS/modelviewer/variableCollection.VariableCollection properties
+ Get all containers, from which this container mirrors some variables from.
+ As values of the returned Map-Object an array with the mirrored
+ VariableColletions is returned.
+
+ - Returns
+ -
+
Object with module:meteoJS/modelviewer/container.Container keys and Array of module:meteoJS/modelviewer/variableCollection.VariableCollection properties
+
+
mirrorsFrom([container][, variableCollections])
Mirrors (parts of) the displayVariables form another container. With this
feature, e.g. in different containers can be viewed plots of different
models. If you change e.g. the field in the first container, all other
containers, that mirrors form this container, will also change the viewed
- content.
+ content. It is possible to mirror different VariableCollections from
+ different containers.
Parameters
@@ -294,7 +306,7 @@ Parameters
The displayVariables of these VariableCollections
- are mirrored.
+ are mirrored. If omitted, all VariableCollections are mirrored.
|
@@ -348,7 +360,7 @@ Parameter
diff --git a/doc/module-meteoJS_modelviewer_container.html b/doc/module-meteoJS_modelviewer_container.html
index 665203ac..4c8b941d 100644
--- a/doc/module-meteoJS_modelviewer_container.html
+++ b/doc/module-meteoJS_modelviewer_container.html
@@ -620,7 +620,7 @@ change:visibleRe
diff --git a/doc/module-meteoJS_modelviewer_display.Display.html b/doc/module-meteoJS_modelviewer_display.Display.html
index f8a3ef2c..51600728 100644
--- a/doc/module-meteoJS_modelviewer_display.Display.html
+++ b/doc/module-meteoJS_modelviewer_display.Display.html
@@ -156,7 +156,7 @@ render<
diff --git a/doc/module-meteoJS_modelviewer_display.html b/doc/module-meteoJS_modelviewer_display.html
index db5d582b..c42aaebd 100644
--- a/doc/module-meteoJS_modelviewer_display.html
+++ b/doc/module-meteoJS_modelviewer_display.html
@@ -279,7 +279,7 @@ init:display
diff --git a/doc/module-meteoJS_modelviewer_display_selectNavigation.SelectNavigation.html b/doc/module-meteoJS_modelviewer_display_selectNavigation.SelectNavigation.html
index 81e11809..3d29c5c9 100644
--- a/doc/module-meteoJS_modelviewer_display_selectNavigation.SelectNavigation.html
+++ b/doc/module-meteoJS_modelviewer_display_selectNavigation.SelectNavigation.html
@@ -69,7 +69,7 @@ onInit<
diff --git a/doc/module-meteoJS_modelviewer_display_selectNavigation.html b/doc/module-meteoJS_modelviewer_display_selectNavigation.html
index bde48e7d..a24a54b4 100644
--- a/doc/module-meteoJS_modelviewer_display_selectNavigation.html
+++ b/doc/module-meteoJS_modelviewer_display_selectNavigation.html
@@ -64,7 +64,7 @@