Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/area distance #742

Merged
merged 4 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARLAS-web-components
Copyright 2017-2022 and onwards Gisaïa
Copyright 2017-2023 and onwards Gisaïa


ARLAS-web-components embeds the following components and their dependencies :
Expand All @@ -11,6 +11,7 @@ ARLAS-web-components embeds the following components and their dependencies :
+ Geo Tools
- mapboxgl (Copyright (c) 2016, Mapbox - https://github.com/mapbox/mapbox-gl-js)
- node-geohash (The MIT License - https://github.com/sunng87/node-geohash)
- Turfjs (The MIT License - https://github.com/Turfjs/turf)

+ Chart Tools
- D3.js (Copyright 2010-2017 Mike Bostock - https://d3js.org/)
Expand Down
108 changes: 108 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"@tmcw/togeojson": "~5.5.0",
"@turf/area": "^6.5.0",
"@turf/bbox": "^6.5.0",
"@turf/centroid": "6.5.0",
"@turf/helpers": "6.5.0",
"@turf/length": "^6.5.0",
"@types/mapbox-gl": "^1.6.3",
"@types/tinycolor2": "^1.4.0",
"arlas-d3": "~11.1.0",
Expand Down Expand Up @@ -66,8 +69,8 @@
"@angular-eslint/template-parser": "~14.4.0",
"@angular/cli": "^14.2.10",
"@angular/compiler-cli": "^14.2.12",
"@gisaia/ngx-translate-extract": "8.2.0",
"@biesbjerg/ngx-translate-extract-marker": "1.0.0",
"@gisaia/ngx-translate-extract": "8.2.0",
"@types/jasmine": "~3.10.0",
"@types/node": "^16.18.1",
"@typescript-eslint/eslint-plugin": "^5.36.2",
Expand Down
3 changes: 3 additions & 0 deletions projects/arlas-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
"@tmcw/togeojson": "~5.5.0",
"@mapbox/mapbox-gl-draw": "1.3.0",
"@mapbox/mapbox-gl-draw-static-mode": "^1.0.1",
"@turf/area": "^6.5.0",
"@turf/bbox": "^6.5.0",
"@turf/centroid": "6.5.0",
"@turf/helpers": "6.5.0",
"@turf/length": "^6.5.0",
"@types/mapbox-gl": "^1.6.3",
"arlas-d3": "~11.1.0",
"geojson-polygon-self-intersections": "1.2.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Licensed to Gisaïa under one or more contributor
* license agreements. See the NOTICE.txt file distributed with
* this work for additional information regarding copyright
* ownership. Gisaïa licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export interface AoiDimensions {
area: number;
areaMessage?: string;
show: boolean;
envelope: {
width: number;
height: number;
};
}

export interface EditionState {
enabled: boolean;
isDrawing: boolean;
isEditing: boolean;
}
Loading