@wcardinal/wcardinal-ui 0.314.0 → 0.316.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.316.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -2001,11 +2001,7 @@ var EShapeBarPoints = /** @class */ (function () {
2001
2001
  this.update();
2002
2002
  };
2003
2003
  EShapeBarPoints.prototype.update = function () {
2004
- var parent = this._parent;
2005
- if (parent == null) {
2006
- return;
2007
- }
2008
- var parentSize = parent.size;
2004
+ var parentSize = this._parent.size;
2009
2005
  var parentSizeX = parentSize.x;
2010
2006
  var parentSizeY = parentSize.y;
2011
2007
  var position = this._position;
@@ -17626,12 +17622,16 @@ var EShapeAcceptorImpl = /** @class */ (function () {
17626
17622
  function EShapeAcceptorImpl() {
17627
17623
  this._edges = new Map();
17628
17624
  }
17629
- EShapeAcceptorImpl.prototype.add = function (id, type, x, y, nx, ny) {
17625
+ EShapeAcceptorImpl.prototype.add = function (id, type, x, y, nx, ny, sx, sy) {
17630
17626
  this._edges.set(id, {
17631
17627
  type: type,
17632
17628
  x: x,
17633
17629
  y: y,
17634
- normal: this.toNormal(x, y, nx, ny)
17630
+ normal: this.toNormal(x, y, nx, ny),
17631
+ size: {
17632
+ x: sx !== null && sx !== void 0 ? sx : 0,
17633
+ y: sy !== null && sy !== void 0 ? sy : 0
17634
+ }
17635
17635
  });
17636
17636
  return true;
17637
17637
  };
@@ -19081,20 +19081,16 @@ var EShapeLinePoints = /** @class */ (function () {
19081
19081
  enumerable: false,
19082
19082
  configurable: true
19083
19083
  });
19084
- EShapeLinePoints.prototype.toFitted = function () {
19084
+ EShapeLinePoints.prototype.toFitted = function (x, y) {
19085
19085
  this._valuesBase = undefined;
19086
- var parentSize = this._parent.size;
19087
- this._parentSizeFitted.copyFrom(parentSize);
19088
- this._parentSizeBase.copyFrom(parentSize);
19086
+ this._parentSizeFitted.set(x, y);
19087
+ this._parentSizeBase.set(x, y);
19089
19088
  };
19090
19089
  EShapeLinePoints.prototype.onSizeChange = function () {
19091
19090
  this.fit();
19092
19091
  };
19093
19092
  EShapeLinePoints.prototype.fit = function () {
19094
19093
  var parent = this._parent;
19095
- if (parent == null) {
19096
- return;
19097
- }
19098
19094
  var psizef = this._parentSizeFitted;
19099
19095
  var psize = parent.size;
19100
19096
  var psizeX = psize.x;
@@ -19303,7 +19299,8 @@ var EShapeLinePoints = /** @class */ (function () {
19303
19299
  var valuesBaseLength = this._valuesBaseLength;
19304
19300
  var newValuesLength = newValues.length;
19305
19301
  var iupdate = Math.min(newValuesLength, valuesBaseLength);
19306
- this.toFitted();
19302
+ var parentSize = this._parent.size;
19303
+ this.toFitted(parentSize.x, parentSize.y);
19307
19304
  if (values !== newValues) {
19308
19305
  for (var i = 0; i < iupdate; ++i) {
19309
19306
  values[i] = newValues[i];
@@ -19719,8 +19716,8 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
19719
19716
  transform.scale.set(1, 1);
19720
19717
  transform.rotation = 0;
19721
19718
  transform.skew.set(0, 0);
19719
+ points.toFitted(sx, sy);
19722
19720
  this.size.set(sx, sy);
19723
- points.toFitted();
19724
19721
  points.set(values);
19725
19722
  this.allowUploadedUpdate();
19726
19723
  }
@@ -78651,8 +78648,8 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
78651
78648
  }
78652
78649
  line.disallowUploadedUpdate();
78653
78650
  line.points.set(values, segments);
78651
+ line.points.toFitted(sx, sy);
78654
78652
  line.size.set(sx, sy);
78655
- line.points.toFitted();
78656
78653
  line.transform.position.set(cx, cy);
78657
78654
  line.allowUploadedUpdate();
78658
78655
  };
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.314.0
2
+ Winter Cardinal UI v0.316.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;
@@ -17623,12 +17619,16 @@
17623
17619
  function EShapeAcceptorImpl() {
17624
17620
  this._edges = new Map();
17625
17621
  }
17626
- EShapeAcceptorImpl.prototype.add = function (id, type, x, y, nx, ny) {
17622
+ EShapeAcceptorImpl.prototype.add = function (id, type, x, y, nx, ny, sx, sy) {
17627
17623
  this._edges.set(id, {
17628
17624
  type: type,
17629
17625
  x: x,
17630
17626
  y: y,
17631
- normal: this.toNormal(x, y, nx, ny)
17627
+ normal: this.toNormal(x, y, nx, ny),
17628
+ size: {
17629
+ x: sx !== null && sx !== void 0 ? sx : 0,
17630
+ y: sy !== null && sy !== void 0 ? sy : 0
17631
+ }
17632
17632
  });
17633
17633
  return true;
17634
17634
  };
@@ -19078,20 +19078,16 @@
19078
19078
  enumerable: false,
19079
19079
  configurable: true
19080
19080
  });
19081
- EShapeLinePoints.prototype.toFitted = function () {
19081
+ EShapeLinePoints.prototype.toFitted = function (x, y) {
19082
19082
  this._valuesBase = undefined;
19083
- var parentSize = this._parent.size;
19084
- this._parentSizeFitted.copyFrom(parentSize);
19085
- this._parentSizeBase.copyFrom(parentSize);
19083
+ this._parentSizeFitted.set(x, y);
19084
+ this._parentSizeBase.set(x, y);
19086
19085
  };
19087
19086
  EShapeLinePoints.prototype.onSizeChange = function () {
19088
19087
  this.fit();
19089
19088
  };
19090
19089
  EShapeLinePoints.prototype.fit = function () {
19091
19090
  var parent = this._parent;
19092
- if (parent == null) {
19093
- return;
19094
- }
19095
19091
  var psizef = this._parentSizeFitted;
19096
19092
  var psize = parent.size;
19097
19093
  var psizeX = psize.x;
@@ -19300,7 +19296,8 @@
19300
19296
  var valuesBaseLength = this._valuesBaseLength;
19301
19297
  var newValuesLength = newValues.length;
19302
19298
  var iupdate = Math.min(newValuesLength, valuesBaseLength);
19303
- this.toFitted();
19299
+ var parentSize = this._parent.size;
19300
+ this.toFitted(parentSize.x, parentSize.y);
19304
19301
  if (values !== newValues) {
19305
19302
  for (var i = 0; i < iupdate; ++i) {
19306
19303
  values[i] = newValues[i];
@@ -19716,8 +19713,8 @@
19716
19713
  transform.scale.set(1, 1);
19717
19714
  transform.rotation = 0;
19718
19715
  transform.skew.set(0, 0);
19716
+ points.toFitted(sx, sy);
19719
19717
  this.size.set(sx, sy);
19720
- points.toFitted();
19721
19718
  points.set(values);
19722
19719
  this.allowUploadedUpdate();
19723
19720
  }
@@ -60325,8 +60322,8 @@
60325
60322
  }
60326
60323
  line.disallowUploadedUpdate();
60327
60324
  line.points.set(values, segments);
60325
+ line.points.toFitted(sx, sy);
60328
60326
  line.size.set(sx, sy);
60329
- line.points.toFitted();
60330
60327
  line.transform.position.set(cx, cy);
60331
60328
  line.allowUploadedUpdate();
60332
60329
  };