@arcgis/coding-components
Version:
Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.
18 lines (17 loc) • 960 B
TypeScript
import { EditorProfile } from '../profile/editor-profile';
import { ApiProfile, ApiVariable } from '@arcgis/languages-api-utils';
import { IPredefinedProfile, IEditorProfileDefinition } from '../profile/types';
/**
* Converts an editor profile to an api profile.
* The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
*/
export declare const sqlExprEditorToApiProfile: (editorProfile: EditorProfile) => ApiProfile;
/**
* converts a predefined editor profile to a IEditorProfileDefinition.
* This is used to hydrate a profile definition from a predefined profile.
*/
export declare function convertToEditorProfileDefinition(predefinedProfile: IPredefinedProfile): IEditorProfileDefinition | undefined;
/**
* util to retrieve fields from the $layer variable in the api context.
*/
export declare const getFieldsFromLayerVariable: (profile: ApiProfile) => ApiVariable[];