@wcardinal/wcardinal-ui 0.296.0 → 0.298.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-axis-base-tick-container.d.ts +5 -3
- package/dist/types/wcardinal/ui/d-chart-coordinate-base.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear-tick.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-log-tick.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate.d.ts +5 -3
- package/dist/types/wcardinal/ui/d-chart-selection-container-impl.d.ts +18 -0
- package/dist/types/wcardinal/ui/{d-chart-selection-gridline-container.d.ts → d-chart-selection-container.d.ts} +4 -4
- package/dist/types/wcardinal/ui/d-chart-selection-gridline-x.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-selection-gridline-y.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-selection-marker.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-selection-shape-base.d.ts +5 -3
- package/dist/types/wcardinal/ui/d-chart-selection-shape.d.ts +4 -3
- package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +2 -0
- package/dist/types/wcardinal/ui/d-chart-selection-sub-impl.d.ts +3 -5
- package/dist/types/wcardinal/ui/d-chart-selection-sub.d.ts +3 -2
- package/dist/types/wcardinal/ui/index.d.ts +2 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.d.ts +6 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.d.ts +3 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.d.ts +2 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.d.ts +7 -0
- package/dist/types/wcardinal/ui/theme/dark/index.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.d.ts +6 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.d.ts +3 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.d.ts +2 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.d.ts +7 -0
- package/dist/types/wcardinal/ui/theme/white/index.d.ts +4 -0
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +41 -14
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-base.js +2 -2
- package/dist/wcardinal/ui/d-chart-coordinate-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js +47 -49
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js +48 -49
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-container-impl.js +48 -0
- package/dist/wcardinal/ui/d-chart-selection-container-impl.js.map +1 -0
- package/dist/wcardinal/ui/{d-chart-selection-gridline-container.js → d-chart-selection-container.js} +1 -1
- package/dist/wcardinal/ui/d-chart-selection-container.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-selection-gridline-x.js +5 -4
- package/dist/wcardinal/ui/d-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js +5 -4
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-marker.js +3 -3
- package/dist/wcardinal/ui/d-chart-selection-marker.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-shape-base.js +28 -10
- package/dist/wcardinal/ui/d-chart-selection-shape-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-shape.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-simple.js +22 -6
- package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js +11 -15
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-sub.js.map +1 -1
- package/dist/wcardinal/ui/index.js +2 -2
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.js +5 -5
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js +14 -2
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js +7 -3
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js +8 -9
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.js +11 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/index.js +4 -0
- package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.js +5 -5
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js +15 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js +8 -3
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js +8 -9
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.js +11 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/index.js +4 -0
- package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +38 -34
- 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 +40 -34
- 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 +331 -268
- package/dist/wcardinal-ui.js +259 -206
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/d-chart-selection-gridline-container-impl.d.ts +0 -18
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.d.ts +0 -7
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.d.ts +0 -7
- package/dist/wcardinal/ui/d-chart-selection-gridline-container-impl.js +0 -50
- package/dist/wcardinal/ui/d-chart-selection-gridline-container-impl.js.map +0 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-container.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.js +0 -22
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.js +0 -22
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.js.map +0 -1
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.298.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -49127,17 +49127,17 @@ var STEP_FUNCTION$1 = function (domainMin, domainMax, majorCount) {
|
|
|
49127
49127
|
else {
|
|
49128
49128
|
var days = hours / 24;
|
|
49129
49129
|
var base = Math.pow(10, Math.floor(Math.log(days) / Math.LN10));
|
|
49130
|
-
var scale =
|
|
49130
|
+
var scale = days / base;
|
|
49131
49131
|
if (scale <= 1.33) {
|
|
49132
|
-
return base;
|
|
49132
|
+
return base * 86400000;
|
|
49133
49133
|
}
|
|
49134
49134
|
else if (scale <= 2.86) {
|
|
49135
|
-
return
|
|
49135
|
+
return base * 172800000;
|
|
49136
49136
|
}
|
|
49137
49137
|
else if (scale <= 6.67) {
|
|
49138
|
-
return
|
|
49138
|
+
return base * 432000000;
|
|
49139
49139
|
}
|
|
49140
|
-
return
|
|
49140
|
+
return base * 864000000;
|
|
49141
49141
|
}
|
|
49142
49142
|
}
|
|
49143
49143
|
};
|
|
@@ -49181,7 +49181,7 @@ var DThemeWhiteChartCoordinate = /** @class */ (function () {
|
|
|
49181
49181
|
function DThemeWhiteChartCoordinate() {
|
|
49182
49182
|
}
|
|
49183
49183
|
DThemeWhiteChartCoordinate.prototype.isZero = function (value) {
|
|
49184
|
-
return Math.abs(value) <
|
|
49184
|
+
return Math.abs(value) < Number.EPSILON;
|
|
49185
49185
|
};
|
|
49186
49186
|
return DThemeWhiteChartCoordinate;
|
|
49187
49187
|
}());
|
|
@@ -49224,7 +49224,7 @@ var DThemeWhiteChartCoordinateTransform = /** @class */ (function () {
|
|
|
49224
49224
|
function DThemeWhiteChartCoordinateTransform() {
|
|
49225
49225
|
}
|
|
49226
49226
|
DThemeWhiteChartCoordinateTransform.prototype.isZero = function (value) {
|
|
49227
|
-
return Math.abs(value) <
|
|
49227
|
+
return Math.abs(value) < Number.EPSILON;
|
|
49228
49228
|
};
|
|
49229
49229
|
return DThemeWhiteChartCoordinateTransform;
|
|
49230
49230
|
}());
|
|
@@ -49314,19 +49314,10 @@ var DThemeWhiteChartPlotArea = /** @class */ (function (_super) {
|
|
|
49314
49314
|
* Copyright (C) 2019 Toshiba Corporation
|
|
49315
49315
|
* SPDX-License-Identifier: Apache-2.0
|
|
49316
49316
|
*/
|
|
49317
|
-
var
|
|
49318
|
-
function
|
|
49317
|
+
var DThemeWhiteChartSelectionShape = /** @class */ (function () {
|
|
49318
|
+
function DThemeWhiteChartSelectionShape() {
|
|
49319
49319
|
}
|
|
49320
|
-
|
|
49321
|
-
return true;
|
|
49322
|
-
};
|
|
49323
|
-
DThemeWhiteChartSelectionGridline.prototype.newShape = function (state) {
|
|
49324
|
-
var result = new EShapeBar();
|
|
49325
|
-
result.points.position = EShapeBarPosition.TOP;
|
|
49326
|
-
result.stroke.alpha = 0.5;
|
|
49327
|
-
return result;
|
|
49328
|
-
};
|
|
49329
|
-
return DThemeWhiteChartSelectionGridline;
|
|
49320
|
+
return DThemeWhiteChartSelectionShape;
|
|
49330
49321
|
}());
|
|
49331
49322
|
|
|
49332
49323
|
/*
|
|
@@ -49338,8 +49329,18 @@ var DThemeWhiteChartSelectionGridlineX = /** @class */ (function (_super) {
|
|
|
49338
49329
|
function DThemeWhiteChartSelectionGridlineX() {
|
|
49339
49330
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
49340
49331
|
}
|
|
49332
|
+
DThemeWhiteChartSelectionGridlineX.prototype.isEnabled = function (state) {
|
|
49333
|
+
return state.isHovered;
|
|
49334
|
+
};
|
|
49335
|
+
DThemeWhiteChartSelectionGridlineX.prototype.newShape = function (state) {
|
|
49336
|
+
var result = new EShapeBar();
|
|
49337
|
+
result.points.position = EShapeBarPosition.TOP;
|
|
49338
|
+
result.stroke.style = EShapeStrokeStyle.DASHED;
|
|
49339
|
+
result.stroke.alpha = 0.25;
|
|
49340
|
+
return result;
|
|
49341
|
+
};
|
|
49341
49342
|
return DThemeWhiteChartSelectionGridlineX;
|
|
49342
|
-
}(
|
|
49343
|
+
}(DThemeWhiteChartSelectionShape));
|
|
49343
49344
|
|
|
49344
49345
|
/*
|
|
49345
49346
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -49350,37 +49351,38 @@ var DThemeWhiteChartSelectionGridlineY = /** @class */ (function (_super) {
|
|
|
49350
49351
|
function DThemeWhiteChartSelectionGridlineY() {
|
|
49351
49352
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
49352
49353
|
}
|
|
49354
|
+
DThemeWhiteChartSelectionGridlineY.prototype.isEnabled = function (state) {
|
|
49355
|
+
return state.isHovered;
|
|
49356
|
+
};
|
|
49353
49357
|
DThemeWhiteChartSelectionGridlineY.prototype.newShape = function (state) {
|
|
49354
49358
|
var result = new EShapeBar();
|
|
49355
49359
|
result.points.position = EShapeBarPosition.LEFT;
|
|
49356
|
-
result.stroke.
|
|
49360
|
+
result.stroke.style = EShapeStrokeStyle.DASHED;
|
|
49361
|
+
result.stroke.alpha = 0.25;
|
|
49357
49362
|
return result;
|
|
49358
49363
|
};
|
|
49359
49364
|
return DThemeWhiteChartSelectionGridlineY;
|
|
49360
|
-
}(
|
|
49365
|
+
}(DThemeWhiteChartSelectionShape));
|
|
49361
49366
|
|
|
49362
49367
|
/*
|
|
49363
49368
|
* Copyright (C) 2019 Toshiba Corporation
|
|
49364
49369
|
* SPDX-License-Identifier: Apache-2.0
|
|
49365
49370
|
*/
|
|
49366
|
-
var DThemeWhiteChartSelectionMarker = /** @class */ (function () {
|
|
49371
|
+
var DThemeWhiteChartSelectionMarker = /** @class */ (function (_super) {
|
|
49372
|
+
__extends(DThemeWhiteChartSelectionMarker, _super);
|
|
49367
49373
|
function DThemeWhiteChartSelectionMarker() {
|
|
49374
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
49368
49375
|
}
|
|
49369
49376
|
DThemeWhiteChartSelectionMarker.prototype.isEnabled = function (state) {
|
|
49370
|
-
return
|
|
49377
|
+
return state.isActive;
|
|
49371
49378
|
};
|
|
49372
49379
|
DThemeWhiteChartSelectionMarker.prototype.newShape = function (state) {
|
|
49373
49380
|
var result = new EShapeCircle();
|
|
49374
|
-
|
|
49375
|
-
result.size.set(14, 14);
|
|
49376
|
-
}
|
|
49377
|
-
else {
|
|
49378
|
-
result.size.set(20, 20);
|
|
49379
|
-
}
|
|
49381
|
+
result.size.set(14, 14);
|
|
49380
49382
|
return result;
|
|
49381
49383
|
};
|
|
49382
49384
|
return DThemeWhiteChartSelectionMarker;
|
|
49383
|
-
}());
|
|
49385
|
+
}(DThemeWhiteChartSelectionShape));
|
|
49384
49386
|
|
|
49385
49387
|
/*
|
|
49386
49388
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -58287,17 +58289,17 @@ var STEP_FUNCTION = function (domainMin, domainMax, majorCount) {
|
|
|
58287
58289
|
else {
|
|
58288
58290
|
var days = hours / 24;
|
|
58289
58291
|
var base = Math.pow(10, Math.floor(Math.log(days) / Math.LN10));
|
|
58290
|
-
var scale =
|
|
58292
|
+
var scale = days / base;
|
|
58291
58293
|
if (scale <= 1.33) {
|
|
58292
|
-
return base;
|
|
58294
|
+
return base * 86400000;
|
|
58293
58295
|
}
|
|
58294
58296
|
else if (scale <= 2.86) {
|
|
58295
|
-
return
|
|
58297
|
+
return base * 172800000;
|
|
58296
58298
|
}
|
|
58297
58299
|
else if (scale <= 6.67) {
|
|
58298
|
-
return
|
|
58300
|
+
return base * 432000000;
|
|
58299
58301
|
}
|
|
58300
|
-
return
|
|
58302
|
+
return base * 864000000;
|
|
58301
58303
|
}
|
|
58302
58304
|
}
|
|
58303
58305
|
};
|
|
@@ -58341,7 +58343,7 @@ var DThemeDarkChartCoordinate = /** @class */ (function () {
|
|
|
58341
58343
|
function DThemeDarkChartCoordinate() {
|
|
58342
58344
|
}
|
|
58343
58345
|
DThemeDarkChartCoordinate.prototype.isZero = function (value) {
|
|
58344
|
-
return Math.abs(value) <
|
|
58346
|
+
return Math.abs(value) < Number.EPSILON;
|
|
58345
58347
|
};
|
|
58346
58348
|
return DThemeDarkChartCoordinate;
|
|
58347
58349
|
}());
|
|
@@ -58384,7 +58386,7 @@ var DThemeDarkChartCoordinateTransform = /** @class */ (function () {
|
|
|
58384
58386
|
function DThemeDarkChartCoordinateTransform() {
|
|
58385
58387
|
}
|
|
58386
58388
|
DThemeDarkChartCoordinateTransform.prototype.isZero = function (value) {
|
|
58387
|
-
return Math.abs(value) <
|
|
58389
|
+
return Math.abs(value) < Number.EPSILON;
|
|
58388
58390
|
};
|
|
58389
58391
|
return DThemeDarkChartCoordinateTransform;
|
|
58390
58392
|
}());
|
|
@@ -58474,19 +58476,10 @@ var DThemeDarkChartPlotArea = /** @class */ (function (_super) {
|
|
|
58474
58476
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58475
58477
|
* SPDX-License-Identifier: Apache-2.0
|
|
58476
58478
|
*/
|
|
58477
|
-
var
|
|
58478
|
-
function
|
|
58479
|
+
var DThemeDarkChartSelectionShape = /** @class */ (function () {
|
|
58480
|
+
function DThemeDarkChartSelectionShape() {
|
|
58479
58481
|
}
|
|
58480
|
-
|
|
58481
|
-
return true;
|
|
58482
|
-
};
|
|
58483
|
-
DThemeDarkChartSelectionGridline.prototype.newShape = function (state) {
|
|
58484
|
-
var result = new EShapeBar();
|
|
58485
|
-
result.points.position = EShapeBarPosition.TOP;
|
|
58486
|
-
result.stroke.alpha = 0.5;
|
|
58487
|
-
return result;
|
|
58488
|
-
};
|
|
58489
|
-
return DThemeDarkChartSelectionGridline;
|
|
58482
|
+
return DThemeDarkChartSelectionShape;
|
|
58490
58483
|
}());
|
|
58491
58484
|
|
|
58492
58485
|
/*
|
|
@@ -58498,8 +58491,17 @@ var DThemeDarkChartSelectionGridlineX = /** @class */ (function (_super) {
|
|
|
58498
58491
|
function DThemeDarkChartSelectionGridlineX() {
|
|
58499
58492
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
58500
58493
|
}
|
|
58494
|
+
DThemeDarkChartSelectionGridlineX.prototype.isEnabled = function (state) {
|
|
58495
|
+
return state.isHovered;
|
|
58496
|
+
};
|
|
58497
|
+
DThemeDarkChartSelectionGridlineX.prototype.newShape = function (state) {
|
|
58498
|
+
var result = new EShapeBar();
|
|
58499
|
+
result.points.position = EShapeBarPosition.TOP;
|
|
58500
|
+
result.stroke.style = EShapeStrokeStyle.DASHED;
|
|
58501
|
+
return result;
|
|
58502
|
+
};
|
|
58501
58503
|
return DThemeDarkChartSelectionGridlineX;
|
|
58502
|
-
}(
|
|
58504
|
+
}(DThemeDarkChartSelectionShape));
|
|
58503
58505
|
|
|
58504
58506
|
/*
|
|
58505
58507
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -58510,37 +58512,37 @@ var DThemeDarkChartSelectionGridlineY = /** @class */ (function (_super) {
|
|
|
58510
58512
|
function DThemeDarkChartSelectionGridlineY() {
|
|
58511
58513
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
58512
58514
|
}
|
|
58515
|
+
DThemeDarkChartSelectionGridlineY.prototype.isEnabled = function (state) {
|
|
58516
|
+
return state.isHovered;
|
|
58517
|
+
};
|
|
58513
58518
|
DThemeDarkChartSelectionGridlineY.prototype.newShape = function (state) {
|
|
58514
58519
|
var result = new EShapeBar();
|
|
58515
58520
|
result.points.position = EShapeBarPosition.LEFT;
|
|
58516
|
-
result.stroke.
|
|
58521
|
+
result.stroke.style = EShapeStrokeStyle.DASHED;
|
|
58517
58522
|
return result;
|
|
58518
58523
|
};
|
|
58519
58524
|
return DThemeDarkChartSelectionGridlineY;
|
|
58520
|
-
}(
|
|
58525
|
+
}(DThemeDarkChartSelectionShape));
|
|
58521
58526
|
|
|
58522
58527
|
/*
|
|
58523
58528
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58524
58529
|
* SPDX-License-Identifier: Apache-2.0
|
|
58525
58530
|
*/
|
|
58526
|
-
var DThemeDarkChartSelectionMarker = /** @class */ (function () {
|
|
58531
|
+
var DThemeDarkChartSelectionMarker = /** @class */ (function (_super) {
|
|
58532
|
+
__extends(DThemeDarkChartSelectionMarker, _super);
|
|
58527
58533
|
function DThemeDarkChartSelectionMarker() {
|
|
58534
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
58528
58535
|
}
|
|
58529
58536
|
DThemeDarkChartSelectionMarker.prototype.isEnabled = function (state) {
|
|
58530
|
-
return
|
|
58537
|
+
return state.isActive;
|
|
58531
58538
|
};
|
|
58532
58539
|
DThemeDarkChartSelectionMarker.prototype.newShape = function (state) {
|
|
58533
58540
|
var result = new EShapeCircle();
|
|
58534
|
-
|
|
58535
|
-
result.size.set(14, 14);
|
|
58536
|
-
}
|
|
58537
|
-
else {
|
|
58538
|
-
result.size.set(20, 20);
|
|
58539
|
-
}
|
|
58541
|
+
result.size.set(14, 14);
|
|
58540
58542
|
return result;
|
|
58541
58543
|
};
|
|
58542
58544
|
return DThemeDarkChartSelectionMarker;
|
|
58543
|
-
}());
|
|
58545
|
+
}(DThemeDarkChartSelectionShape));
|
|
58544
58546
|
|
|
58545
58547
|
/*
|
|
58546
58548
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -73350,38 +73352,59 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73350
73352
|
var gridlineShapes = this._major.gridline.shapes;
|
|
73351
73353
|
var parser = this._parser;
|
|
73352
73354
|
var offset = parser.padding * this._index;
|
|
73355
|
+
var work = this._work;
|
|
73353
73356
|
var coordinate = void 0;
|
|
73354
73357
|
switch (parser.position) {
|
|
73355
73358
|
case DChartAxisPosition.TOP:
|
|
73356
73359
|
coordinate = plotArea.coordinate.x.get(parser.coordinate);
|
|
73357
73360
|
if (coordinate) {
|
|
73358
|
-
var domain = this.getDomain(plotArea, coordinate,
|
|
73361
|
+
var domain = this.getDomain(plotArea, coordinate, work);
|
|
73362
|
+
var domainFrom = domain.from;
|
|
73363
|
+
var domainTo = domain.to;
|
|
73364
|
+
var domainVisible = this.getDomainVisible(plotArea, coordinate, work);
|
|
73365
|
+
var domainVisibleFrom = domainVisible.from;
|
|
73366
|
+
var domainVisibleTo = domainVisible.to;
|
|
73359
73367
|
var plotAreaHeight = plotArea.height;
|
|
73360
|
-
return this.updateX(
|
|
73368
|
+
return this.updateX(domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, 0 - offset, transform, plotAreaHeight);
|
|
73361
73369
|
}
|
|
73362
73370
|
break;
|
|
73363
73371
|
case DChartAxisPosition.BOTTOM:
|
|
73364
73372
|
coordinate = plotArea.coordinate.x.get(parser.coordinate);
|
|
73365
73373
|
if (coordinate) {
|
|
73366
|
-
var domain = this.getDomain(plotArea, coordinate,
|
|
73374
|
+
var domain = this.getDomain(plotArea, coordinate, work);
|
|
73375
|
+
var domainFrom = domain.from;
|
|
73376
|
+
var domainTo = domain.to;
|
|
73377
|
+
var domainVisible = this.getDomainVisible(plotArea, coordinate, work);
|
|
73378
|
+
var domainVisibleFrom = domainVisible.from;
|
|
73379
|
+
var domainVisibleTo = domainVisible.to;
|
|
73367
73380
|
var plotAreaHeight = plotArea.height;
|
|
73368
|
-
return this.updateX(
|
|
73381
|
+
return this.updateX(domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, plotAreaHeight + offset, transform, plotAreaHeight);
|
|
73369
73382
|
}
|
|
73370
73383
|
break;
|
|
73371
73384
|
case DChartAxisPosition.LEFT:
|
|
73372
73385
|
coordinate = plotArea.coordinate.y.get(parser.coordinate);
|
|
73373
73386
|
if (coordinate) {
|
|
73374
|
-
var range = this.getRange(plotArea, coordinate,
|
|
73387
|
+
var range = this.getRange(plotArea, coordinate, work);
|
|
73388
|
+
var rangeFrom = range.from;
|
|
73389
|
+
var rangeTo = range.to;
|
|
73390
|
+
var rangeVisible = this.getRangeVisible(plotArea, coordinate, work);
|
|
73391
|
+
var rangeVisibleFrom = rangeVisible.from;
|
|
73392
|
+
var rangeVisibleTo = rangeVisible.to;
|
|
73375
73393
|
var plotAreaWidth = plotArea.width;
|
|
73376
|
-
return this.updateY(
|
|
73394
|
+
return this.updateY(rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, 0 - offset, transform, plotAreaWidth);
|
|
73377
73395
|
}
|
|
73378
73396
|
break;
|
|
73379
73397
|
case DChartAxisPosition.RIGHT:
|
|
73380
73398
|
coordinate = plotArea.coordinate.y.get(parser.coordinate);
|
|
73381
73399
|
if (coordinate) {
|
|
73382
|
-
var range = this.getRange(plotArea, coordinate,
|
|
73400
|
+
var range = this.getRange(plotArea, coordinate, work);
|
|
73401
|
+
var rangeFrom = range.from;
|
|
73402
|
+
var rangeTo = range.to;
|
|
73403
|
+
var rangeVisible = this.getRangeVisible(plotArea, coordinate, work);
|
|
73404
|
+
var rangeVisibleFrom = rangeVisible.from;
|
|
73405
|
+
var rangeVisibleTo = rangeVisible.to;
|
|
73383
73406
|
var plotAreaWidth = plotArea.width;
|
|
73384
|
-
return this.updateY(
|
|
73407
|
+
return this.updateY(rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, plotAreaWidth + offset, transform, plotAreaWidth);
|
|
73385
73408
|
}
|
|
73386
73409
|
break;
|
|
73387
73410
|
}
|
|
@@ -73393,12 +73416,18 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73393
73416
|
var transform = coordinate.transform;
|
|
73394
73417
|
return result.set(coordinate.unmap(transform.unmap(bounds.x)), coordinate.unmap(transform.unmap(bounds.x + bounds.width)));
|
|
73395
73418
|
};
|
|
73419
|
+
DChartAxisBaseTickContainer.prototype.getDomainVisible = function (plotArea, coordinate, result) {
|
|
73420
|
+
return result;
|
|
73421
|
+
};
|
|
73396
73422
|
DChartAxisBaseTickContainer.prototype.getRange = function (plotArea, coordinate, result) {
|
|
73397
73423
|
var bounds = plotArea.getBoundsInContainer();
|
|
73398
73424
|
var transform = coordinate.transform;
|
|
73399
73425
|
return result.set(coordinate.unmap(transform.unmap(bounds.y)), coordinate.unmap(transform.unmap(bounds.y + bounds.height)));
|
|
73400
73426
|
};
|
|
73401
|
-
DChartAxisBaseTickContainer.prototype.
|
|
73427
|
+
DChartAxisBaseTickContainer.prototype.getRangeVisible = function (plotArea, coordinate, result) {
|
|
73428
|
+
return result;
|
|
73429
|
+
};
|
|
73430
|
+
DChartAxisBaseTickContainer.prototype.updateX = function (domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionY, transform, plotAreaHeight) {
|
|
73402
73431
|
var tick = this._parser.tick;
|
|
73403
73432
|
var majorTick = tick.major;
|
|
73404
73433
|
var majorCount = majorTick.count;
|
|
@@ -73412,7 +73441,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73412
73441
|
var minorFormatter = minorTick.formatter;
|
|
73413
73442
|
var majorTicks = this._majorTicks;
|
|
73414
73443
|
var minorTicks = this._minorTicks;
|
|
73415
|
-
this.newTicks(coordinate,
|
|
73444
|
+
this.newTicks(coordinate, domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
73416
73445
|
var a = transform.a;
|
|
73417
73446
|
var tx = transform.tx;
|
|
73418
73447
|
for (var i = 0; i < majorCapacity; ++i) {
|
|
@@ -73451,7 +73480,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73451
73480
|
}
|
|
73452
73481
|
return true;
|
|
73453
73482
|
};
|
|
73454
|
-
DChartAxisBaseTickContainer.prototype.updateY = function (
|
|
73483
|
+
DChartAxisBaseTickContainer.prototype.updateY = function (rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionX, transform, plotAreaWidth) {
|
|
73455
73484
|
var tick = this._parser.tick;
|
|
73456
73485
|
var majorTick = tick.major;
|
|
73457
73486
|
var majorCount = majorTick.count;
|
|
@@ -73465,7 +73494,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73465
73494
|
var minorFormatter = minorTick.formatter;
|
|
73466
73495
|
var majorTicks = this._majorTicks;
|
|
73467
73496
|
var minorTicks = this._minorTicks;
|
|
73468
|
-
this.newTicks(coordinate,
|
|
73497
|
+
this.newTicks(coordinate, rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
73469
73498
|
var d = transform.d;
|
|
73470
73499
|
var ty = transform.ty;
|
|
73471
73500
|
for (var i = 0; i < majorCapacity; ++i) {
|
|
@@ -73534,8 +73563,8 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73534
73563
|
DChartAxisBaseTickContainer.prototype.hideMinor = function (shape) {
|
|
73535
73564
|
shape.visible = false;
|
|
73536
73565
|
};
|
|
73537
|
-
DChartAxisBaseTickContainer.prototype.newTicks = function (coordinate,
|
|
73538
|
-
coordinate.ticks(
|
|
73566
|
+
DChartAxisBaseTickContainer.prototype.newTicks = function (coordinate, domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
73567
|
+
coordinate.ticks(domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult);
|
|
73539
73568
|
};
|
|
73540
73569
|
DChartAxisBaseTickContainer.prototype.destroy = function () {
|
|
73541
73570
|
this._major.destroy();
|
|
@@ -74138,8 +74167,8 @@ var DChartCoordinateBase = /** @class */ (function () {
|
|
|
74138
74167
|
DChartCoordinateBase.prototype.unmapAll = function (values, ifrom, iend, stride, offset) {
|
|
74139
74168
|
// DO NOTHING
|
|
74140
74169
|
};
|
|
74141
|
-
DChartCoordinateBase.prototype.ticks = function (domainFrom, domainTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
74142
|
-
this._tick.calculate(domainFrom, domainTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, this);
|
|
74170
|
+
DChartCoordinateBase.prototype.ticks = function (domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
74171
|
+
this._tick.calculate(domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, this);
|
|
74143
74172
|
};
|
|
74144
74173
|
DChartCoordinateBase.prototype.toTheme = function (options) {
|
|
74145
74174
|
var _a;
|
|
@@ -74376,65 +74405,63 @@ var DChartCoordinateLinearTick = /** @class */ (function () {
|
|
|
74376
74405
|
}
|
|
74377
74406
|
}
|
|
74378
74407
|
};
|
|
74379
|
-
DChartCoordinateLinearTick.prototype.calculate = function (domainFrom, domainTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
74408
|
+
DChartCoordinateLinearTick.prototype.calculate = function (domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
74380
74409
|
if (majorCount <= 0) {
|
|
74381
74410
|
return;
|
|
74382
74411
|
}
|
|
74383
74412
|
var transform = coordinate.transform;
|
|
74384
74413
|
var domainMin = Math.min(domainFrom, domainTo);
|
|
74385
74414
|
var domainMax = Math.max(domainFrom, domainTo);
|
|
74386
|
-
var
|
|
74415
|
+
var domainVisibleMin = Math.min(domainVisibleFrom, domainVisibleTo);
|
|
74416
|
+
var domainVisibleMax = Math.max(domainVisibleFrom, domainVisibleTo);
|
|
74417
|
+
var domainVisibleMinMapped = coordinate.map(domainVisibleMin);
|
|
74418
|
+
var domainVisibleMaxMapped = coordinate.map(domainVisibleMax);
|
|
74419
|
+
var from0 = Math.min(domainVisibleMinMapped, domainVisibleMaxMapped);
|
|
74420
|
+
var to0 = Math.max(domainVisibleMinMapped, domainVisibleMaxMapped);
|
|
74421
|
+
var domainMinMapped = coordinate.map(domainMin);
|
|
74422
|
+
var domainMaxMapped = coordinate.map(domainMax);
|
|
74423
|
+
var from1 = Math.min(domainMinMapped, domainMaxMapped);
|
|
74424
|
+
var to1 = Math.max(domainMinMapped, domainMaxMapped);
|
|
74425
|
+
var from = Math.max(from0, from1);
|
|
74426
|
+
var to = Math.min(to0, to1);
|
|
74427
|
+
var imajor = 0;
|
|
74428
|
+
var iminor = 0;
|
|
74429
|
+
var majorStepMapped = this.toMajorStep(domainMinMapped, domainMaxMapped, majorCount, majorStep);
|
|
74387
74430
|
if (majorStepMapped <= 0) {
|
|
74388
|
-
|
|
74389
|
-
|
|
74390
|
-
|
|
74391
|
-
|
|
74392
|
-
|
|
74393
|
-
majorResult[imajorResult + 0] = NaN;
|
|
74394
|
-
majorResult[imajorResult + 1] = NaN;
|
|
74395
|
-
majorResult[imajorResult + 2] = NaN;
|
|
74396
|
-
}
|
|
74397
|
-
for (var i = 0; i < minorCount; ++i) {
|
|
74398
|
-
var iminorResult = i * 3;
|
|
74399
|
-
minorResult[iminorResult + 0] = NaN;
|
|
74400
|
-
minorResult[iminorResult + 1] = NaN;
|
|
74401
|
-
minorResult[iminorResult + 2] = NaN;
|
|
74431
|
+
if (from <= domainMinMapped && domainMinMapped <= to) {
|
|
74432
|
+
majorResult[0] = domainMin;
|
|
74433
|
+
majorResult[1] = transform.map(domainMinMapped);
|
|
74434
|
+
majorResult[2] = 0;
|
|
74435
|
+
imajor += 1;
|
|
74402
74436
|
}
|
|
74403
|
-
return;
|
|
74404
74437
|
}
|
|
74405
|
-
|
|
74406
|
-
|
|
74407
|
-
|
|
74408
|
-
|
|
74409
|
-
|
|
74410
|
-
|
|
74411
|
-
|
|
74412
|
-
|
|
74413
|
-
|
|
74414
|
-
|
|
74415
|
-
|
|
74416
|
-
|
|
74417
|
-
|
|
74418
|
-
|
|
74419
|
-
|
|
74420
|
-
|
|
74421
|
-
|
|
74422
|
-
|
|
74423
|
-
|
|
74424
|
-
|
|
74425
|
-
|
|
74426
|
-
|
|
74427
|
-
|
|
74428
|
-
|
|
74429
|
-
|
|
74430
|
-
|
|
74431
|
-
|
|
74432
|
-
if (from <= minorPositionMapped && minorPositionMapped <= to) {
|
|
74433
|
-
var iminorResult = iminor * 3;
|
|
74434
|
-
minorResult[iminorResult + 0] = minorPosition;
|
|
74435
|
-
minorResult[iminorResult + 1] = minorPositionMapped;
|
|
74436
|
-
minorResult[iminorResult + 2] = minorStepMapped;
|
|
74437
|
-
iminor += 1;
|
|
74438
|
+
else {
|
|
74439
|
+
// Major tick start position
|
|
74440
|
+
var idomainStartMapped = Math.floor(domainMinMapped / majorStepMapped) - 1;
|
|
74441
|
+
var idomainEndMapped = Math.ceil(domainMaxMapped / majorStepMapped) + 1;
|
|
74442
|
+
// Major / minor tick positions
|
|
74443
|
+
var minorStepMapped = this.toMinorStep(majorStepMapped, minorCountPerMajor, minorStep);
|
|
74444
|
+
for (var i = idomainStartMapped; i <= idomainEndMapped; ++i) {
|
|
74445
|
+
var majorPositionMapped = i * majorStepMapped;
|
|
74446
|
+
if (imajor < majorCapacity) {
|
|
74447
|
+
if (from <= majorPositionMapped && majorPositionMapped <= to) {
|
|
74448
|
+
var imajorResult = imajor * 3;
|
|
74449
|
+
majorResult[imajorResult + 0] = coordinate.unmap(majorPositionMapped);
|
|
74450
|
+
majorResult[imajorResult + 1] = transform.map(majorPositionMapped);
|
|
74451
|
+
majorResult[imajorResult + 2] = majorStepMapped;
|
|
74452
|
+
imajor += 1;
|
|
74453
|
+
}
|
|
74454
|
+
}
|
|
74455
|
+
for (var j = 0; j < minorCountPerMajor; j += 1) {
|
|
74456
|
+
if (iminor < minorCount) {
|
|
74457
|
+
var minorPositionMapped = majorPositionMapped + (j + 1) * minorStepMapped;
|
|
74458
|
+
if (from <= minorPositionMapped && minorPositionMapped <= to) {
|
|
74459
|
+
var iminorResult = iminor * 3;
|
|
74460
|
+
minorResult[iminorResult + 0] = coordinate.unmap(minorPositionMapped);
|
|
74461
|
+
minorResult[iminorResult + 1] = transform.map(minorPositionMapped);
|
|
74462
|
+
minorResult[iminorResult + 2] = minorStepMapped;
|
|
74463
|
+
iminor += 1;
|
|
74464
|
+
}
|
|
74438
74465
|
}
|
|
74439
74466
|
}
|
|
74440
74467
|
}
|
|
@@ -74527,64 +74554,63 @@ var DChartCoordinateLogTick = /** @class */ (function () {
|
|
|
74527
74554
|
}
|
|
74528
74555
|
}
|
|
74529
74556
|
};
|
|
74530
|
-
DChartCoordinateLogTick.prototype.calculate = function (domainFrom, domainTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
74557
|
+
DChartCoordinateLogTick.prototype.calculate = function (domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
74531
74558
|
if (majorCount <= 0) {
|
|
74532
74559
|
return;
|
|
74533
74560
|
}
|
|
74534
74561
|
var transform = coordinate.transform;
|
|
74535
|
-
var
|
|
74536
|
-
var
|
|
74537
|
-
var
|
|
74538
|
-
var
|
|
74562
|
+
var domainMin = Math.min(domainFrom, domainTo);
|
|
74563
|
+
var domainMax = Math.max(domainFrom, domainTo);
|
|
74564
|
+
var domainVisibleMin = Math.min(domainVisibleFrom, domainVisibleTo);
|
|
74565
|
+
var domainVisibleMax = Math.max(domainVisibleFrom, domainVisibleTo);
|
|
74566
|
+
var domainVisibleMinMapped = coordinate.map(domainVisibleMin);
|
|
74567
|
+
var domainVisibleMaxMapped = coordinate.map(domainVisibleMax);
|
|
74568
|
+
var from0 = Math.min(domainVisibleMinMapped, domainVisibleMaxMapped);
|
|
74569
|
+
var to0 = Math.max(domainVisibleMinMapped, domainVisibleMaxMapped);
|
|
74570
|
+
var domainMinMapped = coordinate.map(domainMin);
|
|
74571
|
+
var domainMaxMapped = coordinate.map(domainMax);
|
|
74572
|
+
var from1 = Math.min(domainMinMapped, domainMaxMapped);
|
|
74573
|
+
var to1 = Math.max(domainMinMapped, domainMaxMapped);
|
|
74574
|
+
var from = Math.max(from0, from1);
|
|
74575
|
+
var to = Math.min(to0, to1);
|
|
74576
|
+
var imajor = 0;
|
|
74577
|
+
var iminor = 0;
|
|
74539
74578
|
var majorStepMapped = this.toMajorStep(domainMinMapped, domainMaxMapped, majorCount, majorStep);
|
|
74540
74579
|
if (majorStepMapped <= 0) {
|
|
74541
|
-
|
|
74542
|
-
|
|
74543
|
-
|
|
74544
|
-
|
|
74545
|
-
|
|
74546
|
-
var imajorResult = i * 3;
|
|
74547
|
-
majorResult[imajorResult + 0] = NaN;
|
|
74548
|
-
majorResult[imajorResult + 1] = NaN;
|
|
74549
|
-
majorResult[imajorResult + 2] = NaN;
|
|
74550
|
-
}
|
|
74551
|
-
for (var i = 0; i < minorCount; ++i) {
|
|
74552
|
-
var iminorResult = i * 3;
|
|
74553
|
-
minorResult[iminorResult + 0] = NaN;
|
|
74554
|
-
minorResult[iminorResult + 1] = NaN;
|
|
74555
|
-
minorResult[iminorResult + 2] = NaN;
|
|
74580
|
+
if (from <= domainMinMapped && domainMinMapped <= to) {
|
|
74581
|
+
majorResult[0] = domainMin;
|
|
74582
|
+
majorResult[1] = transform.map(domainMinMapped);
|
|
74583
|
+
majorResult[2] = 0;
|
|
74584
|
+
imajor += 1;
|
|
74556
74585
|
}
|
|
74557
|
-
return;
|
|
74558
74586
|
}
|
|
74559
|
-
|
|
74560
|
-
|
|
74561
|
-
|
|
74562
|
-
|
|
74563
|
-
|
|
74564
|
-
|
|
74565
|
-
|
|
74566
|
-
|
|
74567
|
-
|
|
74568
|
-
|
|
74569
|
-
|
|
74570
|
-
|
|
74571
|
-
|
|
74572
|
-
|
|
74573
|
-
|
|
74574
|
-
|
|
74575
|
-
|
|
74576
|
-
|
|
74577
|
-
|
|
74578
|
-
|
|
74579
|
-
|
|
74580
|
-
|
|
74581
|
-
|
|
74582
|
-
|
|
74583
|
-
|
|
74584
|
-
|
|
74585
|
-
|
|
74586
|
-
minorResult[iminorResult + 2] = coordinate.unmap(minorPositionMapped - 1);
|
|
74587
|
-
iminor += 1;
|
|
74587
|
+
else {
|
|
74588
|
+
// Major tick start position
|
|
74589
|
+
var idomainStartMapped = Math.floor(domainMinMapped / majorStepMapped) - 1;
|
|
74590
|
+
var idomainEndMapped = Math.ceil(domainMaxMapped / majorStepMapped) + 1;
|
|
74591
|
+
// Major / minor tick positions
|
|
74592
|
+
var minorStepMapped = this.toMinorStep(majorStepMapped, minorCountPerMajor, minorStep);
|
|
74593
|
+
for (var i = idomainStartMapped; i <= idomainEndMapped; ++i) {
|
|
74594
|
+
var majorPositionMapped = i * majorStepMapped;
|
|
74595
|
+
if (imajor < majorCapacity) {
|
|
74596
|
+
if (from <= majorPositionMapped && majorPositionMapped <= to) {
|
|
74597
|
+
var imajorResult = imajor * 3;
|
|
74598
|
+
majorResult[imajorResult + 0] = coordinate.unmap(majorPositionMapped);
|
|
74599
|
+
majorResult[imajorResult + 1] = transform.map(majorPositionMapped);
|
|
74600
|
+
majorResult[imajorResult + 2] = coordinate.unmap(majorPositionMapped - 1);
|
|
74601
|
+
imajor += 1;
|
|
74602
|
+
}
|
|
74603
|
+
}
|
|
74604
|
+
for (var j = 0; j < minorCountPerMajor; j += 1) {
|
|
74605
|
+
if (iminor < minorCount) {
|
|
74606
|
+
var minorPositionMapped = majorPositionMapped + (j + 1) * minorStepMapped;
|
|
74607
|
+
if (from <= minorPositionMapped && minorPositionMapped <= to) {
|
|
74608
|
+
var iminorResult = iminor * 3;
|
|
74609
|
+
minorResult[iminorResult + 0] = coordinate.unmap(minorPositionMapped);
|
|
74610
|
+
minorResult[iminorResult + 1] = transform.map(minorPositionMapped);
|
|
74611
|
+
minorResult[iminorResult + 2] = coordinate.unmap(minorPositionMapped - 1);
|
|
74612
|
+
iminor += 1;
|
|
74613
|
+
}
|
|
74588
74614
|
}
|
|
74589
74615
|
}
|
|
74590
74616
|
}
|
|
@@ -75419,6 +75445,53 @@ var DChartRegionImplObservable = /** @class */ (function () {
|
|
|
75419
75445
|
return DChartRegionImplObservable;
|
|
75420
75446
|
}());
|
|
75421
75447
|
|
|
75448
|
+
/*
|
|
75449
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
75450
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
75451
|
+
*/
|
|
75452
|
+
var DChartSelectionContainerImpl = /** @class */ (function () {
|
|
75453
|
+
function DChartSelectionContainerImpl(x, y) {
|
|
75454
|
+
this._x = x;
|
|
75455
|
+
this._y = y;
|
|
75456
|
+
}
|
|
75457
|
+
Object.defineProperty(DChartSelectionContainerImpl.prototype, "x", {
|
|
75458
|
+
get: function () {
|
|
75459
|
+
return this._x;
|
|
75460
|
+
},
|
|
75461
|
+
enumerable: false,
|
|
75462
|
+
configurable: true
|
|
75463
|
+
});
|
|
75464
|
+
Object.defineProperty(DChartSelectionContainerImpl.prototype, "y", {
|
|
75465
|
+
get: function () {
|
|
75466
|
+
return this._y;
|
|
75467
|
+
},
|
|
75468
|
+
enumerable: false,
|
|
75469
|
+
configurable: true
|
|
75470
|
+
});
|
|
75471
|
+
DChartSelectionContainerImpl.prototype.bind = function (container) {
|
|
75472
|
+
this._x.bind(container);
|
|
75473
|
+
this._y.bind(container);
|
|
75474
|
+
};
|
|
75475
|
+
DChartSelectionContainerImpl.prototype.unbind = function () {
|
|
75476
|
+
this._x.unbind();
|
|
75477
|
+
this._y.unbind();
|
|
75478
|
+
};
|
|
75479
|
+
DChartSelectionContainerImpl.prototype.set = function (container, position, mappedPosition, series) {
|
|
75480
|
+
this._x.set(container, position, mappedPosition, series);
|
|
75481
|
+
this._y.set(container, position, mappedPosition, series);
|
|
75482
|
+
};
|
|
75483
|
+
DChartSelectionContainerImpl.prototype.unset = function () {
|
|
75484
|
+
this._x.unset();
|
|
75485
|
+
this._y.unset();
|
|
75486
|
+
};
|
|
75487
|
+
DChartSelectionContainerImpl.prototype.update = function (container, position, mappedPosition) {
|
|
75488
|
+
var isXUpdated = this._x.update(container, position, mappedPosition);
|
|
75489
|
+
var isYUpdated = this._y.update(container, position, mappedPosition);
|
|
75490
|
+
return isXUpdated || isYUpdated;
|
|
75491
|
+
};
|
|
75492
|
+
return DChartSelectionContainerImpl;
|
|
75493
|
+
}());
|
|
75494
|
+
|
|
75422
75495
|
/*
|
|
75423
75496
|
* Copyright (C) 2019 Toshiba Corporation
|
|
75424
75497
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -75431,12 +75504,32 @@ var DChartSelectionShapeBase = /** @class */ (function () {
|
|
|
75431
75504
|
var state = new DBaseStateSetImpl().add((_a = options === null || options === void 0 ? void 0 : options.state) !== null && _a !== void 0 ? _a : DBaseState.HOVERED);
|
|
75432
75505
|
this._state = state;
|
|
75433
75506
|
this._isEnabled = (_b = options === null || options === void 0 ? void 0 : options.enable) !== null && _b !== void 0 ? _b : theme.isEnabled(state);
|
|
75434
|
-
|
|
75507
|
+
if (options != null) {
|
|
75508
|
+
var shape = options.shape;
|
|
75509
|
+
if (shape != null) {
|
|
75510
|
+
if (isFunction(shape)) {
|
|
75511
|
+
this._newShape = shape;
|
|
75512
|
+
}
|
|
75513
|
+
else {
|
|
75514
|
+
this._shape = shape;
|
|
75515
|
+
}
|
|
75516
|
+
}
|
|
75517
|
+
}
|
|
75435
75518
|
this._style = (_c = options === null || options === void 0 ? void 0 : options.style) !== null && _c !== void 0 ? _c : this.setStyle;
|
|
75436
75519
|
}
|
|
75437
75520
|
DChartSelectionShapeBase.prototype.bind = function (container) {
|
|
75438
75521
|
if (this._isEnabled) {
|
|
75439
|
-
var shape = this._shape
|
|
75522
|
+
var shape = this._shape;
|
|
75523
|
+
if (shape == null) {
|
|
75524
|
+
var state = this._state;
|
|
75525
|
+
var newShape = this._newShape;
|
|
75526
|
+
if (newShape != null) {
|
|
75527
|
+
shape = newShape(state);
|
|
75528
|
+
}
|
|
75529
|
+
else {
|
|
75530
|
+
shape = this.newShape(state, this._theme);
|
|
75531
|
+
}
|
|
75532
|
+
}
|
|
75440
75533
|
this._shape = shape;
|
|
75441
75534
|
shape.attach(container.plotArea.axis.container);
|
|
75442
75535
|
shape.visible = false;
|
|
@@ -75448,21 +75541,18 @@ var DChartSelectionShapeBase = /** @class */ (function () {
|
|
|
75448
75541
|
shape.detach();
|
|
75449
75542
|
}
|
|
75450
75543
|
};
|
|
75451
|
-
DChartSelectionShapeBase.prototype.newShape = function (theme) {
|
|
75452
|
-
return theme.newShape(
|
|
75544
|
+
DChartSelectionShapeBase.prototype.newShape = function (state, theme) {
|
|
75545
|
+
return theme.newShape(state);
|
|
75453
75546
|
};
|
|
75454
|
-
DChartSelectionShapeBase.prototype.set = function (container, mappedPosition, series) {
|
|
75455
|
-
this.update(container, mappedPosition);
|
|
75547
|
+
DChartSelectionShapeBase.prototype.set = function (container, position, mappedPosition, series) {
|
|
75548
|
+
this.update(container, position, mappedPosition);
|
|
75456
75549
|
var shape = this._shape;
|
|
75457
75550
|
if (shape) {
|
|
75458
75551
|
this._style(shape, series);
|
|
75459
75552
|
}
|
|
75460
75553
|
};
|
|
75461
75554
|
DChartSelectionShapeBase.prototype.setStyle = function (shape, series) {
|
|
75462
|
-
|
|
75463
|
-
if (seriesShape) {
|
|
75464
|
-
shape.stroke.color = seriesShape.stroke.color;
|
|
75465
|
-
}
|
|
75555
|
+
// DO NOTHING
|
|
75466
75556
|
};
|
|
75467
75557
|
DChartSelectionShapeBase.prototype.unset = function () {
|
|
75468
75558
|
var shape = this._shape;
|
|
@@ -75497,20 +75587,21 @@ var DChartSelectionGridlineX = /** @class */ (function (_super) {
|
|
|
75497
75587
|
function DChartSelectionGridlineX() {
|
|
75498
75588
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75499
75589
|
}
|
|
75500
|
-
DChartSelectionGridlineX.prototype.update = function (container, mappedPosition) {
|
|
75590
|
+
DChartSelectionGridlineX.prototype.update = function (container, position, mappedPosition) {
|
|
75501
75591
|
var shape = this._shape;
|
|
75502
75592
|
if (shape) {
|
|
75503
75593
|
var mappedX = mappedPosition.x;
|
|
75504
75594
|
var height = container.plotArea.height;
|
|
75505
75595
|
shape.transform.position.set(mappedX, height * 0.5);
|
|
75506
75596
|
shape.size.set(0, height);
|
|
75507
|
-
shape.visible = this.isVisible(container,
|
|
75597
|
+
shape.visible = this.isVisible(container, position, mappedPosition);
|
|
75508
75598
|
return true;
|
|
75509
75599
|
}
|
|
75510
75600
|
return false;
|
|
75511
75601
|
};
|
|
75512
|
-
DChartSelectionGridlineX.prototype.isVisible = function (container,
|
|
75513
|
-
|
|
75602
|
+
DChartSelectionGridlineX.prototype.isVisible = function (container, position, mappedPosition) {
|
|
75603
|
+
var x = mappedPosition.x;
|
|
75604
|
+
return 0 <= x && x <= container.plotArea.width;
|
|
75514
75605
|
};
|
|
75515
75606
|
DChartSelectionGridlineX.prototype.getType = function () {
|
|
75516
75607
|
return "DChartSelectionGridlineX";
|
|
@@ -75527,20 +75618,21 @@ var DChartSelectionGridlineY = /** @class */ (function (_super) {
|
|
|
75527
75618
|
function DChartSelectionGridlineY() {
|
|
75528
75619
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75529
75620
|
}
|
|
75530
|
-
DChartSelectionGridlineY.prototype.update = function (container, mappedPosition) {
|
|
75621
|
+
DChartSelectionGridlineY.prototype.update = function (container, position, mappedPosition) {
|
|
75531
75622
|
var shape = this._shape;
|
|
75532
75623
|
if (shape) {
|
|
75533
75624
|
var mappedY = mappedPosition.y;
|
|
75534
75625
|
var width = container.plotArea.width;
|
|
75535
75626
|
shape.transform.position.set(width * 0.5, mappedY);
|
|
75536
75627
|
shape.size.set(width, 0);
|
|
75537
|
-
shape.visible = this.isVisible(container,
|
|
75628
|
+
shape.visible = this.isVisible(container, position, mappedPosition);
|
|
75538
75629
|
return true;
|
|
75539
75630
|
}
|
|
75540
75631
|
return false;
|
|
75541
75632
|
};
|
|
75542
|
-
DChartSelectionGridlineY.prototype.isVisible = function (container,
|
|
75543
|
-
|
|
75633
|
+
DChartSelectionGridlineY.prototype.isVisible = function (container, position, mappedPosition) {
|
|
75634
|
+
var y = mappedPosition.y;
|
|
75635
|
+
return 0 <= y && y <= container.plotArea.height;
|
|
75544
75636
|
};
|
|
75545
75637
|
DChartSelectionGridlineY.prototype.getType = function () {
|
|
75546
75638
|
return "DChartSelectionGridlineY";
|
|
@@ -75548,53 +75640,6 @@ var DChartSelectionGridlineY = /** @class */ (function (_super) {
|
|
|
75548
75640
|
return DChartSelectionGridlineY;
|
|
75549
75641
|
}(DChartSelectionShapeBase));
|
|
75550
75642
|
|
|
75551
|
-
/*
|
|
75552
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
75553
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
75554
|
-
*/
|
|
75555
|
-
var DChartSelectionGridlineContainerImpl = /** @class */ (function () {
|
|
75556
|
-
function DChartSelectionGridlineContainerImpl(options) {
|
|
75557
|
-
this._x = new DChartSelectionGridlineX(options === null || options === void 0 ? void 0 : options.x);
|
|
75558
|
-
this._y = new DChartSelectionGridlineY(options === null || options === void 0 ? void 0 : options.y);
|
|
75559
|
-
}
|
|
75560
|
-
Object.defineProperty(DChartSelectionGridlineContainerImpl.prototype, "x", {
|
|
75561
|
-
get: function () {
|
|
75562
|
-
return this._x;
|
|
75563
|
-
},
|
|
75564
|
-
enumerable: false,
|
|
75565
|
-
configurable: true
|
|
75566
|
-
});
|
|
75567
|
-
Object.defineProperty(DChartSelectionGridlineContainerImpl.prototype, "y", {
|
|
75568
|
-
get: function () {
|
|
75569
|
-
return this._y;
|
|
75570
|
-
},
|
|
75571
|
-
enumerable: false,
|
|
75572
|
-
configurable: true
|
|
75573
|
-
});
|
|
75574
|
-
DChartSelectionGridlineContainerImpl.prototype.bind = function (container) {
|
|
75575
|
-
this._x.bind(container);
|
|
75576
|
-
this._y.bind(container);
|
|
75577
|
-
};
|
|
75578
|
-
DChartSelectionGridlineContainerImpl.prototype.unbind = function () {
|
|
75579
|
-
this._x.unbind();
|
|
75580
|
-
this._y.unbind();
|
|
75581
|
-
};
|
|
75582
|
-
DChartSelectionGridlineContainerImpl.prototype.set = function (container, mappedPosition, series) {
|
|
75583
|
-
this._x.set(container, mappedPosition, series);
|
|
75584
|
-
this._y.set(container, mappedPosition, series);
|
|
75585
|
-
};
|
|
75586
|
-
DChartSelectionGridlineContainerImpl.prototype.unset = function () {
|
|
75587
|
-
this._x.unset();
|
|
75588
|
-
this._y.unset();
|
|
75589
|
-
};
|
|
75590
|
-
DChartSelectionGridlineContainerImpl.prototype.update = function (container, mappedPosition) {
|
|
75591
|
-
var isXUpdated = this._x.update(container, mappedPosition);
|
|
75592
|
-
var isYUpdated = this._y.update(container, mappedPosition);
|
|
75593
|
-
return isXUpdated || isYUpdated;
|
|
75594
|
-
};
|
|
75595
|
-
return DChartSelectionGridlineContainerImpl;
|
|
75596
|
-
}());
|
|
75597
|
-
|
|
75598
75643
|
/*
|
|
75599
75644
|
* Copyright (C) 2019 Toshiba Corporation
|
|
75600
75645
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -75604,16 +75649,16 @@ var DChartSelectionMarker = /** @class */ (function (_super) {
|
|
|
75604
75649
|
function DChartSelectionMarker() {
|
|
75605
75650
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75606
75651
|
}
|
|
75607
|
-
DChartSelectionMarker.prototype.update = function (container, mappedPosition) {
|
|
75652
|
+
DChartSelectionMarker.prototype.update = function (container, position, mappedPosition) {
|
|
75608
75653
|
var shape = this._shape;
|
|
75609
75654
|
if (shape) {
|
|
75610
75655
|
shape.transform.position.copyFrom(mappedPosition);
|
|
75611
|
-
shape.visible = this.isVisible(container, mappedPosition);
|
|
75656
|
+
shape.visible = this.isVisible(container, position, mappedPosition);
|
|
75612
75657
|
return true;
|
|
75613
75658
|
}
|
|
75614
75659
|
return false;
|
|
75615
75660
|
};
|
|
75616
|
-
DChartSelectionMarker.prototype.isVisible = function (container, mappedPosition) {
|
|
75661
|
+
DChartSelectionMarker.prototype.isVisible = function (container, position, mappedPosition) {
|
|
75617
75662
|
var x = mappedPosition.x;
|
|
75618
75663
|
var y = mappedPosition.y;
|
|
75619
75664
|
var plotArea = container.plotArea;
|
|
@@ -75644,18 +75689,18 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
|
|
|
75644
75689
|
__extends(DChartSelectionSubImpl, _super);
|
|
75645
75690
|
function DChartSelectionSubImpl(options) {
|
|
75646
75691
|
var _this = this;
|
|
75647
|
-
var _a, _b, _c;
|
|
75692
|
+
var _a, _b, _c, _d, _e;
|
|
75648
75693
|
_this = _super.call(this) || this;
|
|
75649
75694
|
_this._container = null;
|
|
75650
75695
|
_this._series = null;
|
|
75651
75696
|
_this._isEnabled = (_a = options.enable) !== null && _a !== void 0 ? _a : true;
|
|
75652
|
-
_this._gridline = new
|
|
75697
|
+
_this._gridline = new DChartSelectionContainerImpl(new DChartSelectionGridlineX((_b = options.gridline) === null || _b === void 0 ? void 0 : _b.x), new DChartSelectionGridlineY((_c = options.gridline) === null || _c === void 0 ? void 0 : _c.y));
|
|
75653
75698
|
_this._marker = new DChartSelectionMarker(options.marker);
|
|
75654
|
-
_this._state = (
|
|
75699
|
+
_this._state = (_d = options.state) !== null && _d !== void 0 ? _d : DBaseState.HOVERED;
|
|
75655
75700
|
_this._coordinateX = null;
|
|
75656
75701
|
_this._coordinateY = null;
|
|
75657
75702
|
_this._position = new pixi_js.Point();
|
|
75658
|
-
_this._point = (
|
|
75703
|
+
_this._point = (_e = options.point) !== null && _e !== void 0 ? _e : DChartSelectionPoint.CLOSER;
|
|
75659
75704
|
_this._work = new pixi_js.Point();
|
|
75660
75705
|
// Events
|
|
75661
75706
|
var on = options.on;
|
|
@@ -75750,8 +75795,8 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
|
|
|
75750
75795
|
work.set(coordinateX.transform.map(coordinateX.map(position.x)), coordinateY.transform.map(coordinateY.map(position.y)));
|
|
75751
75796
|
transform.apply(work, work);
|
|
75752
75797
|
}
|
|
75753
|
-
this._gridline.set(container, work, series);
|
|
75754
|
-
this._marker.set(container, work, series);
|
|
75798
|
+
this._gridline.set(container, position, work, series);
|
|
75799
|
+
this._marker.set(container, position, work, series);
|
|
75755
75800
|
DApplications.update(container.plotArea);
|
|
75756
75801
|
}
|
|
75757
75802
|
var oldSeries = this._series;
|
|
@@ -75765,12 +75810,6 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
|
|
|
75765
75810
|
}
|
|
75766
75811
|
this.emit("change", this);
|
|
75767
75812
|
};
|
|
75768
|
-
DChartSelectionSubImpl.prototype.setStyle = function (shape, series) {
|
|
75769
|
-
var seriesShape = series.shape;
|
|
75770
|
-
if (seriesShape) {
|
|
75771
|
-
shape.stroke.color = seriesShape.stroke.color;
|
|
75772
|
-
}
|
|
75773
|
-
};
|
|
75774
75813
|
DChartSelectionSubImpl.prototype.unset = function () {
|
|
75775
75814
|
var series = this._series;
|
|
75776
75815
|
if (series) {
|
|
@@ -75792,8 +75831,8 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
|
|
|
75792
75831
|
var work = this._work;
|
|
75793
75832
|
work.set(coordinateX.transform.map(coordinateX.map(position.x)), coordinateY.transform.map(coordinateY.map(position.y)));
|
|
75794
75833
|
container.plotArea.container.localTransform.apply(work, work);
|
|
75795
|
-
var isGridlineUpdated = this._gridline.update(container, work);
|
|
75796
|
-
var isMarkerUpdated = this._marker.update(container, work);
|
|
75834
|
+
var isGridlineUpdated = this._gridline.update(container, position, work);
|
|
75835
|
+
var isMarkerUpdated = this._marker.update(container, position, work);
|
|
75797
75836
|
return isGridlineUpdated || isMarkerUpdated;
|
|
75798
75837
|
}
|
|
75799
75838
|
return false;
|
|
@@ -75835,12 +75874,19 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
|
|
|
75835
75874
|
return _this;
|
|
75836
75875
|
}
|
|
75837
75876
|
DChartSelectionSimple.prototype.newSelected = function (point, options) {
|
|
75838
|
-
return new DChartSelectionSubImpl(this.
|
|
75877
|
+
return new DChartSelectionSubImpl(this.toSelectedOptions(point, options));
|
|
75839
75878
|
};
|
|
75840
75879
|
DChartSelectionSimple.prototype.newHovered = function (point, options) {
|
|
75841
|
-
return new DChartSelectionSubImpl(this.
|
|
75880
|
+
return new DChartSelectionSubImpl(this.toHoveredOptions(point, options));
|
|
75881
|
+
};
|
|
75882
|
+
DChartSelectionSimple.prototype.toSelectedOptions = function (point, options) {
|
|
75883
|
+
return this.toSubOptions(point, options, DBaseState.ACTIVE);
|
|
75884
|
+
};
|
|
75885
|
+
DChartSelectionSimple.prototype.toHoveredOptions = function (point, options) {
|
|
75886
|
+
return this.toSubOptions(point, options, DBaseState.HOVERED);
|
|
75842
75887
|
};
|
|
75843
75888
|
DChartSelectionSimple.prototype.toSubOptions = function (point, options, state) {
|
|
75889
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
75844
75890
|
options = options || {};
|
|
75845
75891
|
if (options.point == null) {
|
|
75846
75892
|
options.point = point;
|
|
@@ -75848,19 +75894,28 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
|
|
|
75848
75894
|
if (options.state == null) {
|
|
75849
75895
|
options.state = state;
|
|
75850
75896
|
}
|
|
75851
|
-
var gridline = options.gridline
|
|
75852
|
-
var gridlineX = gridline.x
|
|
75897
|
+
var gridline = ((_a = options.gridline) !== null && _a !== void 0 ? _a : (options.gridline = {}));
|
|
75898
|
+
var gridlineX = ((_b = gridline.x) !== null && _b !== void 0 ? _b : (gridline.x = {}));
|
|
75853
75899
|
if (gridlineX.state == null) {
|
|
75854
75900
|
gridlineX.state = state;
|
|
75855
75901
|
}
|
|
75856
|
-
var gridlineY = gridline.y
|
|
75902
|
+
var gridlineY = ((_c = gridline.y) !== null && _c !== void 0 ? _c : (gridline.y = {}));
|
|
75857
75903
|
if (gridlineY.state == null) {
|
|
75858
75904
|
gridlineY.state = state;
|
|
75859
75905
|
}
|
|
75860
|
-
var marker = options.marker
|
|
75906
|
+
var marker = ((_d = options.marker) !== null && _d !== void 0 ? _d : (options.marker = {}));
|
|
75861
75907
|
if (marker.state == null) {
|
|
75862
75908
|
marker.state = state;
|
|
75863
75909
|
}
|
|
75910
|
+
var label = ((_e = options.label) !== null && _e !== void 0 ? _e : (options.label = {}));
|
|
75911
|
+
var labelX = ((_f = label.x) !== null && _f !== void 0 ? _f : (label.x = {}));
|
|
75912
|
+
if (labelX.state == null) {
|
|
75913
|
+
labelX.state = state;
|
|
75914
|
+
}
|
|
75915
|
+
var labelY = ((_g = label.y) !== null && _g !== void 0 ? _g : (label.y = {}));
|
|
75916
|
+
if (labelY.state == null) {
|
|
75917
|
+
labelY.state = state;
|
|
75918
|
+
}
|
|
75864
75919
|
return options;
|
|
75865
75920
|
};
|
|
75866
75921
|
DChartSelectionSimple.prototype.onClick = function (e) {
|
|
@@ -91553,7 +91608,7 @@ exports.DChartPlotAreaContainer = DChartPlotAreaContainer;
|
|
|
91553
91608
|
exports.DChartPlotAreaImpl = DChartPlotAreaImpl;
|
|
91554
91609
|
exports.DChartRegionImpl = DChartRegionImpl;
|
|
91555
91610
|
exports.DChartRegionImplObservable = DChartRegionImplObservable;
|
|
91556
|
-
exports.
|
|
91611
|
+
exports.DChartSelectionContainerImpl = DChartSelectionContainerImpl;
|
|
91557
91612
|
exports.DChartSelectionGridlineX = DChartSelectionGridlineX;
|
|
91558
91613
|
exports.DChartSelectionGridlineY = DChartSelectionGridlineY;
|
|
91559
91614
|
exports.DChartSelectionMarker = DChartSelectionMarker;
|
|
@@ -91946,6 +92001,10 @@ exports.DThemeDarkChartLegend = DThemeDarkChartLegend;
|
|
|
91946
92001
|
exports.DThemeDarkChartLegendItem = DThemeDarkChartLegendItem;
|
|
91947
92002
|
exports.DThemeDarkChartOverview = DThemeDarkChartOverview;
|
|
91948
92003
|
exports.DThemeDarkChartPlotArea = DThemeDarkChartPlotArea;
|
|
92004
|
+
exports.DThemeDarkChartSelectionGridlineX = DThemeDarkChartSelectionGridlineX;
|
|
92005
|
+
exports.DThemeDarkChartSelectionGridlineY = DThemeDarkChartSelectionGridlineY;
|
|
92006
|
+
exports.DThemeDarkChartSelectionMarker = DThemeDarkChartSelectionMarker;
|
|
92007
|
+
exports.DThemeDarkChartSelectionShape = DThemeDarkChartSelectionShape;
|
|
91949
92008
|
exports.DThemeDarkContent = DThemeDarkContent;
|
|
91950
92009
|
exports.DThemeDarkDiagram = DThemeDarkDiagram;
|
|
91951
92010
|
exports.DThemeDarkDiagramBase = DThemeDarkDiagramBase;
|
|
@@ -92156,6 +92215,10 @@ exports.DThemeWhiteChartLegend = DThemeWhiteChartLegend;
|
|
|
92156
92215
|
exports.DThemeWhiteChartLegendItem = DThemeWhiteChartLegendItem;
|
|
92157
92216
|
exports.DThemeWhiteChartOverview = DThemeWhiteChartOverview;
|
|
92158
92217
|
exports.DThemeWhiteChartPlotArea = DThemeWhiteChartPlotArea;
|
|
92218
|
+
exports.DThemeWhiteChartSelectionGridlineX = DThemeWhiteChartSelectionGridlineX;
|
|
92219
|
+
exports.DThemeWhiteChartSelectionGridlineY = DThemeWhiteChartSelectionGridlineY;
|
|
92220
|
+
exports.DThemeWhiteChartSelectionMarker = DThemeWhiteChartSelectionMarker;
|
|
92221
|
+
exports.DThemeWhiteChartSelectionShape = DThemeWhiteChartSelectionShape;
|
|
92159
92222
|
exports.DThemeWhiteContent = DThemeWhiteContent;
|
|
92160
92223
|
exports.DThemeWhiteDiagram = DThemeWhiteDiagram;
|
|
92161
92224
|
exports.DThemeWhiteDiagramBase = DThemeWhiteDiagramBase;
|