Files
site/node_modules/terra-draw/dist/modes/read-feature.behavior.d.ts
T
site-admin 3ac81d5a52
deploy / build-and-publish (push) Successful in 1m37s
the editable site (validation-lab)
2026-11-21 08:03:55 +01:00

22 lines
1.1 KiB
TypeScript

import { BehaviorConfig, TerraDrawModeBehavior } from "./base.behavior";
import { FeatureId } from "../extend";
import { GeoJSONStoreGeometries, JSONObject } from "../store/store";
import { Position, Point } from "geojson";
export declare class ReadFeatureBehavior extends TerraDrawModeBehavior {
constructor(config: BehaviorConfig);
getGeometryType(featureId: FeatureId): "Polygon" | "LineString" | "Point";
coordinateAtIndexIsIdentical({ featureId, newCoordinate, index, }: {
featureId: FeatureId;
newCoordinate: Position;
index: number;
}): boolean;
getGeometry<G extends GeoJSONStoreGeometries>(featureId: FeatureId): G;
getCoordinates<G extends Exclude<GeoJSONStoreGeometries, Point>>(featureId: FeatureId): Position[];
getCoordinate<G extends Exclude<GeoJSONStoreGeometries, Point>>(featureId: FeatureId, index: number): Position;
getProperties(featureId: FeatureId): {
[x: string]: import("../store/store").JSON;
};
hasFeature(featureId: FeatureId): boolean;
getAllFeatureIdsWhere(equals: (properties: JSONObject) => boolean): FeatureId[];
}