diff --git a/typescript/packages/subsurface-viewer/src/components/Map.tsx b/typescript/packages/subsurface-viewer/src/components/Map.tsx index 254f87654..6f18780d1 100644 --- a/typescript/packages/subsurface-viewer/src/components/Map.tsx +++ b/typescript/packages/subsurface-viewer/src/components/Map.tsx @@ -737,7 +737,7 @@ const Map: React.FC = ({ return (item as Layer).clone({ // Inject "dispatchBoundingBox" function into layer for it to report back its respective bounding box. // eslint-disable-next-line - // @ts-ignore + // @ts-ignore reportBoundingBox: dispatchBoundingBox, // Set "modelLayer" matrix to reflect correct z scaling. modelMatrix: m, @@ -1060,20 +1060,6 @@ class ViewController { const newViews = this.getDeckGlViews(views, fullState); const newViewState = this.getDeckGlViewState(views, fullState); - if ( - this.result_.views !== newViews || - this.result_.viewState !== newViewState - ) { - const viewsMsg = this.result_.views !== newViews ? " views" : ""; - const stateMsg = - this.result_.viewState !== newViewState ? " state" : ""; - const linkMsg = viewsMsg && stateMsg ? " and" : ""; - - console.log( - `ViewController returns new${viewsMsg}${linkMsg}${stateMsg}` - ); - } - this.state_ = fullState; this.views_ = views; this.result_.views = newViews; @@ -1489,7 +1475,7 @@ function buildDeckGlViews(views: ViewsType | undefined, size: Size): View[] { const singleView = nX === 1 && nY === 1; if (singleView) { // Using 99.5% of viewport to avoid flickering of deckgl canvas - return [newView(views.viewports[0], 0, 0, "95%", "95%")]; + return [newView(views.viewports[0], 0, 0, "99.5%", "99.5%")]; } // compute for matrix