@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.
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-points.d.ts +1 -1
- package/dist/wcardinal/ui/d-chart-series-linear.js +1 -1
- package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-bar-points.js +1 -5
- package/dist/wcardinal/ui/shape/variant/e-shape-bar-points.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-points.js +5 -8
- package/dist/wcardinal/ui/shape/variant/e-shape-line-points.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 +9 -16
- package/dist/wcardinal-ui.js +9 -16
- 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.
|
|
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
|
|
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
|
-
|
|
19084
|
-
this.
|
|
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.
|
|
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
|
};
|