the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { BehaviorConfig, TerraDrawModeBehavior } from "./base.behavior";
import { Snappable, TerraDrawMouseEvent } from "../common";
import { Feature } from "geojson";
import { ClickBoundingBoxBehavior } from "./click-bounding-box.behavior";
import { FeatureId } from "../store/store";
import { PixelDistanceBehavior } from "./pixel-distance.behavior";
export declare class LineSnappingBehavior extends TerraDrawModeBehavior {
readonly config: BehaviorConfig;
private readonly pixelDistance;
private readonly clickBoundingBox;
constructor(config: BehaviorConfig, pixelDistance: PixelDistanceBehavior, clickBoundingBox: ClickBoundingBoxBehavior);
/** Returns the nearest snappable coordinate - on first click there is no currentId so no need to provide */
getSnappableCoordinateFirstClick: (event: TerraDrawMouseEvent) => number[] | undefined;
getSnappableCoordinate: (event: TerraDrawMouseEvent, currentFeatureId: FeatureId) => number[] | undefined;
getSnappable: (event: TerraDrawMouseEvent, filter?: (feature: Feature) => boolean) => Snappable;
}