[bugfix] Fix TypeScript error in Rectangle subarray method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-08-16 09:37:20 +00:00
parent de0130da99
commit 8167021db2

View File

@@ -65,10 +65,8 @@ export class Rectangle extends Float64Array {
: new Rectangle(rect[0], rect[1], rect[2], rect[3])
}
override subarray(begin: number = 0, end?: number): Float64Array {
const byteOffset = begin << 3
const length = end === undefined ? end : end - begin
return new Float64Array(this.buffer, byteOffset, length)
override subarray(begin?: number, end?: number): Float64Array {
return super.subarray(begin, end)
}
/**