@wcardinal/wcardinal-ui 0.307.0 → 0.309.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/d-chart-series-linear.d.ts +1 -3
- package/dist/wcardinal/ui/d-chart-axis-container-impl.js +0 -6
- package/dist/wcardinal/ui/d-chart-axis-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-plot-area-impl.js +39 -6
- package/dist/wcardinal/ui/d-chart-plot-area-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-container-impl.js +0 -10
- package/dist/wcardinal/ui/d-chart-series-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-linear.js +14 -35
- package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-list-items.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-list-items.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-header.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-header.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-list-items.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-list-items.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-header.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-header.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +4 -4
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +4 -4
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +60 -64
- package/dist/wcardinal-ui.js +54 -58
- 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.309.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -48548,7 +48548,7 @@ var DThemeWhiteListItems = /** @class */ (function () {
|
|
|
48548
48548
|
}
|
|
48549
48549
|
};
|
|
48550
48550
|
DThemeWhiteListItems.prototype.getHeight = function () {
|
|
48551
|
-
return
|
|
48551
|
+
return 30;
|
|
48552
48552
|
};
|
|
48553
48553
|
DThemeWhiteListItems.prototype.getCornerMask = function () {
|
|
48554
48554
|
return DCornerMask.ALL;
|
|
@@ -53717,7 +53717,7 @@ var DThemeWhiteTableBody = /** @class */ (function (_super) {
|
|
|
53717
53717
|
return null;
|
|
53718
53718
|
};
|
|
53719
53719
|
DThemeWhiteTableBody.prototype.getRowHeight = function () {
|
|
53720
|
-
return
|
|
53720
|
+
return 30;
|
|
53721
53721
|
};
|
|
53722
53722
|
DThemeWhiteTableBody.prototype.getInteractive = function () {
|
|
53723
53723
|
return DBaseInteractive.BOTH;
|
|
@@ -54908,7 +54908,7 @@ var DThemeWhiteTableHeader = /** @class */ (function (_super) {
|
|
|
54908
54908
|
return "100%";
|
|
54909
54909
|
};
|
|
54910
54910
|
DThemeWhiteTableHeader.prototype.getHeight = function () {
|
|
54911
|
-
return
|
|
54911
|
+
return 30;
|
|
54912
54912
|
};
|
|
54913
54913
|
return DThemeWhiteTableHeader;
|
|
54914
54914
|
}(DThemeWhiteTableRow));
|
|
@@ -57733,7 +57733,7 @@ var DThemeDarkListItems = /** @class */ (function () {
|
|
|
57733
57733
|
}
|
|
57734
57734
|
};
|
|
57735
57735
|
DThemeDarkListItems.prototype.getHeight = function () {
|
|
57736
|
-
return
|
|
57736
|
+
return 30;
|
|
57737
57737
|
};
|
|
57738
57738
|
DThemeDarkListItems.prototype.getCornerMask = function () {
|
|
57739
57739
|
return DCornerMask.ALL;
|
|
@@ -62887,7 +62887,7 @@ var DThemeDarkTableBody = /** @class */ (function (_super) {
|
|
|
62887
62887
|
return null;
|
|
62888
62888
|
};
|
|
62889
62889
|
DThemeDarkTableBody.prototype.getRowHeight = function () {
|
|
62890
|
-
return
|
|
62890
|
+
return 30;
|
|
62891
62891
|
};
|
|
62892
62892
|
DThemeDarkTableBody.prototype.getInteractive = function () {
|
|
62893
62893
|
return DBaseInteractive.BOTH;
|
|
@@ -64021,7 +64021,7 @@ var DThemeDarkTableHeader = /** @class */ (function (_super) {
|
|
|
64021
64021
|
return "100%";
|
|
64022
64022
|
};
|
|
64023
64023
|
DThemeDarkTableHeader.prototype.getHeight = function () {
|
|
64024
|
-
return
|
|
64024
|
+
return 30;
|
|
64025
64025
|
};
|
|
64026
64026
|
return DThemeDarkTableHeader;
|
|
64027
64027
|
}(DThemeDarkTableRow));
|
|
@@ -73827,12 +73827,6 @@ var DChartAxisContainerImpl = /** @class */ (function () {
|
|
|
73827
73827
|
this._plotArea = plotArea;
|
|
73828
73828
|
this._container = new EShapeContainer();
|
|
73829
73829
|
this._list = new Map();
|
|
73830
|
-
var list = options && options.list;
|
|
73831
|
-
if (list) {
|
|
73832
|
-
for (var i = 0, imax = list.length; i < imax; ++i) {
|
|
73833
|
-
this.add(list[i]);
|
|
73834
|
-
}
|
|
73835
|
-
}
|
|
73836
73830
|
}
|
|
73837
73831
|
Object.defineProperty(DChartAxisContainerImpl.prototype, "container", {
|
|
73838
73832
|
get: function () {
|
|
@@ -75138,16 +75132,6 @@ var DChartSeriesContainerImpl = /** @class */ (function () {
|
|
|
75138
75132
|
this._offset = new DChartSeriesPointImpl(options === null || options === void 0 ? void 0 : options.offset);
|
|
75139
75133
|
this._padding = new DChartSeriesPaddingImpl(options === null || options === void 0 ? void 0 : options.padding);
|
|
75140
75134
|
this._list = [];
|
|
75141
|
-
var list = options && options.list;
|
|
75142
|
-
if (list) {
|
|
75143
|
-
var listLength = list.length;
|
|
75144
|
-
if (0 < listLength) {
|
|
75145
|
-
for (var i = 0; i < listLength; ++i) {
|
|
75146
|
-
this.add(list[i]);
|
|
75147
|
-
}
|
|
75148
|
-
this.update();
|
|
75149
|
-
}
|
|
75150
|
-
}
|
|
75151
75135
|
}
|
|
75152
75136
|
DChartSeriesContainerImpl.prototype.newFill = function (index, options) {
|
|
75153
75137
|
return DChartSeriesFillComputedImpl.from(this._fill, index, options);
|
|
@@ -75340,24 +75324,30 @@ var DChartPlotAreaImpl = /** @class */ (function (_super) {
|
|
|
75340
75324
|
var _this = this;
|
|
75341
75325
|
var _a;
|
|
75342
75326
|
_super.prototype.init.call(this, options);
|
|
75327
|
+
this._isBoundsInContainerDirty = true;
|
|
75328
|
+
this._boundsInContainer = new pixi_js.Rectangle();
|
|
75329
|
+
this._workPoint = new pixi_js.Point();
|
|
75330
|
+
// Container
|
|
75343
75331
|
var container = new DChartPlotAreaContainer(function () {
|
|
75344
75332
|
_this._isViewDirty = true;
|
|
75345
75333
|
_this._isBoundsInContainerDirty = true;
|
|
75346
75334
|
DApplications.update(_this);
|
|
75347
75335
|
});
|
|
75348
75336
|
this._container = container;
|
|
75337
|
+
this.addChild(container);
|
|
75338
|
+
// View
|
|
75339
|
+
this._isViewDirty = true;
|
|
75340
|
+
this._view = new DViewImpl(this, function () { return container; }, options === null || options === void 0 ? void 0 : options.view);
|
|
75341
|
+
// Coordinate container
|
|
75349
75342
|
this._coordinate = new DChartCoordinateContainerImpl(this, options === null || options === void 0 ? void 0 : options.coordinate);
|
|
75343
|
+
// Series container
|
|
75350
75344
|
var series = new DChartSeriesContainerImpl(this, options === null || options === void 0 ? void 0 : options.series);
|
|
75351
75345
|
this._series = series;
|
|
75346
|
+
// Axis container
|
|
75352
75347
|
var axis = new DChartAxisContainerImpl(this, options === null || options === void 0 ? void 0 : options.axis);
|
|
75353
75348
|
this._axis = axis;
|
|
75354
|
-
this._isViewDirty = true;
|
|
75355
|
-
this._isBoundsInContainerDirty = true;
|
|
75356
|
-
this._boundsInContainer = new pixi_js.Rectangle();
|
|
75357
|
-
this._workPoint = new pixi_js.Point();
|
|
75358
|
-
this.addChild(container);
|
|
75359
75349
|
this.addChild(axis.container);
|
|
75360
|
-
|
|
75350
|
+
// Selection
|
|
75361
75351
|
var selection = series.selection;
|
|
75362
75352
|
if (selection) {
|
|
75363
75353
|
selection.bind(series);
|
|
@@ -75367,6 +75357,33 @@ var DChartPlotAreaImpl = /** @class */ (function (_super) {
|
|
|
75367
75357
|
if (mask) {
|
|
75368
75358
|
container.mask = this.getOverflowMask();
|
|
75369
75359
|
}
|
|
75360
|
+
// Add series and axes
|
|
75361
|
+
if (options != null) {
|
|
75362
|
+
// Series
|
|
75363
|
+
var s = options.series;
|
|
75364
|
+
if (s != null) {
|
|
75365
|
+
var list = s.list;
|
|
75366
|
+
if (list) {
|
|
75367
|
+
var listLength = list.length;
|
|
75368
|
+
if (0 < listLength) {
|
|
75369
|
+
for (var i = 0; i < listLength; ++i) {
|
|
75370
|
+
series.add(list[i]);
|
|
75371
|
+
}
|
|
75372
|
+
series.update();
|
|
75373
|
+
}
|
|
75374
|
+
}
|
|
75375
|
+
}
|
|
75376
|
+
// Axes
|
|
75377
|
+
var a = options.axis;
|
|
75378
|
+
if (a != null) {
|
|
75379
|
+
var list = a.list;
|
|
75380
|
+
if (list) {
|
|
75381
|
+
for (var i = 0, imax = list.length; i < imax; ++i) {
|
|
75382
|
+
axis.add(list[i]);
|
|
75383
|
+
}
|
|
75384
|
+
}
|
|
75385
|
+
}
|
|
75386
|
+
}
|
|
75370
75387
|
};
|
|
75371
75388
|
DChartPlotAreaImpl.prototype.onResize = function (newWidth, newHeight, oldWidth, oldHeight) {
|
|
75372
75389
|
this._isViewDirty = true;
|
|
@@ -77338,8 +77355,6 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
77338
77355
|
var _this = _super.call(this, options) || this;
|
|
77339
77356
|
_this._line = null;
|
|
77340
77357
|
_this._options = options;
|
|
77341
|
-
_this._plotAreaSizeXUpdated = NaN;
|
|
77342
|
-
_this._plotAreaSizeYUpdated = NaN;
|
|
77343
77358
|
_this._parameters = DChartSeriesExpressionParametersImpl.from(options);
|
|
77344
77359
|
return _this;
|
|
77345
77360
|
}
|
|
@@ -77355,9 +77370,6 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
77355
77370
|
this._line = line;
|
|
77356
77371
|
}
|
|
77357
77372
|
line.attach(container.plotArea.container, index);
|
|
77358
|
-
this._parameters.toDirty();
|
|
77359
|
-
this._plotAreaSizeXUpdated = NaN;
|
|
77360
|
-
this._plotAreaSizeYUpdated = NaN;
|
|
77361
77373
|
_super.prototype.bind.call(this, container, index);
|
|
77362
77374
|
return this;
|
|
77363
77375
|
};
|
|
@@ -77399,37 +77411,20 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
77399
77411
|
var line = this._line;
|
|
77400
77412
|
var container = this._container;
|
|
77401
77413
|
if (line && container) {
|
|
77402
|
-
var plotArea = container.plotArea;
|
|
77403
77414
|
var coordinate = this._coordinate;
|
|
77404
77415
|
var coordinateX = coordinate.x;
|
|
77405
77416
|
var coordinateY = coordinate.y;
|
|
77406
77417
|
if (coordinateX && coordinateY) {
|
|
77407
|
-
|
|
77408
|
-
|
|
77409
|
-
|
|
77410
|
-
var isParametersChanged = parameters.isDirty();
|
|
77411
|
-
var isCoordinateChanged = coordinate.isDirty(coordinateX, coordinateY);
|
|
77412
|
-
var isCoordinateTransformChanged = coordinate.isTransformDirty(coordinateX, coordinateY);
|
|
77413
|
-
var isPlotAreaSizeChagned = plotAreaWidth !== this._plotAreaSizeXUpdated ||
|
|
77414
|
-
plotAreaHeight !== this._plotAreaSizeYUpdated;
|
|
77415
|
-
if (isParametersChanged ||
|
|
77416
|
-
isCoordinateChanged ||
|
|
77417
|
-
isCoordinateTransformChanged ||
|
|
77418
|
-
isPlotAreaSizeChagned) {
|
|
77419
|
-
parameters.toClean();
|
|
77420
|
-
this._plotAreaSizeXUpdated = plotAreaWidth;
|
|
77421
|
-
this._plotAreaSizeYUpdated = plotAreaHeight;
|
|
77422
|
-
this.doUpdateLine(line, coordinateX, coordinateY, plotAreaWidth, plotAreaHeight);
|
|
77423
|
-
if (render) {
|
|
77424
|
-
DApplications.update(line);
|
|
77425
|
-
}
|
|
77426
|
-
return true;
|
|
77418
|
+
this.doUpdateLine(line, container, coordinateX, coordinateY);
|
|
77419
|
+
if (render) {
|
|
77420
|
+
DApplications.update(line);
|
|
77427
77421
|
}
|
|
77422
|
+
return true;
|
|
77428
77423
|
}
|
|
77429
77424
|
}
|
|
77430
77425
|
return false;
|
|
77431
77426
|
};
|
|
77432
|
-
DChartSeriesLinear.prototype.doUpdateLine = function (line, xcoordinate, ycoordinate
|
|
77427
|
+
DChartSeriesLinear.prototype.doUpdateLine = function (line, container, xcoordinate, ycoordinate) {
|
|
77433
77428
|
var values = line.points.values;
|
|
77434
77429
|
var segments = line.points.segments;
|
|
77435
77430
|
var parameters = this._parameters;
|
|
@@ -77444,13 +77439,14 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
77444
77439
|
var p1x = NaN;
|
|
77445
77440
|
var p1y = NaN;
|
|
77446
77441
|
var threshold = 0.00001;
|
|
77442
|
+
var bounds = container.plotArea.getBoundsInContainer();
|
|
77447
77443
|
if (babs <= aabs) {
|
|
77448
|
-
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
77449
|
-
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
77444
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x));
|
|
77445
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x + bounds.width));
|
|
77450
77446
|
p0x = Math.min(xfrom, xto);
|
|
77451
77447
|
p1x = Math.max(xfrom, xto);
|
|
77452
|
-
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
77453
|
-
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
77448
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y));
|
|
77449
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y + bounds.height));
|
|
77454
77450
|
p0y = Math.min(yfrom, yto);
|
|
77455
77451
|
p1y = Math.max(yfrom, yto);
|
|
77456
77452
|
if (threshold < babs) {
|
|
@@ -77471,12 +77467,12 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
77471
77467
|
}
|
|
77472
77468
|
}
|
|
77473
77469
|
else {
|
|
77474
|
-
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
77475
|
-
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
77470
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y));
|
|
77471
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y + bounds.height));
|
|
77476
77472
|
p0y = Math.min(yfrom, yto);
|
|
77477
77473
|
p1y = Math.max(yfrom, yto);
|
|
77478
|
-
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
77479
|
-
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
77474
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x));
|
|
77475
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x + bounds.width));
|
|
77480
77476
|
p0x = Math.min(xfrom, xto);
|
|
77481
77477
|
p1x = Math.max(xfrom, xto);
|
|
77482
77478
|
if (threshold < aabs) {
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.309.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -55507,12 +55507,6 @@
|
|
|
55507
55507
|
this._plotArea = plotArea;
|
|
55508
55508
|
this._container = new EShapeContainer();
|
|
55509
55509
|
this._list = new Map();
|
|
55510
|
-
var list = options && options.list;
|
|
55511
|
-
if (list) {
|
|
55512
|
-
for (var i = 0, imax = list.length; i < imax; ++i) {
|
|
55513
|
-
this.add(list[i]);
|
|
55514
|
-
}
|
|
55515
|
-
}
|
|
55516
55510
|
}
|
|
55517
55511
|
Object.defineProperty(DChartAxisContainerImpl.prototype, "container", {
|
|
55518
55512
|
get: function () {
|
|
@@ -56818,16 +56812,6 @@
|
|
|
56818
56812
|
this._offset = new DChartSeriesPointImpl(options === null || options === void 0 ? void 0 : options.offset);
|
|
56819
56813
|
this._padding = new DChartSeriesPaddingImpl(options === null || options === void 0 ? void 0 : options.padding);
|
|
56820
56814
|
this._list = [];
|
|
56821
|
-
var list = options && options.list;
|
|
56822
|
-
if (list) {
|
|
56823
|
-
var listLength = list.length;
|
|
56824
|
-
if (0 < listLength) {
|
|
56825
|
-
for (var i = 0; i < listLength; ++i) {
|
|
56826
|
-
this.add(list[i]);
|
|
56827
|
-
}
|
|
56828
|
-
this.update();
|
|
56829
|
-
}
|
|
56830
|
-
}
|
|
56831
56815
|
}
|
|
56832
56816
|
DChartSeriesContainerImpl.prototype.newFill = function (index, options) {
|
|
56833
56817
|
return DChartSeriesFillComputedImpl.from(this._fill, index, options);
|
|
@@ -57020,24 +57004,30 @@
|
|
|
57020
57004
|
var _this = this;
|
|
57021
57005
|
var _a;
|
|
57022
57006
|
_super.prototype.init.call(this, options);
|
|
57007
|
+
this._isBoundsInContainerDirty = true;
|
|
57008
|
+
this._boundsInContainer = new pixi_js.Rectangle();
|
|
57009
|
+
this._workPoint = new pixi_js.Point();
|
|
57010
|
+
// Container
|
|
57023
57011
|
var container = new DChartPlotAreaContainer(function () {
|
|
57024
57012
|
_this._isViewDirty = true;
|
|
57025
57013
|
_this._isBoundsInContainerDirty = true;
|
|
57026
57014
|
DApplications.update(_this);
|
|
57027
57015
|
});
|
|
57028
57016
|
this._container = container;
|
|
57017
|
+
this.addChild(container);
|
|
57018
|
+
// View
|
|
57019
|
+
this._isViewDirty = true;
|
|
57020
|
+
this._view = new DViewImpl(this, function () { return container; }, options === null || options === void 0 ? void 0 : options.view);
|
|
57021
|
+
// Coordinate container
|
|
57029
57022
|
this._coordinate = new DChartCoordinateContainerImpl(this, options === null || options === void 0 ? void 0 : options.coordinate);
|
|
57023
|
+
// Series container
|
|
57030
57024
|
var series = new DChartSeriesContainerImpl(this, options === null || options === void 0 ? void 0 : options.series);
|
|
57031
57025
|
this._series = series;
|
|
57026
|
+
// Axis container
|
|
57032
57027
|
var axis = new DChartAxisContainerImpl(this, options === null || options === void 0 ? void 0 : options.axis);
|
|
57033
57028
|
this._axis = axis;
|
|
57034
|
-
this._isViewDirty = true;
|
|
57035
|
-
this._isBoundsInContainerDirty = true;
|
|
57036
|
-
this._boundsInContainer = new pixi_js.Rectangle();
|
|
57037
|
-
this._workPoint = new pixi_js.Point();
|
|
57038
|
-
this.addChild(container);
|
|
57039
57029
|
this.addChild(axis.container);
|
|
57040
|
-
|
|
57030
|
+
// Selection
|
|
57041
57031
|
var selection = series.selection;
|
|
57042
57032
|
if (selection) {
|
|
57043
57033
|
selection.bind(series);
|
|
@@ -57047,6 +57037,33 @@
|
|
|
57047
57037
|
if (mask) {
|
|
57048
57038
|
container.mask = this.getOverflowMask();
|
|
57049
57039
|
}
|
|
57040
|
+
// Add series and axes
|
|
57041
|
+
if (options != null) {
|
|
57042
|
+
// Series
|
|
57043
|
+
var s = options.series;
|
|
57044
|
+
if (s != null) {
|
|
57045
|
+
var list = s.list;
|
|
57046
|
+
if (list) {
|
|
57047
|
+
var listLength = list.length;
|
|
57048
|
+
if (0 < listLength) {
|
|
57049
|
+
for (var i = 0; i < listLength; ++i) {
|
|
57050
|
+
series.add(list[i]);
|
|
57051
|
+
}
|
|
57052
|
+
series.update();
|
|
57053
|
+
}
|
|
57054
|
+
}
|
|
57055
|
+
}
|
|
57056
|
+
// Axes
|
|
57057
|
+
var a = options.axis;
|
|
57058
|
+
if (a != null) {
|
|
57059
|
+
var list = a.list;
|
|
57060
|
+
if (list) {
|
|
57061
|
+
for (var i = 0, imax = list.length; i < imax; ++i) {
|
|
57062
|
+
axis.add(list[i]);
|
|
57063
|
+
}
|
|
57064
|
+
}
|
|
57065
|
+
}
|
|
57066
|
+
}
|
|
57050
57067
|
};
|
|
57051
57068
|
DChartPlotAreaImpl.prototype.onResize = function (newWidth, newHeight, oldWidth, oldHeight) {
|
|
57052
57069
|
this._isViewDirty = true;
|
|
@@ -59018,8 +59035,6 @@
|
|
|
59018
59035
|
var _this = _super.call(this, options) || this;
|
|
59019
59036
|
_this._line = null;
|
|
59020
59037
|
_this._options = options;
|
|
59021
|
-
_this._plotAreaSizeXUpdated = NaN;
|
|
59022
|
-
_this._plotAreaSizeYUpdated = NaN;
|
|
59023
59038
|
_this._parameters = DChartSeriesExpressionParametersImpl.from(options);
|
|
59024
59039
|
return _this;
|
|
59025
59040
|
}
|
|
@@ -59035,9 +59050,6 @@
|
|
|
59035
59050
|
this._line = line;
|
|
59036
59051
|
}
|
|
59037
59052
|
line.attach(container.plotArea.container, index);
|
|
59038
|
-
this._parameters.toDirty();
|
|
59039
|
-
this._plotAreaSizeXUpdated = NaN;
|
|
59040
|
-
this._plotAreaSizeYUpdated = NaN;
|
|
59041
59053
|
_super.prototype.bind.call(this, container, index);
|
|
59042
59054
|
return this;
|
|
59043
59055
|
};
|
|
@@ -59079,37 +59091,20 @@
|
|
|
59079
59091
|
var line = this._line;
|
|
59080
59092
|
var container = this._container;
|
|
59081
59093
|
if (line && container) {
|
|
59082
|
-
var plotArea = container.plotArea;
|
|
59083
59094
|
var coordinate = this._coordinate;
|
|
59084
59095
|
var coordinateX = coordinate.x;
|
|
59085
59096
|
var coordinateY = coordinate.y;
|
|
59086
59097
|
if (coordinateX && coordinateY) {
|
|
59087
|
-
|
|
59088
|
-
|
|
59089
|
-
|
|
59090
|
-
var isParametersChanged = parameters.isDirty();
|
|
59091
|
-
var isCoordinateChanged = coordinate.isDirty(coordinateX, coordinateY);
|
|
59092
|
-
var isCoordinateTransformChanged = coordinate.isTransformDirty(coordinateX, coordinateY);
|
|
59093
|
-
var isPlotAreaSizeChagned = plotAreaWidth !== this._plotAreaSizeXUpdated ||
|
|
59094
|
-
plotAreaHeight !== this._plotAreaSizeYUpdated;
|
|
59095
|
-
if (isParametersChanged ||
|
|
59096
|
-
isCoordinateChanged ||
|
|
59097
|
-
isCoordinateTransformChanged ||
|
|
59098
|
-
isPlotAreaSizeChagned) {
|
|
59099
|
-
parameters.toClean();
|
|
59100
|
-
this._plotAreaSizeXUpdated = plotAreaWidth;
|
|
59101
|
-
this._plotAreaSizeYUpdated = plotAreaHeight;
|
|
59102
|
-
this.doUpdateLine(line, coordinateX, coordinateY, plotAreaWidth, plotAreaHeight);
|
|
59103
|
-
if (render) {
|
|
59104
|
-
DApplications.update(line);
|
|
59105
|
-
}
|
|
59106
|
-
return true;
|
|
59098
|
+
this.doUpdateLine(line, container, coordinateX, coordinateY);
|
|
59099
|
+
if (render) {
|
|
59100
|
+
DApplications.update(line);
|
|
59107
59101
|
}
|
|
59102
|
+
return true;
|
|
59108
59103
|
}
|
|
59109
59104
|
}
|
|
59110
59105
|
return false;
|
|
59111
59106
|
};
|
|
59112
|
-
DChartSeriesLinear.prototype.doUpdateLine = function (line, xcoordinate, ycoordinate
|
|
59107
|
+
DChartSeriesLinear.prototype.doUpdateLine = function (line, container, xcoordinate, ycoordinate) {
|
|
59113
59108
|
var values = line.points.values;
|
|
59114
59109
|
var segments = line.points.segments;
|
|
59115
59110
|
var parameters = this._parameters;
|
|
@@ -59124,13 +59119,14 @@
|
|
|
59124
59119
|
var p1x = NaN;
|
|
59125
59120
|
var p1y = NaN;
|
|
59126
59121
|
var threshold = 0.00001;
|
|
59122
|
+
var bounds = container.plotArea.getBoundsInContainer();
|
|
59127
59123
|
if (babs <= aabs) {
|
|
59128
|
-
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
59129
|
-
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
59124
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x));
|
|
59125
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x + bounds.width));
|
|
59130
59126
|
p0x = Math.min(xfrom, xto);
|
|
59131
59127
|
p1x = Math.max(xfrom, xto);
|
|
59132
|
-
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
59133
|
-
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
59128
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y));
|
|
59129
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y + bounds.height));
|
|
59134
59130
|
p0y = Math.min(yfrom, yto);
|
|
59135
59131
|
p1y = Math.max(yfrom, yto);
|
|
59136
59132
|
if (threshold < babs) {
|
|
@@ -59151,12 +59147,12 @@
|
|
|
59151
59147
|
}
|
|
59152
59148
|
}
|
|
59153
59149
|
else {
|
|
59154
|
-
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
59155
|
-
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(
|
|
59150
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y));
|
|
59151
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(bounds.y + bounds.height));
|
|
59156
59152
|
p0y = Math.min(yfrom, yto);
|
|
59157
59153
|
p1y = Math.max(yfrom, yto);
|
|
59158
|
-
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
59159
|
-
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(
|
|
59154
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x));
|
|
59155
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(bounds.x + bounds.width));
|
|
59160
59156
|
p0x = Math.min(xfrom, xto);
|
|
59161
59157
|
p1x = Math.max(xfrom, xto);
|
|
59162
59158
|
if (threshold < aabs) {
|