diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 10c7383283..585a2c86e6 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -18667,6 +18667,39 @@ declare namespace Excel { function run(context: OfficeExtension.ClientRequestContext, batch: (context: Excel.RequestContext) => Promise): Promise; function postprocessBindingDescriptor(response: any): any; function getDataCommonPostprocess(response: any, callArgs: any): any; + /** + * + * Represents the dimensions when getting values from chart series. + * + * [Api set: ExcelApi BETA (PREVIEW ONLY)] + * @beta + */ + enum ChartSeriesDimension { + /** + * + * The chart series axis for the categories. + * + */ + categories = "Categories", + /** + * + * The chart series axis for the values. + * + */ + values = "Values", + /** + * + * The chart series axis for the x-axis values in scatter and bubble charts. + * + */ + xvalues = "XValues", + /** + * + * The chart series axis for the y-axis values in scatter and bubble charts. + * + */ + yvalues = "YValues" + } /** * * Provides information about the binding that raised the SelectionChanged event. @@ -20616,7 +20649,7 @@ declare namespace Excel { /** * * Copies a worksheet and places it at the specified position. - * + * * [Api set: ExcelApi 1.7] * * @param positionType The location in the workbook to place the newly created worksheet. The default value is "None", which inserts the worksheet at the beginning of the worksheet. @@ -20627,7 +20660,7 @@ declare namespace Excel { /** * * Copies a worksheet and places it at the specified position. - * + * * [Api set: ExcelApi 1.7] * * @param positionType The location in the workbook to place the newly created worksheet. The default value is "None", which inserts the worksheet at the beginning of the worksheet. @@ -20905,7 +20938,7 @@ declare namespace Excel { * Occurs when left-clicked/tapped operation happens in the worksheet. This event will not be fired when clicking in the following cases: * - The user drags the mouse for multi-selection. - + - The user selects a cell in the mode when cell arguments are selected for formula references. * * [Api set: ExcelApi BETA (PREVIEW ONLY)] @@ -21697,29 +21730,29 @@ declare namespace Excel { /** * * Fills range from the current range to the destination range using the specified AutoFill logic. -The destination range can be null, or can extend the source either horizontally or vertically. -Discontiguous ranges are not supported. -For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. + The destination range can be null, or can extend the source either horizontally or vertically. + Discontiguous ranges are not supported. + For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. * * [Api set: ExcelApi 1.9, ExcelApi BETA (PREVIEW ONLY) for null `destinationRange`] * * @param destinationRange The destination range to autofill. If the destination range is null, data is filled out based on the surrounding cells (which is the behavior when double-clicking the UI’s range fill handle). * @param autoFillType The type of autofill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". */ - autoFill(destinationRange: Range | string, autoFillType?: Excel.AutoFillType): void; + autoFill(destinationRange?: Range | string, autoFillType?: Excel.AutoFillType): void; /** * * Fills range from the current range to the destination range using the specified AutoFill logic. -The destination range can be null, or can extend the source either horizontally or vertically. -Discontiguous ranges are not supported. -For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. + The destination range can be null, or can extend the source either horizontally or vertically. + Discontiguous ranges are not supported. + For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. * * [Api set: ExcelApi 1.9, ExcelApi BETA (PREVIEW ONLY) for null `destinationRange`] * * @param destinationRange The destination range to autofill. If the destination range is null, data is filled out based on the surrounding cells (which is the behavior when double-clicking the UI’s range fill handle). * @param autoFillType The type of autofill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". */ - autoFill(destinationRange: Range | string, autoFillType?: "FillDefault" | "FillCopy" | "FillSeries" | "FillFormats" | "FillValues" | "FillDays" | "FillWeekdays" | "FillMonths" | "FillYears" | "LinearTrend" | "GrowthTrend" | "FlashFill"): void; + autoFill(destinationRange?: Range | string, autoFillType?: "FillDefault" | "FillCopy" | "FillSeries" | "FillFormats" | "FillValues" | "FillDays" | "FillWeekdays" | "FillMonths" | "FillYears" | "LinearTrend" | "GrowthTrend" | "FlashFill"): void; /** * * Calculates a range of cells on a worksheet. @@ -26964,6 +26997,25 @@ For more information, read {@link https://support.office.com/article/video-use-a * [Api set: ExcelApi 1.7] */ delete(): void; + /** + * + * Gets the values from a single dimension of the chart series. These could be either category values or data values, depending on the dimension specified and how the data is mapped for the chart series. + * + * [Api set: ExcelApi BETA (PREVIEW ONLY)] + * @beta + * + * @param dimension the dimension of axis where the data from + */ + getDimensionValues(dimension: Excel.ChartSeriesDimension): OfficeExtension.ClientResult; + /** + * + * Gets the values from a single dimension of the chart series. These could be either category values or data values, depending on the dimension specified and how the data is mapped for the chart series. + * + * [Api set: ExcelApi BETA (PREVIEW ONLY)] + * + * @param dimension the dimension of axis where the data from + */ + getDimensionValues(dimension: "Categories" | "Values" | "XValues" | "YValues"): OfficeExtension.ClientResult; /** * * Set bubble sizes for a chart series. Only works for bubble charts. @@ -45800,6 +45852,7 @@ For more information, read {@link https://support.office.com/article/video-use-a nonBlankCellOffSheet = "NonBlankCellOffSheet", notImplemented = "NotImplemented", rangeExceedsLimit = "RangeExceedsLimit", + requestAborted = "RequestAborted", unsupportedOperation = "UnsupportedOperation", invalidOperationInCellEditMode = "InvalidOperationInCellEditMode" }