@wcardinal/wcardinal-ui 0.376.0 → 0.376.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.
- package/dist/types/wcardinal/ui/shape/variant/e-shape-base.d.ts +2 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js +29 -26
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +30 -27
- package/dist/wcardinal-ui.js +30 -27
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.376.
|
|
2
|
+
Winter Cardinal UI v0.376.2
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
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
|
-
|
|
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) {
|
|
@@ -4784,7 +4787,7 @@
|
|
|
4784
4787
|
this._lockTransformParent.lock();
|
|
4785
4788
|
}
|
|
4786
4789
|
if (part & EShapeLockPart.TRANSFORM_THIS) {
|
|
4787
|
-
this.
|
|
4790
|
+
this._lockTransformThis.lock();
|
|
4788
4791
|
}
|
|
4789
4792
|
if (part & EShapeLockPart.TRANSFORM_CHILD) {
|
|
4790
4793
|
this._lockTransformChild.lock();
|
|
@@ -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
|
|
4798
|
-
if (
|
|
4799
|
-
|
|
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
|
|
4886
|
-
if (
|
|
4887
|
-
return
|
|
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
|
|
4906
|
-
if (
|
|
4907
|
-
return
|
|
4908
|
+
var parent_3 = this.parent;
|
|
4909
|
+
if (parent_3) {
|
|
4910
|
+
return parent_3.worldVisible;
|
|
4908
4911
|
}
|
|
4909
4912
|
return true;
|
|
4910
4913
|
}
|