@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
76 lines (74 loc) • 2.87 kB
TypeScript
import type Accessor from "../../core/Accessor.js";
/**
* @deprecated since version 5.0. Use the [Elevation Profile component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
* @since 5.0
*/
export interface ElevationProfileVisibleElementsProperties extends Partial<Pick<ElevationProfileVisibleElements, "chart" | "clearButton" | "legend" | "selectButton" | "settingsButton" | "sketchButton" | "uniformChartScalingToggle" | "unitSelector">> {}
/**
* The visible elements that are displayed within the widget.
* This provides the ability to turn individual elements of the widget's display on/off.
* The visual elements in this widget are the legend, chart, settingsButton, sketchButton, and selectButton.
* These are all set to true by default.
*
* @deprecated since version 5.0. Use the [Elevation Profile component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-elevation-profile/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
* @since 5.0
*/
export default class ElevationProfileVisibleElements extends Accessor {
constructor(properties?: ElevationProfileVisibleElementsProperties);
/**
* When set to `false`, the chart is not displayed.
*
* @default true
* @since 5.0
*/
accessor chart: boolean;
/**
* When set to `false` the button used to clear the current elevation profile is not displayed.
*
* @default true
* @since 5.0
*/
accessor clearButton: boolean;
/**
* When set to `false`, the legend (which includes statistics) is not displayed.
*
* @default true
* @since 5.0
*/
accessor legend: boolean;
/**
* When set to `false`, the button used to select a path is not displayed.
*
* @default true
* @since 5.0
*/
accessor selectButton: boolean;
/**
* When set to `false`, the button used to open the settings popup is not displayed.
*
* @default true
* @since 5.0
*/
accessor settingsButton: boolean;
/**
* When set to `false`, the button used to start drawing/sketching is not displayed.
*
* @default true
* @since 5.0
*/
accessor sketchButton: boolean;
/**
* When set to `false`, the element used to toggle uniform chart scaling on or off is not displayed.
*
* @default true
* @since 5.0
*/
accessor uniformChartScalingToggle: boolean;
/**
* When set to `false`, the dropdown used to select the units is not displayed.
*
* @default true
* @since 5.0
*/
accessor unitSelector: boolean;
}