@wcardinal/wcardinal-ui 0.313.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/e-shape-points.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-bar-points.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-group-points.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-any-points-impl.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-points.d.ts +2 -3
- 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/e-shape-points.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-bar-points.js +3 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-bar-points.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js +4 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-base.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-group-points.js +3 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-group-points.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-any-points-impl.js +3 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-any-points-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-points.js +53 -112
- 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 +69 -115
- package/dist/wcardinal-ui.js +69 -115
- 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.cjs.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
|
|
|
@@ -1997,6 +1997,9 @@ var EShapeBarPoints = /** @class */ (function () {
|
|
|
1997
1997
|
return 0;
|
|
1998
1998
|
}
|
|
1999
1999
|
};
|
|
2000
|
+
EShapeBarPoints.prototype.onSizeChange = function () {
|
|
2001
|
+
this.update();
|
|
2002
|
+
};
|
|
2000
2003
|
EShapeBarPoints.prototype.update = function () {
|
|
2001
2004
|
var parentSize = this._parent.size;
|
|
2002
2005
|
var parentSizeX = parentSize.x;
|
|
@@ -4660,6 +4663,10 @@ var EShapeBase = /** @class */ (function (_super) {
|
|
|
4660
4663
|
this._boundsInternalTransformId = NaN;
|
|
4661
4664
|
this._boundsLocalTransformId = NaN;
|
|
4662
4665
|
this.onTransformChange_();
|
|
4666
|
+
var points = this._points;
|
|
4667
|
+
if (points != null) {
|
|
4668
|
+
points.onSizeChange();
|
|
4669
|
+
}
|
|
4663
4670
|
this.updateUploaded();
|
|
4664
4671
|
var connector = this._connector;
|
|
4665
4672
|
if (connector != null) {
|
|
@@ -19070,96 +19077,60 @@ var EShapeLinePoints = /** @class */ (function () {
|
|
|
19070
19077
|
enumerable: false,
|
|
19071
19078
|
configurable: true
|
|
19072
19079
|
});
|
|
19073
|
-
EShapeLinePoints.prototype.toFitted = function () {
|
|
19080
|
+
EShapeLinePoints.prototype.toFitted = function (x, y) {
|
|
19074
19081
|
this._valuesBase = undefined;
|
|
19075
|
-
|
|
19076
|
-
this.
|
|
19077
|
-
|
|
19082
|
+
this._parentSizeFitted.set(x, y);
|
|
19083
|
+
this._parentSizeBase.set(x, y);
|
|
19084
|
+
};
|
|
19085
|
+
EShapeLinePoints.prototype.onSizeChange = function () {
|
|
19086
|
+
this.fit();
|
|
19078
19087
|
};
|
|
19079
19088
|
EShapeLinePoints.prototype.fit = function () {
|
|
19089
|
+
var parent = this._parent;
|
|
19080
19090
|
var psizef = this._parentSizeFitted;
|
|
19081
|
-
var psize =
|
|
19091
|
+
var psize = parent.size;
|
|
19082
19092
|
var psizeX = psize.x;
|
|
19083
19093
|
var psizeY = psize.y;
|
|
19084
19094
|
var threshold = 0.00001;
|
|
19085
|
-
if (
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19124
|
-
var x = formattedValues[i];
|
|
19125
|
-
var y = formattedValues[i + 1];
|
|
19126
|
-
formattedValues[i] = x * scaleX;
|
|
19127
|
-
formattedValues[i + 1] = y * scaleY;
|
|
19128
|
-
formattedValuesBase.push(x, y);
|
|
19129
|
-
}
|
|
19130
|
-
}
|
|
19131
|
-
else {
|
|
19132
|
-
for (var i = 0, imax = formattedValues.length; i < imax; i += 2) {
|
|
19133
|
-
formattedValues[i] = formattedValuesBase[i] * scaleX;
|
|
19134
|
-
formattedValues[i + 1] = formattedValuesBase[i + 1] * scaleY;
|
|
19135
|
-
}
|
|
19136
|
-
}
|
|
19137
|
-
// Formatted boundary
|
|
19138
|
-
var formattedBoundary = formatted.boundary;
|
|
19139
|
-
var formattedBoundaryBase = this._formattedBoundaryBase;
|
|
19140
|
-
if (formattedBoundaryBase == null) {
|
|
19141
|
-
formattedBoundaryBase = [0, 0, 0, 0];
|
|
19142
|
-
this._formattedBoundaryBase = formattedBoundaryBase;
|
|
19143
|
-
for (var i = 0, imax = formattedBoundary.length; i < imax; i += 2) {
|
|
19144
|
-
var x = formattedBoundary[i];
|
|
19145
|
-
var y = formattedBoundary[i + 1];
|
|
19146
|
-
formattedBoundary[i] = x * scaleX;
|
|
19147
|
-
formattedBoundary[i + 1] = y * scaleY;
|
|
19148
|
-
formattedBoundaryBase[i] = x;
|
|
19149
|
-
formattedBoundaryBase[i + 1] = y;
|
|
19150
|
-
}
|
|
19151
|
-
}
|
|
19152
|
-
else {
|
|
19153
|
-
for (var i = 0, imax = formattedBoundary.length; i < imax; i += 2) {
|
|
19154
|
-
formattedBoundary[i] = formattedBoundaryBase[i] * scaleX;
|
|
19155
|
-
formattedBoundary[i + 1] = formattedBoundaryBase[i + 1] * scaleY;
|
|
19156
|
-
}
|
|
19157
|
-
}
|
|
19158
|
-
// Formatted ID
|
|
19159
|
-
this._formattedId += 1;
|
|
19160
|
-
}
|
|
19161
|
-
}
|
|
19162
|
-
this._id += 1;
|
|
19095
|
+
if (Math.abs(psizeX - psizef.x) <= threshold && Math.abs(psizeY - psizef.y) <= threshold) {
|
|
19096
|
+
return;
|
|
19097
|
+
}
|
|
19098
|
+
psizef.set(psizeX, psizeY);
|
|
19099
|
+
var psizeBase = this._parentSizeBase;
|
|
19100
|
+
var isValidX = threshold < Math.abs(psizeBase.x);
|
|
19101
|
+
var isValidY = threshold < Math.abs(psizeBase.y);
|
|
19102
|
+
if (!isValidX && !isValidY) {
|
|
19103
|
+
return;
|
|
19104
|
+
}
|
|
19105
|
+
var scaleX = isValidX ? psizeX / psizeBase.x : 1;
|
|
19106
|
+
var scaleY = isValidY ? psizeY / psizeBase.y : 1;
|
|
19107
|
+
// Values
|
|
19108
|
+
var values = this._values;
|
|
19109
|
+
var valuesBase = this._valuesBase;
|
|
19110
|
+
if (valuesBase == null) {
|
|
19111
|
+
valuesBase = [];
|
|
19112
|
+
this._valuesBase = valuesBase;
|
|
19113
|
+
for (var i = 0, imax = values.length; i < imax; i += 2) {
|
|
19114
|
+
var x = values[i];
|
|
19115
|
+
var y = values[i + 1];
|
|
19116
|
+
values[i] = x * scaleX;
|
|
19117
|
+
values[i + 1] = y * scaleY;
|
|
19118
|
+
valuesBase.push(x, y);
|
|
19119
|
+
}
|
|
19120
|
+
}
|
|
19121
|
+
else {
|
|
19122
|
+
for (var i = 0, imax = values.length; i < imax; i += 2) {
|
|
19123
|
+
values[i] = valuesBase[i] * scaleX;
|
|
19124
|
+
values[i + 1] = valuesBase[i + 1] * scaleY;
|
|
19125
|
+
}
|
|
19126
|
+
}
|
|
19127
|
+
// Invalidate
|
|
19128
|
+
this._id += 1;
|
|
19129
|
+
if (this._formatter || this._style & EShapePointsStyle.FORMATTER_MASK) {
|
|
19130
|
+
var uploaded = parent.uploaded;
|
|
19131
|
+
if (uploaded && !uploaded.isCompatible(parent)) {
|
|
19132
|
+
parent.uploaded = undefined;
|
|
19133
|
+
parent.toDirty();
|
|
19163
19134
|
}
|
|
19164
19135
|
}
|
|
19165
19136
|
};
|
|
@@ -19268,38 +19239,14 @@ var EShapeLinePoints = /** @class */ (function () {
|
|
|
19268
19239
|
style: EShapePointsStyle.NONE
|
|
19269
19240
|
};
|
|
19270
19241
|
}
|
|
19271
|
-
var
|
|
19242
|
+
var values = this._values;
|
|
19272
19243
|
var segments = this._segments;
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
toPointsBoundary(result.values, result.boundary);
|
|
19277
|
-
var formattedValues = result.values;
|
|
19278
|
-
var formattedValuesBase = formattedValues.splice(0);
|
|
19279
|
-
this._formattedValuesBase = formattedValuesBase;
|
|
19280
|
-
var formattedBoundary = result.boundary;
|
|
19281
|
-
var formattedBoundaryBase = [
|
|
19282
|
-
formattedBoundary[0],
|
|
19283
|
-
formattedBoundary[1],
|
|
19284
|
-
formattedBoundary[2],
|
|
19285
|
-
formattedBoundary[3]
|
|
19286
|
-
];
|
|
19287
|
-
this._formattedBoundaryBase = formattedBoundaryBase;
|
|
19288
|
-
this.toScaled(formattedValues, formattedValuesBase, formattedBoundary, formattedBoundaryBase);
|
|
19289
|
-
}
|
|
19290
|
-
else {
|
|
19291
|
-
var values = this._values;
|
|
19292
|
-
var length_2 = values.length >> 1;
|
|
19293
|
-
formatter(length_2, values, segments, style, result);
|
|
19294
|
-
toPointsBoundary(result.values, result.boundary);
|
|
19295
|
-
this._formattedValuesBase = undefined;
|
|
19296
|
-
this._formattedBoundaryBase = undefined;
|
|
19297
|
-
}
|
|
19244
|
+
var length_1 = values.length >> 1;
|
|
19245
|
+
formatter(length_1, values, segments, style, result);
|
|
19246
|
+
toPointsBoundary(result.values, result.boundary);
|
|
19298
19247
|
}
|
|
19299
19248
|
else {
|
|
19300
19249
|
result = undefined;
|
|
19301
|
-
this._formattedValuesBase = undefined;
|
|
19302
|
-
this._formattedBoundaryBase = undefined;
|
|
19303
19250
|
}
|
|
19304
19251
|
this._formatted = result;
|
|
19305
19252
|
}
|
|
@@ -19348,7 +19295,8 @@ var EShapeLinePoints = /** @class */ (function () {
|
|
|
19348
19295
|
var valuesBaseLength = this._valuesBaseLength;
|
|
19349
19296
|
var newValuesLength = newValues.length;
|
|
19350
19297
|
var iupdate = Math.min(newValuesLength, valuesBaseLength);
|
|
19351
|
-
this.
|
|
19298
|
+
var parentSize = this._parent.size;
|
|
19299
|
+
this.toFitted(parentSize.x, parentSize.y);
|
|
19352
19300
|
if (values !== newValues) {
|
|
19353
19301
|
for (var i = 0; i < iupdate; ++i) {
|
|
19354
19302
|
values[i] = newValues[i];
|
|
@@ -19764,8 +19712,8 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
19764
19712
|
transform.scale.set(1, 1);
|
|
19765
19713
|
transform.rotation = 0;
|
|
19766
19714
|
transform.skew.set(0, 0);
|
|
19715
|
+
points.toFitted(sx, sy);
|
|
19767
19716
|
this.size.set(sx, sy);
|
|
19768
|
-
points.toFitted();
|
|
19769
19717
|
points.set(values);
|
|
19770
19718
|
this.allowUploadedUpdate();
|
|
19771
19719
|
}
|
|
@@ -38725,6 +38673,9 @@ var EShapeGroupPoints = /** @class */ (function () {
|
|
|
38725
38673
|
enumerable: false,
|
|
38726
38674
|
configurable: true
|
|
38727
38675
|
});
|
|
38676
|
+
EShapeGroupPoints.prototype.onSizeChange = function () {
|
|
38677
|
+
// DO NOTHING
|
|
38678
|
+
};
|
|
38728
38679
|
EShapeGroupPoints.prototype.copy = function (source) {
|
|
38729
38680
|
var children = this._parent.children;
|
|
38730
38681
|
for (var i = 0, imax = children.length; i < imax; ++i) {
|
|
@@ -40555,6 +40506,9 @@ var EShapeLineOfAnyPointsImpl = /** @class */ (function () {
|
|
|
40555
40506
|
enumerable: false,
|
|
40556
40507
|
configurable: true
|
|
40557
40508
|
});
|
|
40509
|
+
EShapeLineOfAnyPointsImpl.prototype.onSizeChange = function () {
|
|
40510
|
+
// DO NOTHING
|
|
40511
|
+
};
|
|
40558
40512
|
EShapeLineOfAnyPointsImpl.prototype.copy = function (source) {
|
|
40559
40513
|
return this.set(source.values, source.segments, source.style);
|
|
40560
40514
|
};
|
|
@@ -78690,8 +78644,8 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
78690
78644
|
}
|
|
78691
78645
|
line.disallowUploadedUpdate();
|
|
78692
78646
|
line.points.set(values, segments);
|
|
78647
|
+
line.points.toFitted(sx, sy);
|
|
78693
78648
|
line.size.set(sx, sy);
|
|
78694
|
-
line.points.toFitted();
|
|
78695
78649
|
line.transform.position.set(cx, cy);
|
|
78696
78650
|
line.allowUploadedUpdate();
|
|
78697
78651
|
};
|
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
|
|
|
@@ -1994,6 +1994,9 @@
|
|
|
1994
1994
|
return 0;
|
|
1995
1995
|
}
|
|
1996
1996
|
};
|
|
1997
|
+
EShapeBarPoints.prototype.onSizeChange = function () {
|
|
1998
|
+
this.update();
|
|
1999
|
+
};
|
|
1997
2000
|
EShapeBarPoints.prototype.update = function () {
|
|
1998
2001
|
var parentSize = this._parent.size;
|
|
1999
2002
|
var parentSizeX = parentSize.x;
|
|
@@ -4657,6 +4660,10 @@
|
|
|
4657
4660
|
this._boundsInternalTransformId = NaN;
|
|
4658
4661
|
this._boundsLocalTransformId = NaN;
|
|
4659
4662
|
this.onTransformChange_();
|
|
4663
|
+
var points = this._points;
|
|
4664
|
+
if (points != null) {
|
|
4665
|
+
points.onSizeChange();
|
|
4666
|
+
}
|
|
4660
4667
|
this.updateUploaded();
|
|
4661
4668
|
var connector = this._connector;
|
|
4662
4669
|
if (connector != null) {
|
|
@@ -19067,96 +19074,60 @@
|
|
|
19067
19074
|
enumerable: false,
|
|
19068
19075
|
configurable: true
|
|
19069
19076
|
});
|
|
19070
|
-
EShapeLinePoints.prototype.toFitted = function () {
|
|
19077
|
+
EShapeLinePoints.prototype.toFitted = function (x, y) {
|
|
19071
19078
|
this._valuesBase = undefined;
|
|
19072
|
-
|
|
19073
|
-
this.
|
|
19074
|
-
|
|
19079
|
+
this._parentSizeFitted.set(x, y);
|
|
19080
|
+
this._parentSizeBase.set(x, y);
|
|
19081
|
+
};
|
|
19082
|
+
EShapeLinePoints.prototype.onSizeChange = function () {
|
|
19083
|
+
this.fit();
|
|
19075
19084
|
};
|
|
19076
19085
|
EShapeLinePoints.prototype.fit = function () {
|
|
19086
|
+
var parent = this._parent;
|
|
19077
19087
|
var psizef = this._parentSizeFitted;
|
|
19078
|
-
var psize =
|
|
19088
|
+
var psize = parent.size;
|
|
19079
19089
|
var psizeX = psize.x;
|
|
19080
19090
|
var psizeY = psize.y;
|
|
19081
19091
|
var threshold = 0.00001;
|
|
19082
|
-
if (
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
var x = formattedValues[i];
|
|
19122
|
-
var y = formattedValues[i + 1];
|
|
19123
|
-
formattedValues[i] = x * scaleX;
|
|
19124
|
-
formattedValues[i + 1] = y * scaleY;
|
|
19125
|
-
formattedValuesBase.push(x, y);
|
|
19126
|
-
}
|
|
19127
|
-
}
|
|
19128
|
-
else {
|
|
19129
|
-
for (var i = 0, imax = formattedValues.length; i < imax; i += 2) {
|
|
19130
|
-
formattedValues[i] = formattedValuesBase[i] * scaleX;
|
|
19131
|
-
formattedValues[i + 1] = formattedValuesBase[i + 1] * scaleY;
|
|
19132
|
-
}
|
|
19133
|
-
}
|
|
19134
|
-
// Formatted boundary
|
|
19135
|
-
var formattedBoundary = formatted.boundary;
|
|
19136
|
-
var formattedBoundaryBase = this._formattedBoundaryBase;
|
|
19137
|
-
if (formattedBoundaryBase == null) {
|
|
19138
|
-
formattedBoundaryBase = [0, 0, 0, 0];
|
|
19139
|
-
this._formattedBoundaryBase = formattedBoundaryBase;
|
|
19140
|
-
for (var i = 0, imax = formattedBoundary.length; i < imax; i += 2) {
|
|
19141
|
-
var x = formattedBoundary[i];
|
|
19142
|
-
var y = formattedBoundary[i + 1];
|
|
19143
|
-
formattedBoundary[i] = x * scaleX;
|
|
19144
|
-
formattedBoundary[i + 1] = y * scaleY;
|
|
19145
|
-
formattedBoundaryBase[i] = x;
|
|
19146
|
-
formattedBoundaryBase[i + 1] = y;
|
|
19147
|
-
}
|
|
19148
|
-
}
|
|
19149
|
-
else {
|
|
19150
|
-
for (var i = 0, imax = formattedBoundary.length; i < imax; i += 2) {
|
|
19151
|
-
formattedBoundary[i] = formattedBoundaryBase[i] * scaleX;
|
|
19152
|
-
formattedBoundary[i + 1] = formattedBoundaryBase[i + 1] * scaleY;
|
|
19153
|
-
}
|
|
19154
|
-
}
|
|
19155
|
-
// Formatted ID
|
|
19156
|
-
this._formattedId += 1;
|
|
19157
|
-
}
|
|
19158
|
-
}
|
|
19159
|
-
this._id += 1;
|
|
19092
|
+
if (Math.abs(psizeX - psizef.x) <= threshold && Math.abs(psizeY - psizef.y) <= threshold) {
|
|
19093
|
+
return;
|
|
19094
|
+
}
|
|
19095
|
+
psizef.set(psizeX, psizeY);
|
|
19096
|
+
var psizeBase = this._parentSizeBase;
|
|
19097
|
+
var isValidX = threshold < Math.abs(psizeBase.x);
|
|
19098
|
+
var isValidY = threshold < Math.abs(psizeBase.y);
|
|
19099
|
+
if (!isValidX && !isValidY) {
|
|
19100
|
+
return;
|
|
19101
|
+
}
|
|
19102
|
+
var scaleX = isValidX ? psizeX / psizeBase.x : 1;
|
|
19103
|
+
var scaleY = isValidY ? psizeY / psizeBase.y : 1;
|
|
19104
|
+
// Values
|
|
19105
|
+
var values = this._values;
|
|
19106
|
+
var valuesBase = this._valuesBase;
|
|
19107
|
+
if (valuesBase == null) {
|
|
19108
|
+
valuesBase = [];
|
|
19109
|
+
this._valuesBase = valuesBase;
|
|
19110
|
+
for (var i = 0, imax = values.length; i < imax; i += 2) {
|
|
19111
|
+
var x = values[i];
|
|
19112
|
+
var y = values[i + 1];
|
|
19113
|
+
values[i] = x * scaleX;
|
|
19114
|
+
values[i + 1] = y * scaleY;
|
|
19115
|
+
valuesBase.push(x, y);
|
|
19116
|
+
}
|
|
19117
|
+
}
|
|
19118
|
+
else {
|
|
19119
|
+
for (var i = 0, imax = values.length; i < imax; i += 2) {
|
|
19120
|
+
values[i] = valuesBase[i] * scaleX;
|
|
19121
|
+
values[i + 1] = valuesBase[i + 1] * scaleY;
|
|
19122
|
+
}
|
|
19123
|
+
}
|
|
19124
|
+
// Invalidate
|
|
19125
|
+
this._id += 1;
|
|
19126
|
+
if (this._formatter || this._style & EShapePointsStyle.FORMATTER_MASK) {
|
|
19127
|
+
var uploaded = parent.uploaded;
|
|
19128
|
+
if (uploaded && !uploaded.isCompatible(parent)) {
|
|
19129
|
+
parent.uploaded = undefined;
|
|
19130
|
+
parent.toDirty();
|
|
19160
19131
|
}
|
|
19161
19132
|
}
|
|
19162
19133
|
};
|
|
@@ -19265,38 +19236,14 @@
|
|
|
19265
19236
|
style: EShapePointsStyle.NONE
|
|
19266
19237
|
};
|
|
19267
19238
|
}
|
|
19268
|
-
var
|
|
19239
|
+
var values = this._values;
|
|
19269
19240
|
var segments = this._segments;
|
|
19270
|
-
|
|
19271
|
-
|
|
19272
|
-
|
|
19273
|
-
toPointsBoundary(result.values, result.boundary);
|
|
19274
|
-
var formattedValues = result.values;
|
|
19275
|
-
var formattedValuesBase = formattedValues.splice(0);
|
|
19276
|
-
this._formattedValuesBase = formattedValuesBase;
|
|
19277
|
-
var formattedBoundary = result.boundary;
|
|
19278
|
-
var formattedBoundaryBase = [
|
|
19279
|
-
formattedBoundary[0],
|
|
19280
|
-
formattedBoundary[1],
|
|
19281
|
-
formattedBoundary[2],
|
|
19282
|
-
formattedBoundary[3]
|
|
19283
|
-
];
|
|
19284
|
-
this._formattedBoundaryBase = formattedBoundaryBase;
|
|
19285
|
-
this.toScaled(formattedValues, formattedValuesBase, formattedBoundary, formattedBoundaryBase);
|
|
19286
|
-
}
|
|
19287
|
-
else {
|
|
19288
|
-
var values = this._values;
|
|
19289
|
-
var length_2 = values.length >> 1;
|
|
19290
|
-
formatter(length_2, values, segments, style, result);
|
|
19291
|
-
toPointsBoundary(result.values, result.boundary);
|
|
19292
|
-
this._formattedValuesBase = undefined;
|
|
19293
|
-
this._formattedBoundaryBase = undefined;
|
|
19294
|
-
}
|
|
19241
|
+
var length_1 = values.length >> 1;
|
|
19242
|
+
formatter(length_1, values, segments, style, result);
|
|
19243
|
+
toPointsBoundary(result.values, result.boundary);
|
|
19295
19244
|
}
|
|
19296
19245
|
else {
|
|
19297
19246
|
result = undefined;
|
|
19298
|
-
this._formattedValuesBase = undefined;
|
|
19299
|
-
this._formattedBoundaryBase = undefined;
|
|
19300
19247
|
}
|
|
19301
19248
|
this._formatted = result;
|
|
19302
19249
|
}
|
|
@@ -19345,7 +19292,8 @@
|
|
|
19345
19292
|
var valuesBaseLength = this._valuesBaseLength;
|
|
19346
19293
|
var newValuesLength = newValues.length;
|
|
19347
19294
|
var iupdate = Math.min(newValuesLength, valuesBaseLength);
|
|
19348
|
-
this.
|
|
19295
|
+
var parentSize = this._parent.size;
|
|
19296
|
+
this.toFitted(parentSize.x, parentSize.y);
|
|
19349
19297
|
if (values !== newValues) {
|
|
19350
19298
|
for (var i = 0; i < iupdate; ++i) {
|
|
19351
19299
|
values[i] = newValues[i];
|
|
@@ -19761,8 +19709,8 @@
|
|
|
19761
19709
|
transform.scale.set(1, 1);
|
|
19762
19710
|
transform.rotation = 0;
|
|
19763
19711
|
transform.skew.set(0, 0);
|
|
19712
|
+
points.toFitted(sx, sy);
|
|
19764
19713
|
this.size.set(sx, sy);
|
|
19765
|
-
points.toFitted();
|
|
19766
19714
|
points.set(values);
|
|
19767
19715
|
this.allowUploadedUpdate();
|
|
19768
19716
|
}
|
|
@@ -38722,6 +38670,9 @@
|
|
|
38722
38670
|
enumerable: false,
|
|
38723
38671
|
configurable: true
|
|
38724
38672
|
});
|
|
38673
|
+
EShapeGroupPoints.prototype.onSizeChange = function () {
|
|
38674
|
+
// DO NOTHING
|
|
38675
|
+
};
|
|
38725
38676
|
EShapeGroupPoints.prototype.copy = function (source) {
|
|
38726
38677
|
var children = this._parent.children;
|
|
38727
38678
|
for (var i = 0, imax = children.length; i < imax; ++i) {
|
|
@@ -40552,6 +40503,9 @@
|
|
|
40552
40503
|
enumerable: false,
|
|
40553
40504
|
configurable: true
|
|
40554
40505
|
});
|
|
40506
|
+
EShapeLineOfAnyPointsImpl.prototype.onSizeChange = function () {
|
|
40507
|
+
// DO NOTHING
|
|
40508
|
+
};
|
|
40555
40509
|
EShapeLineOfAnyPointsImpl.prototype.copy = function (source) {
|
|
40556
40510
|
return this.set(source.values, source.segments, source.style);
|
|
40557
40511
|
};
|
|
@@ -60364,8 +60318,8 @@
|
|
|
60364
60318
|
}
|
|
60365
60319
|
line.disallowUploadedUpdate();
|
|
60366
60320
|
line.points.set(values, segments);
|
|
60321
|
+
line.points.toFitted(sx, sy);
|
|
60367
60322
|
line.size.set(sx, sy);
|
|
60368
|
-
line.points.toFitted();
|
|
60369
60323
|
line.transform.position.set(cx, cy);
|
|
60370
60324
|
line.allowUploadedUpdate();
|
|
60371
60325
|
};
|