@dra2020/baseclient 1.0.77 → 1.0.78

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/README.md CHANGED
@@ -19,6 +19,7 @@ These libraries are used across both client and server:
19
19
  - [Poly](./docs/poly.md): A set of functions for processing polygons, typically in GeoJSON format.
20
20
  - [Context](./docs/context.md): A set of functions for interrogating the context supplied to the application, either as
21
21
  - [FSM](./docs/fsm.md): A set of functions for managing asynchronous, chainable finite state machines.
22
+ - [DataFlow](./docs/dataflow.md): A set of classes for managing synchronous, chainable dataflow.
22
23
  - [LogAbstract](./docs/logabstract.md): An abstract logging interface. Different implementations are used on client and server.
23
24
  - [LogClient](./docs/logclient.md): A client implementation of the logging abstract interface.
24
25
  - [OT](./docs/ot-js.md): An Operational Transformation implementation, used as the basis for all content editing.
@@ -1037,25 +1037,25 @@ class DataFlow {
1037
1037
  uses(df, name) {
1038
1038
  this.usesList.push({ name: name, df: df });
1039
1039
  }
1040
- usesStale() {
1040
+ stale() {
1041
1041
  let isstale = false;
1042
1042
  this.usesList.forEach(ui => {
1043
- ui.wasstale = ui.id !== ui.df.dfid();
1044
- if (ui.wasstale)
1043
+ ui.wasfresh = ui.id !== ui.df.dfid();
1044
+ if (ui.wasfresh)
1045
1045
  isstale = true;
1046
1046
  });
1047
1047
  return isstale;
1048
1048
  }
1049
- wasStale(name) {
1049
+ wasFresh(name) {
1050
1050
  let ui = this.usesList.find((ui) => ui.name === name);
1051
- return ui != null && ui.wasstale;
1051
+ return ui != null && ui.wasfresh;
1052
1052
  }
1053
- usesRemember() {
1053
+ remember() {
1054
1054
  this.usesList.forEach(ui => { ui.id = ui.df.dfid(); });
1055
1055
  }
1056
1056
  ifcompute() {
1057
- if (this.usesStale()) {
1058
- this.usesRemember();
1057
+ if (this.stale()) {
1058
+ this.remember();
1059
1059
  this.compute();
1060
1060
  }
1061
1061
  }