diff --git a/mjx/visualizer/svg.py b/mjx/visualizer/svg.py index 5fb7827db..72f6d703e 100644 --- a/mjx/visualizer/svg.py +++ b/mjx/visualizer/svg.py @@ -843,7 +843,7 @@ def _make_svg( return dwg -def svg_from_json(json_data: str, target_idx: Optional[int] = None) -> str: +def to_svg(json_data: str, target_idx: Optional[int] = None) -> str: proto_data = MahjongTable.json_to_proto(json_data=json_data) dwg = _make_svg(proto_data, ".svg", target_idx) return '\n' + dwg.tostring()