File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ function scheduleLocationUpdate(cesiumViewer: any): void {
288288 const { widthKm, heightKm } = getScaleDimensions ( extent ) ;
289289
290290 // Update the model's context with the current map location and screenshot.
291- const text =
291+ const text =
292292 `The map view of ${ app . getHostContext ( ) ?. toolInfo ?. id } is now ${ widthKm . toFixed ( 1 ) } km wide × ${ heightKm . toFixed ( 1 ) } km tall, ` +
293293 `centered on lat. / long. [${ center . lat . toFixed ( 4 ) } , ${ center . lon . toFixed ( 4 ) } ]` ;
294294
@@ -300,7 +300,11 @@ function scheduleLocationUpdate(cesiumViewer: any): void {
300300 try {
301301 // Scale down to reduce token usage (tokens depend on dimensions)
302302 const sourceCanvas = cesiumViewer . canvas ;
303- const scale = Math . min ( 1 , MAX_MODEL_CONTEXT_UPDATE_IMAGE_DIMENSION / Math . max ( sourceCanvas . width , sourceCanvas . height ) ) ;
303+ const scale = Math . min (
304+ 1 ,
305+ MAX_MODEL_CONTEXT_UPDATE_IMAGE_DIMENSION /
306+ Math . max ( sourceCanvas . width , sourceCanvas . height ) ,
307+ ) ;
304308 const targetWidth = Math . round ( sourceCanvas . width * scale ) ;
305309 const targetHeight = Math . round ( sourceCanvas . height * scale ) ;
306310
You can’t perform that action at this time.
0 commit comments