Skip to content

Commit

Permalink
fix: reference the test adapter/modes in terra-draw.extensions.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner committed Oct 14, 2024
1 parent 7eeac9e commit 133cb3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions guides/7.DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ public render(
): void;
```

You can see a very basic example adapter in the `terra-draw.extensions.spec.ts` file. It shows how you can create your own adapter from the publicly exposed library imports.

## Mode Anatomy

Modes are not just limited to drawing features, for example the built-in `TerraDrawSelectMode` allows for selection and editing of geometries that have previously been drawn. The `TerraDrawRenderMode` is a "view only" Mode useful for showing non-editable data alongside editable data in your application.
Expand Down Expand Up @@ -163,6 +165,8 @@ onDragEnd(event: TerraDrawMouseEvent) {}
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling {}
```

You can see a very basic example mode in the `terra-draw.extensions.spec.ts` file. It shows how you can create your own mode from the publicly exposed library imports.

## Precommit Hooks

It is probably useful to be aware of the precommit hooks you will face when trying to run a git commit on the project. There are two currently in use, namely:
Expand Down
1 change: 0 additions & 1 deletion src/terra-draw.extensions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* of the library.
*/

import { exp } from "protomaps-leaflet";
import { CustomStyling } from "./modes/base.mode";
import {
GeoJSONStoreFeatures,
Expand Down

0 comments on commit 133cb3f

Please sign in to comment.