Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Nov 21, 2024
1 parent 686eff4 commit df0b7d7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 24 deletions.
6 changes: 1 addition & 5 deletions bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ Benchmarks help us catch performance regressions and improve performance.

Start the benchmark server

```bash
MAPBOX_ACCESS_TOKEN={YOUR MAPBOX ACCESS TOKEN} npm run start-bench
```

Open a benchmark runner page

- http://localhost:9967/bench/
Expand Down Expand Up @@ -46,7 +42,7 @@ Fire the `log` event to report benchmark progress to the user.
```js
{
message: string;
color: string = "blue"; // name of a Mapbox base color https://mapbox.com/base/styling/color
color: string = "blue";
}
```

Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@birkskyum/maplibre-gl-draw",
"version": "2.0.4",
"version": "2.0.5",
"license": "ISC",
"exports": "./src/index.ts",
"compilerOptions": {
Expand Down
8 changes: 4 additions & 4 deletions src/modes/mode_interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,29 +117,29 @@ export abstract class ModeInterface extends ModeInterfaceAccessors {
onStop?(state: object): void;

/**
* Triggered when [draw.trash()](https://github.com/mapbox/maplibre-gl-draw/blob/main/API.md#trash-draw) is called.
* Triggered when [draw.trash()](https://github.com/birkskyum/maplibre-gl-draw/blob/main/API.md#trash-draw) is called.
* @name MODE.onTrash
* @param state {Object} - a mutable state object created by onSetup
*/
onTrash?(state: object): void;

/**
* Triggered when [draw.combineFeatures()](https://github.com/mapbox/maplibre-gl-draw/blob/main/API.md#combinefeatures-draw) is called.
* Triggered when [draw.combineFeatures()](https://github.com/birkskyum/maplibre-gl-draw/blob/main/API.md#combinefeatures-draw) is called.
* @name MODE.onCombineFeature
* @param state {Object} - a mutable state object created by onSetup
*/
onCombineFeature?(state: object): void;

/**
* Triggered when [draw.uncombineFeatures()](https://github.com/mapbox/maplibre-gl-draw/blob/main/API.md#uncombinefeatures-draw) is called.
* Triggered when [draw.uncombineFeatures()](https://github.com/birkskyum/maplibre-gl-draw/blob/main/API.md#uncombinefeatures-draw) is called.
* @name MODE.onUncombineFeature
* @param state {Object} - a mutable state object created by onSetup
*/
onUncombineFeature?(state: object): void;

/**
* Triggered per feature on render to convert raw features into set of features for display on the map
* See [styling draw](https://github.com/mapbox/maplibre-gl-draw/blob/main/API.md#styling-draw) for information about what geojson properties Draw uses as part of rendering.
* See [styling draw](https://github.com/birkskyum/maplibre-gl-draw/blob/main/API.md#styling-draw) for information about what geojson properties Draw uses as part of rendering.
* @name MODE.toDisplayFeatures
* @param state {Object} - a mutable state object created by onSetup
* @param geojson {Object} - a geojson being evaluated. To render, pass to `display`.
Expand Down
13 changes: 0 additions & 13 deletions src/modes/simple_select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,19 +283,6 @@ export class SimpleSelect extends ModeInterface {
}


// displayControlsDefault?: boolean | undefined;
// keybindings?: boolean | undefined;
// touchEnabled?: boolean | undefined;
// boxSelect?: boolean | undefined;
// clickBuffer?: number | undefined;
// touchBuffer?: number | undefined;
// controls?: MapboxDrawControls | undefined;
// styles?: object[] | undefined;
// modes?: { [modeKey: string]: DrawCustomMode } | undefined;
// defaultMode?: string | undefined;
// userProperties?: boolean | undefined;


override onTouchEnd(state: {dragMoving: boolean, boxSelecting: boolean, boxSelectStartLocation: Point}, e) {
if (state.dragMoving) {
this.fireUpdate();
Expand Down
2 changes: 1 addition & 1 deletion test/features_at.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function addLayers(ctx) {
}

/**
* Mock context with a simplified mapbox-gl-js map (including some source/style/layer interactions)
* Mock context with a simplified maplibre-gl map (including some source/style/layer interactions)
*/
function createMockContext() {
const _layers = {};
Expand Down

0 comments on commit df0b7d7

Please sign in to comment.