terra-draw 1.28.8 → 1.30.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
@@ -19,6 +19,8 @@ export interface TerraDrawAdapterStyling {
19
19
  lineStringWidth: number;
20
20
  lineStringColor: HexColor;
21
21
  lineStringOpacity?: number;
22
+ /** lineStringDash - Tuple representing the dash pattern for the line string, where the first number is the length of the dash and the second number is the length of the gap in pixels */
23
+ lineStringDash?: [number, number];
22
24
  zIndex: number;
23
25
  markerUrl?: string;
24
26
  markerHeight?: number;
@@ -1,7 +1,7 @@
1
1
  import { BehaviorConfig, TerraDrawModeBehavior } from "./base.behavior";
2
2
  import { TerraDrawOnChangeContext, HexColor, OnFinishContext, Projection, TerraDrawAdapterStyling, TerraDrawGeoJSONStore, TerraDrawKeyboardEvent, TerraDrawModeRegisterConfig, TerraDrawModeState, TerraDrawMouseEvent, Validation, HexColorStyling, NumericStyling, UrlStyling } from "../common";
3
3
  import { FeatureId, GeoJSONStoreFeatures, StoreChangeHandler } from "../store/store";
4
- export type CustomStyling = Record<string, string | number | HexColorStyling | NumericStyling | UrlStyling>;
4
+ export type CustomStyling = Record<string, string | number | HexColorStyling | NumericStyling | UrlStyling | [number, number]>;
5
5
  export declare enum ModeTypes {
6
6
  Drawing = "drawing",
7
7
  Select = "select",
@@ -10,6 +10,7 @@ type FreehandLineStringStyling = {
10
10
  lineStringWidth: NumericStyling;
11
11
  lineStringColor: HexColorStyling;
12
12
  lineStringOpacity: NumericStyling;
13
+ lineStringDash: [number, number];
13
14
  closingPointColor: HexColorStyling;
14
15
  closingPointOpacity: NumericStyling;
15
16
  closingPointWidth: NumericStyling;
@@ -28,6 +28,7 @@ type LineStringStyling = {
28
28
  coordinatePointOutlineColor: HexColorStyling;
29
29
  coordinatePointOutlineWidth: NumericStyling;
30
30
  coordinatePointOutlineOpacity: NumericStyling;
31
+ lineStringDash: [number, number];
31
32
  };
32
33
  interface Cursors {
33
34
  start?: Cursor;
@@ -60,6 +60,9 @@ type SelectionStyling = {
60
60
  };
61
61
  interface Cursors {
62
62
  pointerOver?: Cursor;
63
+ pointerOverFeature?: Cursor;
64
+ pointerOverCoordinate?: Cursor;
65
+ pointerOverResizeHandle?: Cursor;
63
66
  dragStart?: Cursor;
64
67
  dragEnd?: Cursor;
65
68
  insertMidpoint?: Cursor;
@@ -102,6 +105,9 @@ export declare class TerraDrawSelectMode extends TerraDrawBaseSelectMode<Selecti
102
105
  private lineSnap;
103
106
  private mutateFeature;
104
107
  private readFeature;
108
+ private getPointerOverFeatureCursor;
109
+ private getPointerOverCoordinateCursor;
110
+ private getPointerOverResizeHandleCursor;
105
111
  constructor(options?: TerraDrawSelectModeOptions<SelectionStyling>);
106
112
  updateOptions(options?: ModeUpdateOptions<TerraDrawSelectModeOptions<SelectionStyling>>): void;
107
113
  selectFeature(featureId: FeatureId): void;
@@ -30,6 +30,7 @@ export declare class TerraDrawStaticMode extends TerraDrawBaseDrawMode<StaticMod
30
30
  lineStringWidth: number;
31
31
  lineStringColor: import("../../common").HexColor;
32
32
  lineStringOpacity?: number;
33
+ lineStringDash?: [number, number];
33
34
  zIndex: number;
34
35
  markerUrl?: string;
35
36
  markerHeight?: number;