@wcardinal/wcardinal-ui 0.291.0 → 0.292.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.
Files changed (26) hide show
  1. package/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +67 -46
  2. package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +42 -16
  3. package/dist/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +6 -4
  4. package/dist/types/wcardinal/ui/d-chart-axis-base.d.ts +8 -7
  5. package/dist/types/wcardinal/ui/d-chart-axis-x-datetime.d.ts +3 -2
  6. package/dist/types/wcardinal/ui/d-chart-axis-x.d.ts +3 -3
  7. package/dist/types/wcardinal/ui/d-chart-axis-y.d.ts +3 -3
  8. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +32 -14
  9. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js.map +1 -1
  10. package/dist/wcardinal/ui/d-chart-axis-base-options.js.map +1 -1
  11. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +5 -5
  12. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
  13. package/dist/wcardinal/ui/d-chart-axis-base.js +8 -5
  14. package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
  15. package/dist/wcardinal/ui/d-chart-axis-x-datetime.js.map +1 -1
  16. package/dist/wcardinal/ui/d-chart-axis-x.js.map +1 -1
  17. package/dist/wcardinal/ui/d-chart-axis-y.js.map +1 -1
  18. package/dist/wcardinal-ui-theme-dark.js +1 -1
  19. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  20. package/dist/wcardinal-ui-theme-white.js +1 -1
  21. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  22. package/dist/wcardinal-ui.cjs.js +41 -25
  23. package/dist/wcardinal-ui.js +41 -25
  24. package/dist/wcardinal-ui.min.js +2 -2
  25. package/dist/wcardinal-ui.min.js.map +1 -1
  26. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.291.0
2
+ Winter Cardinal UI v0.292.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -72590,7 +72590,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72590
72590
  var _a, _b;
72591
72591
  this._coordinateIndex = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
72592
72592
  this._position = this.toPosition(theme, options);
72593
- this._tick = this.toTickContainer(theme, options);
72593
+ this._tick = this.toTick(theme, options);
72594
72594
  this._label = this.toLabel(theme, options);
72595
72595
  this._padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
72596
72596
  this._bar = this.toBar(theme, options);
@@ -72654,7 +72654,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72654
72654
  stroke: this.toBarStroke(theme, options === null || options === void 0 ? void 0 : options.stroke)
72655
72655
  };
72656
72656
  };
72657
- DChartAxisBaseOptionParser.prototype.toTickContainer = function (theme, options) {
72657
+ DChartAxisBaseOptionParser.prototype.toTick = function (theme, options) {
72658
72658
  var _a;
72659
72659
  var tick = options === null || options === void 0 ? void 0 : options.tick;
72660
72660
  return {
@@ -72765,7 +72765,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72765
72765
  width: (_h = (_g = optionsA.width) !== null && _g !== void 0 ? _g : optionsB.width) !== null && _h !== void 0 ? _h : width,
72766
72766
  align: (_k = (_j = optionsA.align) !== null && _j !== void 0 ? _j : optionsB.align) !== null && _k !== void 0 ? _k : align,
72767
72767
  side: (_m = (_l = optionsA.side) !== null && _l !== void 0 ? _l : optionsB.side) !== null && _m !== void 0 ? _m : side,
72768
- style: (_p = (_o = optionsA.style) !== null && _o !== void 0 ? _o : optionsB.style) !== null && _p !== void 0 ? _p : style
72768
+ style: this.toStrokeStyle((_p = (_o = optionsA.style) !== null && _o !== void 0 ? _o : optionsB.style) !== null && _p !== void 0 ? _p : style)
72769
72769
  };
72770
72770
  }
72771
72771
  else {
@@ -72776,7 +72776,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72776
72776
  width: (_t = optionsA.width) !== null && _t !== void 0 ? _t : width,
72777
72777
  align: (_u = optionsA.align) !== null && _u !== void 0 ? _u : align,
72778
72778
  side: (_v = optionsA.side) !== null && _v !== void 0 ? _v : side,
72779
- style: (_w = optionsA.style) !== null && _w !== void 0 ? _w : style
72779
+ style: this.toStrokeStyle((_w = optionsA.style) !== null && _w !== void 0 ? _w : style)
72780
72780
  };
72781
72781
  }
72782
72782
  }
@@ -72788,7 +72788,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72788
72788
  width: (_0 = optionsB.width) !== null && _0 !== void 0 ? _0 : width,
72789
72789
  align: (_1 = optionsB.align) !== null && _1 !== void 0 ? _1 : align,
72790
72790
  side: (_2 = optionsB.side) !== null && _2 !== void 0 ? _2 : side,
72791
- style: (_3 = optionsB.style) !== null && _3 !== void 0 ? _3 : style
72791
+ style: this.toStrokeStyle((_3 = optionsB.style) !== null && _3 !== void 0 ? _3 : style)
72792
72792
  };
72793
72793
  }
72794
72794
  else {
@@ -72803,6 +72803,19 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72803
72803
  };
72804
72804
  }
72805
72805
  };
72806
+ DChartAxisBaseOptionParser.prototype.toStrokeStyle = function (target) {
72807
+ if (isString(target)) {
72808
+ return EShapeStrokeStyle[target];
72809
+ }
72810
+ else if (isArray(target)) {
72811
+ var result = EShapeStrokeStyle.NONE;
72812
+ for (var i = 0, imax = target.length; i < imax; ++i) {
72813
+ result |= EShapeStrokeStyle[target[i]];
72814
+ }
72815
+ return result;
72816
+ }
72817
+ return target;
72818
+ };
72806
72819
  DChartAxisBaseOptionParser.prototype.toTickMajorFormatter = function (theme, options) {
72807
72820
  var text = options === null || options === void 0 ? void 0 : options.text;
72808
72821
  if (text) {
@@ -72836,10 +72849,10 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72836
72849
  alpha: options.alpha,
72837
72850
  family: options.family,
72838
72851
  size: options.size,
72839
- weight: options.weight,
72852
+ weight: toEnum(options.weight, EShapeTextWeight),
72840
72853
  align: this.toTickMajorTextAlign(theme, options.align),
72841
72854
  offset: this.toTickMajorTextOffset(theme, options.offset),
72842
- style: options.style,
72855
+ style: toEnum(options.style, EShapeTextStyle),
72843
72856
  outline: this.toTickMajorTextOutline(theme, options.outline),
72844
72857
  spacing: this.toTickMajorTextSpacing(theme, options.spacing),
72845
72858
  direction: this.toTickMajorTextDirection(theme, options.direction),
@@ -72889,7 +72902,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72889
72902
  };
72890
72903
  };
72891
72904
  DChartAxisBaseOptionParser.prototype.toTickMajorTextDirection = function (theme, options) {
72892
- return options !== null && options !== void 0 ? options : theme.getMajorTickTextDirection();
72905
+ return toEnum(options !== null && options !== void 0 ? options : theme.getMajorTickTextDirection(), EShapeTextDirection);
72893
72906
  };
72894
72907
  DChartAxisBaseOptionParser.prototype.toTickMajorTextColor = function (theme, options) {
72895
72908
  return options !== null && options !== void 0 ? options : theme.getMajorTickTextColor();
@@ -72927,10 +72940,10 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72927
72940
  alpha: options.alpha,
72928
72941
  family: options.family,
72929
72942
  size: options.size,
72930
- weight: options.weight,
72943
+ weight: toEnum(options.weight, EShapeTextWeight),
72931
72944
  align: this.toTickMinorTextAlign(theme, options.align),
72932
72945
  offset: this.toTickMinorTextOffset(theme, options.offset),
72933
- style: options.style,
72946
+ style: toEnum(options.style, EShapeTextStyle),
72934
72947
  outline: this.toTickMinorTextOutline(theme, options.outline),
72935
72948
  spacing: this.toTickMinorTextSpacing(theme, options.spacing),
72936
72949
  direction: this.toTickMinorTextDirection(theme, options.direction),
@@ -72980,7 +72993,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72980
72993
  };
72981
72994
  };
72982
72995
  DChartAxisBaseOptionParser.prototype.toTickMinorTextDirection = function (theme, options) {
72983
- return options !== null && options !== void 0 ? options : theme.getMinorTickTextDirection();
72996
+ return toEnum(options !== null && options !== void 0 ? options : theme.getMinorTickTextDirection(), EShapeTextDirection);
72984
72997
  };
72985
72998
  DChartAxisBaseOptionParser.prototype.toTickMinorTextColor = function (theme, options) {
72986
72999
  return options !== null && options !== void 0 ? options : theme.getMinorTickTextColor();
@@ -72994,10 +73007,10 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72994
73007
  alpha: label.alpha,
72995
73008
  family: label.family,
72996
73009
  size: label.size,
72997
- weight: label.weight,
73010
+ weight: toEnum(label.weight, EShapeTextWeight),
72998
73011
  align: this.toLabelAlign(theme, label.align),
72999
73012
  offset: this.toLabelOffset(theme, label.offset),
73000
- style: label.style,
73013
+ style: toEnum(label.style, EShapeTextStyle),
73001
73014
  outline: this.toLabelOutline(theme, label.outline),
73002
73015
  spacing: this.toLabelSpacing(theme, label.spacing),
73003
73016
  direction: this.toLabelDirection(theme, label.direction),
@@ -73048,7 +73061,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
73048
73061
  };
73049
73062
  };
73050
73063
  DChartAxisBaseOptionParser.prototype.toLabelDirection = function (theme, options) {
73051
- return options !== null && options !== void 0 ? options : theme.getLabelDirection();
73064
+ return toEnum(options !== null && options !== void 0 ? options : theme.getLabelDirection(), EShapeTextDirection);
73052
73065
  };
73053
73066
  DChartAxisBaseOptionParser.prototype.toLabelColor = function (theme, options) {
73054
73067
  return options !== null && options !== void 0 ? options : theme.getLabelColor();
@@ -73293,11 +73306,11 @@ var DChartAxisBaseTickMinor = /** @class */ (function () {
73293
73306
  }());
73294
73307
 
73295
73308
  var DChartAxisBaseTickContainer = /** @class */ (function () {
73296
- function DChartAxisBaseTickContainer(parser) {
73309
+ function DChartAxisBaseTickContainer(parser, options) {
73297
73310
  this._parser = parser;
73298
73311
  this._index = 0;
73299
- this._major = this.newMajor(parser);
73300
- this._minor = this.newMinor(parser);
73312
+ this._major = this.newMajor(parser, options);
73313
+ this._minor = this.newMinor(parser, options);
73301
73314
  this._majorTicks = [];
73302
73315
  this._minorTicks = [];
73303
73316
  }
@@ -73308,7 +73321,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
73308
73321
  enumerable: false,
73309
73322
  configurable: true
73310
73323
  });
73311
- DChartAxisBaseTickContainer.prototype.newMajor = function (parser) {
73324
+ DChartAxisBaseTickContainer.prototype.newMajor = function (parser, options) {
73312
73325
  return new DChartAxisBaseTickMajor(parser);
73313
73326
  };
73314
73327
  Object.defineProperty(DChartAxisBaseTickContainer.prototype, "minor", {
@@ -73318,7 +73331,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
73318
73331
  enumerable: false,
73319
73332
  configurable: true
73320
73333
  });
73321
- DChartAxisBaseTickContainer.prototype.newMinor = function (parser) {
73334
+ DChartAxisBaseTickContainer.prototype.newMinor = function (parser, options) {
73322
73335
  return new DChartAxisBaseTickMinor(parser);
73323
73336
  };
73324
73337
  DChartAxisBaseTickContainer.prototype.bind = function (container, index) {
@@ -73542,11 +73555,11 @@ var DChartAxisBase = /** @class */ (function () {
73542
73555
  function DChartAxisBase(options) {
73543
73556
  var theme = this.toTheme(options);
73544
73557
  this._theme = theme;
73545
- var parser = new DChartAxisBaseOptionParser(theme, options);
73558
+ var parser = this.newParser(theme, options);
73546
73559
  this._parser = parser;
73547
73560
  this._index = 0;
73548
- this._bar = this.newBar(parser);
73549
- this._tick = this.newTick(parser);
73561
+ this._bar = this.newBar(parser, theme, options);
73562
+ this._tick = this.newTick(parser, theme, options);
73550
73563
  }
73551
73564
  Object.defineProperty(DChartAxisBase.prototype, "parser", {
73552
73565
  get: function () {
@@ -73555,6 +73568,9 @@ var DChartAxisBase = /** @class */ (function () {
73555
73568
  enumerable: false,
73556
73569
  configurable: true
73557
73570
  });
73571
+ DChartAxisBase.prototype.newParser = function (theme, options) {
73572
+ return new DChartAxisBaseOptionParser(theme, options);
73573
+ };
73558
73574
  Object.defineProperty(DChartAxisBase.prototype, "position", {
73559
73575
  get: function () {
73560
73576
  return this._parser.position;
@@ -73569,7 +73585,7 @@ var DChartAxisBase = /** @class */ (function () {
73569
73585
  enumerable: false,
73570
73586
  configurable: true
73571
73587
  });
73572
- DChartAxisBase.prototype.newBar = function (parser) {
73588
+ DChartAxisBase.prototype.newBar = function (parser, theme, options) {
73573
73589
  return new DChartAxisBaseBar(parser);
73574
73590
  };
73575
73591
  Object.defineProperty(DChartAxisBase.prototype, "tick", {
@@ -73579,7 +73595,7 @@ var DChartAxisBase = /** @class */ (function () {
73579
73595
  enumerable: false,
73580
73596
  configurable: true
73581
73597
  });
73582
- DChartAxisBase.prototype.newTick = function (parser) {
73598
+ DChartAxisBase.prototype.newTick = function (parser, theme, options) {
73583
73599
  return new DChartAxisBaseTickContainer(parser);
73584
73600
  };
73585
73601
  DChartAxisBase.prototype.bind = function (container, index) {
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.291.0
2
+ Winter Cardinal UI v0.292.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -54274,7 +54274,7 @@
54274
54274
  var _a, _b;
54275
54275
  this._coordinateIndex = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
54276
54276
  this._position = this.toPosition(theme, options);
54277
- this._tick = this.toTickContainer(theme, options);
54277
+ this._tick = this.toTick(theme, options);
54278
54278
  this._label = this.toLabel(theme, options);
54279
54279
  this._padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
54280
54280
  this._bar = this.toBar(theme, options);
@@ -54338,7 +54338,7 @@
54338
54338
  stroke: this.toBarStroke(theme, options === null || options === void 0 ? void 0 : options.stroke)
54339
54339
  };
54340
54340
  };
54341
- DChartAxisBaseOptionParser.prototype.toTickContainer = function (theme, options) {
54341
+ DChartAxisBaseOptionParser.prototype.toTick = function (theme, options) {
54342
54342
  var _a;
54343
54343
  var tick = options === null || options === void 0 ? void 0 : options.tick;
54344
54344
  return {
@@ -54449,7 +54449,7 @@
54449
54449
  width: (_h = (_g = optionsA.width) !== null && _g !== void 0 ? _g : optionsB.width) !== null && _h !== void 0 ? _h : width,
54450
54450
  align: (_k = (_j = optionsA.align) !== null && _j !== void 0 ? _j : optionsB.align) !== null && _k !== void 0 ? _k : align,
54451
54451
  side: (_m = (_l = optionsA.side) !== null && _l !== void 0 ? _l : optionsB.side) !== null && _m !== void 0 ? _m : side,
54452
- style: (_p = (_o = optionsA.style) !== null && _o !== void 0 ? _o : optionsB.style) !== null && _p !== void 0 ? _p : style
54452
+ style: this.toStrokeStyle((_p = (_o = optionsA.style) !== null && _o !== void 0 ? _o : optionsB.style) !== null && _p !== void 0 ? _p : style)
54453
54453
  };
54454
54454
  }
54455
54455
  else {
@@ -54460,7 +54460,7 @@
54460
54460
  width: (_t = optionsA.width) !== null && _t !== void 0 ? _t : width,
54461
54461
  align: (_u = optionsA.align) !== null && _u !== void 0 ? _u : align,
54462
54462
  side: (_v = optionsA.side) !== null && _v !== void 0 ? _v : side,
54463
- style: (_w = optionsA.style) !== null && _w !== void 0 ? _w : style
54463
+ style: this.toStrokeStyle((_w = optionsA.style) !== null && _w !== void 0 ? _w : style)
54464
54464
  };
54465
54465
  }
54466
54466
  }
@@ -54472,7 +54472,7 @@
54472
54472
  width: (_0 = optionsB.width) !== null && _0 !== void 0 ? _0 : width,
54473
54473
  align: (_1 = optionsB.align) !== null && _1 !== void 0 ? _1 : align,
54474
54474
  side: (_2 = optionsB.side) !== null && _2 !== void 0 ? _2 : side,
54475
- style: (_3 = optionsB.style) !== null && _3 !== void 0 ? _3 : style
54475
+ style: this.toStrokeStyle((_3 = optionsB.style) !== null && _3 !== void 0 ? _3 : style)
54476
54476
  };
54477
54477
  }
54478
54478
  else {
@@ -54487,6 +54487,19 @@
54487
54487
  };
54488
54488
  }
54489
54489
  };
54490
+ DChartAxisBaseOptionParser.prototype.toStrokeStyle = function (target) {
54491
+ if (isString(target)) {
54492
+ return EShapeStrokeStyle[target];
54493
+ }
54494
+ else if (isArray(target)) {
54495
+ var result = EShapeStrokeStyle.NONE;
54496
+ for (var i = 0, imax = target.length; i < imax; ++i) {
54497
+ result |= EShapeStrokeStyle[target[i]];
54498
+ }
54499
+ return result;
54500
+ }
54501
+ return target;
54502
+ };
54490
54503
  DChartAxisBaseOptionParser.prototype.toTickMajorFormatter = function (theme, options) {
54491
54504
  var text = options === null || options === void 0 ? void 0 : options.text;
54492
54505
  if (text) {
@@ -54520,10 +54533,10 @@
54520
54533
  alpha: options.alpha,
54521
54534
  family: options.family,
54522
54535
  size: options.size,
54523
- weight: options.weight,
54536
+ weight: toEnum(options.weight, EShapeTextWeight),
54524
54537
  align: this.toTickMajorTextAlign(theme, options.align),
54525
54538
  offset: this.toTickMajorTextOffset(theme, options.offset),
54526
- style: options.style,
54539
+ style: toEnum(options.style, EShapeTextStyle),
54527
54540
  outline: this.toTickMajorTextOutline(theme, options.outline),
54528
54541
  spacing: this.toTickMajorTextSpacing(theme, options.spacing),
54529
54542
  direction: this.toTickMajorTextDirection(theme, options.direction),
@@ -54573,7 +54586,7 @@
54573
54586
  };
54574
54587
  };
54575
54588
  DChartAxisBaseOptionParser.prototype.toTickMajorTextDirection = function (theme, options) {
54576
- return options !== null && options !== void 0 ? options : theme.getMajorTickTextDirection();
54589
+ return toEnum(options !== null && options !== void 0 ? options : theme.getMajorTickTextDirection(), EShapeTextDirection);
54577
54590
  };
54578
54591
  DChartAxisBaseOptionParser.prototype.toTickMajorTextColor = function (theme, options) {
54579
54592
  return options !== null && options !== void 0 ? options : theme.getMajorTickTextColor();
@@ -54611,10 +54624,10 @@
54611
54624
  alpha: options.alpha,
54612
54625
  family: options.family,
54613
54626
  size: options.size,
54614
- weight: options.weight,
54627
+ weight: toEnum(options.weight, EShapeTextWeight),
54615
54628
  align: this.toTickMinorTextAlign(theme, options.align),
54616
54629
  offset: this.toTickMinorTextOffset(theme, options.offset),
54617
- style: options.style,
54630
+ style: toEnum(options.style, EShapeTextStyle),
54618
54631
  outline: this.toTickMinorTextOutline(theme, options.outline),
54619
54632
  spacing: this.toTickMinorTextSpacing(theme, options.spacing),
54620
54633
  direction: this.toTickMinorTextDirection(theme, options.direction),
@@ -54664,7 +54677,7 @@
54664
54677
  };
54665
54678
  };
54666
54679
  DChartAxisBaseOptionParser.prototype.toTickMinorTextDirection = function (theme, options) {
54667
- return options !== null && options !== void 0 ? options : theme.getMinorTickTextDirection();
54680
+ return toEnum(options !== null && options !== void 0 ? options : theme.getMinorTickTextDirection(), EShapeTextDirection);
54668
54681
  };
54669
54682
  DChartAxisBaseOptionParser.prototype.toTickMinorTextColor = function (theme, options) {
54670
54683
  return options !== null && options !== void 0 ? options : theme.getMinorTickTextColor();
@@ -54678,10 +54691,10 @@
54678
54691
  alpha: label.alpha,
54679
54692
  family: label.family,
54680
54693
  size: label.size,
54681
- weight: label.weight,
54694
+ weight: toEnum(label.weight, EShapeTextWeight),
54682
54695
  align: this.toLabelAlign(theme, label.align),
54683
54696
  offset: this.toLabelOffset(theme, label.offset),
54684
- style: label.style,
54697
+ style: toEnum(label.style, EShapeTextStyle),
54685
54698
  outline: this.toLabelOutline(theme, label.outline),
54686
54699
  spacing: this.toLabelSpacing(theme, label.spacing),
54687
54700
  direction: this.toLabelDirection(theme, label.direction),
@@ -54732,7 +54745,7 @@
54732
54745
  };
54733
54746
  };
54734
54747
  DChartAxisBaseOptionParser.prototype.toLabelDirection = function (theme, options) {
54735
- return options !== null && options !== void 0 ? options : theme.getLabelDirection();
54748
+ return toEnum(options !== null && options !== void 0 ? options : theme.getLabelDirection(), EShapeTextDirection);
54736
54749
  };
54737
54750
  DChartAxisBaseOptionParser.prototype.toLabelColor = function (theme, options) {
54738
54751
  return options !== null && options !== void 0 ? options : theme.getLabelColor();
@@ -54977,11 +54990,11 @@
54977
54990
  }());
54978
54991
 
54979
54992
  var DChartAxisBaseTickContainer = /** @class */ (function () {
54980
- function DChartAxisBaseTickContainer(parser) {
54993
+ function DChartAxisBaseTickContainer(parser, options) {
54981
54994
  this._parser = parser;
54982
54995
  this._index = 0;
54983
- this._major = this.newMajor(parser);
54984
- this._minor = this.newMinor(parser);
54996
+ this._major = this.newMajor(parser, options);
54997
+ this._minor = this.newMinor(parser, options);
54985
54998
  this._majorTicks = [];
54986
54999
  this._minorTicks = [];
54987
55000
  }
@@ -54992,7 +55005,7 @@
54992
55005
  enumerable: false,
54993
55006
  configurable: true
54994
55007
  });
54995
- DChartAxisBaseTickContainer.prototype.newMajor = function (parser) {
55008
+ DChartAxisBaseTickContainer.prototype.newMajor = function (parser, options) {
54996
55009
  return new DChartAxisBaseTickMajor(parser);
54997
55010
  };
54998
55011
  Object.defineProperty(DChartAxisBaseTickContainer.prototype, "minor", {
@@ -55002,7 +55015,7 @@
55002
55015
  enumerable: false,
55003
55016
  configurable: true
55004
55017
  });
55005
- DChartAxisBaseTickContainer.prototype.newMinor = function (parser) {
55018
+ DChartAxisBaseTickContainer.prototype.newMinor = function (parser, options) {
55006
55019
  return new DChartAxisBaseTickMinor(parser);
55007
55020
  };
55008
55021
  DChartAxisBaseTickContainer.prototype.bind = function (container, index) {
@@ -55226,11 +55239,11 @@
55226
55239
  function DChartAxisBase(options) {
55227
55240
  var theme = this.toTheme(options);
55228
55241
  this._theme = theme;
55229
- var parser = new DChartAxisBaseOptionParser(theme, options);
55242
+ var parser = this.newParser(theme, options);
55230
55243
  this._parser = parser;
55231
55244
  this._index = 0;
55232
- this._bar = this.newBar(parser);
55233
- this._tick = this.newTick(parser);
55245
+ this._bar = this.newBar(parser, theme, options);
55246
+ this._tick = this.newTick(parser, theme, options);
55234
55247
  }
55235
55248
  Object.defineProperty(DChartAxisBase.prototype, "parser", {
55236
55249
  get: function () {
@@ -55239,6 +55252,9 @@
55239
55252
  enumerable: false,
55240
55253
  configurable: true
55241
55254
  });
55255
+ DChartAxisBase.prototype.newParser = function (theme, options) {
55256
+ return new DChartAxisBaseOptionParser(theme, options);
55257
+ };
55242
55258
  Object.defineProperty(DChartAxisBase.prototype, "position", {
55243
55259
  get: function () {
55244
55260
  return this._parser.position;
@@ -55253,7 +55269,7 @@
55253
55269
  enumerable: false,
55254
55270
  configurable: true
55255
55271
  });
55256
- DChartAxisBase.prototype.newBar = function (parser) {
55272
+ DChartAxisBase.prototype.newBar = function (parser, theme, options) {
55257
55273
  return new DChartAxisBaseBar(parser);
55258
55274
  };
55259
55275
  Object.defineProperty(DChartAxisBase.prototype, "tick", {
@@ -55263,7 +55279,7 @@
55263
55279
  enumerable: false,
55264
55280
  configurable: true
55265
55281
  });
55266
- DChartAxisBase.prototype.newTick = function (parser) {
55282
+ DChartAxisBase.prototype.newTick = function (parser, theme, options) {
55267
55283
  return new DChartAxisBaseTickContainer(parser);
55268
55284
  };
55269
55285
  DChartAxisBase.prototype.bind = function (container, index) {