MCPcopy
hub / github.com/antvis/Infographic / viewBoxToString

Function viewBoxToString

src/utils/viewbox.ts:28–35  ·  view source on GitHub ↗
(box: {
  x: number;
  y: number;
  width: number;
  height: number;
})

Source from the content-addressed store, hash-verified

26}
27
28export function viewBoxToString(box: {
29 x: number;
30 y: number;
31 width: number;
32 height: number;
33}): string {
34 return `${box.x} ${box.y} ${box.width} ${box.height}`;
35}

Callers 4

ZoomWheelClass · 0.90
DragCanvasClass · 0.90
updateOriginViewBoxMethod · 0.90
viewbox.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected