@pie-element/complex-rubric 2.16.2 → 2.16.3-next.2

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.
@@ -113101,6 +113101,7 @@ const require$$11$D = _dll_react;
113101
113101
  const require$$12$k = _dll_prop_types;
113102
113102
  const {cloneDeep: require$$13$a} = _dll_lodash;
113103
113103
  const {isEmpty: require$$14$6} = _dll_lodash;
113104
+ const {debounce: require$$21$2} = _dll_lodash;
113104
113105
  const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113105
113106
  (function (exports) {
113106
113107
  var _interopRequireDefault = interopRequireDefault.exports;
@@ -113128,6 +113129,7 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113128
113129
  var _scale = _interopRequireDefault(scale);
113129
113130
  var _common = common;
113130
113131
  var _modals = modals;
113132
+ var _debounce = _interopRequireDefault(require$$21$2);
113131
113133
  var _excluded = ["scorePointsDescriptors"], _excluded2 = ["scorePointsDescriptors"], _excluded3 = ["scorePointsDescriptors"], _excluded4 = ["scorePointsDescriptors"];
113132
113134
  function ownKeys(object, enumerableOnly) {
113133
113135
  var keys = Object.keys(object);
@@ -113225,6 +113227,9 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113225
113227
  adjustedWidth: MIN_WIDTH,
113226
113228
  initialUpdateCompleted: false
113227
113229
  });
113230
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "updateDivWidthDebounced", (0, _debounce["default"])(function () {
113231
+ return _this.updateDivWidth();
113232
+ }, 50));
113228
113233
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onScaleAdded", function () {
113229
113234
  var _scales$;
113230
113235
  var _this$props = _this.props, model = _this$props.model, onModelChanged = _this$props.onModelChanged, configuration = _this$props.configuration;
@@ -113418,14 +113423,14 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113418
113423
  (0, _createClass2["default"])(Main, [{
113419
113424
  key: "componentDidMount",
113420
113425
  value: function componentDidMount() {
113421
- window.addEventListener('resize', this.updateDivWidth);
113426
+ window.addEventListener('resize', this.updateDivWidthDebounced);
113422
113427
  window.addEventListener('load', this.updateDivWidth);
113423
113428
  setTimeout(this.updateDivWidth, 0);
113424
113429
  }
113425
113430
  }, {
113426
113431
  key: "componentWillUnmount",
113427
113432
  value: function componentWillUnmount() {
113428
- window.removeEventListener('resize', this.updateDivWidth);
113433
+ window.removeEventListener('resize', this.updateDivWidthDebounced);
113429
113434
  window.removeEventListener('load', this.updateDivWidth);
113430
113435
  }
113431
113436
  }, {
@@ -113443,9 +113448,11 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
113443
113448
  value: function updateDivWidth() {
113444
113449
  if (this.divRef && this.divRef.current) {
113445
113450
  var divWidth = this.divRef.current.offsetWidth;
113446
- this.set({
113447
- adjustedWidth: divWidth
113448
- });
113451
+ if (divWidth !== this.state.adjustedWidth) {
113452
+ this.set({
113453
+ adjustedWidth: divWidth
113454
+ });
113455
+ }
113449
113456
  }
113450
113457
  }
113451
113458
  }, {
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/complex-rubric@2.16.1</title>
5
+ <title>@pie-element/complex-rubric@2.16.2</title>
6
6
  <script
7
7
  type="module"
8
8
  src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
- "version": "2.16.1",
3
+ "version": "2.16.2",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/complex-rubric@2.16.1</title>
5
+ <title>@pie-element/complex-rubric@2.16.2</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "2.16.2",
4
+ "version": "2.16.3-next.2+72637af6c",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
- "@pie-element/multi-trait-rubric": "^3.16.2",
11
- "@pie-element/rubric": "^3.16.1",
10
+ "@pie-element/multi-trait-rubric": "^3.16.3-next.2+72637af6c",
11
+ "@pie-element/rubric": "^3.16.2-next.6+72637af6c",
12
12
  "@pie-framework/pie-player-events": "^0.1.0",
13
13
  "classnames": "^2.2.5",
14
14
  "debug": "^4.1.1",
15
15
  "lodash": "^4.17.11",
16
16
  "prop-types": "^15.7.2"
17
17
  },
18
- "gitHead": "d85c8c6318aadc4998ff6cb685b3d72be1ca7797",
18
+ "gitHead": "72637af6c8a418ea7baeb750d3cd9c15b3514e26",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },