terra-draw 1.11.0 → 1.12.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/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;