MCPcopy Create free account
hub / github.com/MigoXLab/coderio / toRect

Function toRect

src/tools/position-tool/utils/aggregate-elements.ts:18–20  ·  view source on GitHub ↗
(rectLike: { x: number; y: number; width: number; height: number })

Source from the content-addressed store, hash-verified

16 * Converts a rect-like object to a proper Rectangle type.
17 */
18export function toRect(rectLike: { x: number; y: number; width: number; height: number }): Rectangle {
19 return { x: rectLike.x, y: rectLike.y, width: rectLike.width, height: rectLike.height };
20}
21
22/**
23 * Aggregate bounding box result.

Callers 1

aggregateElementsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected