Skip to main content

toSurfaceFrame

[
  {
    "x_legacy": -53,
    "y_legacy": 285,
    "team": "LAL",
    "player": "LeBron James",
    "surface_x": -13.25,
    "surface_y": -5.3
  },
  {
    "x_legacy": -136,
    "y_legacy": 214,
    "team": "DEN",
    "player": "Nikola Jokić",
    "surface_x": -20.35,
    "surface_y": -13.6
  }
]
import { toSurfaceFrame } from "@sportsdataverse/sporty";

toSurfaceFrame(
[
{ x_legacy: -53, y_legacy: 285, team: "LAL", player: "LeBron James" },
{ x_legacy: -136, y_legacy: 214, team: "DEN", player: "Nikola Jokić" },
],
{ from: "nba-legacy" },
);

Tags: docstring · toSurfaceFrame. All sporty examples.