@wcardinal/wcardinal-ui 0.314.0 → 0.315.0

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.314.0
2
+ Winter Cardinal UI v0.315.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1998,11 +1998,7 @@
1998
1998
  this.update();
1999
1999
  };
2000
2000
  EShapeBarPoints.prototype.update = function () {
2001
- var parent = this._parent;
2002
- if (parent == null) {
2003
- return;
2004
- }
2005
- var parentSize = parent.size;
2001
+ var parentSize = this._parent.size;
2006
2002
  var parentSizeX = parentSize.x;
2007
2003
  var parentSizeY = parentSize.y;
2008
2004
  var position = this._position;
@@ -19078,20 +19074,16 @@
19078
19074
  enumerable: false,
19079
19075
  configurable: true
19080
19076
  });
19081
- EShapeLinePoints.prototype.toFitted = function () {
19077
+ EShapeLinePoints.prototype.toFitted = function (x, y) {
19082
19078
  this._valuesBase = undefined;
19083
- var parentSize = this._parent.size;
19084
- this._parentSizeFitted.copyFrom(parentSize);
19085
- this._parentSizeBase.copyFrom(parentSize);
19079
+ this._parentSizeFitted.set(x, y);
19080
+ this._parentSizeBase.set(x, y);
19086
19081
  };
19087
19082
  EShapeLinePoints.prototype.onSizeChange = function () {
19088
19083
  this.fit();
19089
19084
  };
19090
19085
  EShapeLinePoints.prototype.fit = function () {
19091
19086
  var parent = this._parent;
19092
- if (parent == null) {
19093
- return;
19094
- }
19095
19087
  var psizef = this._parentSizeFitted;
19096
19088
  var psize = parent.size;
19097
19089
  var psizeX = psize.x;
@@ -19300,7 +19292,8 @@
19300
19292
  var valuesBaseLength = this._valuesBaseLength;
19301
19293
  var newValuesLength = newValues.length;
19302
19294
  var iupdate = Math.min(newValuesLength, valuesBaseLength);
19303
- this.toFitted();
19295
+ var parentSize = this._parent.size;
19296
+ this.toFitted(parentSize.x, parentSize.y);
19304
19297
  if (values !== newValues) {
19305
19298
  for (var i = 0; i < iupdate; ++i) {
19306
19299
  values[i] = newValues[i];
@@ -19716,8 +19709,8 @@
19716
19709
  transform.scale.set(1, 1);
19717
19710
  transform.rotation = 0;
19718
19711
  transform.skew.set(0, 0);
19712
+ points.toFitted(sx, sy);
19719
19713
  this.size.set(sx, sy);
19720
- points.toFitted();
19721
19714
  points.set(values);
19722
19715
  this.allowUploadedUpdate();
19723
19716
  }
@@ -60325,8 +60318,8 @@
60325
60318
  }
60326
60319
  line.disallowUploadedUpdate();
60327
60320
  line.points.set(values, segments);
60321
+ line.points.toFitted(sx, sy);
60328
60322
  line.size.set(sx, sy);
60329
- line.points.toFitted();
60330
60323
  line.transform.position.set(cx, cy);
60331
60324
  line.allowUploadedUpdate();
60332
60325
  };