mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
[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:
@@ -65,10 +65,8 @@ export class Rectangle extends Float64Array {
|
|||||||
: new Rectangle(rect[0], rect[1], rect[2], rect[3])
|
: new Rectangle(rect[0], rect[1], rect[2], rect[3])
|
||||||
}
|
}
|
||||||
|
|
||||||
override subarray(begin: number = 0, end?: number): Float64Array {
|
override subarray(begin?: number, end?: number): Float64Array {
|
||||||
const byteOffset = begin << 3
|
return super.subarray(begin, end)
|
||||||
const length = end === undefined ? end : end - begin
|
|
||||||
return new Float64Array(this.buffer, byteOffset, length)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user