terra-draw 0.0.1-alpha.61 → 0.0.1-alpha.62
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/modes/circle/circle.mode.d.ts +11 -0
- package/dist/terra-draw.cjs +1 -1
- package/dist/terra-draw.cjs.map +1 -1
- package/dist/terra-draw.modern.js +1 -1
- package/dist/terra-draw.modern.js.map +1 -1
- package/dist/terra-draw.module.js +1 -1
- package/dist/terra-draw.module.js.map +1 -1
- package/dist/terra-draw.umd.js +1 -1
- package/dist/terra-draw.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ interface Cursors {
|
|
|
17
17
|
interface TerraDrawCircleModeOptions<T extends CustomStyling> extends BaseModeOptions<T> {
|
|
18
18
|
keyEvents?: TerraDrawCircleModeKeyEvents | null;
|
|
19
19
|
cursors?: Cursors;
|
|
20
|
+
minimumRadiusKilometers?: number;
|
|
20
21
|
}
|
|
21
22
|
export declare class TerraDrawCircleMode extends TerraDrawBaseDrawMode<CirclePolygonStyling> {
|
|
22
23
|
mode: string;
|
|
@@ -25,6 +26,16 @@ export declare class TerraDrawCircleMode extends TerraDrawBaseDrawMode<CirclePol
|
|
|
25
26
|
private currentCircleId;
|
|
26
27
|
private keyEvents;
|
|
27
28
|
private cursors;
|
|
29
|
+
private minimumRadiusKilometers;
|
|
30
|
+
/**
|
|
31
|
+
* Create a new circle mode instance
|
|
32
|
+
* @param options - Options to customize the behavior of the circle mode
|
|
33
|
+
* @param options.keyEvents - Key events to cancel or finish the mode
|
|
34
|
+
* @param options.cursors - Cursors to use for the mode
|
|
35
|
+
* @param options.minimumRadiusKilometers - Minimum radius for the circle
|
|
36
|
+
* @param options.styles - Custom styling for the circle
|
|
37
|
+
* @param options.pointerDistance - Distance in pixels to consider a pointer close to a vertex
|
|
38
|
+
*/
|
|
28
39
|
constructor(options?: TerraDrawCircleModeOptions<CirclePolygonStyling>);
|
|
29
40
|
private close;
|
|
30
41
|
/** @internal */
|