Remove minimap throttling (#3438)

Our throttling isn't right for the minimap. Yanking this back.

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `bugfix` — Bug fix
pull/3444/head
Steve Ruiz 2024-04-10 15:12:08 +01:00 zatwierdzone przez GitHub
rodzic 2cc8f44f83
commit b3a1db90ec
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -6,7 +6,6 @@ import {
TLShapeId,
Vec,
clamp,
throttle,
uniqueId,
} from '@tldraw/editor'
@ -182,7 +181,7 @@ export class MinimapManager {
}
}
render = throttle(() => {
render = () => {
const { cvs, pageBounds } = this
this.updateCanvasPageBounds()
@ -339,7 +338,7 @@ export class MinimapManager {
ctx.strokeRect(minX + 1 / sx, minY + 1 / sy, width - 2 / sx, height - 2 / sy)
}
}
}, 32)
}
static roundedRect(
ctx: CanvasRenderingContext2D | Path2D,