@wcardinal/wcardinal-ui 0.376.1 → 0.376.3

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.376.1
2
+ Winter Cardinal UI v0.376.3
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -4728,10 +4728,7 @@ var EShapeBase = /** @class */ (function (_super) {
4728
4728
  this._boundsInternalTransformId = NaN;
4729
4729
  this._boundsLocalTransformId = NaN;
4730
4730
  if (!this._lockTransformChild.isLocked()) {
4731
- var parent_1 = this.parent;
4732
- if (parent_1 != null) {
4733
- parent_1.onChildTransformChange();
4734
- }
4731
+ this.callChildTransformChange();
4735
4732
  }
4736
4733
  var points = this._points;
4737
4734
  if (points != null) {
@@ -4749,19 +4746,19 @@ var EShapeBase = /** @class */ (function (_super) {
4749
4746
  };
4750
4747
  EShapeBase.prototype.onTransformChange = function () {
4751
4748
  if (!this._lockTransformChild.isLocked()) {
4752
- var parent_2 = this.parent;
4753
- if (parent_2 != null) {
4754
- parent_2.onChildTransformChange();
4755
- }
4749
+ this.callChildTransformChange();
4756
4750
  }
4757
4751
  if (!this._lockTransformThis.isLocked()) {
4758
4752
  this.onThisTransformChange();
4759
4753
  }
4760
4754
  if (!this._lockTransformParent.isLocked()) {
4761
- var children = this.children;
4762
- for (var i = 0, imax = children.length; i < imax; ++i) {
4763
- children[i].onParentTransformChange();
4764
- }
4755
+ this.callParentTransformChange();
4756
+ }
4757
+ };
4758
+ EShapeBase.prototype.callChildTransformChange = function () {
4759
+ var parent = this.parent;
4760
+ if (parent != null) {
4761
+ parent.onChildTransformChange();
4765
4762
  }
4766
4763
  };
4767
4764
  EShapeBase.prototype.onThisTransformChange = function () {
@@ -4771,12 +4768,18 @@ var EShapeBase = /** @class */ (function (_super) {
4771
4768
  connector.fit(true);
4772
4769
  }
4773
4770
  };
4771
+ EShapeBase.prototype.callParentTransformChange = function () {
4772
+ var children = this.children;
4773
+ for (var i = 0, imax = children.length; i < imax; ++i) {
4774
+ children[i].onParentTransformChange();
4775
+ }
4776
+ };
4774
4777
  EShapeBase.prototype.onParentTransformChange = function () {
4778
+ if (!this._lockTransformThis.isLocked()) {
4779
+ this.onThisTransformChange();
4780
+ }
4775
4781
  if (!this._lockTransformParent.isLocked()) {
4776
- var children = this.children;
4777
- for (var i = 0, imax = children.length; i < imax; ++i) {
4778
- children[i].onParentTransformChange();
4779
- }
4782
+ this.callParentTransformChange();
4780
4783
  }
4781
4784
  };
4782
4785
  EShapeBase.prototype.lock = function (part) {
@@ -4797,9 +4800,9 @@ var EShapeBase = /** @class */ (function (_super) {
4797
4800
  EShapeBase.prototype.unlock = function (part, invoke) {
4798
4801
  if (part & EShapeLockPart.TRANSFORM_CHILD) {
4799
4802
  if (this._lockTransformChild.unlock() && invoke) {
4800
- var parent_3 = this.parent;
4801
- if (parent_3 != null) {
4802
- parent_3.onChildTransformChange();
4803
+ var parent_1 = this.parent;
4804
+ if (parent_1 != null) {
4805
+ parent_1.onChildTransformChange();
4803
4806
  }
4804
4807
  }
4805
4808
  }
@@ -4885,9 +4888,9 @@ var EShapeBase = /** @class */ (function (_super) {
4885
4888
  Object.defineProperty(EShapeBase.prototype, "visible", {
4886
4889
  get: function () {
4887
4890
  if (this._visible) {
4888
- var parent_4 = this.parent;
4889
- if (parent_4 instanceof EShapeBase) {
4890
- return parent_4.visible;
4891
+ var parent_2 = this.parent;
4892
+ if (parent_2 instanceof EShapeBase) {
4893
+ return parent_2.visible;
4891
4894
  }
4892
4895
  return true;
4893
4896
  }
@@ -4905,9 +4908,9 @@ var EShapeBase = /** @class */ (function (_super) {
4905
4908
  Object.defineProperty(EShapeBase.prototype, "worldVisible", {
4906
4909
  get: function () {
4907
4910
  if (this._visible) {
4908
- var parent_5 = this.parent;
4909
- if (parent_5) {
4910
- return parent_5.worldVisible;
4911
+ var parent_3 = this.parent;
4912
+ if (parent_3) {
4913
+ return parent_3.worldVisible;
4911
4914
  }
4912
4915
  return true;
4913
4916
  }
@@ -18551,15 +18554,15 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
18551
18554
  shape.updateTransform();
18552
18555
  var parent = this._parent;
18553
18556
  var parentParent = parent.parent;
18554
- if (parentParent) {
18557
+ if (parentParent instanceof EShapeBase) {
18555
18558
  parent.updateTransform();
18556
18559
  return result
18557
- .copyFrom(parentParent.transform.worldTransform)
18560
+ .copyFrom(parentParent.transform.internalTransform)
18558
18561
  .invert()
18559
- .append(shape.transform.worldTransform);
18562
+ .append(shape.transform.internalTransform);
18560
18563
  }
18561
18564
  else {
18562
- return result.copyFrom(shape.transform.worldTransform);
18565
+ return result.copyFrom(shape.transform.internalTransform);
18563
18566
  }
18564
18567
  };
18565
18568
  EShapeConnectorEdgeImpl.prototype.onAcceptorChange = function () {
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.376.1
2
+ Winter Cardinal UI v0.376.3
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -4725,10 +4725,7 @@
4725
4725
  this._boundsInternalTransformId = NaN;
4726
4726
  this._boundsLocalTransformId = NaN;
4727
4727
  if (!this._lockTransformChild.isLocked()) {
4728
- var parent_1 = this.parent;
4729
- if (parent_1 != null) {
4730
- parent_1.onChildTransformChange();
4731
- }
4728
+ this.callChildTransformChange();
4732
4729
  }
4733
4730
  var points = this._points;
4734
4731
  if (points != null) {
@@ -4746,19 +4743,19 @@
4746
4743
  };
4747
4744
  EShapeBase.prototype.onTransformChange = function () {
4748
4745
  if (!this._lockTransformChild.isLocked()) {
4749
- var parent_2 = this.parent;
4750
- if (parent_2 != null) {
4751
- parent_2.onChildTransformChange();
4752
- }
4746
+ this.callChildTransformChange();
4753
4747
  }
4754
4748
  if (!this._lockTransformThis.isLocked()) {
4755
4749
  this.onThisTransformChange();
4756
4750
  }
4757
4751
  if (!this._lockTransformParent.isLocked()) {
4758
- var children = this.children;
4759
- for (var i = 0, imax = children.length; i < imax; ++i) {
4760
- children[i].onParentTransformChange();
4761
- }
4752
+ this.callParentTransformChange();
4753
+ }
4754
+ };
4755
+ EShapeBase.prototype.callChildTransformChange = function () {
4756
+ var parent = this.parent;
4757
+ if (parent != null) {
4758
+ parent.onChildTransformChange();
4762
4759
  }
4763
4760
  };
4764
4761
  EShapeBase.prototype.onThisTransformChange = function () {
@@ -4768,12 +4765,18 @@
4768
4765
  connector.fit(true);
4769
4766
  }
4770
4767
  };
4768
+ EShapeBase.prototype.callParentTransformChange = function () {
4769
+ var children = this.children;
4770
+ for (var i = 0, imax = children.length; i < imax; ++i) {
4771
+ children[i].onParentTransformChange();
4772
+ }
4773
+ };
4771
4774
  EShapeBase.prototype.onParentTransformChange = function () {
4775
+ if (!this._lockTransformThis.isLocked()) {
4776
+ this.onThisTransformChange();
4777
+ }
4772
4778
  if (!this._lockTransformParent.isLocked()) {
4773
- var children = this.children;
4774
- for (var i = 0, imax = children.length; i < imax; ++i) {
4775
- children[i].onParentTransformChange();
4776
- }
4779
+ this.callParentTransformChange();
4777
4780
  }
4778
4781
  };
4779
4782
  EShapeBase.prototype.lock = function (part) {
@@ -4794,9 +4797,9 @@
4794
4797
  EShapeBase.prototype.unlock = function (part, invoke) {
4795
4798
  if (part & EShapeLockPart.TRANSFORM_CHILD) {
4796
4799
  if (this._lockTransformChild.unlock() && invoke) {
4797
- var parent_3 = this.parent;
4798
- if (parent_3 != null) {
4799
- parent_3.onChildTransformChange();
4800
+ var parent_1 = this.parent;
4801
+ if (parent_1 != null) {
4802
+ parent_1.onChildTransformChange();
4800
4803
  }
4801
4804
  }
4802
4805
  }
@@ -4882,9 +4885,9 @@
4882
4885
  Object.defineProperty(EShapeBase.prototype, "visible", {
4883
4886
  get: function () {
4884
4887
  if (this._visible) {
4885
- var parent_4 = this.parent;
4886
- if (parent_4 instanceof EShapeBase) {
4887
- return parent_4.visible;
4888
+ var parent_2 = this.parent;
4889
+ if (parent_2 instanceof EShapeBase) {
4890
+ return parent_2.visible;
4888
4891
  }
4889
4892
  return true;
4890
4893
  }
@@ -4902,9 +4905,9 @@
4902
4905
  Object.defineProperty(EShapeBase.prototype, "worldVisible", {
4903
4906
  get: function () {
4904
4907
  if (this._visible) {
4905
- var parent_5 = this.parent;
4906
- if (parent_5) {
4907
- return parent_5.worldVisible;
4908
+ var parent_3 = this.parent;
4909
+ if (parent_3) {
4910
+ return parent_3.worldVisible;
4908
4911
  }
4909
4912
  return true;
4910
4913
  }
@@ -18548,15 +18551,15 @@
18548
18551
  shape.updateTransform();
18549
18552
  var parent = this._parent;
18550
18553
  var parentParent = parent.parent;
18551
- if (parentParent) {
18554
+ if (parentParent instanceof EShapeBase) {
18552
18555
  parent.updateTransform();
18553
18556
  return result
18554
- .copyFrom(parentParent.transform.worldTransform)
18557
+ .copyFrom(parentParent.transform.internalTransform)
18555
18558
  .invert()
18556
- .append(shape.transform.worldTransform);
18559
+ .append(shape.transform.internalTransform);
18557
18560
  }
18558
18561
  else {
18559
- return result.copyFrom(shape.transform.worldTransform);
18562
+ return result.copyFrom(shape.transform.internalTransform);
18560
18563
  }
18561
18564
  };
18562
18565
  EShapeConnectorEdgeImpl.prototype.onAcceptorChange = function () {