Skip to content

Commit 622eb20

Browse files
committed
prettier
1 parent d6db0c4 commit 622eb20

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/map-server/src/mcp-app.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)