hart-estate-widget 3.9.15 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +197 -341
- package/build/api.js +1 -0
- package/build/createWidget.js +2 -0
- package/build/{widget.module.js.LICENSE.txt → createWidget.js.LICENSE.txt} +34 -21
- package/build/plugins/DebugPlugin.js +2 -0
- package/build/{widget.bundle.js.LICENSE.txt → plugins/DebugPlugin.js.LICENSE.txt} +28 -28
- package/build/plugins/DefaultMapPlugin.js +2 -0
- package/build/plugins/DefaultMapPlugin.js.LICENSE.txt +49 -0
- package/build/plugins/FovPlugin.js +1 -0
- package/package.json +29 -38
- package/build/widget.bundle.js +0 -2
- package/build/widget.module.js +0 -2
- package/build/widget.module.worker.js.LICENSE.txt +0 -12
- /package/build/{widget.bundle.worker.js.LICENSE.txt → createWidget.worker.js.LICENSE.txt} +0 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* @license React
|
3
|
+
* react-dom.production.min.js
|
4
|
+
*
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @license React
|
13
|
+
* react-jsx-runtime.production.min.js
|
14
|
+
*
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
16
|
+
*
|
17
|
+
* This source code is licensed under the MIT license found in the
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
19
|
+
*/
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @license React
|
23
|
+
* react.production.min.js
|
24
|
+
*
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
26
|
+
*
|
27
|
+
* This source code is licensed under the MIT license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
30
|
+
|
31
|
+
/**
|
32
|
+
* @license React
|
33
|
+
* scheduler.production.min.js
|
34
|
+
*
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
36
|
+
*
|
37
|
+
* This source code is licensed under the MIT license found in the
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
39
|
+
*/
|
40
|
+
|
41
|
+
/**
|
42
|
+
* @license React
|
43
|
+
* use-sync-external-store-shim.production.js
|
44
|
+
*
|
45
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
46
|
+
*
|
47
|
+
* This source code is licensed under the MIT license found in the
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
49
|
+
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
var t={d:(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{T:()=>o});class o{_store;_fovSpeed;_touchEvent;_touchStartFov;constructor(t=1){this._fovSpeed=t,this._touchStartFov=75}get id(){return"fov"}get name(){return"Plugin for camera FOV scrolling by mouse"}get version(){return"1.0.0"}get isPanoramaTab(){return"panorama"===this._store?.tabStore.tab&&!this._store.panoramaTabStore.instructionsStore.visible}get cameraStore(){return this._store.panoramaTabStore.cameraStore}init=t=>(this._store=t,document.addEventListener("wheel",this.onWheel),document.addEventListener("touchstart",this.onTouchStart),document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd),!0);shutdown=()=>{delete this._store,document.removeEventListener("wheel",this.onWheel),document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd)};onWheel=t=>{if(!this.isPanoramaTab)return;const e=t.deltaY/100*this._fovSpeed,{cameraStore:o}=this;o.setFov(o.fov+e)};onTouchStart=t=>{this.isPanoramaTab&&(2===t.touches.length?(t.preventDefault(),this._touchEvent=t,this._touchStartFov=this.cameraStore.fov):this._touchEvent=void 0)};onTouchMove=t=>{if(!this.isPanoramaTab)return;if(2!==this._touchEvent?.touches.length)return;t.preventDefault();const{touches:e}=t;if(2!==e.length)return;const[o,r]=this._touchEvent.touches,[n,s]=e,h=r.screenX-o.screenX,a=r.screenY-o.screenY,c=Math.sqrt(h**2+a**2),i=s.screenX-n.screenX,u=s.screenY-n.screenY,v=c/Math.sqrt(i**2+u**2),{cameraStore:d}=this;d.setFov(this._touchStartFov*v)};onTouchEnd=()=>{this._touchEvent=void 0}}var r=e.T;export{r as FovPlugin};
|
package/package.json
CHANGED
@@ -11,10 +11,10 @@
|
|
11
11
|
"sideEffects": [
|
12
12
|
"*.sass"
|
13
13
|
],
|
14
|
-
"version": "
|
14
|
+
"version": "4.0.0",
|
15
15
|
"private": false,
|
16
|
-
"main": "build/
|
17
|
-
"module": "build/
|
16
|
+
"main": "build/createWidget.js",
|
17
|
+
"module": "build/createWidget.js",
|
18
18
|
"files": [
|
19
19
|
"build",
|
20
20
|
"README.md"
|
@@ -23,64 +23,55 @@
|
|
23
23
|
"cleanup": "rm -rf build",
|
24
24
|
"local-tunnel": "Lt --port 9000 --subdomain estate-widget --local-host localhost",
|
25
25
|
"start": "npm run cleanup && webpack-dev-server --config webpack-development.config.js",
|
26
|
+
"start-stats": "npm run cleanup && webpack-dev-server --stats-children --config webpack-development.config.js",
|
26
27
|
"build": "npm run cleanup && webpack --config webpack-production.config.js",
|
27
28
|
"lint": "eslint src",
|
28
29
|
"lint-fix": "eslint --fix src",
|
29
30
|
"ts-lint": "tsc --noemit"
|
30
31
|
},
|
31
32
|
"devDependencies": {
|
32
|
-
"@babel/core": "^7.17.0",
|
33
|
-
"@babel/eslint-parser": "^7.16.3",
|
34
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
35
|
-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
36
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
37
|
-
"@babel/preset-env": "^7.16.11",
|
38
|
-
"@babel/preset-react": "^7.18.6",
|
39
|
-
"@babel/preset-typescript": "^7.25.7",
|
40
33
|
"@types/geometric": "^2.5.3",
|
41
|
-
"@types/react": "^
|
42
|
-
"@types/react-dom": "^
|
34
|
+
"@types/react": "^18.3.18",
|
35
|
+
"@types/react-dom": "^18.3.5",
|
43
36
|
"@types/three": "^0.169.0",
|
44
37
|
"@types/ua-parser-js": "^0.7.39",
|
45
|
-
"babel-loader": "^8.
|
46
|
-
"css-loader": "^6.
|
47
|
-
"eslint": "^8.
|
38
|
+
"babel-loader": "^8.4.1",
|
39
|
+
"css-loader": "^6.11.0",
|
40
|
+
"eslint": "^8.57.1",
|
48
41
|
"eslint-config-airbnb-base": "^15.0.0",
|
49
42
|
"eslint-config-prettier": "^8.10.0",
|
50
|
-
"eslint-config-react-app": "^7.0.
|
43
|
+
"eslint-config-react-app": "^7.0.1",
|
51
44
|
"eslint-import-resolver-typescript": "^3.7.0",
|
52
45
|
"eslint-plugin-import": "^2.31.0",
|
53
|
-
"eslint-plugin-prettier": "^5.2.
|
54
|
-
"eslint-plugin-react": "^7.
|
46
|
+
"eslint-plugin-prettier": "^5.2.2",
|
47
|
+
"eslint-plugin-react": "^7.37.4",
|
55
48
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
56
49
|
"html-webpack-plugin": "^5.6.3",
|
57
50
|
"path": "^0.12.7",
|
58
51
|
"prettier": "^3.4.2",
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
52
|
+
"raw-loader": "^4.0.2",
|
53
|
+
"react-select": "^5.9.0",
|
54
|
+
"resolve-url-loader": "^5.0.0",
|
55
|
+
"sass": "=1.77.6",
|
56
|
+
"sass-loader": "^12.6.0",
|
57
|
+
"style-loader": "^3.3.4",
|
58
|
+
"ts-loader": "^9.5.2",
|
59
|
+
"typescript": "^5.7.3",
|
60
|
+
"webpack": "^5.97.1",
|
65
61
|
"webpack-cli": "^4.10.0",
|
66
|
-
"webpack-dev-server": "^4.
|
62
|
+
"webpack-dev-server": "^4.15.2",
|
67
63
|
"worker-loader": "^3.0.8"
|
68
64
|
},
|
69
65
|
"dependencies": {
|
70
|
-
"@fontsource/roboto-mono": "^4.5.8",
|
71
66
|
"@sentry/integrations": "^7.114.0",
|
72
|
-
"@sentry/react": "^8.
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"panzoom": "^9.4.2",
|
79
|
-
"react": "^17.0.2",
|
80
|
-
"react-dom": "^17.0.2",
|
81
|
-
"screenfull": "^6.0.1",
|
67
|
+
"@sentry/react": "^8.50.0",
|
68
|
+
"mobx": "^6.13.5",
|
69
|
+
"mobx-react-lite": "^4.1.0",
|
70
|
+
"react": "^18.3.1",
|
71
|
+
"react-dom": "^18.3.1",
|
72
|
+
"screenfull": "^6.0.2",
|
82
73
|
"three": "^0.158.0",
|
83
|
-
"ua-parser-js": "^1.0.
|
74
|
+
"ua-parser-js": "^1.0.40"
|
84
75
|
},
|
85
76
|
"browserslist": [
|
86
77
|
">0.2%",
|