terra-draw 1.11.0 → 1.13.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
@@ -139,7 +139,14 @@ export declare const COMMON_PROPERTIES: {
139
139
  readonly COORDINATE_POINT: "coordinatePoint";
140
140
  readonly COORDINATE_POINT_FEATURE_ID: "coordinatePointFeatureId";
141
141
  readonly COORDINATE_POINT_IDS: "coordinatePointIds";
142
+ readonly PROVISIONAL_COORDINATE_COUNT: "provisionalCoordinateCount";
143
+ readonly COMMITTED_COORDINATE_COUNT: "committedCoordinateCount";
142
144
  };
145
+ /**
146
+ * Lower z-index represents layers that are lower in the stack
147
+ * and higher z-index represents layers that are higher in the stack
148
+ * i.e. a layer with z-index 10 will be rendered below a layer with z-index 20
149
+ */
143
150
  export declare const Z_INDEX: {
144
151
  readonly LAYER_ONE: 10;
145
152
  readonly LAYER_TWO: 20;
package/dist/extend.d.ts CHANGED
@@ -3,4 +3,4 @@ import { Cursor, HexColorStyling, NumericStyling, SELECT_PROPERTIES, TerraDrawCa
3
3
  import { BaseModeOptions, CustomStyling, TerraDrawBaseDrawMode, TerraDrawBaseSelectMode } from "./modes/base.mode";
4
4
  import { FeatureId, GeoJSONStore } from "./store/store";
5
5
  import { getDefaultStyling } from "./util/styling";
6
- export { GeoJSONStore, TerraDrawBaseDrawMode, TerraDrawBaseSelectMode, TerraDrawBaseAdapter, getDefaultStyling, SELECT_PROPERTIES, FeatureId, Cursor, BaseModeOptions, CustomStyling, NumericStyling, HexColorStyling, TerraDrawCallbacks, BaseAdapterConfig, };
6
+ export { GeoJSONStore, TerraDrawBaseDrawMode, TerraDrawBaseSelectMode, TerraDrawBaseAdapter, getDefaultStyling, SELECT_PROPERTIES, type FeatureId, type Cursor, type BaseModeOptions, type CustomStyling, type NumericStyling, type HexColorStyling, type TerraDrawCallbacks, type BaseAdapterConfig, };
@@ -1,9 +1,8 @@
1
- import { Feature, LineString, Polygon, Position } from "geojson";
2
- export declare function transformScale(feature: Feature<Polygon | LineString>, factor: number, origin: Position, axis?: "x" | "y" | "xy"): Feature<Polygon | LineString, import("geojson").GeoJsonProperties>;
3
- /**
4
- * Scale a GeoJSON Polygon geometry in web mercator
5
- * @param polygon - GeoJSON Polygon geometry
6
- * @param scale - scaling factor
7
- * @returns - scaled GeoJSON Polygon geometry
8
- */
9
- export declare function transformScaleWebMercator(feature: Feature<Polygon | LineString>, factor: number, origin: Position): Feature<Polygon | LineString>;
1
+ import { Position } from "geojson";
2
+ export declare function transformScaleWebMercatorCoordinates({ coordinates, originX, originY, xScale, yScale, }: {
3
+ coordinates: Position[];
4
+ originX: number;
5
+ originY: number;
6
+ xScale: number;
7
+ yScale: number;
8
+ }): void;