UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

1,401 lines (1,385 loc) 1.48 MB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from2, except, desc) => { if (from2 && typeof from2 === "object" || typeof from2 === "function") { for (let key of __getOwnPropNames(from2)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __decorateClass = (decorators, target, key, kind) => { var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target; for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result; if (kind && result) __defProp(target, key, result); return result; }; // packages/ag-charts-community/src/main-modules.ts var main_modules_exports = {}; __export(main_modules_exports, { AllCartesianCommunityModules: () => AllCartesianCommunityModules, AllCommunityModules: () => AllCommunityModules, AllPolarCommunityModules: () => AllPolarCommunityModules, CartesianChartModule: () => CartesianChartModule, CategoryAxisModule: () => CategoryAxisModule, GroupedCategoryAxisModule: () => GroupedCategoryAxisModule, LogAxisModule: () => LogAxisModule, ModuleRegistry: () => import_ag_charts_core154.ModuleRegistry, NewAreaSeriesModule: () => NewAreaSeriesModule, NewBarSeriesModule: () => NewBarSeriesModule, NewBubbleSeriesModule: () => NewBubbleSeriesModule, NewDonutSeriesModule: () => NewDonutSeriesModule, NewHistogramSeriesModule: () => NewHistogramSeriesModule, NewLineSeriesModule: () => NewLineSeriesModule, NewPieSeriesModule: () => NewPieSeriesModule, NewScatterSeriesModule: () => NewScatterSeriesModule, NumberAxisModule: () => NumberAxisModule, PolarChartModule: () => PolarChartModule, TimeAxisModule: () => TimeAxisModule, UnitTimeAxisModule: () => UnitTimeAxisModule }); module.exports = __toCommonJS(main_modules_exports); // packages/ag-charts-community/src/api/preset/presetModules.ts var import_ag_charts_core9 = require("ag-charts-core"); // packages/ag-charts-community/src/chart/commonOptionsDefs.ts var import_ag_charts_core = require("ag-charts-core"); // packages/ag-charts-types/src/chart/navigatorOptions.ts var __MINI_CHART_SERIES_OPTIONS = void 0; var __VERIFY_MINI_CHART_SERIES_OPTIONS = void 0; __VERIFY_MINI_CHART_SERIES_OPTIONS = __MINI_CHART_SERIES_OPTIONS; // packages/ag-charts-types/src/chart/themeOptions.ts var __THEME_OVERRIDES = void 0; var __VERIFY_THEME_OVERRIDES = void 0; __VERIFY_THEME_OVERRIDES = __THEME_OVERRIDES; // packages/ag-charts-types/src/presets/gauge/commonOptions.ts var __THEMEABLE_OPTIONS = void 0; var __VERIFY_THEMEABLE_OPTIONS = void 0; __VERIFY_THEMEABLE_OPTIONS = __THEMEABLE_OPTIONS; var __AXIS_LABEL_OPTIONS = void 0; var __VERIFY_AXIS_LABEL_OPTIONS = void 0; __VERIFY_AXIS_LABEL_OPTIONS = __AXIS_LABEL_OPTIONS; // packages/ag-charts-community/src/chart/commonOptionsDefs.ts var legendPlacementLiterals = [ "top", "top-right", "top-left", "bottom", "bottom-right", "bottom-left", "right", "right-top", "right-bottom", "left", "left-top", "left-bottom" ]; var legendPositionOptionsDef = { floating: import_ag_charts_core.boolean, placement: (0, import_ag_charts_core.union)(...legendPlacementLiterals), xOffset: import_ag_charts_core.number, yOffset: import_ag_charts_core.number }; var legendPositionValidator = (0, import_ag_charts_core.attachDescription)( (value, context) => { let result; if (typeof value === "string") { const allowedValues = legendPlacementLiterals; if (allowedValues.includes(value)) { result = true; } else { result = { valid: false, invalid: [], cleared: null }; result.invalid.push( new import_ag_charts_core.ValidationError( import_ag_charts_core.ErrorType.Invalid, `a legend placement string: ["${legendPlacementLiterals.join('", "')}"]`, value, context.path ) ); } } else { const { cleared, invalid } = (0, import_ag_charts_core.validate)(value, legendPositionOptionsDef); result = { valid: invalid.length === 0, cleared, invalid }; } return result; }, `a legend position object or placement string` ); var shapeValidator = (0, import_ag_charts_core.or)( (0, import_ag_charts_core.union)("circle", "cross", "diamond", "heart", "plus", "pin", "square", "star", "triangle"), import_ag_charts_core.callback ); var textWrapValidator = (0, import_ag_charts_core.union)("never", "always", "hyphenate", "on-space"); var tooltipPlacementValidator = (0, import_ag_charts_core.union)( "top", "right", "bottom", "left", "top-right", "bottom-right", "bottom-left", "top-left", "center" ); var rangeValidator = (0, import_ag_charts_core.or)(import_ag_charts_core.positiveNumber, (0, import_ag_charts_core.union)("exact", "nearest")); var textOrSegments = (0, import_ag_charts_core.or)( import_ag_charts_core.string, (0, import_ag_charts_core.arrayOfDefs)( { text: (0, import_ag_charts_core.required)(import_ag_charts_core.string), ...import_ag_charts_core.fontOptionsDef }, "text segments array" ) ); var zoomAnchorPoint = (0, import_ag_charts_core.union)("pointer", "start", "middle", "end"); var chartCaptionOptionsDefs = { enabled: import_ag_charts_core.boolean, text: textOrSegments, textAlign: (0, import_ag_charts_core.union)("left", "center", "right"), wrapping: (0, import_ag_charts_core.union)("never", "always", "hyphenate", "on-space"), spacing: import_ag_charts_core.positiveNumber, maxWidth: import_ag_charts_core.positiveNumber, maxHeight: import_ag_charts_core.positiveNumber, ...import_ag_charts_core.fontOptionsDef }; chartCaptionOptionsDefs.padding = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.positiveNumber); var chartOverlayOptionsDefs = { enabled: import_ag_charts_core.boolean, text: textOrSegments, renderer: (0, import_ag_charts_core.callbackOf)((0, import_ag_charts_core.or)(import_ag_charts_core.string, import_ag_charts_core.htmlElement)) }; var contextMenuItemLiterals = [ "defaults", "download", "zoom-to-cursor", "pan-to-cursor", "reset-zoom", "toggle-series-visibility", "toggle-other-series", "separator" ]; var contextMenuItemObjectDef = { type: (0, import_ag_charts_core.union)("action", "separator"), showOn: (0, import_ag_charts_core.union)("always", "series-area", "series-node", "legend-item"), label: (0, import_ag_charts_core.required)(import_ag_charts_core.string), enabled: import_ag_charts_core.boolean, action: import_ag_charts_core.callback, items: (value, context) => contextMenuItemsArray(value, context) }; contextMenuItemObjectDef.iconUrl = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.string); var contextMenuItemObjectValidator = (0, import_ag_charts_core.optionsDefs)(contextMenuItemObjectDef); var contextMenuItemValidator = (0, import_ag_charts_core.attachDescription)( (value, context) => { let result; if (typeof value === "string") { const allowedValues = contextMenuItemLiterals; if (allowedValues.includes(value)) { result = true; } else { result = { valid: false, invalid: [], cleared: null }; result.invalid.push( new import_ag_charts_core.ValidationError( import_ag_charts_core.ErrorType.Invalid, `a context menu item string alias: ["${contextMenuItemLiterals.join('", "')}"]`, value, context.path ) ); } } else { result = contextMenuItemObjectValidator(value, context); } return result; }, `a context menu item object or string alias: [${contextMenuItemLiterals.join(", ")}]` ); var contextMenuItemsArray = (0, import_ag_charts_core.arrayOf)(contextMenuItemValidator, "a menu items array", false); var toolbarButtonOptionsDefs = { label: import_ag_charts_core.string, ariaLabel: import_ag_charts_core.string, tooltip: import_ag_charts_core.string, icon: (0, import_ag_charts_core.union)( "align-center", "align-left", "align-right", "arrow-drawing", "arrow-down-drawing", "arrow-up-drawing", "callout-annotation", "candlestick-series", "close", "comment-annotation", "date-range-drawing", "date-price-range-drawing", "delete", "disjoint-channel-drawing", "drag-handle", "fill-color", "line-style-solid", "line-style-dashed", "line-style-dotted", "high-low-series", "hlc-series", "hollow-candlestick-series", "horizontal-line-drawing", "line-color", "line-series", "line-with-markers-series", "locked", "measurer-drawing", "note-annotation", "ohlc-series", "pan-end", "pan-left", "pan-right", "pan-start", "parallel-channel-drawing", "position-bottom", "position-center", "position-top", "price-label-annotation", "price-range-drawing", "reset", "settings", "step-line-series", "text-annotation", "trend-line-drawing", "fibonacci-retracement-drawing", "fibonacci-retracement-trend-based-drawing", "unlocked", "vertical-line-drawing", "zoom-in", "zoom-out" ) }; var formatter = (0, import_ag_charts_core.or)(import_ag_charts_core.string, (0, import_ag_charts_core.callbackOf)(import_ag_charts_core.string)); var formatObjectValidator = (0, import_ag_charts_core.optionsDefs)({ x: formatter, y: formatter, angle: formatter, radius: formatter, size: formatter, color: formatter, label: formatter, secondaryLabel: formatter, sectorLabel: formatter, calloutLabel: formatter, legendItem: formatter }); var numberFormatValidator = (0, import_ag_charts_core.attachDescription)(import_ag_charts_core.isValidNumberFormat, "a valid number format string"); var commonChartOptionsDefs = { width: import_ag_charts_core.positiveNumber, height: import_ag_charts_core.positiveNumber, minWidth: import_ag_charts_core.positiveNumber, minHeight: import_ag_charts_core.positiveNumber, suppressFieldDotNotation: import_ag_charts_core.boolean, title: chartCaptionOptionsDefs, subtitle: chartCaptionOptionsDefs, footnote: chartCaptionOptionsDefs, padding: { top: import_ag_charts_core.positiveNumber, right: import_ag_charts_core.positiveNumber, bottom: import_ag_charts_core.positiveNumber, left: import_ag_charts_core.positiveNumber }, seriesArea: { border: import_ag_charts_core.borderOptionsDef, clip: import_ag_charts_core.boolean, cornerRadius: import_ag_charts_core.number, padding: import_ag_charts_core.padding }, legend: { enabled: import_ag_charts_core.boolean, position: legendPositionValidator, orientation: (0, import_ag_charts_core.union)("horizontal", "vertical"), maxWidth: import_ag_charts_core.positiveNumber, maxHeight: import_ag_charts_core.positiveNumber, spacing: import_ag_charts_core.positiveNumber, border: import_ag_charts_core.borderOptionsDef, cornerRadius: import_ag_charts_core.number, padding: import_ag_charts_core.padding, fill: import_ag_charts_core.colorUnion, fillOpacity: import_ag_charts_core.ratio, preventHidingAll: import_ag_charts_core.boolean, reverseOrder: import_ag_charts_core.boolean, toggleSeries: import_ag_charts_core.boolean, item: { marker: { size: import_ag_charts_core.positiveNumber, shape: shapeValidator, padding: import_ag_charts_core.positiveNumber, strokeWidth: import_ag_charts_core.positiveNumber }, line: { length: import_ag_charts_core.positiveNumber, strokeWidth: import_ag_charts_core.positiveNumber }, label: { maxLength: import_ag_charts_core.positiveNumber, formatter: import_ag_charts_core.callback, ...import_ag_charts_core.fontOptionsDef }, maxWidth: import_ag_charts_core.positiveNumber, paddingX: import_ag_charts_core.positiveNumber, paddingY: import_ag_charts_core.positiveNumber, showSeriesStroke: import_ag_charts_core.boolean }, pagination: { marker: { size: import_ag_charts_core.positiveNumber, shape: shapeValidator, padding: import_ag_charts_core.positiveNumber }, activeStyle: { ...import_ag_charts_core.fillOptionsDef, ...import_ag_charts_core.strokeOptionsDef }, inactiveStyle: { ...import_ag_charts_core.fillOptionsDef, ...import_ag_charts_core.strokeOptionsDef }, highlightStyle: { ...import_ag_charts_core.fillOptionsDef, ...import_ag_charts_core.strokeOptionsDef }, label: import_ag_charts_core.fontOptionsDef }, listeners: { legendItemClick: import_ag_charts_core.callback, legendItemDoubleClick: import_ag_charts_core.callback } }, gradientLegend: { enabled: import_ag_charts_core.boolean, position: legendPositionValidator, spacing: import_ag_charts_core.positiveNumber, reverseOrder: import_ag_charts_core.boolean, border: import_ag_charts_core.borderOptionsDef, cornerRadius: import_ag_charts_core.number, padding: import_ag_charts_core.padding, fill: import_ag_charts_core.colorUnion, fillOpacity: import_ag_charts_core.ratio, gradient: { preferredLength: import_ag_charts_core.positiveNumber, thickness: import_ag_charts_core.positiveNumber }, scale: { label: { ...import_ag_charts_core.fontOptionsDef, minSpacing: import_ag_charts_core.positiveNumber, format: numberFormatValidator, formatter: import_ag_charts_core.callback }, padding: import_ag_charts_core.positiveNumber, interval: { step: import_ag_charts_core.number, values: import_ag_charts_core.array, minSpacing: (0, import_ag_charts_core.and)(import_ag_charts_core.positiveNumber, (0, import_ag_charts_core.lessThan)("maxSpacing")), maxSpacing: (0, import_ag_charts_core.and)(import_ag_charts_core.positiveNumber, (0, import_ag_charts_core.greaterThan)("minSpacing")) } } }, listeners: { seriesNodeClick: import_ag_charts_core.callback, seriesNodeDoubleClick: import_ag_charts_core.callback, seriesVisibilityChange: import_ag_charts_core.callback, click: import_ag_charts_core.callback, doubleClick: import_ag_charts_core.callback, annotations: import_ag_charts_core.callback, zoom: import_ag_charts_core.callback }, loadGoogleFonts: import_ag_charts_core.boolean, highlight: { range: (0, import_ag_charts_core.union)("tooltip", "node") }, overlays: { loading: chartOverlayOptionsDefs, noData: chartOverlayOptionsDefs, noVisibleSeries: chartOverlayOptionsDefs, unsupportedBrowser: chartOverlayOptionsDefs }, tooltip: { enabled: import_ag_charts_core.boolean, showArrow: import_ag_charts_core.boolean, pagination: import_ag_charts_core.boolean, delay: import_ag_charts_core.positiveNumber, range: rangeValidator, wrapping: textWrapValidator, mode: (0, import_ag_charts_core.union)("single", "shared", "compact"), position: { anchorTo: (0, import_ag_charts_core.union)("pointer", "node", "chart"), placement: (0, import_ag_charts_core.or)(tooltipPlacementValidator, (0, import_ag_charts_core.arrayOf)(tooltipPlacementValidator)), xOffset: import_ag_charts_core.number, yOffset: import_ag_charts_core.number } }, animation: { enabled: import_ag_charts_core.boolean, duration: import_ag_charts_core.positiveNumber }, contextMenu: { enabled: import_ag_charts_core.boolean, items: contextMenuItemsArray }, context: () => true, dataSource: { getData: import_ag_charts_core.callback }, keyboard: { enabled: import_ag_charts_core.boolean, tabIndex: import_ag_charts_core.number }, touch: { dragAction: (0, import_ag_charts_core.union)("none", "drag", "hover") }, ranges: { enabled: import_ag_charts_core.boolean, buttons: (0, import_ag_charts_core.arrayOfDefs)( { ...toolbarButtonOptionsDefs, value: (0, import_ag_charts_core.or)(import_ag_charts_core.number, (0, import_ag_charts_core.and)((0, import_ag_charts_core.arrayOf)((0, import_ag_charts_core.or)(import_ag_charts_core.number, import_ag_charts_core.date)), (0, import_ag_charts_core.arrayLength)(2, 2)), import_ag_charts_core.callback) }, "range button options array" ) }, // modules locale: { localeText: import_ag_charts_core.object, getLocaleText: (0, import_ag_charts_core.callbackOf)(import_ag_charts_core.string) }, background: { visible: import_ag_charts_core.boolean, fill: import_ag_charts_core.color, // enterprise image: { url: (0, import_ag_charts_core.required)(import_ag_charts_core.string), top: import_ag_charts_core.number, right: import_ag_charts_core.number, bottom: import_ag_charts_core.number, left: import_ag_charts_core.number, width: import_ag_charts_core.positiveNumber, height: import_ag_charts_core.positiveNumber, opacity: import_ag_charts_core.ratio } }, styleNonce: import_ag_charts_core.string, sync: { enabled: import_ag_charts_core.boolean, groupId: import_ag_charts_core.string, axes: (0, import_ag_charts_core.union)("x", "y", "xy"), nodeInteraction: import_ag_charts_core.boolean, zoom: import_ag_charts_core.boolean }, zoom: { enabled: import_ag_charts_core.boolean, enableAxisDragging: import_ag_charts_core.boolean, enableAxisScrolling: import_ag_charts_core.boolean, enableDoubleClickToReset: import_ag_charts_core.boolean, enablePanning: import_ag_charts_core.boolean, enableScrolling: import_ag_charts_core.boolean, enableSelecting: import_ag_charts_core.boolean, enableTwoFingerZoom: import_ag_charts_core.boolean, keepAspectRatio: import_ag_charts_core.boolean, anchorPointX: zoomAnchorPoint, anchorPointY: zoomAnchorPoint, axisDraggingMode: (0, import_ag_charts_core.union)("pan", "zoom"), axes: (0, import_ag_charts_core.union)("x", "y", "xy"), deceleration: (0, import_ag_charts_core.or)((0, import_ag_charts_core.union)("off", "short", "long"), import_ag_charts_core.ratio), minVisibleItems: import_ag_charts_core.positiveNumber, panKey: (0, import_ag_charts_core.union)("alt", "ctrl", "meta", "shift"), scrollingStep: import_ag_charts_core.ratio, autoScaling: { enabled: import_ag_charts_core.boolean, padding: import_ag_charts_core.ratio }, buttons: { enabled: import_ag_charts_core.boolean, buttons: (0, import_ag_charts_core.arrayOfDefs)( { ...toolbarButtonOptionsDefs, value: (0, import_ag_charts_core.union)("reset", "zoom-in", "zoom-out", "pan-left", "pan-right", "pan-start", "pan-end"), section: import_ag_charts_core.string }, "zoom button options array" ), visible: (0, import_ag_charts_core.union)("always", "zoomed", "hover") } }, formatter: (0, import_ag_charts_core.or)((0, import_ag_charts_core.callbackOf)(import_ag_charts_core.string), formatObjectValidator) }; commonChartOptionsDefs.dataSource.requestThrottle = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.positiveNumber); commonChartOptionsDefs.dataSource.updateThrottle = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.positiveNumber); commonChartOptionsDefs.dataSource.updateDuringInteraction = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.boolean); commonChartOptionsDefs.zoom.enableIndependentAxes = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.boolean); commonChartOptionsDefs.statusBar = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.defined); commonChartOptionsDefs.foreground = (0, import_ag_charts_core.undocumented)({ visible: import_ag_charts_core.boolean, text: import_ag_charts_core.string, image: { url: import_ag_charts_core.string, top: import_ag_charts_core.number, right: import_ag_charts_core.number, bottom: import_ag_charts_core.number, left: import_ag_charts_core.number, width: import_ag_charts_core.positiveNumber, height: import_ag_charts_core.positiveNumber, opacity: import_ag_charts_core.ratio }, ...import_ag_charts_core.fillOptionsDef }); commonChartOptionsDefs.overrideDevicePixelRatio = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.number); commonChartOptionsDefs.sync.domainMode = (0, import_ag_charts_core.undocumented)((0, import_ag_charts_core.union)("direction", "position", "key")); var commonSeriesThemeableOptionsDefs = { cursor: import_ag_charts_core.string, context: () => true, showInLegend: import_ag_charts_core.boolean, nodeClickRange: rangeValidator, listeners: { seriesNodeClick: import_ag_charts_core.callback, seriesNodeDoubleClick: import_ag_charts_core.callback }, // TODO Remove in next major version highlightStyle: { item: { ...import_ag_charts_core.fillOptionsDef, ...import_ag_charts_core.strokeOptionsDef }, series: { enabled: import_ag_charts_core.boolean, dimOpacity: import_ag_charts_core.ratio, strokeWidth: import_ag_charts_core.positiveNumber } }, highlight: (0, import_ag_charts_core.highlightOptionsDef)(import_ag_charts_core.shapeHighlightOptionsDef) }; var commonSeriesOptionsDefs = { ...commonSeriesThemeableOptionsDefs, id: import_ag_charts_core.string, visible: import_ag_charts_core.boolean, context: () => true, data: import_ag_charts_core.array }; commonSeriesOptionsDefs.seriesGrouping = (0, import_ag_charts_core.undocumented)(import_ag_charts_core.defined); var markerOptionsDefs = { enabled: import_ag_charts_core.boolean, shape: shapeValidator, size: import_ag_charts_core.positiveNumber, itemStyler: (0, import_ag_charts_core.callbackDefs)({ ...import_ag_charts_core.fillOptionsDef, ...import_ag_charts_core.strokeOptionsDef, ...import_ag_charts_core.lineDashOptionsDef, shape: shapeValidator, size: import_ag_charts_core.positiveNumber }), ...import_ag_charts_core.fillOptionsDef, ...import_ag_charts_core.strokeOptionsDef, ...import_ag_charts_core.lineDashOptionsDef }; var seriesLabelOptionsDefs = { enabled: import_ag_charts_core.boolean, formatter: import_ag_charts_core.callback, format: numberFormatValidator, itemStyler: (0, import_ag_charts_core.undocumented)( (0, import_ag_charts_core.callbackDefs)({ enabled: import_ag_charts_core.boolean, ...import_ag_charts_core.labelBoxOptionsDef, ...import_ag_charts_core.fontOptionsDef }) ), ...import_ag_charts_core.labelBoxOptionsDef, ...import_ag_charts_core.fontOptionsDef }; var autoSizedLabelOptionsDefs = { ...seriesLabelOptionsDefs, lineHeight: import_ag_charts_core.positiveNumber, minimumFontSize: import_ag_charts_core.positiveNumber, wrapping: textWrapValidator, overflowStrategy: (0, import_ag_charts_core.union)("ellipsis", "hide") }; var errorBarThemeableOptionsDefs = { visible: import_ag_charts_core.boolean, cap: { visible: import_ag_charts_core.boolean, length: import_ag_charts_core.positiveNumber, lengthRatio: import_ag_charts_core.ratio, ...import_ag_charts_core.strokeOptionsDef, ...import_ag_charts_core.lineDashOptionsDef }, ...import_ag_charts_core.strokeOptionsDef, ...import_ag_charts_core.lineDashOptionsDef }; var errorBarOptionsDefs = { ...errorBarThemeableOptionsDefs, xLowerKey: import_ag_charts_core.string, xUpperKey: import_ag_charts_core.string, yLowerKey: import_ag_charts_core.string, yUpperKey: import_ag_charts_core.string, xLowerName: import_ag_charts_core.string, xUpperName: import_ag_charts_core.string, yLowerName: import_ag_charts_core.string, yUpperName: import_ag_charts_core.string, itemStyler: (0, import_ag_charts_core.callbackDefs)({ visible: import_ag_charts_core.boolean, ...import_ag_charts_core.strokeOptionsDef, ...import_ag_charts_core.lineDashOptionsDef, cap: { visible: import_ag_charts_core.boolean, length: import_ag_charts_core.positiveNumber, lengthRatio: import_ag_charts_core.ratio, ...import_ag_charts_core.strokeOptionsDef, ...import_ag_charts_core.lineDashOptionsDef } }) }; var tooltipOptionsDefs = { enabled: import_ag_charts_core.boolean, showArrow: import_ag_charts_core.boolean, range: rangeValidator, renderer: (0, import_ag_charts_core.callbackOf)( (0, import_ag_charts_core.or)( import_ag_charts_core.string, (0, import_ag_charts_core.optionsDefs)( { heading: import_ag_charts_core.string, title: import_ag_charts_core.string, data: (0, import_ag_charts_core.arrayOfDefs)({ label: (0, import_ag_charts_core.required)(import_ag_charts_core.string), value: (0, import_ag_charts_core.required)(import_ag_charts_core.string) }) }, "tooltip renderer result object" ) ) ), position: { anchorTo: (0, import_ag_charts_core.union)("node", "pointer", "chart"), placement: (0, import_ag_charts_core.or)(tooltipPlacementValidator, (0, import_ag_charts_core.arrayOf)(tooltipPlacementValidator)), xOffset: import_ag_charts_core.number, yOffset: import_ag_charts_core.number }, interaction: { enabled: import_ag_charts_core.boolean } }; var shadowOptionsDefs = { enabled: import_ag_charts_core.boolean, xOffset: import_ag_charts_core.number, yOffset: import_ag_charts_core.number, blur: import_ag_charts_core.positiveNumber, color: import_ag_charts_core.color }; var interpolationOptionsDefs = (0, import_ag_charts_core.typeUnion)( { linear: {}, smooth: { tension: import_ag_charts_core.ratio }, step: { position: (0, import_ag_charts_core.union)("start", "middle", "end") } }, "interpolation line options" ); // packages/ag-charts-community/src/chart/series/cartesian/areaSeriesOptionsDef.ts var import_ag_charts_core2 = require("ag-charts-core"); var highlight = (0, import_ag_charts_core2.multiSeriesHighlightOptionsDef)(import_ag_charts_core2.shapeHighlightOptionsDef, import_ag_charts_core2.shapeHighlightOptionsDef); var areaSeriesThemeableOptionsDef = { showInMiniChart: import_ag_charts_core2.boolean, connectMissingData: import_ag_charts_core2.boolean, interpolation: interpolationOptionsDefs, label: seriesLabelOptionsDefs, marker: markerOptionsDefs, tooltip: tooltipOptionsDefs, shadow: shadowOptionsDefs, ...commonSeriesThemeableOptionsDefs, ...import_ag_charts_core2.fillOptionsDef, ...import_ag_charts_core2.strokeOptionsDef, ...import_ag_charts_core2.lineDashOptionsDef, highlight }; var areaSeriesOptionsDef = { ...areaSeriesThemeableOptionsDef, ...commonSeriesOptionsDefs, highlight, type: (0, import_ag_charts_core2.required)((0, import_ag_charts_core2.constant)("area")), xKey: (0, import_ag_charts_core2.required)(import_ag_charts_core2.string), yKey: (0, import_ag_charts_core2.required)(import_ag_charts_core2.string), xName: import_ag_charts_core2.string, yName: import_ag_charts_core2.string, stacked: import_ag_charts_core2.boolean, stackGroup: import_ag_charts_core2.string, normalizedTo: import_ag_charts_core2.number }; // packages/ag-charts-community/src/chart/series/cartesian/barSeriesOptionsDef.ts var import_ag_charts_core3 = require("ag-charts-core"); var highlight2 = (0, import_ag_charts_core3.multiSeriesHighlightOptionsDef)(import_ag_charts_core3.barHighlightOptionsDef, import_ag_charts_core3.barHighlightOptionsDef); var barSeriesThemeableOptionsDef = { direction: (0, import_ag_charts_core3.union)("horizontal", "vertical"), showInMiniChart: import_ag_charts_core3.boolean, cornerRadius: import_ag_charts_core3.positiveNumber, itemStyler: (0, import_ag_charts_core3.callbackDefs)({ ...import_ag_charts_core3.fillOptionsDef, ...import_ag_charts_core3.strokeOptionsDef, ...import_ag_charts_core3.lineDashOptionsDef, cornerRadius: import_ag_charts_core3.positiveNumber }), crisp: import_ag_charts_core3.boolean, label: { ...seriesLabelOptionsDefs, placement: (0, import_ag_charts_core3.union)("inside-center", "inside-start", "inside-end", "outside-start", "outside-end"), spacing: import_ag_charts_core3.positiveNumber }, errorBar: errorBarThemeableOptionsDefs, shadow: shadowOptionsDefs, tooltip: tooltipOptionsDefs, ...commonSeriesThemeableOptionsDefs, highlight: highlight2, ...import_ag_charts_core3.fillOptionsDef, ...import_ag_charts_core3.strokeOptionsDef, ...import_ag_charts_core3.lineDashOptionsDef }; barSeriesThemeableOptionsDef.sparklineMode = (0, import_ag_charts_core3.undocumented)(import_ag_charts_core3.boolean); var barSeriesOptionsDef = { ...barSeriesThemeableOptionsDef, ...commonSeriesOptionsDefs, highlight: highlight2, type: (0, import_ag_charts_core3.required)((0, import_ag_charts_core3.constant)("bar")), xKey: (0, import_ag_charts_core3.required)(import_ag_charts_core3.string), yKey: (0, import_ag_charts_core3.required)(import_ag_charts_core3.string), xName: import_ag_charts_core3.string, yName: import_ag_charts_core3.string, direction: (0, import_ag_charts_core3.union)("horizontal", "vertical"), grouped: import_ag_charts_core3.boolean, stacked: import_ag_charts_core3.boolean, stackGroup: import_ag_charts_core3.string, normalizedTo: import_ag_charts_core3.number, legendItemName: import_ag_charts_core3.string, errorBar: errorBarOptionsDefs }; barSeriesOptionsDef.pickOutsideVisibleMinorAxis = (0, import_ag_charts_core3.undocumented)(import_ag_charts_core3.boolean); barSeriesOptionsDef.focusPriority = (0, import_ag_charts_core3.undocumented)(import_ag_charts_core3.number); // packages/ag-charts-community/src/chart/series/cartesian/lineSeriesOptionsDef.ts var import_ag_charts_core4 = require("ag-charts-core"); var highlight3 = (0, import_ag_charts_core4.multiSeriesHighlightOptionsDef)(import_ag_charts_core4.shapeHighlightOptionsDef, import_ag_charts_core4.lineHighlightOptionsDef); var lineSeriesThemeableOptionsDef = { title: import_ag_charts_core4.string, showInMiniChart: import_ag_charts_core4.boolean, connectMissingData: import_ag_charts_core4.boolean, interpolation: interpolationOptionsDefs, label: seriesLabelOptionsDefs, marker: markerOptionsDefs, tooltip: tooltipOptionsDefs, errorBar: errorBarThemeableOptionsDefs, ...commonSeriesThemeableOptionsDefs, ...import_ag_charts_core4.strokeOptionsDef, ...import_ag_charts_core4.lineDashOptionsDef, highlight: highlight3 }; lineSeriesThemeableOptionsDef.sparklineMode = (0, import_ag_charts_core4.undocumented)(import_ag_charts_core4.boolean); var lineSeriesOptionsDef = { ...lineSeriesThemeableOptionsDef, ...commonSeriesOptionsDefs, highlight: highlight3, type: (0, import_ag_charts_core4.required)((0, import_ag_charts_core4.constant)("line")), xKey: (0, import_ag_charts_core4.required)(import_ag_charts_core4.string), yKey: (0, import_ag_charts_core4.required)(import_ag_charts_core4.string), xName: import_ag_charts_core4.string, yName: import_ag_charts_core4.string, stacked: import_ag_charts_core4.boolean, stackGroup: import_ag_charts_core4.string, normalizedTo: import_ag_charts_core4.number, legendItemName: import_ag_charts_core4.string, errorBar: errorBarOptionsDefs }; lineSeriesOptionsDef.pickOutsideVisibleMinorAxis = (0, import_ag_charts_core4.undocumented)(import_ag_charts_core4.boolean); lineSeriesOptionsDef.focusPriority = (0, import_ag_charts_core4.undocumented)(import_ag_charts_core4.number); // packages/ag-charts-community/src/util/object.ts var import_ag_charts_core5 = require("ag-charts-core"); // packages/ag-charts-community/src/util/decorator.ts var BREAK_TRANSFORM_CHAIN = Symbol("BREAK"); var CONFIG_KEY = "__decorator_config"; var ACCESSORS_KEY = "__decorator_accessors"; function addFakeTransformToInstanceProperty(target, propertyKeyOrSymbol) { initialiseConfig(target, propertyKeyOrSymbol).optional = true; } function initialiseConfig(target, propertyKeyOrSymbol) { if (Object.getOwnPropertyDescriptor(target, CONFIG_KEY) == null) { Object.defineProperty(target, CONFIG_KEY, { value: {} }); } if (Object.getOwnPropertyDescriptor(target, ACCESSORS_KEY) == null) { const parentAccessors = Object.getPrototypeOf(target)?.[ACCESSORS_KEY]; const accessors = parentAccessors?.slice() ?? []; Object.defineProperty(target, ACCESSORS_KEY, { value: accessors }); } const config = target[CONFIG_KEY]; const propertyKey = propertyKeyOrSymbol.toString(); if (config[propertyKey] != null) { return config[propertyKey]; } config[propertyKey] = { setters: [], getters: [], observers: [] }; const descriptor = Object.getOwnPropertyDescriptor(target, propertyKeyOrSymbol); let prevGet = descriptor?.get; let prevSet = descriptor?.set; if (prevGet == null || prevSet == null) { const accessors = target[ACCESSORS_KEY]; let index = accessors.indexOf(propertyKeyOrSymbol); if (index === -1) { index = accessors.push(propertyKeyOrSymbol) - 1; } prevGet ?? (prevGet = function() { let accessorValues = this.__accessors; if (accessorValues == null) { accessorValues = accessors.slice().fill(void 0); Object.defineProperty(this, "__accessors", { value: accessorValues }); } return accessorValues[index]; }); prevSet ?? (prevSet = function(value) { let accessorValues = this.__accessors; if (accessorValues == null) { accessorValues = accessors.slice().fill(void 0); Object.defineProperty(this, "__accessors", { value: accessorValues }); } accessorValues[index] = value; }); } const getter = function() { let value = prevGet.call(this); for (const transformFn of config[propertyKey].getters) { value = transformFn(this, propertyKeyOrSymbol, value); if (value === BREAK_TRANSFORM_CHAIN) { return; } } return value; }; const setter = function(value) { const { setters, observers } = config[propertyKey]; let oldValue; if (setters.some((f) => f.length > 2)) { oldValue = prevGet.call(this); } for (const transformFn of setters) { value = transformFn(this, propertyKeyOrSymbol, value, oldValue); if (value === BREAK_TRANSFORM_CHAIN) { return; } } prevSet.call(this, value); for (const observerFn of observers) { observerFn(this, value, oldValue); } }; Object.defineProperty(target, propertyKeyOrSymbol, { set: setter, get: getter, enumerable: true, configurable: false }); return config[propertyKey]; } function addTransformToInstanceProperty(setTransform, getTransform, configMetadata) { return (target, propertyKeyOrSymbol) => { const config = initialiseConfig(target, propertyKeyOrSymbol); config.setters.push(setTransform); if (getTransform) { config.getters.unshift(getTransform); } if (configMetadata) { Object.assign(config, configMetadata); } }; } function addObserverToInstanceProperty(setObserver) { return (target, propertyKeyOrSymbol) => { initialiseConfig(target, propertyKeyOrSymbol).observers.push(setObserver); }; } function isDecoratedObject(target) { return typeof target !== "undefined" && CONFIG_KEY in target; } function listDecoratedProperties(target) { const targets = /* @__PURE__ */ new Set(); while (isDecoratedObject(target)) { targets.add(target?.[CONFIG_KEY]); target = Object.getPrototypeOf(target); } return Array.from(targets).flatMap((configMap) => Object.keys(configMap)); } function extractDecoratedProperties(target) { return listDecoratedProperties(target).reduce((result, key) => { result[String(key)] = target[key] ?? null; return result; }, {}); } // packages/ag-charts-community/src/util/object.ts function objectsEqual(a, b) { if (Array.isArray(a)) { if (!Array.isArray(b)) return false; if (a.length !== b.length) return false; return a.every((av, i) => objectsEqual(av, b[i])); } else if ((0, import_ag_charts_core5.isPlainObject)(a)) { if (!(0, import_ag_charts_core5.isPlainObject)(b)) return false; return objectsEqualWith(a, b, objectsEqual); } return a === b; } function objectsEqualWith(a, b, cmp2) { if (Object.is(a, b)) return true; for (const key of Object.keys(b)) { if (!(key in a)) return false; } for (const key of Object.keys(a)) { if (!(key in b)) return false; if (!cmp2(a[key], b[key])) return false; } return true; } function mergeDefaults(...sources) { const target = {}; for (const source of sources) { if (!(0, import_ag_charts_core5.isObject)(source)) continue; const keys = isDecoratedObject(source) ? listDecoratedProperties(source) : Object.keys(source); for (const key of keys) { if ((0, import_ag_charts_core5.isPlainObject)(target[key]) && (0, import_ag_charts_core5.isPlainObject)(source[key])) { target[key] = mergeDefaults(target[key], source[key]); } else { target[key] ?? (target[key] = source[key]); } } } return target; } function merge(...sources) { const target = {}; for (const source of sources) { if (!(0, import_ag_charts_core5.isObject)(source)) continue; const keys = isDecoratedObject(source) ? listDecoratedProperties(source) : Object.keys(source); for (const key of keys) { if ((0, import_ag_charts_core5.isPlainObject)(target[key]) && (0, import_ag_charts_core5.isPlainObject)(source[key])) { target[key] = merge(target[key], source[key]); } else if (!(key in target)) { target[key] ?? (target[key] = source[key]); } } } return target; } function mergeArrayDefaults(dataArray, ...itemDefaults) { if (itemDefaults && (0, import_ag_charts_core5.isArray)(dataArray)) { return dataArray.map((item) => mergeDefaults(item, ...itemDefaults)); } return dataArray; } function without(object3, keys) { const clone2 = { ...object3 }; for (const key of keys) { delete clone2[key]; } return clone2; } function getPath(object3, path) { const pathArray = (0, import_ag_charts_core5.isArray)(path) ? path : path.split("."); return pathArray.reduce((value, pathKey) => value[pathKey], object3); } var SKIP_JS_BUILTINS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]); function setPath(object3, path, newValue) { const pathArray = (0, import_ag_charts_core5.isArray)(path) ? path.slice() : path.split("."); const lastKey = pathArray.pop(); if (pathArray.some((p) => SKIP_JS_BUILTINS.has(p))) return; const lastObject = pathArray.reduce((value, pathKey) => value[pathKey], object3); lastObject[lastKey] = newValue; return lastObject[lastKey]; } function partialAssign(keysToCopy, target, source) { if (source === void 0) { return target; } for (const key of keysToCopy) { const value = source[key]; if (value !== void 0) { target[key] = value; } } return target; } function deepFreeze(obj) { if (obj == null || typeof obj !== "object" || !(0, import_ag_charts_core5.isPlainObject)(obj)) { return obj; } Object.freeze(obj); Object.getOwnPropertyNames(obj).forEach((prop) => { const value = obj[prop]; if (value !== null && (typeof value === "object" || typeof value === "function") && !Object.isFrozen(value)) { deepFreeze(value); } }); return obj; } // packages/ag-charts-community/src/api/preset/presetUtils.ts var IGNORED_PROP = Symbol("IGNORED_PROP"); function pickProps(opts, values) { const out = {}; for (const key of Object.keys(values)) { const value = values[key]; if (value !== IGNORED_PROP && Object.hasOwn(opts, key)) { out[key] = value; } } return out; } // packages/ag-charts-community/src/api/preset/gauge.ts function tooltipOptions(opts) { const { enabled, mode, showArrow, range: range3, position, pagination, delay, wrapping, interaction, renderer, ...rest } = opts; const seriesTooltipOptions = pickProps(opts, { enabled, showArrow, range: range3, position, interaction, renderer, ...rest }); const chartTooltipOptions = pickProps(opts, { enabled: IGNORED_PROP, showArrow: IGNORED_PROP, range: IGNORED_PROP, position: IGNORED_PROP, mode, pagination, delay, wrapping, ...rest }); return { chartTooltipOptions, seriesTooltipOptions }; } function radialGaugeOptions(opts) { const { animation, background, container, contextMenu, context, footnote, height: height2, listeners, locale, minHeight, minWidth, overrideDevicePixelRatio, padding: padding2, subtitle, theme, title, width: width2, type, cursor, nodeClickRange, tooltip = {}, value, scale: scale2 = {}, startAngle, endAngle, // eslint-disable-next-line sonarjs/deprecation highlightStyle, highlight: highlight5, segmentation, bar, needle, targets, outerRadius, innerRadius, outerRadiusRatio, innerRadiusRatio, cornerRadius, cornerMode, label, secondaryLabel, spacing, ...rest } = opts; const { chartTooltipOptions, seriesTooltipOptions } = tooltipOptions(tooltip); const chartOpts = pickProps(opts, { animation, background, container, contextMenu, context, footnote, height: height2, listeners, locale, minHeight, minWidth, overrideDevicePixelRatio, padding: padding2, subtitle, theme, title, tooltip: chartTooltipOptions, width: width2 }); const seriesOpts = pickProps(opts, { needle: needle != null ? { enabled: true, ...needle } : IGNORED_PROP, startAngle, endAngle, scale: scale2, type, cursor, context, nodeClickRange, tooltip: seriesTooltipOptions, value, highlightStyle, highlight: highlight5, segmentation, bar, targets, outerRadius, innerRadius, outerRadiusRatio, innerRadiusRatio, cornerRadius, cornerMode, label, secondaryLabel, spacing, ...rest }); return { ...chartOpts, series: [seriesOpts] }; } function linearGaugeOptions(opts) { const { animation, background, container, contextMenu, context, footnote, height: height2, listeners, locale, minHeight, minWidth, overrideDevicePixelRatio, padding: padding2, subtitle, theme, title, width: width2, type, cursor, nodeClickRange, tooltip = {}, value, scale: scale2 = {}, direction = "vertical", thickness, // eslint-disable-next-line sonarjs/deprecation highlightStyle, highlight: highlight5, segmentation, bar, targets, cornerRadius, cornerMode, label, ...rest } = opts; const { chartTooltipOptions, seriesTooltipOptions } = tooltipOptions(tooltip); const chartOpts = pickProps(opts, { animation, background, container, contextMenu, context, footnote, height: height2, listeners, locale, minHeight, minWidth, overrideDevicePixelRatio, padding: padding2, subtitle, theme, title, tooltip: chartTooltipOptions, width: width2 }); const seriesOpts = pickProps(opts, { scale: scale2, type, cursor, context, nodeClickRange, tooltip: seriesTooltipOptions, value, direction, thickness, highlightStyle, highlight: highlight5, segmentation, bar, targets, cornerRadius, cornerMode, label, ...rest }); return { ...chartOpts, series: [seriesOpts] }; } function applyThemeDefaults(opts, presetTheme) { if (presetTheme == null) return opts; const { targets: targetsTheme, ...gaugeTheme } = presetTheme; opts = mergeDefaults(opts, gaugeTheme); if (opts.targets != null && targetsTheme != null) { opts.targets = mergeArrayDefaults(opts.targets, targetsTheme); } return opts; } function gauge(opts, presetTheme) { switch (opts.type) { case "radial-gauge": return radialGaugeOptions(applyThemeDefaults(opts, presetTheme)); case "linear-gauge": return linearGaugeOptions(applyThemeDefaults(opts, presetTheme)); default: return {}; } } // packages/ag-charts-community/src/api/preset/gaugeOptionsDefs.ts var import_ag_charts_core6 = require("ag-charts-core"); var fillsOptionsDef = { fills: (0, import_ag_charts_core6.and)( (0, import_ag_charts_core6.arrayLength)(2), (0, import_ag_charts_core6.arrayOf)((0, import_ag_charts_core6.optionsDefs)({ color: import_ag_charts_core6.color, stop: import_ag_charts_core6.number }, "")), import_ag_charts_core6.colorStopsOrderValidator ), fillMode: (0, import_ag_charts_core6.union)("continuous", "discrete") }; var linearGaugeTargetOptionsDef = { value: (0, import_ag_charts_core6.required)(import_ag_charts_core6.number), text: import_ag_charts_core6.string, shape: (0, import_ag_charts_core6.or)( (0, import_ag_charts_core6.union)("circle", "cross", "diamond", "heart", "plus", "pin", "square", "star", "triangle", "line"), import_ag_charts_core6.callback ), placement: (0, import_ag_charts_core6.union)("before", "after", "middle"), spacing: import_ag_charts_core6.positiveNumber, size: import_ag_charts_core6.positiveNumber, rotation: import_ag_charts_core6.number, ...import_ag_charts_core6.fillOptionsDef, ...import_ag_charts_core6.strokeOptionsDef, ...import_ag_charts_core6.lineDashOptionsDef }; var radialGaugeTargetOptionsDef = { value: (0, import_ag_charts_core6.required)(import_ag_charts_core6.number), text: import_ag_charts_core6.string, shape: (0, import_ag_charts_core6.or)( (0, import_ag_charts_core6.union)("circle", "cross", "diamond", "heart", "plus", "pin", "square", "star", "triangle", "line"), import_ag_charts_core6.callback ), placement: (0, import_ag_charts_core6.union)("inside", "outside", "middle"), spacing: import_ag_charts_core6.positiveNumber, size: import_ag_charts_core6.positiveNumber, rotation: import_ag_charts_core6.number, label: { ...seriesLabelOptionsDefs, spacing: import_ag_charts_core6.positiveNumber }, ...import_ag_charts_core6.fillOptionsDef, ...import_ag_charts_core6.strokeOptionsDef, ...import_ag_charts_core6.lineDashOptionsDef }; var linearGaugeSeriesThemeableOptionsDef = { direction: (0, import_ag_charts_core6.union)("horizontal", "vertical"), cornerMode: (0, import_ag_charts_core6.union)("container", "item"), cornerRadius: import_ag_charts_core6.positiveNumber, thickness: import_ag_charts_core6.positiveNumber, segmentation: { enabled: import_ag_charts_core6.boolean, spacing: import_ag_charts_core6.positiveNumber, interval: { values: (0, import_ag_charts_core6.arrayOf)(import_ag_charts_core6.number), step: import_ag_charts_core6.number, count: import_ag_charts_core6.number } }, bar: { enabled: import_ag_charts_core6.boolean, thickness: import_ag_charts_core6.positiveNumber, thicknessRatio: import_ag_charts_core6.ratio, ...fillsOptionsDef, ...import_ag_charts_core6.fillOptionsDef, ...import_ag_charts_core6.strokeOptionsDef, ...import_ag_charts_core6.lineDashOptionsDef }, label: { ...autoSizedLabelOptionsDefs, text: import_ag_charts_core6.string, spacing: import_ag_charts_core6.positiveNumber, avoidCollisions: import_ag_charts_core6.boolean, placement: (0, import_ag_charts_core6.union)( "inside-start", "outside-start", "inside-end", "outside-end", "inside-center", "bar-inside", "bar-inside-end", "bar-outside-end", "bar-end" ) }, tooltip: tooltipOptionsDefs, ...without(commonSeriesThemeableOptionsDefs, ["listeners"]) }; var linearGaugeSeriesOptionsDef = { ...linearGaugeSeriesThemeableOptionsDef, ...without(commonSeriesOptionsDefs, ["listeners"]), type: (0, import_ag_charts_core6.required)((0, import_ag_charts_core6.constant)("linear-gauge")), value: (0, import_ag_charts_core6.required)(import_ag_charts_core6.number), scale: { min: (0, import_ag_charts_core6.and)(import_ag_charts_core6.number, (0, import_ag_charts_core6.lessThan)("max")), max: (0, import_ag_charts_core6.and)(import_ag_charts_core6.number, (0, import_ag_charts_core6.greaterThan)("min")), label: { enabled: import_ag_charts_core6.boolean, formatter: import_ag_charts_core6.callback, rotation: import_ag_charts_core6.number, spacing: import_ag_charts_core6.positiveNumber, minSpacing: import_ag_charts_core6.positiveNumber, placement: (0, import_ag_charts_core6.union)("before", "after"), avoidCollisions: import_ag_charts_core6.boolean, format: numberFormatValidator, ...import_ag_charts_core6.fontOptionsDef }, interval: { values: (0, import_ag_charts_core6.arrayOf)(import_ag_charts_core6.number), step: impo