add immoweb ui

This commit is contained in:
Viktor Barzin 2025-05-26 19:41:36 +00:00
parent 7e8c79d3d1
commit 151da16c27
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
266 changed files with 264879 additions and 0 deletions

20
immoweb/node_modules/@turf/destination/LICENSE generated vendored Normal file
View file

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 TurfJS
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

67
immoweb/node_modules/@turf/destination/README.md generated vendored Normal file
View file

@ -0,0 +1,67 @@
# @turf/destination
# destination
Takes a [Point](http://geojson.org/geojson-spec.html#point) and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. This uses the [Haversine formula](http://en.wikipedia.org/wiki/Haversine_formula) to account for global curvature.
**Parameters**
- `from` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** starting point
- `distance` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** distance from the starting point
- `bearing` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** ranging from -180 to 180
- `units` **\[[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** miles, kilometers, degrees, or radians (optional, default `kilometers`)
**Examples**
```javascript
var point = {
"type": "Feature",
"properties": {
"marker-color": "#0f0"
},
"geometry": {
"type": "Point",
"coordinates": [-75.343, 39.984]
}
};
var distance = 50;
var bearing = 90;
var units = 'miles';
var destination = turf.destination(point, distance, bearing, units);
destination.properties['marker-color'] = '#f00';
var result = {
"type": "FeatureCollection",
"features": [point, destination]
};
//=result
```
Returns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** destination point
<!-- This file is automatically generated. Please don't edit it directly:
if you find an error, edit the source file (likely index.js), and re-run
./scripts/generate-readmes in the turf project. -->
---
This module is part of the [Turfjs project](http://turfjs.org/), an open source
module collection dedicated to geographic algorithms. It is maintained in the
[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create
PRs and issues.
### Installation
Install this module individually:
```sh
$ npm install @turf/destination
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

10
immoweb/node_modules/@turf/destination/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,10 @@
/// <reference types="geojson" />
type Point = GeoJSON.Feature<GeoJSON.Point>;
/**
* http://turfjs.org/docs/#destination
*/
declare function destination(from: Point, distance: number, bearing: number, units?: string): Point;
declare namespace destination { }
export = destination;

59
immoweb/node_modules/@turf/destination/index.js generated vendored Normal file
View file

@ -0,0 +1,59 @@
//http://en.wikipedia.org/wiki/Haversine_formula
//http://www.movable-type.co.uk/scripts/latlong.html
var getCoord = require('@turf/invariant').getCoord;
var helpers = require('@turf/helpers');
var point = helpers.point;
var distanceToRadians = helpers.distanceToRadians;
/**
* Takes a {@link Point} and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. This uses the [Haversine formula](http://en.wikipedia.org/wiki/Haversine_formula) to account for global curvature.
*
* @name destination
* @param {Feature<Point>} from starting point
* @param {number} distance distance from the starting point
* @param {number} bearing ranging from -180 to 180
* @param {string} [units=kilometers] miles, kilometers, degrees, or radians
* @returns {Feature<Point>} destination point
* @example
* var point = {
* "type": "Feature",
* "properties": {
* "marker-color": "#0f0"
* },
* "geometry": {
* "type": "Point",
* "coordinates": [-75.343, 39.984]
* }
* };
* var distance = 50;
* var bearing = 90;
* var units = 'miles';
*
* var destination = turf.destination(point, distance, bearing, units);
* destination.properties['marker-color'] = '#f00';
*
* var result = {
* "type": "FeatureCollection",
* "features": [point, destination]
* };
*
* //=result
*/
module.exports = function (from, distance, bearing, units) {
var degrees2radians = Math.PI / 180;
var radians2degrees = 180 / Math.PI;
var coordinates1 = getCoord(from);
var longitude1 = degrees2radians * coordinates1[0];
var latitude1 = degrees2radians * coordinates1[1];
var bearing_rad = degrees2radians * bearing;
var radians = distanceToRadians(distance, units);
var latitude2 = Math.asin(Math.sin(latitude1) * Math.cos(radians) +
Math.cos(latitude1) * Math.sin(radians) * Math.cos(bearing_rad));
var longitude2 = longitude1 + Math.atan2(Math.sin(bearing_rad) *
Math.sin(radians) * Math.cos(latitude1),
Math.cos(radians) - Math.sin(latitude1) * Math.sin(latitude2));
return point([radians2degrees * longitude2, radians2degrees * latitude2]);
};

70
immoweb/node_modules/@turf/destination/package.json generated vendored Normal file
View file

@ -0,0 +1,70 @@
{
"_from": "@turf/destination@^3.10.3",
"_id": "@turf/destination@3.14.0",
"_inBundle": false,
"_integrity": "sha1-7J5lxBnZlzO8rrA/ObSPQtVKw2w=",
"_location": "/@turf/destination",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@turf/destination@^3.10.3",
"name": "@turf/destination",
"escapedName": "@turf%2fdestination",
"scope": "@turf",
"rawSpec": "^3.10.3",
"saveSpec": null,
"fetchSpec": "^3.10.3"
},
"_requiredBy": [
"/hexgrid-heatmap"
],
"_resolved": "https://registry.npmjs.org/@turf/destination/-/destination-3.14.0.tgz",
"_shasum": "ec9e65c419d99733bcaeb03f39b48f42d54ac36c",
"_spec": "@turf/destination@^3.10.3",
"_where": "/home/kadir/workspace/webimmo/node_modules/hexgrid-heatmap",
"author": {
"name": "Turf Authors"
},
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
},
"bundleDependencies": false,
"dependencies": {
"@turf/helpers": "^3.13.0",
"@turf/invariant": "^3.13.0"
},
"deprecated": false,
"description": "turf destination module",
"devDependencies": {
"@turf/distance": "^3.14.0",
"benchmark": "^1.0.0",
"tape": "^3.5.0"
},
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/Turfjs/turf",
"keywords": [
"turf",
"distance",
"destination",
"bearing",
"miles",
"km"
],
"license": "MIT",
"main": "index.js",
"name": "@turf/destination",
"repository": {
"type": "git",
"url": "git://github.com/Turfjs/turf.git"
},
"scripts": {
"bench": "node bench.js",
"test": "node test.js"
},
"types": "index.d.ts",
"version": "3.14.0"
}