terra-draw 1.12.0 → 1.14.0

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.
package/dist/common.d.ts CHANGED
@@ -132,6 +132,7 @@ export declare const SELECT_PROPERTIES: {
132
132
  readonly SELECTION_POINT: "selectionPoint";
133
133
  };
134
134
  export declare const COMMON_PROPERTIES: {
135
+ readonly MODE: "mode";
135
136
  readonly CURRENTLY_DRAWING: "currentlyDrawing";
136
137
  readonly EDITED: "edited";
137
138
  readonly CLOSING_POINT: "closingPoint";
@@ -139,7 +140,14 @@ export declare const COMMON_PROPERTIES: {
139
140
  readonly COORDINATE_POINT: "coordinatePoint";
140
141
  readonly COORDINATE_POINT_FEATURE_ID: "coordinatePointFeatureId";
141
142
  readonly COORDINATE_POINT_IDS: "coordinatePointIds";
143
+ readonly PROVISIONAL_COORDINATE_COUNT: "provisionalCoordinateCount";
144
+ readonly COMMITTED_COORDINATE_COUNT: "committedCoordinateCount";
142
145
  };
146
+ /**
147
+ * Lower z-index represents layers that are lower in the stack
148
+ * and higher z-index represents layers that are higher in the stack
149
+ * i.e. a layer with z-index 10 will be rendered below a layer with z-index 20
150
+ */
143
151
  export declare const Z_INDEX: {
144
152
  readonly LAYER_ONE: 10;
145
153
  readonly LAYER_TWO: 20;
@@ -1,6 +1,6 @@
1
1
  import { Feature, Point, Polygon, LineString } from "geojson";
2
2
  import { Validation } from "../common";
3
- type JSON = string | number | boolean | null | JSONArray | JSONObject;
3
+ export type JSON = string | number | boolean | null | JSONArray | JSONObject;
4
4
  export interface JSONObject {
5
5
  [member: string]: JSON;
6
6
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks if a value is a valid JSON value.
3
+ * @param value - The value to check
4
+ * @returns true if the value is valid JSON, false otherwise
5
+ */
6
+ export declare function isValidJSONValue(value: unknown): value is JSON;
@@ -0,0 +1 @@
1
+ export {};