Skip to content

Commit 92ae7cd

Browse files
zufryydionhaefner
andauthored
Fixing zoom to file in App Preview - Rebuild (#366)
* Fixing zoom to file in App Preview This would fix the zoom to clicked file function in the App Preview * [skip ci] Commit latest build --------- Co-authored-by: Dion Häfner <mail@dionhaefner.de> Co-authored-by: zufryy <10291527+zufryy@users.noreply.github.com>
1 parent 90636e7 commit 92ae7cd

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

terracotta/client/app/src/map/Map.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ const Map: FC<Props> = ({ host }) => {
8080
[ currentBounds[ 2 ], currentBounds[ 3 ] ],
8181
]
8282

83-
if (formattedBounds[ 0 ][ 0 ] >= 89) formattedBounds[ 0 ][ 0 ] = 89
83+
if (formattedBounds[ 0 ][ 0 ] <= -179) formattedBounds[ 0 ][ 0 ] = -179
8484
if (formattedBounds[ 0 ][ 1 ] <= -89) formattedBounds[ 0 ][ 1 ] = -89
8585
if (formattedBounds[ 1 ][ 0 ] >= 179) formattedBounds[ 1 ][ 0 ] = 179
86-
if (formattedBounds[ 1 ][ 1 ] >= 89) formattedBounds[ 0 ][ 0 ] = 89
86+
if (formattedBounds[ 1 ][ 1 ] >= 89) formattedBounds[ 1 ][ 1 ] = 89
8787

8888
if(mapRef.current !== null){
8989
const mapHeight = mapRef.current?.scrollHeight

terracotta/client/static/react/asset-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
3-
"main.js": "/static/react/static/js/main.2c168de3.chunk.js",
4-
"main.js.map": "/static/react/static/js/main.2c168de3.chunk.js.map",
3+
"main.js": "/static/react/static/js/main.9ed63b1f.chunk.js",
4+
"main.js.map": "/static/react/static/js/main.9ed63b1f.chunk.js.map",
55
"runtime-main.js": "/static/react/static/js/runtime-main.b2f07bb0.js",
66
"runtime-main.js.map": "/static/react/static/js/runtime-main.b2f07bb0.js.map",
77
"static/css/2.19072978.chunk.css": "/static/react/static/css/2.19072978.chunk.css",
@@ -16,6 +16,6 @@
1616
"static/js/runtime-main.b2f07bb0.js",
1717
"static/css/2.19072978.chunk.css",
1818
"static/js/2.83c1f4db.chunk.js",
19-
"static/js/main.2c168de3.chunk.js"
19+
"static/js/main.9ed63b1f.chunk.js"
2020
]
2121
}

terracotta/client/static/react/static/js/main.2c168de3.chunk.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

terracotta/client/static/react/static/js/main.2c168de3.chunk.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

terracotta/client/static/react/static/js/main.9ed63b1f.chunk.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terracotta/client/static/react/static/js/main.9ed63b1f.chunk.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/react/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/static/react/logo192.png"/><link rel="manifest" href="/static/react/manifest.json"/><style>body{margin:0;padding:0}::-webkit-scrollbar{width:5px!important;height:5px!important}::-webkit-scrollbar-track{background:#f2f5f7}::-webkit-scrollbar-thumb{background:#cfdbe2}#hostname-id{display:none}</style><title>Terracotta Preview</title><link href="/static/react/static/css/2.19072978.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><p id="hostname-id">{{ hostname }}</p><script>!function(e){function t(t){for(var n,a,p=t[0],l=t[1],i=t[2],c=0,s=[];c<p.length;c++)a=p[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,i||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,p=1;p<r.length;p++){var l=r[p];0!==o[l]&&(n=!1)}n&&(u.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},o={1:0},u=[];function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/static/react/";var p=this.webpackJsonpapp=this.webpackJsonpapp||[],l=p.push.bind(p);p.push=t,p=p.slice();for(var i=0;i<p.length;i++)t(p[i]);var f=l;r()}([])</script><script src="/static/react/static/js/2.83c1f4db.chunk.js"></script><script src="/static/react/static/js/main.2c168de3.chunk.js"></script></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/react/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/static/react/logo192.png"/><link rel="manifest" href="/static/react/manifest.json"/><style>body{margin:0;padding:0}::-webkit-scrollbar{width:5px!important;height:5px!important}::-webkit-scrollbar-track{background:#f2f5f7}::-webkit-scrollbar-thumb{background:#cfdbe2}#hostname-id{display:none}</style><title>Terracotta Preview</title><link href="/static/react/static/css/2.19072978.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><p id="hostname-id">{{ hostname }}</p><script>!function(e){function t(t){for(var n,a,p=t[0],l=t[1],i=t[2],c=0,s=[];c<p.length;c++)a=p[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,i||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,p=1;p<r.length;p++){var l=r[p];0!==o[l]&&(n=!1)}n&&(u.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},o={1:0},u=[];function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/static/react/";var p=this.webpackJsonpapp=this.webpackJsonpapp||[],l=p.push.bind(p);p.push=t,p=p.slice();for(var i=0;i<p.length;i++)t(p[i]);var f=l;r()}([])</script><script src="/static/react/static/js/2.83c1f4db.chunk.js"></script><script src="/static/react/static/js/main.9ed63b1f.chunk.js"></script></body></html>

0 commit comments

Comments
 (0)