@carto/ps-react-maps 3.11.11 → 3.11.12

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.
@@ -86,6 +86,7 @@ export type MeasurementToolChildrenProps<M extends string, T = unknown> = Partia
86
86
  };
87
87
  export type MeasurementToolsTextProps = Intl.NumberFormatOptions & {
88
88
  autoSplitNumber?: number;
89
+ customFormatter?: (value: string) => string;
89
90
  };
90
91
  export interface EditModeConfig {
91
92
  formatTooltip?: (radius: number) => string;
@@ -5,7 +5,7 @@ import { DeckGLComponentProps } from '../../types';
5
5
  import { MapMeasurementUnit, MapMeasurementUnitAuto } from './const';
6
6
  import { EditModeConfig, MeasurementToolsTextProps } from './types';
7
7
  export declare function convertMetersTo(distance: number, unit: ValueOf<typeof MapMeasurementUnit>, dimension: 'length' | 'area'): number;
8
- export declare function getTextLayerFormattedDistance({ meters, unit, locale, options: { autoSplitNumber, ...intlOptions }, dimension, }: {
8
+ export declare function getTextLayerFormattedDistance({ meters, unit, locale, options: { autoSplitNumber, customFormatter, ...intlOptions }, dimension, }: {
9
9
  meters: number;
10
10
  unit: ValueOf<typeof MapMeasurementUnitAuto>;
11
11
  locale: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/ps-react-maps",
3
- "version": "3.11.11",
3
+ "version": "3.11.12",
4
4
  "description": "CARTO's Professional Service React DeckGL library",
5
5
  "type": "module",
6
6
  "dependencies": {},