@wcardinal/wcardinal-ui 0.290.0 → 0.291.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 (63) hide show
  1. package/dist/types/wcardinal/ui/d-chart-axis-bar.d.ts +5 -0
  2. package/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +23 -12
  3. package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +12 -4
  4. package/dist/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +13 -4
  5. package/dist/types/wcardinal/ui/d-chart-axis-base.d.ts +5 -4
  6. package/dist/types/wcardinal/ui/d-chart-axis-tick-container.d.ts +5 -0
  7. package/dist/types/wcardinal/ui/d-chart-axis-tick-major.d.ts +4 -0
  8. package/dist/types/wcardinal/ui/d-chart-axis-tick-minor.d.ts +4 -0
  9. package/dist/types/wcardinal/ui/d-chart-coordinate-base.d.ts +52 -0
  10. package/dist/types/wcardinal/ui/d-chart-coordinate-linear.d.ts +4 -46
  11. package/dist/types/wcardinal/ui/d-chart-coordinate-log.d.ts +4 -42
  12. package/dist/types/wcardinal/ui/d-table-body.d.ts +7 -0
  13. package/dist/types/wcardinal/ui/index.d.ts +11 -0
  14. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.d.ts +7 -0
  15. package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.d.ts +7 -0
  16. package/dist/wcardinal/ui/d-chart-axis-bar.js.map +1 -1
  17. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +123 -23
  18. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js.map +1 -1
  19. package/dist/wcardinal/ui/d-chart-axis-base-options.js.map +1 -1
  20. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +63 -42
  21. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
  22. package/dist/wcardinal/ui/d-chart-axis-base-tick-minor.js +1 -0
  23. package/dist/wcardinal/ui/d-chart-axis-base-tick-minor.js.map +1 -1
  24. package/dist/wcardinal/ui/d-chart-axis-base.js +17 -3
  25. package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
  26. package/dist/wcardinal/ui/d-chart-axis-tick-container.js.map +1 -1
  27. package/dist/wcardinal/ui/d-chart-axis-tick-major.js.map +1 -1
  28. package/dist/wcardinal/ui/d-chart-axis-tick-minor.js.map +1 -1
  29. package/dist/wcardinal/ui/d-chart-coordinate-base.js +186 -0
  30. package/dist/wcardinal/ui/d-chart-coordinate-base.js.map +1 -0
  31. package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js +2 -1
  32. package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js.map +1 -1
  33. package/dist/wcardinal/ui/d-chart-coordinate-linear.js +9 -165
  34. package/dist/wcardinal/ui/d-chart-coordinate-linear.js.map +1 -1
  35. package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js +2 -1
  36. package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js.map +1 -1
  37. package/dist/wcardinal/ui/d-chart-coordinate-log.js +9 -153
  38. package/dist/wcardinal/ui/d-chart-coordinate-log.js.map +1 -1
  39. package/dist/wcardinal/ui/d-chart-series-line-of-any.js +4 -2
  40. package/dist/wcardinal/ui/d-chart-series-line-of-any.js.map +1 -1
  41. package/dist/wcardinal/ui/d-scroll-bar-vertical.js +1 -0
  42. package/dist/wcardinal/ui/d-scroll-bar-vertical.js.map +1 -1
  43. package/dist/wcardinal/ui/d-table-body.js +39 -0
  44. package/dist/wcardinal/ui/d-table-body.js.map +1 -1
  45. package/dist/wcardinal/ui/d-table.js +3 -3
  46. package/dist/wcardinal/ui/d-table.js.map +1 -1
  47. package/dist/wcardinal/ui/index.js +11 -0
  48. package/dist/wcardinal/ui/index.js.map +1 -1
  49. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js +21 -0
  50. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js.map +1 -1
  51. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js +21 -0
  52. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js.map +1 -1
  53. package/dist/wcardinal-ui-theme-dark.js +22 -1
  54. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  55. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  56. package/dist/wcardinal-ui-theme-white.js +22 -1
  57. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  58. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  59. package/dist/wcardinal-ui.cjs.js +752 -639
  60. package/dist/wcardinal-ui.js +710 -639
  61. package/dist/wcardinal-ui.min.js +2 -2
  62. package/dist/wcardinal-ui.min.js.map +1 -1
  63. package/package.json +1 -1
@@ -83,7 +83,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
83
83
  return {
84
84
  enable: (_a = tick === null || tick === void 0 ? void 0 : tick.enable) !== null && _a !== void 0 ? _a : theme.getTickEnable(),
85
85
  major: this.toTickMajor(theme, tick),
86
- minor: this.toMinorTick(theme, tick)
86
+ minor: this.toTickMinor(theme, tick)
87
87
  };
88
88
  };
89
89
  DChartAxisBaseOptionParser.prototype.toTickMajor = function (theme, options) {
@@ -104,8 +104,8 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
104
104
  position: this.toTickPosition(position),
105
105
  style: style,
106
106
  stroke: stroke,
107
- text: this.toMajorTickText(theme, major === null || major === void 0 ? void 0 : major.text),
108
- formatter: this.toMajorTickFormatter(theme, major),
107
+ text: this.toTickMajorText(theme, major === null || major === void 0 ? void 0 : major.text),
108
+ formatter: this.toTickMajorFormatter(theme, major),
109
109
  gridline: this.toTickMajorGridline(theme, major === null || major === void 0 ? void 0 : major.gridline, optionsStyle, optionsStroke)
110
110
  };
111
111
  };
@@ -149,7 +149,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
149
149
  }
150
150
  }
151
151
  };
152
- DChartAxisBaseOptionParser.prototype.toMinorTick = function (theme, options) {
152
+ DChartAxisBaseOptionParser.prototype.toTickMinor = function (theme, options) {
153
153
  var _a, _b, _c, _d, _e, _f, _g;
154
154
  var minor = options === null || options === void 0 ? void 0 : options.minor;
155
155
  var position = (_b = (_a = minor === null || minor === void 0 ? void 0 : minor.position) !== null && _a !== void 0 ? _a : options === null || options === void 0 ? void 0 : options.position) !== null && _b !== void 0 ? _b : theme.getMinorTickPosition();
@@ -160,7 +160,9 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
160
160
  size: (_g = minor === null || minor === void 0 ? void 0 : minor.size) !== null && _g !== void 0 ? _g : theme.getMinorTickSize(),
161
161
  position: this.toTickPosition(position),
162
162
  style: style,
163
- stroke: this.toTickMinorStroke(theme, minor === null || minor === void 0 ? void 0 : minor.stroke, options === null || options === void 0 ? void 0 : options.stroke)
163
+ stroke: this.toTickMinorStroke(theme, minor === null || minor === void 0 ? void 0 : minor.stroke, options === null || options === void 0 ? void 0 : options.stroke),
164
+ text: this.toTickMinorText(theme, minor === null || minor === void 0 ? void 0 : minor.text),
165
+ formatter: this.toTickMinorFormatter(theme, minor)
164
166
  };
165
167
  };
166
168
  DChartAxisBaseOptionParser.prototype.toBarStroke = function (theme, options) {
@@ -224,12 +226,15 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
224
226
  };
225
227
  }
226
228
  };
227
- DChartAxisBaseOptionParser.prototype.toMajorTickFormatter = function (theme, options) {
229
+ DChartAxisBaseOptionParser.prototype.toTickMajorFormatter = function (theme, options) {
228
230
  var text = options === null || options === void 0 ? void 0 : options.text;
229
231
  if (text) {
230
- var format = text.format;
231
- if (format != null) {
232
- return NumberFormatters.create(format);
232
+ var format_1 = text.format;
233
+ if (format_1 === null) {
234
+ return undefined;
235
+ }
236
+ else if (format_1 != null) {
237
+ return NumberFormatters.create(format_1);
233
238
  }
234
239
  else {
235
240
  var formatter = text.formatter;
@@ -240,28 +245,32 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
240
245
  }
241
246
  }
242
247
  }
243
- return NumberFormatters.create(theme.getMajorTickTextFormat());
248
+ var format = theme.getMajorTickTextFormat();
249
+ if (format != null) {
250
+ return NumberFormatters.create(format);
251
+ }
252
+ return undefined;
244
253
  };
245
- DChartAxisBaseOptionParser.prototype.toMajorTickText = function (theme, options) {
254
+ DChartAxisBaseOptionParser.prototype.toTickMajorText = function (theme, options) {
246
255
  options = options || {};
247
256
  return {
248
257
  format: options.format,
249
- color: this.toMajorTickTextColor(theme, options.color),
258
+ color: this.toTickMajorTextColor(theme, options.color),
250
259
  alpha: options.alpha,
251
260
  family: options.family,
252
261
  size: options.size,
253
262
  weight: options.weight,
254
- align: this.toMajorTickTextAlign(theme, options.align),
255
- offset: this.toMajorTickTextOffset(theme, options.offset),
263
+ align: this.toTickMajorTextAlign(theme, options.align),
264
+ offset: this.toTickMajorTextOffset(theme, options.offset),
256
265
  style: options.style,
257
- outline: this.toMajorTickTextOutline(theme, options.outline),
258
- spacing: this.toMajorTickTextSpacing(theme, options.spacing),
266
+ outline: this.toTickMajorTextOutline(theme, options.outline),
267
+ spacing: this.toTickMajorTextSpacing(theme, options.spacing),
259
268
  direction: this.toTickMajorTextDirection(theme, options.direction),
260
- padding: this.toMajorTickTextPadding(theme, options.padding),
269
+ padding: this.toTickMajorTextPadding(theme, options.padding),
261
270
  clipping: options.clipping
262
271
  };
263
272
  };
264
- DChartAxisBaseOptionParser.prototype.toMajorTickTextOutline = function (theme, options) {
273
+ DChartAxisBaseOptionParser.prototype.toTickMajorTextOutline = function (theme, options) {
265
274
  if (options) {
266
275
  return {
267
276
  enable: options.enable,
@@ -271,7 +280,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
271
280
  };
272
281
  }
273
282
  };
274
- DChartAxisBaseOptionParser.prototype.toMajorTickTextAlign = function (theme, options) {
283
+ DChartAxisBaseOptionParser.prototype.toTickMajorTextAlign = function (theme, options) {
275
284
  var _a, _b;
276
285
  var position = this._position;
277
286
  return {
@@ -279,7 +288,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
279
288
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMajorTickTextAlignVertical(position)
280
289
  };
281
290
  };
282
- DChartAxisBaseOptionParser.prototype.toMajorTickTextOffset = function (theme, options) {
291
+ DChartAxisBaseOptionParser.prototype.toTickMajorTextOffset = function (theme, options) {
283
292
  if (options) {
284
293
  return {
285
294
  horizontal: options.horizontal,
@@ -287,7 +296,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
287
296
  };
288
297
  }
289
298
  };
290
- DChartAxisBaseOptionParser.prototype.toMajorTickTextSpacing = function (theme, options) {
299
+ DChartAxisBaseOptionParser.prototype.toTickMajorTextSpacing = function (theme, options) {
291
300
  if (options) {
292
301
  return {
293
302
  horizontal: options.horizontal,
@@ -295,7 +304,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
295
304
  };
296
305
  }
297
306
  };
298
- DChartAxisBaseOptionParser.prototype.toMajorTickTextPadding = function (theme, options) {
307
+ DChartAxisBaseOptionParser.prototype.toTickMajorTextPadding = function (theme, options) {
299
308
  var _a, _b;
300
309
  return {
301
310
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMajorTickTextPaddingHorizontal(),
@@ -305,9 +314,100 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
305
314
  DChartAxisBaseOptionParser.prototype.toTickMajorTextDirection = function (theme, options) {
306
315
  return options !== null && options !== void 0 ? options : theme.getMajorTickTextDirection();
307
316
  };
308
- DChartAxisBaseOptionParser.prototype.toMajorTickTextColor = function (theme, options) {
317
+ DChartAxisBaseOptionParser.prototype.toTickMajorTextColor = function (theme, options) {
309
318
  return options !== null && options !== void 0 ? options : theme.getMajorTickTextColor();
310
319
  };
320
+ DChartAxisBaseOptionParser.prototype.toTickMinorFormatter = function (theme, options) {
321
+ var text = options === null || options === void 0 ? void 0 : options.text;
322
+ if (text) {
323
+ var format_2 = text.format;
324
+ if (format_2 === null) {
325
+ return undefined;
326
+ }
327
+ else if (format_2 != null) {
328
+ return NumberFormatters.create(format_2);
329
+ }
330
+ else {
331
+ var formatter = text.formatter;
332
+ if (formatter) {
333
+ return {
334
+ format: formatter
335
+ };
336
+ }
337
+ }
338
+ }
339
+ var format = theme.getMinorTickTextFormat();
340
+ if (format != null) {
341
+ return NumberFormatters.create(format);
342
+ }
343
+ return undefined;
344
+ };
345
+ DChartAxisBaseOptionParser.prototype.toTickMinorText = function (theme, options) {
346
+ options = options || {};
347
+ return {
348
+ format: options.format,
349
+ color: this.toTickMinorTextColor(theme, options.color),
350
+ alpha: options.alpha,
351
+ family: options.family,
352
+ size: options.size,
353
+ weight: options.weight,
354
+ align: this.toTickMinorTextAlign(theme, options.align),
355
+ offset: this.toTickMinorTextOffset(theme, options.offset),
356
+ style: options.style,
357
+ outline: this.toTickMinorTextOutline(theme, options.outline),
358
+ spacing: this.toTickMinorTextSpacing(theme, options.spacing),
359
+ direction: this.toTickMinorTextDirection(theme, options.direction),
360
+ padding: this.toTickMinorTextPadding(theme, options.padding),
361
+ clipping: options.clipping
362
+ };
363
+ };
364
+ DChartAxisBaseOptionParser.prototype.toTickMinorTextOutline = function (theme, options) {
365
+ if (options) {
366
+ return {
367
+ enable: options.enable,
368
+ color: options.color,
369
+ alpha: options.alpha,
370
+ width: options.width
371
+ };
372
+ }
373
+ };
374
+ DChartAxisBaseOptionParser.prototype.toTickMinorTextAlign = function (theme, options) {
375
+ var _a, _b;
376
+ var position = this._position;
377
+ return {
378
+ horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMinorTickTextAlignHorizontal(position),
379
+ vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMinorTickTextAlignVertical(position)
380
+ };
381
+ };
382
+ DChartAxisBaseOptionParser.prototype.toTickMinorTextOffset = function (theme, options) {
383
+ if (options) {
384
+ return {
385
+ horizontal: options.horizontal,
386
+ vertical: options.vertical
387
+ };
388
+ }
389
+ };
390
+ DChartAxisBaseOptionParser.prototype.toTickMinorTextSpacing = function (theme, options) {
391
+ if (options) {
392
+ return {
393
+ horizontal: options.horizontal,
394
+ vertical: options.vertical
395
+ };
396
+ }
397
+ };
398
+ DChartAxisBaseOptionParser.prototype.toTickMinorTextPadding = function (theme, options) {
399
+ var _a, _b;
400
+ return {
401
+ horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMinorTickTextPaddingHorizontal(),
402
+ vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMinorTickTextPaddingVertical()
403
+ };
404
+ };
405
+ DChartAxisBaseOptionParser.prototype.toTickMinorTextDirection = function (theme, options) {
406
+ return options !== null && options !== void 0 ? options : theme.getMinorTickTextDirection();
407
+ };
408
+ DChartAxisBaseOptionParser.prototype.toTickMinorTextColor = function (theme, options) {
409
+ return options !== null && options !== void 0 ? options : theme.getMinorTickTextColor();
410
+ };
311
411
  DChartAxisBaseOptionParser.prototype.toLabel = function (theme, options) {
312
412
  var label = options === null || options === void 0 ? void 0 : options.label;
313
413
  if (label) {
@@ -1 +1 @@
1
- {"version":3,"file":"d-chart-axis-base-options-parser.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAS5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;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,OAAO;YACN,UAAU,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,KAAK,CAAC,yBAAyB,EAAE;YACpE,QAAQ,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,KAAK,CAAC,uBAAuB,EAAE;SAC9D,CAAC;IACH,CAAC;IAES,qDAAgB,GAA1B,UACC,KAA0B,EAC1B,OAA6B;QAE7B,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC;IAES,iDAAY,GAAtB,UAAuB,KAA0B,EAAE,OAAgB;QAClE,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IACF,iCAAC;AAAD,CAAC,AA9fD,IA8fC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n\tDChartAxisBaseOptions,\n\tDChartAxisBaseTickContainerOptions,\n\tDChartAxisBaseTickMajorGridlineOptions,\n\tDChartAxisBaseTickMajorOptions,\n\tDChartAxisBaseTickMajorTextOptions,\n\tDThemeChartAxisBase\n} from \"./d-chart-axis-base-options\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption, EShapePointsStyles } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { isString } from \"./util/is-string\";\nimport { NumberFormatter } from \"./util/number-formatter\";\nimport { NumberFormatters } from \"./util/number-formatters\";\n\nexport interface DChartAxisBaseOptionParserGridline {\n\tenable: boolean;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseOptionParserTickMajor {\n\tcapacity: number;\n\tcount: number;\n\tstep: number | DChartCoordinateTickMajorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickMajorTextOptions;\n\tformatter: NumberFormatter;\n\n\tgridline: DChartAxisBaseOptionParserGridline;\n}\n\nexport interface DChartAxisBaseOptionParserTickMinor {\n\tcount: number;\n\tstep: number | DChartCoordinateTickMinorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseOptionParserTickContainer {\n\tenable: boolean;\n\tmajor: DChartAxisBaseOptionParserTickMajor;\n\tminor: DChartAxisBaseOptionParserTickMinor;\n}\n\nexport interface DChartAxisBaseOptionParserBar {\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport class DChartAxisBaseOptionParser {\n\tprotected _coordinateIndex: number;\n\tprotected _position: DChartAxisPosition;\n\tprotected _tick: DChartAxisBaseOptionParserTickContainer;\n\tprotected _label: DeepPartial<EShapeTextLike> | undefined;\n\tprotected _padding: number;\n\tprotected _bar: DChartAxisBaseOptionParserBar;\n\n\tconstructor(theme: DThemeChartAxisBase, options?: DChartAxisBaseOptions) {\n\t\tthis._coordinateIndex = options?.coordinate ?? 0;\n\t\tthis._position = this.toPosition(theme, options);\n\t\tthis._tick = this.toTickContainer(theme, options);\n\t\tthis._label = this.toLabel(theme, options);\n\t\tthis._padding = options?.padding ?? theme.getPadding();\n\t\tthis._bar = this.toBar(theme, options);\n\t}\n\n\tget coordinateIndex(): number {\n\t\treturn this._coordinateIndex;\n\t}\n\n\tget padding(): number {\n\t\treturn this._padding;\n\t}\n\n\tget position(): DChartAxisPosition {\n\t\treturn this._position;\n\t}\n\n\tget bar(): DChartAxisBaseOptionParserBar {\n\t\treturn this._bar;\n\t}\n\n\tget tick(): DChartAxisBaseOptionParserTickContainer {\n\t\treturn this._tick;\n\t}\n\n\tget label(): DeepPartial<EShapeTextLike> | undefined {\n\t\treturn this._label;\n\t}\n\n\tprotected toPosition(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisPosition {\n\t\tconst position = options?.position;\n\t\tif (isString(position)) {\n\t\t\treturn DChartAxisPosition[position];\n\t\t} else if (position != null) {\n\t\t\treturn position;\n\t\t}\n\t\treturn theme.getPosition();\n\t}\n\n\tprotected toBar(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseOptionParserBar {\n\t\treturn {\n\t\t\tstyle: options?.style ?? theme.getStyle(),\n\t\t\tstroke: this.toBarStroke(theme, options?.stroke)\n\t\t};\n\t}\n\n\tprotected toTickContainer(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseOptionParserTickContainer {\n\t\tconst tick = options?.tick;\n\t\treturn {\n\t\t\tenable: tick?.enable ?? theme.getTickEnable(),\n\t\t\tmajor: this.toTickMajor(theme, tick),\n\t\t\tminor: this.toMinorTick(theme, tick)\n\t\t};\n\t}\n\n\tprotected toTickMajor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseOptionParserTickMajor {\n\t\tconst major = options?.major;\n\t\tconst position = major?.position ?? options?.position ?? theme.getMajorTickPosition();\n\t\tconst optionsStyle = options?.style;\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tmajor?.style ?? optionsStyle ?? theme.getMajorTickStyle()\n\t\t);\n\t\tconst optionsStroke = options?.stroke;\n\t\tconst stroke = this.toTickMajorStroke(theme, major?.stroke, optionsStroke);\n\t\tconst count = major?.count ?? theme.getMajorTickCount();\n\t\tconst capacity = major?.capacity ?? theme.getMajorTickCapacity(count);\n\t\treturn {\n\t\t\tcount,\n\t\t\tcapacity,\n\t\t\tstep: major?.step ?? theme.getMajorTickStep(),\n\t\t\tsize: major?.size ?? theme.getMajorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke,\n\t\t\ttext: this.toMajorTickText(theme, major?.text),\n\t\t\tformatter: this.toMajorTickFormatter(theme, major),\n\t\t\tgridline: this.toTickMajorGridline(theme, major?.gridline, optionsStyle, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickMajorGridline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions: DChartAxisBaseTickMajorGridlineOptions | undefined,\n\t\toptionsStyle: EShapePointsStyleOption | undefined,\n\t\toptionsStroke: Partial<EShapeStrokeLike> | undefined\n\t): DChartAxisBaseOptionParserGridline {\n\t\tconst style = EShapePointsStyles.from(\n\t\t\toptions?.style ?? optionsStyle ?? theme.getMajorTickGridlineStyle()\n\t\t);\n\t\treturn {\n\t\t\tenable: options?.enable ?? theme.getMajorTickGridlineEnable(),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMajorGridlineStroke(theme, options?.stroke, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickPosition(\n\t\ttickPosition: DChartAxisTickPosition | keyof typeof DChartAxisTickPosition\n\t): EShapeBarPosition {\n\t\tconst position = this._position;\n\t\tif (tickPosition === DChartAxisTickPosition.OUTSIDE || tickPosition === \"OUTSIDE\") {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t} else {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected toMinorTick(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseOptionParserTickMinor {\n\t\tconst minor = options?.minor;\n\t\tconst position = minor?.position ?? options?.position ?? theme.getMinorTickPosition();\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tminor?.style ?? options?.style ?? theme.getMinorTickStyle()\n\t\t);\n\t\treturn {\n\t\t\tcount: minor?.count ?? theme.getMinorTickCount(),\n\t\t\tstep: minor?.step ?? theme.getMinorTickStep(),\n\t\t\tsize: minor?.size ?? theme.getMinorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMinorStroke(theme, minor?.stroke, options?.stroke)\n\t\t};\n\t}\n\n\tprotected toBarStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptions,\n\t\t\tundefined,\n\t\t\ttheme.getStrokeEnable(),\n\t\t\ttheme.getStrokeColor(),\n\t\t\ttheme.getStrokeAlpha(),\n\t\t\ttheme.getStrokeWidth(),\n\t\t\ttheme.getStrokeAlign(),\n\t\t\ttheme.getStrokeSide(),\n\t\t\ttheme.getStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickStrokeEnable(),\n\t\t\ttheme.getMajorTickStrokeColor(),\n\t\t\ttheme.getMajorTickStrokeAlpha(),\n\t\t\ttheme.getMajorTickStrokeWidth(),\n\t\t\ttheme.getMajorTickStrokeAlign(),\n\t\t\ttheme.getMajorTickStrokeSide(),\n\t\t\ttheme.getMajorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorGridlineStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickGridlineStrokeEnable(),\n\t\t\ttheme.getMajorTickGridlineStrokeColor(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlpha(),\n\t\t\ttheme.getMajorTickGridlineStrokeWidth(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlign(),\n\t\t\ttheme.getMajorTickGridlineStrokeSide(),\n\t\t\ttheme.getMajorTickGridlineStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMinorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMinorTickStrokeEnable(),\n\t\t\ttheme.getMinorTickStrokeColor(),\n\t\t\ttheme.getMinorTickStrokeAlpha(),\n\t\t\ttheme.getMinorTickStrokeWidth(),\n\t\t\ttheme.getMinorTickStrokeAlign(),\n\t\t\ttheme.getMinorTickStrokeSide(),\n\t\t\ttheme.getMinorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toStroke(\n\t\toptionsA: Partial<EShapeStrokeLike> | undefined,\n\t\toptionsB: Partial<EShapeStrokeLike> | undefined,\n\t\tenable: boolean | undefined,\n\t\tcolor: number | undefined,\n\t\talpha: number | undefined,\n\t\twidth: number | undefined,\n\t\talign: number | undefined,\n\t\tside: EShapeStrokeSide | undefined,\n\t\tstyle: EShapeStrokeStyle | undefined\n\t): Partial<EShapeStrokeLike> {\n\t\tif (optionsA) {\n\t\t\tif (optionsB) {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? optionsB.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? optionsB.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? optionsB.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? optionsB.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? optionsB.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? optionsB.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? optionsB.style ?? style\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? style\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (optionsB) {\n\t\t\treturn {\n\t\t\t\tenable: optionsB.enable ?? enable,\n\t\t\t\tcolor: optionsB.color ?? color,\n\t\t\t\talpha: optionsB.alpha ?? alpha,\n\t\t\t\twidth: optionsB.width ?? width,\n\t\t\t\talign: optionsB.align ?? align,\n\t\t\t\tside: optionsB.side ?? side,\n\t\t\t\tstyle: optionsB.style ?? style\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tenable,\n\t\t\t\tcolor,\n\t\t\t\talpha,\n\t\t\t\twidth,\n\t\t\t\talign,\n\t\t\t\tside,\n\t\t\t\tstyle\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickFormatter(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMajorOptions\n\t): NumberFormatter {\n\t\tconst text = options?.text;\n\t\tif (text) {\n\t\t\tconst format = text.format;\n\t\t\tif (format != null) {\n\t\t\t\treturn NumberFormatters.create(format);\n\t\t\t} else {\n\t\t\t\tconst formatter = text.formatter;\n\t\t\t\tif (formatter) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tformat: formatter\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn NumberFormatters.create(theme.getMajorTickTextFormat());\n\t}\n\n\tprotected toMajorTickText(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMajorTextOptions\n\t): DChartAxisBaseTickMajorTextOptions | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toMajorTickTextColor(theme, options.color),\n\t\t\talpha: options.alpha,\n\t\t\tfamily: options.family,\n\t\t\tsize: options.size,\n\t\t\tweight: options.weight,\n\t\t\talign: this.toMajorTickTextAlign(theme, options.align),\n\t\t\toffset: this.toMajorTickTextOffset(theme, options.offset),\n\t\t\tstyle: options.style,\n\t\t\toutline: this.toMajorTickTextOutline(theme, options.outline),\n\t\t\tspacing: this.toMajorTickTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMajorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toMajorTickTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toMajorTickTextOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toMajorTickTextOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toTickMajorTextDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getMajorTickTextDirection();\n\t}\n\n\tprotected toMajorTickTextColor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: number\n\t): number | undefined {\n\t\treturn options ?? theme.getMajorTickTextColor();\n\t}\n\n\tprotected toLabel(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DeepPartial<EShapeTextLike> | undefined {\n\t\tconst label = options?.label;\n\t\tif (label) {\n\t\t\treturn {\n\t\t\t\tvalue: label.value,\n\t\t\t\tcolor: this.toLabelColor(theme, label.color),\n\t\t\t\talpha: label.alpha,\n\t\t\t\tfamily: label.family,\n\t\t\t\tsize: label.size,\n\t\t\t\tweight: label.weight,\n\t\t\t\talign: this.toLabelAlign(theme, label.align),\n\t\t\t\toffset: this.toLabelOffset(theme, label.offset),\n\t\t\t\tstyle: label.style,\n\t\t\t\toutline: this.toLabelOutline(theme, label.outline),\n\t\t\t\tspacing: this.toLabelSpacing(theme, label.spacing),\n\t\t\t\tdirection: this.toLabelDirection(theme, label.direction),\n\t\t\t\tpadding: this.toLabelPadding(theme, label.padding),\n\t\t\t\tclipping: label.clipping\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getLabelAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toLabelOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getLabelPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toLabelDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getLabelDirection();\n\t}\n\n\tprotected toLabelColor(theme: DThemeChartAxisBase, options?: number): number | undefined {\n\t\treturn options ?? theme.getLabelColor();\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-chart-axis-base-options-parser.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAS5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AA4C5D;IAQC,oCAAY,KAA0B,EAAE,OAA+B;;QACtE,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QACvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED,sBAAI,uDAAe;aAAnB;YACC,OAAO,IAAI,CAAC,gBAAgB,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAI,+CAAO;aAAX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,IAAI,OAAO,EAAE;YACZ,OAAO;gBACN,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC1B,CAAC;SACF;IACF,CAAC;IAES,mDAAc,GAAxB,UACC,KAA0B,EAC1B,OAAuC;QAEvC,IAAI,OAAO,EAAE;YACZ,OAAO;gBACN,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC1B,CAAC;SACF;IACF,CAAC;IAES,mDAAc,GAAxB,UACC,KAA0B,EAC1B,OAAuC;;QAEvC,OAAO;YACN,UAAU,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,KAAK,CAAC,yBAAyB,EAAE;YACpE,QAAQ,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,KAAK,CAAC,uBAAuB,EAAE;SAC9D,CAAC;IACH,CAAC;IAES,qDAAgB,GAA1B,UACC,KAA0B,EAC1B,OAA6B;QAE7B,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC;IAES,iDAAY,GAAtB,UAAuB,KAA0B,EAAE,OAAgB;QAClE,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IACF,iCAAC;AAAD,CAAC,AAjoBD,IAioBC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n\tDChartAxisBaseOptions,\n\tDChartAxisBaseTickContainerOptions,\n\tDChartAxisBaseTickMajorGridlineOptions,\n\tDChartAxisBaseTickMajorOptions,\n\tDChartAxisBaseTickMinorOptions,\n\tDChartAxisBaseTickTextOptions,\n\tDThemeChartAxisBase\n} from \"./d-chart-axis-base-options\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption, EShapePointsStyles } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { isString } from \"./util/is-string\";\nimport { NumberFormatter } from \"./util/number-formatter\";\nimport { NumberFormatters } from \"./util/number-formatters\";\n\nexport interface DChartAxisBaseOptionParserGridline {\n\tenable: boolean;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseOptionParserTickMajor {\n\tcapacity: number;\n\tcount: number;\n\tstep: number | DChartCoordinateTickMajorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickTextOptions;\n\tformatter?: NumberFormatter;\n\n\tgridline: DChartAxisBaseOptionParserGridline;\n}\n\nexport interface DChartAxisBaseOptionParserTickMinor {\n\tcount: number;\n\tstep: number | DChartCoordinateTickMinorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickTextOptions;\n\tformatter?: NumberFormatter;\n}\n\nexport interface DChartAxisBaseOptionParserTickContainer {\n\tenable: boolean;\n\tmajor: DChartAxisBaseOptionParserTickMajor;\n\tminor: DChartAxisBaseOptionParserTickMinor;\n}\n\nexport interface DChartAxisBaseOptionParserBar {\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport class DChartAxisBaseOptionParser {\n\tprotected _coordinateIndex: number;\n\tprotected _position: DChartAxisPosition;\n\tprotected _tick: DChartAxisBaseOptionParserTickContainer;\n\tprotected _label: DeepPartial<EShapeTextLike> | undefined;\n\tprotected _padding: number;\n\tprotected _bar: DChartAxisBaseOptionParserBar;\n\n\tconstructor(theme: DThemeChartAxisBase, options?: DChartAxisBaseOptions) {\n\t\tthis._coordinateIndex = options?.coordinate ?? 0;\n\t\tthis._position = this.toPosition(theme, options);\n\t\tthis._tick = this.toTickContainer(theme, options);\n\t\tthis._label = this.toLabel(theme, options);\n\t\tthis._padding = options?.padding ?? theme.getPadding();\n\t\tthis._bar = this.toBar(theme, options);\n\t}\n\n\tget coordinateIndex(): number {\n\t\treturn this._coordinateIndex;\n\t}\n\n\tget padding(): number {\n\t\treturn this._padding;\n\t}\n\n\tget position(): DChartAxisPosition {\n\t\treturn this._position;\n\t}\n\n\tget bar(): DChartAxisBaseOptionParserBar {\n\t\treturn this._bar;\n\t}\n\n\tget tick(): DChartAxisBaseOptionParserTickContainer {\n\t\treturn this._tick;\n\t}\n\n\tget label(): DeepPartial<EShapeTextLike> | undefined {\n\t\treturn this._label;\n\t}\n\n\tprotected toPosition(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisPosition {\n\t\tconst position = options?.position;\n\t\tif (isString(position)) {\n\t\t\treturn DChartAxisPosition[position];\n\t\t} else if (position != null) {\n\t\t\treturn position;\n\t\t}\n\t\treturn theme.getPosition();\n\t}\n\n\tprotected toBar(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseOptionParserBar {\n\t\treturn {\n\t\t\tstyle: options?.style ?? theme.getStyle(),\n\t\t\tstroke: this.toBarStroke(theme, options?.stroke)\n\t\t};\n\t}\n\n\tprotected toTickContainer(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseOptionParserTickContainer {\n\t\tconst tick = options?.tick;\n\t\treturn {\n\t\t\tenable: tick?.enable ?? theme.getTickEnable(),\n\t\t\tmajor: this.toTickMajor(theme, tick),\n\t\t\tminor: this.toTickMinor(theme, tick)\n\t\t};\n\t}\n\n\tprotected toTickMajor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseOptionParserTickMajor {\n\t\tconst major = options?.major;\n\t\tconst position = major?.position ?? options?.position ?? theme.getMajorTickPosition();\n\t\tconst optionsStyle = options?.style;\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tmajor?.style ?? optionsStyle ?? theme.getMajorTickStyle()\n\t\t);\n\t\tconst optionsStroke = options?.stroke;\n\t\tconst stroke = this.toTickMajorStroke(theme, major?.stroke, optionsStroke);\n\t\tconst count = major?.count ?? theme.getMajorTickCount();\n\t\tconst capacity = major?.capacity ?? theme.getMajorTickCapacity(count);\n\t\treturn {\n\t\t\tcount,\n\t\t\tcapacity,\n\t\t\tstep: major?.step ?? theme.getMajorTickStep(),\n\t\t\tsize: major?.size ?? theme.getMajorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke,\n\t\t\ttext: this.toTickMajorText(theme, major?.text),\n\t\t\tformatter: this.toTickMajorFormatter(theme, major),\n\t\t\tgridline: this.toTickMajorGridline(theme, major?.gridline, optionsStyle, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickMajorGridline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions: DChartAxisBaseTickMajorGridlineOptions | undefined,\n\t\toptionsStyle: EShapePointsStyleOption | undefined,\n\t\toptionsStroke: Partial<EShapeStrokeLike> | undefined\n\t): DChartAxisBaseOptionParserGridline {\n\t\tconst style = EShapePointsStyles.from(\n\t\t\toptions?.style ?? optionsStyle ?? theme.getMajorTickGridlineStyle()\n\t\t);\n\t\treturn {\n\t\t\tenable: options?.enable ?? theme.getMajorTickGridlineEnable(),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMajorGridlineStroke(theme, options?.stroke, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickPosition(\n\t\ttickPosition: DChartAxisTickPosition | keyof typeof DChartAxisTickPosition\n\t): EShapeBarPosition {\n\t\tconst position = this._position;\n\t\tif (tickPosition === DChartAxisTickPosition.OUTSIDE || tickPosition === \"OUTSIDE\") {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t} else {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected toTickMinor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseOptionParserTickMinor {\n\t\tconst minor = options?.minor;\n\t\tconst position = minor?.position ?? options?.position ?? theme.getMinorTickPosition();\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tminor?.style ?? options?.style ?? theme.getMinorTickStyle()\n\t\t);\n\t\treturn {\n\t\t\tcount: minor?.count ?? theme.getMinorTickCount(),\n\t\t\tstep: minor?.step ?? theme.getMinorTickStep(),\n\t\t\tsize: minor?.size ?? theme.getMinorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMinorStroke(theme, minor?.stroke, options?.stroke),\n\t\t\ttext: this.toTickMinorText(theme, minor?.text),\n\t\t\tformatter: this.toTickMinorFormatter(theme, minor)\n\t\t};\n\t}\n\n\tprotected toBarStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptions,\n\t\t\tundefined,\n\t\t\ttheme.getStrokeEnable(),\n\t\t\ttheme.getStrokeColor(),\n\t\t\ttheme.getStrokeAlpha(),\n\t\t\ttheme.getStrokeWidth(),\n\t\t\ttheme.getStrokeAlign(),\n\t\t\ttheme.getStrokeSide(),\n\t\t\ttheme.getStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickStrokeEnable(),\n\t\t\ttheme.getMajorTickStrokeColor(),\n\t\t\ttheme.getMajorTickStrokeAlpha(),\n\t\t\ttheme.getMajorTickStrokeWidth(),\n\t\t\ttheme.getMajorTickStrokeAlign(),\n\t\t\ttheme.getMajorTickStrokeSide(),\n\t\t\ttheme.getMajorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorGridlineStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickGridlineStrokeEnable(),\n\t\t\ttheme.getMajorTickGridlineStrokeColor(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlpha(),\n\t\t\ttheme.getMajorTickGridlineStrokeWidth(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlign(),\n\t\t\ttheme.getMajorTickGridlineStrokeSide(),\n\t\t\ttheme.getMajorTickGridlineStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMinorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMinorTickStrokeEnable(),\n\t\t\ttheme.getMinorTickStrokeColor(),\n\t\t\ttheme.getMinorTickStrokeAlpha(),\n\t\t\ttheme.getMinorTickStrokeWidth(),\n\t\t\ttheme.getMinorTickStrokeAlign(),\n\t\t\ttheme.getMinorTickStrokeSide(),\n\t\t\ttheme.getMinorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toStroke(\n\t\toptionsA: Partial<EShapeStrokeLike> | undefined,\n\t\toptionsB: Partial<EShapeStrokeLike> | undefined,\n\t\tenable: boolean | undefined,\n\t\tcolor: number | undefined,\n\t\talpha: number | undefined,\n\t\twidth: number | undefined,\n\t\talign: number | undefined,\n\t\tside: EShapeStrokeSide | undefined,\n\t\tstyle: EShapeStrokeStyle | undefined\n\t): Partial<EShapeStrokeLike> {\n\t\tif (optionsA) {\n\t\t\tif (optionsB) {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? optionsB.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? optionsB.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? optionsB.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? optionsB.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? optionsB.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? optionsB.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? optionsB.style ?? style\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? style\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (optionsB) {\n\t\t\treturn {\n\t\t\t\tenable: optionsB.enable ?? enable,\n\t\t\t\tcolor: optionsB.color ?? color,\n\t\t\t\talpha: optionsB.alpha ?? alpha,\n\t\t\t\twidth: optionsB.width ?? width,\n\t\t\t\talign: optionsB.align ?? align,\n\t\t\t\tside: optionsB.side ?? side,\n\t\t\t\tstyle: optionsB.style ?? style\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tenable,\n\t\t\t\tcolor,\n\t\t\t\talpha,\n\t\t\t\twidth,\n\t\t\t\talign,\n\t\t\t\tside,\n\t\t\t\tstyle\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toTickMajorFormatter(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMajorOptions\n\t): NumberFormatter | undefined {\n\t\tconst text = options?.text;\n\t\tif (text) {\n\t\t\tconst format = text.format;\n\t\t\tif (format === null) {\n\t\t\t\treturn undefined;\n\t\t\t} else if (format != null) {\n\t\t\t\treturn NumberFormatters.create(format);\n\t\t\t} else {\n\t\t\t\tconst formatter = text.formatter;\n\t\t\t\tif (formatter) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tformat: formatter\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tconst format = theme.getMajorTickTextFormat();\n\t\tif (format != null) {\n\t\t\treturn NumberFormatters.create(format);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprotected toTickMajorText(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickTextOptions\n\t): DChartAxisBaseTickTextOptions | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toTickMajorTextColor(theme, options.color),\n\t\t\talpha: options.alpha,\n\t\t\tfamily: options.family,\n\t\t\tsize: options.size,\n\t\t\tweight: options.weight,\n\t\t\talign: this.toTickMajorTextAlign(theme, options.align),\n\t\t\toffset: this.toTickMajorTextOffset(theme, options.offset),\n\t\t\tstyle: options.style,\n\t\t\toutline: this.toTickMajorTextOutline(theme, options.outline),\n\t\t\tspacing: this.toTickMajorTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMajorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toTickMajorTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toTickMajorTextOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toTickMajorTextAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toTickMajorTextOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toTickMajorTextSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toTickMajorTextPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toTickMajorTextDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getMajorTickTextDirection();\n\t}\n\n\tprotected toTickMajorTextColor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: number\n\t): number | undefined {\n\t\treturn options ?? theme.getMajorTickTextColor();\n\t}\n\n\tprotected toTickMinorFormatter(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMinorOptions\n\t): NumberFormatter | undefined {\n\t\tconst text = options?.text;\n\t\tif (text) {\n\t\t\tconst format = text.format;\n\t\t\tif (format === null) {\n\t\t\t\treturn undefined;\n\t\t\t} else if (format != null) {\n\t\t\t\treturn NumberFormatters.create(format);\n\t\t\t} else {\n\t\t\t\tconst formatter = text.formatter;\n\t\t\t\tif (formatter) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tformat: formatter\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tconst format = theme.getMinorTickTextFormat();\n\t\tif (format != null) {\n\t\t\treturn NumberFormatters.create(format);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprotected toTickMinorText(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickTextOptions\n\t): DChartAxisBaseTickTextOptions | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toTickMinorTextColor(theme, options.color),\n\t\t\talpha: options.alpha,\n\t\t\tfamily: options.family,\n\t\t\tsize: options.size,\n\t\t\tweight: options.weight,\n\t\t\talign: this.toTickMinorTextAlign(theme, options.align),\n\t\t\toffset: this.toTickMinorTextOffset(theme, options.offset),\n\t\t\tstyle: options.style,\n\t\t\toutline: this.toTickMinorTextOutline(theme, options.outline),\n\t\t\tspacing: this.toTickMinorTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMinorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toTickMinorTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toTickMinorTextOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toTickMinorTextAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMinorTickTextAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getMinorTickTextAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toTickMinorTextOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toTickMinorTextSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toTickMinorTextPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMinorTickTextPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getMinorTickTextPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toTickMinorTextDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getMinorTickTextDirection();\n\t}\n\n\tprotected toTickMinorTextColor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: number\n\t): number | undefined {\n\t\treturn options ?? theme.getMinorTickTextColor();\n\t}\n\n\tprotected toLabel(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DeepPartial<EShapeTextLike> | undefined {\n\t\tconst label = options?.label;\n\t\tif (label) {\n\t\t\treturn {\n\t\t\t\tvalue: label.value,\n\t\t\t\tcolor: this.toLabelColor(theme, label.color),\n\t\t\t\talpha: label.alpha,\n\t\t\t\tfamily: label.family,\n\t\t\t\tsize: label.size,\n\t\t\t\tweight: label.weight,\n\t\t\t\talign: this.toLabelAlign(theme, label.align),\n\t\t\t\toffset: this.toLabelOffset(theme, label.offset),\n\t\t\t\tstyle: label.style,\n\t\t\t\toutline: this.toLabelOutline(theme, label.outline),\n\t\t\t\tspacing: this.toLabelSpacing(theme, label.spacing),\n\t\t\t\tdirection: this.toLabelDirection(theme, label.direction),\n\t\t\t\tpadding: this.toLabelPadding(theme, label.padding),\n\t\t\t\tclipping: label.clipping\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getLabelAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toLabelOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getLabelPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toLabelDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getLabelDirection();\n\t}\n\n\tprotected toLabelColor(theme: DThemeChartAxisBase, options?: number): number | undefined {\n\t\treturn options ?? theme.getLabelColor();\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-chart-axis-base-options.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DChartAxisOptions } from \"./d-chart-axis\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike, EShapeTextStyle, EShapeTextWeight } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextAlignHorizontal } from \"./shape/e-shape-text-align-horizontal\";\nimport { EShapeTextAlignVertical } from \"./shape/e-shape-text-align-vertical\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { NumberFormatterFunction } from \"./util/number-formatter-function\";\n\nexport interface DChartAxisBaseTickMajorTextOptions {\n\t/** A format. Please refer to {@link NumberFormatter} for format details. */\n\tformat?: string;\n\n\t/** A formatter function. */\n\tformatter?: NumberFormatterFunction;\n\n\tcolor?: number;\n\talpha?: number;\n\tfamily?: string;\n\tsize?: number;\n\tweight?: EShapeTextWeight;\n\talign?: Partial<EShapeTextAlignLike>;\n\toffset?: Partial<EShapeTextOffsetLike>;\n\tstyle?: EShapeTextStyle;\n\toutline?: Partial<EShapeTextOutlineLike>;\n\tspacing?: Partial<EShapeTextOffsetLike>;\n\tdirection?: EShapeTextDirection;\n\tpadding?: Partial<EShapeTextOffsetLike>;\n\tclipping?: boolean;\n}\n\nexport interface DChartAxisBaseTickMajorGridlineOptions {\n\tenable?: boolean;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport type DChartAxisTickPositionOption =\n\t| DChartAxisTickPosition\n\t| keyof typeof DChartAxisTickPosition;\n\nexport interface DChartAxisBaseTickMajorOptions {\n\tcount?: number;\n\tcapacity?: number;\n\tstep?: number | DChartCoordinateTickMajorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickMajorTextOptions;\n\tgridline?: DChartAxisBaseTickMajorGridlineOptions;\n}\n\nexport interface DChartAxisBaseTickMinorOptions {\n\tcount?: number;\n\tstep?: number | DChartCoordinateTickMinorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseTickContainerOptions {\n\tenable?: boolean;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tmajor?: DChartAxisBaseTickMajorOptions;\n\tminor?: DChartAxisBaseTickMinorOptions;\n}\n\nexport interface DChartAxisBaseOptions extends DChartAxisOptions {\n\ttick?: DChartAxisBaseTickContainerOptions;\n\tlabel?: DeepPartial<EShapeTextLike>;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tcoordinate?: number;\n\tpadding?: number;\n\ttheme?: DThemeChartAxisBase;\n}\n\nexport interface DThemeChartAxisBase {\n\tgetPosition(): DChartAxisPosition;\n\tgetPadding(): number;\n\n\tgetLabelAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetLabelAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetLabelPaddingHorizontal(): number;\n\tgetLabelPaddingVertical(): number;\n\tgetLabelDirection(): EShapeTextDirection;\n\tgetLabelColor(): number | undefined;\n\n\tgetStyle(): EShapePointsStyle | undefined;\n\n\tgetStrokeEnable(): boolean | undefined;\n\tgetStrokeColor(): number | undefined;\n\tgetStrokeAlpha(): number | undefined;\n\tgetStrokeWidth(): number | undefined;\n\tgetStrokeAlign(): number | undefined;\n\tgetStrokeSide(): EShapeStrokeSide | undefined;\n\tgetStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetTickEnable(): boolean;\n\n\tgetMajorTickCount(): number;\n\tgetMajorTickCapacity(count: number): number;\n\tgetMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;\n\tgetMajorTickSize(): number;\n\tgetMajorTickPosition(): DChartAxisTickPosition;\n\tgetMajorTickStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickTextAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetMajorTickTextAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetMajorTickTextDirection(): EShapeTextDirection;\n\tgetMajorTickTextFormat(): string;\n\tgetMajorTickTextColor(): number | undefined;\n\tgetMajorTickTextPaddingHorizontal(): number;\n\tgetMajorTickTextPaddingVertical(): number;\n\tgetMajorTickStrokeEnable(): boolean | undefined;\n\tgetMajorTickStrokeColor(): number | undefined;\n\tgetMajorTickStrokeAlpha(): number | undefined;\n\tgetMajorTickStrokeWidth(): number | undefined;\n\tgetMajorTickStrokeAlign(): number | undefined;\n\tgetMajorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMajorTickGridlineEnable(): boolean;\n\tgetMajorTickGridlineStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickGridlineStrokeEnable(): boolean | undefined;\n\tgetMajorTickGridlineStrokeColor(): number | undefined;\n\tgetMajorTickGridlineStrokeAlpha(): number | undefined;\n\tgetMajorTickGridlineStrokeWidth(): number | undefined;\n\tgetMajorTickGridlineStrokeAlign(): number | undefined;\n\tgetMajorTickGridlineStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickGridlineStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMinorTickCount(): number;\n\tgetMinorTickStep(): number | DChartCoordinateTickMinorStepFunction | undefined;\n\tgetMinorTickSize(): number;\n\tgetMinorTickPosition(): DChartAxisTickPosition;\n\tgetMinorTickStyle(): EShapePointsStyle | undefined;\n\tgetMinorTickStrokeEnable(): boolean | undefined;\n\tgetMinorTickStrokeColor(): number | undefined;\n\tgetMinorTickStrokeAlpha(): number | undefined;\n\tgetMinorTickStrokeWidth(): number | undefined;\n\tgetMinorTickStrokeAlign(): number | undefined;\n\tgetMinorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMinorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n}\n"]}
1
+ {"version":3,"file":"d-chart-axis-base-options.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DChartAxisOptions } from \"./d-chart-axis\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike, EShapeTextStyle, EShapeTextWeight } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextAlignHorizontal } from \"./shape/e-shape-text-align-horizontal\";\nimport { EShapeTextAlignVertical } from \"./shape/e-shape-text-align-vertical\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { NumberFormatterFunction } from \"./util/number-formatter-function\";\n\nexport interface DChartAxisBaseTickTextOptions {\n\t/** A format. Please refer to {@link NumberFormatter} for format details. */\n\tformat?: string | null;\n\n\t/** A formatter function. */\n\tformatter?: NumberFormatterFunction;\n\n\tcolor?: number;\n\talpha?: number;\n\tfamily?: string;\n\tsize?: number;\n\tweight?: EShapeTextWeight;\n\talign?: Partial<EShapeTextAlignLike>;\n\toffset?: Partial<EShapeTextOffsetLike>;\n\tstyle?: EShapeTextStyle;\n\toutline?: Partial<EShapeTextOutlineLike>;\n\tspacing?: Partial<EShapeTextOffsetLike>;\n\tdirection?: EShapeTextDirection;\n\tpadding?: Partial<EShapeTextOffsetLike>;\n\tclipping?: boolean;\n}\n\nexport interface DChartAxisBaseTickMajorGridlineOptions {\n\tenable?: boolean;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport type DChartAxisTickPositionOption =\n\t| DChartAxisTickPosition\n\t| keyof typeof DChartAxisTickPosition;\n\nexport interface DChartAxisBaseTickMajorOptions {\n\tcount?: number;\n\tcapacity?: number;\n\tstep?: number | DChartCoordinateTickMajorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickTextOptions;\n\tgridline?: DChartAxisBaseTickMajorGridlineOptions;\n}\n\nexport interface DChartAxisBaseTickMinorOptions {\n\tcount?: number;\n\tstep?: number | DChartCoordinateTickMinorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickTextOptions;\n}\n\nexport interface DChartAxisBaseTickContainerOptions {\n\tenable?: boolean;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tmajor?: DChartAxisBaseTickMajorOptions;\n\tminor?: DChartAxisBaseTickMinorOptions;\n}\n\nexport interface DChartAxisBaseOptions extends DChartAxisOptions {\n\ttick?: DChartAxisBaseTickContainerOptions;\n\tlabel?: DeepPartial<EShapeTextLike>;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tcoordinate?: number;\n\tpadding?: number;\n\ttheme?: DThemeChartAxisBase;\n}\n\nexport interface DThemeChartAxisBase {\n\tgetPosition(): DChartAxisPosition;\n\tgetPadding(): number;\n\n\tgetLabelAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetLabelAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetLabelPaddingHorizontal(): number;\n\tgetLabelPaddingVertical(): number;\n\tgetLabelDirection(): EShapeTextDirection;\n\tgetLabelColor(): number | undefined;\n\n\tgetStyle(): EShapePointsStyle | undefined;\n\n\tgetStrokeEnable(): boolean | undefined;\n\tgetStrokeColor(): number | undefined;\n\tgetStrokeAlpha(): number | undefined;\n\tgetStrokeWidth(): number | undefined;\n\tgetStrokeAlign(): number | undefined;\n\tgetStrokeSide(): EShapeStrokeSide | undefined;\n\tgetStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetTickEnable(): boolean;\n\n\tgetMajorTickCount(): number;\n\tgetMajorTickCapacity(count: number): number;\n\tgetMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;\n\tgetMajorTickSize(): number;\n\tgetMajorTickPosition(): DChartAxisTickPosition;\n\tgetMajorTickStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickTextAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetMajorTickTextAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetMajorTickTextDirection(): EShapeTextDirection;\n\tgetMajorTickTextFormat(): string | undefined;\n\tgetMajorTickTextColor(): number | undefined;\n\tgetMajorTickTextPaddingHorizontal(): number;\n\tgetMajorTickTextPaddingVertical(): number;\n\tgetMajorTickStrokeEnable(): boolean | undefined;\n\tgetMajorTickStrokeColor(): number | undefined;\n\tgetMajorTickStrokeAlpha(): number | undefined;\n\tgetMajorTickStrokeWidth(): number | undefined;\n\tgetMajorTickStrokeAlign(): number | undefined;\n\tgetMajorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMajorTickGridlineEnable(): boolean;\n\tgetMajorTickGridlineStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickGridlineStrokeEnable(): boolean | undefined;\n\tgetMajorTickGridlineStrokeColor(): number | undefined;\n\tgetMajorTickGridlineStrokeAlpha(): number | undefined;\n\tgetMajorTickGridlineStrokeWidth(): number | undefined;\n\tgetMajorTickGridlineStrokeAlign(): number | undefined;\n\tgetMajorTickGridlineStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickGridlineStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMinorTickCount(): number;\n\tgetMinorTickStep(): number | DChartCoordinateTickMinorStepFunction | undefined;\n\tgetMinorTickSize(): number;\n\tgetMinorTickPosition(): DChartAxisTickPosition;\n\tgetMinorTickStyle(): EShapePointsStyle | undefined;\n\tgetMinorTickTextAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetMinorTickTextAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetMinorTickTextDirection(): EShapeTextDirection;\n\tgetMinorTickTextFormat(): string | undefined;\n\tgetMinorTickTextColor(): number | undefined;\n\tgetMinorTickTextPaddingHorizontal(): number;\n\tgetMinorTickTextPaddingVertical(): number;\n\tgetMinorTickStrokeEnable(): boolean | undefined;\n\tgetMinorTickStrokeColor(): number | undefined;\n\tgetMinorTickStrokeAlpha(): number | undefined;\n\tgetMinorTickStrokeWidth(): number | undefined;\n\tgetMinorTickStrokeAlign(): number | undefined;\n\tgetMinorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMinorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n}\n"]}
@@ -5,8 +5,8 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
5
5
  function DChartAxisBaseTickContainer(parser) {
6
6
  this._parser = parser;
7
7
  this._index = 0;
8
- this._major = new DChartAxisBaseTickMajor(parser);
9
- this._minor = new DChartAxisBaseTickMinor(parser);
8
+ this._major = this.newMajor(parser);
9
+ this._minor = this.newMinor(parser);
10
10
  this._majorTicks = [];
11
11
  this._minorTicks = [];
12
12
  }
@@ -17,6 +17,9 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
17
17
  enumerable: false,
18
18
  configurable: true
19
19
  });
20
+ DChartAxisBaseTickContainer.prototype.newMajor = function (parser) {
21
+ return new DChartAxisBaseTickMajor(parser);
22
+ };
20
23
  Object.defineProperty(DChartAxisBaseTickContainer.prototype, "minor", {
21
24
  get: function () {
22
25
  return this._minor;
@@ -24,6 +27,9 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
24
27
  enumerable: false,
25
28
  configurable: true
26
29
  });
30
+ DChartAxisBaseTickContainer.prototype.newMinor = function (parser) {
31
+ return new DChartAxisBaseTickMinor(parser);
32
+ };
27
33
  DChartAxisBaseTickContainer.prototype.bind = function (container, index) {
28
34
  this._container = container;
29
35
  this._index = index;
@@ -100,9 +106,10 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
100
106
  var minorCountPerMajor = minorTick.count;
101
107
  var minorCount = (majorCapacity + 1) * minorCountPerMajor;
102
108
  var minorStep = minorTick.step;
109
+ var minorFormatter = minorTick.formatter;
103
110
  var majorTicks = this._majorTicks;
104
111
  var minorTicks = this._minorTicks;
105
- coordinate.ticks(domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
112
+ this.newTicks(coordinate, domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
106
113
  var a = transform.a;
107
114
  var tx = transform.tx;
108
115
  for (var i = 0; i < majorCapacity; ++i) {
@@ -113,24 +120,15 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
113
120
  var majorTickProjectedPosition = majorTicks[imajorTick + 1];
114
121
  var majotTickPositionX = a * majorTickProjectedPosition + tx;
115
122
  var majorTickStep = majorTicks[imajorTick + 2];
116
- majorShape.disallowUploadedUpdate();
117
- majorShape.visible = true;
118
- majorShape.transform.position.set(majotTickPositionX, shapePositionY);
119
- majorShape.text.value = majorFormatter.format(majorTickPosition, majorTickStep);
120
- majorShape.allowUploadedUpdate();
123
+ this.showMajor(majorShape, majotTickPositionX, shapePositionY, majorFormatter === null || majorFormatter === void 0 ? void 0 : majorFormatter.format(majorTickPosition, majorTickStep));
121
124
  if (i < gridlineShapes.length) {
122
- var gridlineShape = gridlineShapes[i];
123
- gridlineShape.disallowUploadedUpdate();
124
- gridlineShape.visible = true;
125
- gridlineShape.transform.position.set(majotTickPositionX, plotAreaHeight * 0.5);
126
- gridlineShape.size.set(0, plotAreaHeight);
127
- gridlineShape.allowUploadedUpdate();
125
+ this.showMajorGridline(gridlineShapes[i], majorTickPosition, majotTickPositionX, plotAreaHeight * 0.5, 0, plotAreaHeight);
128
126
  }
129
127
  }
130
128
  else {
131
- majorShape.visible = false;
129
+ this.hideMajor(majorShape);
132
130
  if (i < gridlineShapes.length) {
133
- gridlineShapes[i].visible = false;
131
+ this.hideMajorGridline(gridlineShapes[i]);
134
132
  }
135
133
  }
136
134
  }
@@ -138,15 +136,14 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
138
136
  var minorShape = minorShapes[i];
139
137
  var iminorTick = i * 3;
140
138
  var minorTickPosition = minorTicks[iminorTick + 0];
141
- var minorTickProjectedPosition = minorTicks[iminorTick + 1];
142
139
  if (!isNaN(minorTickPosition)) {
143
- minorShape.disallowUploadedUpdate();
144
- minorShape.visible = true;
145
- minorShape.transform.position.set(a * minorTickProjectedPosition + tx, shapePositionY);
146
- minorShape.allowUploadedUpdate();
140
+ var minorTickProjectedPosition = minorTicks[iminorTick + 1];
141
+ var minorTickPositionX = a * minorTickProjectedPosition + tx;
142
+ var minorTickStep = minorTicks[iminorTick + 2];
143
+ this.showMinor(minorShape, minorTickPositionX, shapePositionY, minorFormatter === null || minorFormatter === void 0 ? void 0 : minorFormatter.format(minorTickPosition, minorTickStep));
147
144
  }
148
145
  else {
149
- minorShape.visible = false;
146
+ this.hideMinor(minorShape);
150
147
  }
151
148
  }
152
149
  return true;
@@ -162,9 +159,10 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
162
159
  var minorCountPerMajor = minorTick.count;
163
160
  var minorCount = (majorCapacity + 1) * minorCountPerMajor;
164
161
  var minorStep = minorTick.step;
162
+ var minorFormatter = minorTick.formatter;
165
163
  var majorTicks = this._majorTicks;
166
164
  var minorTicks = this._minorTicks;
167
- coordinate.ticks(domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
165
+ this.newTicks(coordinate, domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
168
166
  var d = transform.d;
169
167
  var ty = transform.ty;
170
168
  for (var i = 0; i < majorCapacity; ++i) {
@@ -175,24 +173,15 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
175
173
  var majorTickProjectedPosition = majorTicks[imajorTick + 1];
176
174
  var majotTickPositionY = d * majorTickProjectedPosition + ty;
177
175
  var majorTickStep = majorTicks[imajorTick + 2];
178
- majorShape.disallowUploadedUpdate();
179
- majorShape.visible = true;
180
- majorShape.transform.position.set(shapePositionX, majotTickPositionY);
181
- majorShape.text.value = majorFormatter.format(majorTickPosition, majorTickStep);
182
- majorShape.allowUploadedUpdate();
176
+ this.showMajor(majorShape, shapePositionX, majotTickPositionY, majorFormatter === null || majorFormatter === void 0 ? void 0 : majorFormatter.format(majorTickPosition, majorTickStep));
183
177
  if (i < gridlineShapes.length) {
184
- var gridlineShape = gridlineShapes[i];
185
- gridlineShape.disallowUploadedUpdate();
186
- gridlineShape.visible = true;
187
- gridlineShape.transform.position.set(plotAreaWidth * 0.5, majotTickPositionY);
188
- gridlineShape.size.set(plotAreaWidth, 0);
189
- gridlineShape.allowUploadedUpdate();
178
+ this.showMajorGridline(gridlineShapes[i], majorTickPosition, plotAreaWidth * 0.5, majotTickPositionY, plotAreaWidth, 0);
190
179
  }
191
180
  }
192
181
  else {
193
- majorShape.visible = false;
182
+ this.hideMajor(majorShape);
194
183
  if (i < gridlineShapes.length) {
195
- gridlineShapes[i].visible = false;
184
+ this.hideMajorGridline(gridlineShapes[i]);
196
185
  }
197
186
  }
198
187
  }
@@ -200,19 +189,51 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
200
189
  var minorShape = minorShapes[i];
201
190
  var iminorTick = i * 3;
202
191
  var minorTickPosition = minorTicks[iminorTick + 0];
203
- var minorTickProjectedPosition = minorTicks[iminorTick + 1];
204
192
  if (!isNaN(minorTickPosition)) {
205
- minorShape.disallowUploadedUpdate();
206
- minorShape.visible = true;
207
- minorShape.transform.position.set(shapePositionX, d * minorTickProjectedPosition + ty);
208
- minorShape.allowUploadedUpdate();
193
+ var minorTickProjectedPosition = minorTicks[iminorTick + 1];
194
+ var minorTickPositionY = d * minorTickProjectedPosition + ty;
195
+ var minorTickStep = minorTicks[iminorTick + 2];
196
+ this.showMinor(minorShape, shapePositionX, minorTickPositionY, minorFormatter === null || minorFormatter === void 0 ? void 0 : minorFormatter.format(minorTickPosition, minorTickStep));
209
197
  }
210
198
  else {
211
- minorShape.visible = false;
199
+ this.hideMinor(minorShape);
212
200
  }
213
201
  }
214
202
  return true;
215
203
  };
204
+ DChartAxisBaseTickContainer.prototype.showMajor = function (shape, x, y, text) {
205
+ shape.disallowUploadedUpdate();
206
+ shape.visible = true;
207
+ shape.transform.position.set(x, y);
208
+ shape.text.value = text != null ? text : "";
209
+ shape.allowUploadedUpdate();
210
+ };
211
+ DChartAxisBaseTickContainer.prototype.showMajorGridline = function (shape, value, x, y, sx, sy) {
212
+ shape.disallowUploadedUpdate();
213
+ shape.visible = true;
214
+ shape.transform.position.set(x, y);
215
+ shape.size.set(sx, sy);
216
+ shape.allowUploadedUpdate();
217
+ };
218
+ DChartAxisBaseTickContainer.prototype.hideMajor = function (shape) {
219
+ shape.visible = false;
220
+ };
221
+ DChartAxisBaseTickContainer.prototype.hideMajorGridline = function (shape) {
222
+ shape.visible = false;
223
+ };
224
+ DChartAxisBaseTickContainer.prototype.showMinor = function (shape, x, y, text) {
225
+ shape.disallowUploadedUpdate();
226
+ shape.visible = true;
227
+ shape.transform.position.set(x, y);
228
+ shape.text.value = text != null ? text : "";
229
+ shape.allowUploadedUpdate();
230
+ };
231
+ DChartAxisBaseTickContainer.prototype.hideMinor = function (shape) {
232
+ shape.visible = false;
233
+ };
234
+ DChartAxisBaseTickContainer.prototype.newTicks = function (coordinate, domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
235
+ coordinate.ticks(domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult);
236
+ };
216
237
  DChartAxisBaseTickContainer.prototype.destroy = function () {
217
238
  this._major.destroy();
218
239
  this._minor.destroy();