@wcardinal/wcardinal-ui 0.293.0 → 0.294.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.293.0
2
+ Winter Cardinal UI v0.294.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.293.0
2
+ Winter Cardinal UI v0.294.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.293.0
2
+ Winter Cardinal UI v0.294.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -72588,55 +72588,13 @@ var DChartAxisBaseBar = /** @class */ (function () {
72588
72588
  var DChartAxisBaseOptionParser = /** @class */ (function () {
72589
72589
  function DChartAxisBaseOptionParser(theme, options) {
72590
72590
  var _a, _b;
72591
- this._coordinateIndex = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
72592
- this._position = this.toPosition(theme, options);
72593
- this._tick = this.toTick(theme, options);
72594
- this._label = this.toLabel(theme, options);
72595
- this._padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
72596
- this._bar = this.toBar(theme, options);
72591
+ this.coordinate = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
72592
+ this.position = this.toPosition(theme, options);
72593
+ this.tick = this.toTick(theme, options);
72594
+ this.label = this.toLabel(theme, options);
72595
+ this.padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
72596
+ this.bar = this.toBar(theme, options);
72597
72597
  }
72598
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "coordinateIndex", {
72599
- get: function () {
72600
- return this._coordinateIndex;
72601
- },
72602
- enumerable: false,
72603
- configurable: true
72604
- });
72605
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "padding", {
72606
- get: function () {
72607
- return this._padding;
72608
- },
72609
- enumerable: false,
72610
- configurable: true
72611
- });
72612
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "position", {
72613
- get: function () {
72614
- return this._position;
72615
- },
72616
- enumerable: false,
72617
- configurable: true
72618
- });
72619
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "bar", {
72620
- get: function () {
72621
- return this._bar;
72622
- },
72623
- enumerable: false,
72624
- configurable: true
72625
- });
72626
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "tick", {
72627
- get: function () {
72628
- return this._tick;
72629
- },
72630
- enumerable: false,
72631
- configurable: true
72632
- });
72633
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "label", {
72634
- get: function () {
72635
- return this._label;
72636
- },
72637
- enumerable: false,
72638
- configurable: true
72639
- });
72640
72598
  DChartAxisBaseOptionParser.prototype.toPosition = function (theme, options) {
72641
72599
  var position = options === null || options === void 0 ? void 0 : options.position;
72642
72600
  if (isString(position)) {
@@ -72696,7 +72654,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72696
72654
  };
72697
72655
  };
72698
72656
  DChartAxisBaseOptionParser.prototype.toTickPosition = function (tickPosition) {
72699
- var position = this._position;
72657
+ var position = this.position;
72700
72658
  if (tickPosition === DChartAxisTickPosition.OUTSIDE || tickPosition === "OUTSIDE") {
72701
72659
  switch (position) {
72702
72660
  case DChartAxisPosition.TOP:
@@ -72872,7 +72830,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72872
72830
  };
72873
72831
  DChartAxisBaseOptionParser.prototype.toTickMajorTextAlign = function (theme, options) {
72874
72832
  var _a, _b;
72875
- var position = this._position;
72833
+ var position = this.position;
72876
72834
  return {
72877
72835
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMajorTickTextAlignHorizontal(position),
72878
72836
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMajorTickTextAlignVertical(position)
@@ -72963,7 +72921,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
72963
72921
  };
72964
72922
  DChartAxisBaseOptionParser.prototype.toTickMinorTextAlign = function (theme, options) {
72965
72923
  var _a, _b;
72966
- var position = this._position;
72924
+ var position = this.position;
72967
72925
  return {
72968
72926
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMinorTickTextAlignHorizontal(position),
72969
72927
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMinorTickTextAlignVertical(position)
@@ -73031,7 +72989,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
73031
72989
  };
73032
72990
  DChartAxisBaseOptionParser.prototype.toLabelAlign = function (theme, options) {
73033
72991
  var _a, _b;
73034
- var position = this._position;
72992
+ var position = this.position;
73035
72993
  return {
73036
72994
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getLabelAlignHorizontal(position),
73037
72995
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getLabelAlignVertical(position)
@@ -73360,7 +73318,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
73360
73318
  var coordinate = void 0;
73361
73319
  switch (parser.position) {
73362
73320
  case DChartAxisPosition.TOP:
73363
- coordinate = plotArea.coordinate.x.get(parser.coordinateIndex);
73321
+ coordinate = plotArea.coordinate.x.get(parser.coordinate);
73364
73322
  if (coordinate) {
73365
73323
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.x));
73366
73324
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.x + bounds.width));
@@ -73369,7 +73327,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
73369
73327
  }
73370
73328
  break;
73371
73329
  case DChartAxisPosition.BOTTOM:
73372
- coordinate = plotArea.coordinate.x.get(parser.coordinateIndex);
73330
+ coordinate = plotArea.coordinate.x.get(parser.coordinate);
73373
73331
  if (coordinate) {
73374
73332
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.x));
73375
73333
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.x + bounds.width));
@@ -73378,7 +73336,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
73378
73336
  }
73379
73337
  break;
73380
73338
  case DChartAxisPosition.LEFT:
73381
- coordinate = plotArea.coordinate.y.get(parser.coordinateIndex);
73339
+ coordinate = plotArea.coordinate.y.get(parser.coordinate);
73382
73340
  if (coordinate) {
73383
73341
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.y));
73384
73342
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.y + bounds.height));
@@ -73387,7 +73345,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
73387
73345
  }
73388
73346
  break;
73389
73347
  case DChartAxisPosition.RIGHT:
73390
- coordinate = plotArea.coordinate.y.get(parser.coordinateIndex);
73348
+ coordinate = plotArea.coordinate.y.get(parser.coordinate);
73391
73349
  if (coordinate) {
73392
73350
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.y));
73393
73351
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.y + bounds.height));
@@ -73561,13 +73519,6 @@ var DChartAxisBase = /** @class */ (function () {
73561
73519
  this._bar = this.newBar(parser, theme, options);
73562
73520
  this._tick = this.newTick(parser, theme, options);
73563
73521
  }
73564
- Object.defineProperty(DChartAxisBase.prototype, "parser", {
73565
- get: function () {
73566
- return this._parser;
73567
- },
73568
- enumerable: false,
73569
- configurable: true
73570
- });
73571
73522
  DChartAxisBase.prototype.newParser = function (theme, options) {
73572
73523
  return new DChartAxisBaseOptionParser(theme, options);
73573
73524
  };
@@ -73575,6 +73526,29 @@ var DChartAxisBase = /** @class */ (function () {
73575
73526
  get: function () {
73576
73527
  return this._parser.position;
73577
73528
  },
73529
+ set: function (position) {
73530
+ this._parser.position = position;
73531
+ },
73532
+ enumerable: false,
73533
+ configurable: true
73534
+ });
73535
+ Object.defineProperty(DChartAxisBase.prototype, "coordinate", {
73536
+ get: function () {
73537
+ return this._parser.coordinate;
73538
+ },
73539
+ set: function (coordinate) {
73540
+ this._parser.coordinate = coordinate;
73541
+ },
73542
+ enumerable: false,
73543
+ configurable: true
73544
+ });
73545
+ Object.defineProperty(DChartAxisBase.prototype, "padding", {
73546
+ get: function () {
73547
+ return this._parser.padding;
73548
+ },
73549
+ set: function (padding) {
73550
+ this._parser.padding = padding;
73551
+ },
73578
73552
  enumerable: false,
73579
73553
  configurable: true
73580
73554
  });
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.293.0
2
+ Winter Cardinal UI v0.294.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -54272,55 +54272,13 @@
54272
54272
  var DChartAxisBaseOptionParser = /** @class */ (function () {
54273
54273
  function DChartAxisBaseOptionParser(theme, options) {
54274
54274
  var _a, _b;
54275
- this._coordinateIndex = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
54276
- this._position = this.toPosition(theme, options);
54277
- this._tick = this.toTick(theme, options);
54278
- this._label = this.toLabel(theme, options);
54279
- this._padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
54280
- this._bar = this.toBar(theme, options);
54275
+ this.coordinate = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
54276
+ this.position = this.toPosition(theme, options);
54277
+ this.tick = this.toTick(theme, options);
54278
+ this.label = this.toLabel(theme, options);
54279
+ this.padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
54280
+ this.bar = this.toBar(theme, options);
54281
54281
  }
54282
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "coordinateIndex", {
54283
- get: function () {
54284
- return this._coordinateIndex;
54285
- },
54286
- enumerable: false,
54287
- configurable: true
54288
- });
54289
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "padding", {
54290
- get: function () {
54291
- return this._padding;
54292
- },
54293
- enumerable: false,
54294
- configurable: true
54295
- });
54296
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "position", {
54297
- get: function () {
54298
- return this._position;
54299
- },
54300
- enumerable: false,
54301
- configurable: true
54302
- });
54303
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "bar", {
54304
- get: function () {
54305
- return this._bar;
54306
- },
54307
- enumerable: false,
54308
- configurable: true
54309
- });
54310
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "tick", {
54311
- get: function () {
54312
- return this._tick;
54313
- },
54314
- enumerable: false,
54315
- configurable: true
54316
- });
54317
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "label", {
54318
- get: function () {
54319
- return this._label;
54320
- },
54321
- enumerable: false,
54322
- configurable: true
54323
- });
54324
54282
  DChartAxisBaseOptionParser.prototype.toPosition = function (theme, options) {
54325
54283
  var position = options === null || options === void 0 ? void 0 : options.position;
54326
54284
  if (isString(position)) {
@@ -54380,7 +54338,7 @@
54380
54338
  };
54381
54339
  };
54382
54340
  DChartAxisBaseOptionParser.prototype.toTickPosition = function (tickPosition) {
54383
- var position = this._position;
54341
+ var position = this.position;
54384
54342
  if (tickPosition === DChartAxisTickPosition.OUTSIDE || tickPosition === "OUTSIDE") {
54385
54343
  switch (position) {
54386
54344
  case DChartAxisPosition.TOP:
@@ -54556,7 +54514,7 @@
54556
54514
  };
54557
54515
  DChartAxisBaseOptionParser.prototype.toTickMajorTextAlign = function (theme, options) {
54558
54516
  var _a, _b;
54559
- var position = this._position;
54517
+ var position = this.position;
54560
54518
  return {
54561
54519
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMajorTickTextAlignHorizontal(position),
54562
54520
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMajorTickTextAlignVertical(position)
@@ -54647,7 +54605,7 @@
54647
54605
  };
54648
54606
  DChartAxisBaseOptionParser.prototype.toTickMinorTextAlign = function (theme, options) {
54649
54607
  var _a, _b;
54650
- var position = this._position;
54608
+ var position = this.position;
54651
54609
  return {
54652
54610
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMinorTickTextAlignHorizontal(position),
54653
54611
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMinorTickTextAlignVertical(position)
@@ -54715,7 +54673,7 @@
54715
54673
  };
54716
54674
  DChartAxisBaseOptionParser.prototype.toLabelAlign = function (theme, options) {
54717
54675
  var _a, _b;
54718
- var position = this._position;
54676
+ var position = this.position;
54719
54677
  return {
54720
54678
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getLabelAlignHorizontal(position),
54721
54679
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getLabelAlignVertical(position)
@@ -55044,7 +55002,7 @@
55044
55002
  var coordinate = void 0;
55045
55003
  switch (parser.position) {
55046
55004
  case DChartAxisPosition.TOP:
55047
- coordinate = plotArea.coordinate.x.get(parser.coordinateIndex);
55005
+ coordinate = plotArea.coordinate.x.get(parser.coordinate);
55048
55006
  if (coordinate) {
55049
55007
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.x));
55050
55008
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.x + bounds.width));
@@ -55053,7 +55011,7 @@
55053
55011
  }
55054
55012
  break;
55055
55013
  case DChartAxisPosition.BOTTOM:
55056
- coordinate = plotArea.coordinate.x.get(parser.coordinateIndex);
55014
+ coordinate = plotArea.coordinate.x.get(parser.coordinate);
55057
55015
  if (coordinate) {
55058
55016
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.x));
55059
55017
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.x + bounds.width));
@@ -55062,7 +55020,7 @@
55062
55020
  }
55063
55021
  break;
55064
55022
  case DChartAxisPosition.LEFT:
55065
- coordinate = plotArea.coordinate.y.get(parser.coordinateIndex);
55023
+ coordinate = plotArea.coordinate.y.get(parser.coordinate);
55066
55024
  if (coordinate) {
55067
55025
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.y));
55068
55026
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.y + bounds.height));
@@ -55071,7 +55029,7 @@
55071
55029
  }
55072
55030
  break;
55073
55031
  case DChartAxisPosition.RIGHT:
55074
- coordinate = plotArea.coordinate.y.get(parser.coordinateIndex);
55032
+ coordinate = plotArea.coordinate.y.get(parser.coordinate);
55075
55033
  if (coordinate) {
55076
55034
  var domainFrom = coordinate.unmap(coordinate.transform.unmap(bounds.y));
55077
55035
  var domainTo = coordinate.unmap(coordinate.transform.unmap(bounds.y + bounds.height));
@@ -55245,13 +55203,6 @@
55245
55203
  this._bar = this.newBar(parser, theme, options);
55246
55204
  this._tick = this.newTick(parser, theme, options);
55247
55205
  }
55248
- Object.defineProperty(DChartAxisBase.prototype, "parser", {
55249
- get: function () {
55250
- return this._parser;
55251
- },
55252
- enumerable: false,
55253
- configurable: true
55254
- });
55255
55206
  DChartAxisBase.prototype.newParser = function (theme, options) {
55256
55207
  return new DChartAxisBaseOptionParser(theme, options);
55257
55208
  };
@@ -55259,6 +55210,29 @@
55259
55210
  get: function () {
55260
55211
  return this._parser.position;
55261
55212
  },
55213
+ set: function (position) {
55214
+ this._parser.position = position;
55215
+ },
55216
+ enumerable: false,
55217
+ configurable: true
55218
+ });
55219
+ Object.defineProperty(DChartAxisBase.prototype, "coordinate", {
55220
+ get: function () {
55221
+ return this._parser.coordinate;
55222
+ },
55223
+ set: function (coordinate) {
55224
+ this._parser.coordinate = coordinate;
55225
+ },
55226
+ enumerable: false,
55227
+ configurable: true
55228
+ });
55229
+ Object.defineProperty(DChartAxisBase.prototype, "padding", {
55230
+ get: function () {
55231
+ return this._parser.padding;
55232
+ },
55233
+ set: function (padding) {
55234
+ this._parser.padding = padding;
55235
+ },
55262
55236
  enumerable: false,
55263
55237
  configurable: true
55264
55238
  });