{"size": 602, "ext": "js", "max_stars_repo_path": "src/node/network-entities/parsers.js", "max_stars_repo_name": "meta-space-org/playnetwork", "max_stars_repo_stars_event_min_datetime": "2022-03-04T12:20:23.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T18:55:28.000Z", "max_issues_repo_path": "src/node/network-entities/parsers.js", "max_issues_repo_name": "meta-space-org/playcanvas-server-boilerplate", "max_issues_repo_issues_event_min_datetime": "2022-01-25T10:11:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-23T11:58:34.000Z", "max_forks_repo_path": "src/node/network-entities/parsers.js", "max_forks_repo_name": "meta-space-org/playnetwork", "max_forks_repo_forks_event_min_datetime": "2022-03-04T14:26:01.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-04T14:26:01.000Z"}
{"max_stars_count": 9, "max_issues_count": 19, "max_forks_count": 1, "avg_line_length": 50.1666666667, "max_line_length": 110, "alphanum_fraction": 0.5398671096}
import { roundTo } from '../libs/utils.js';

export default new Map([
    [pc.Vec2, (data) => ({ x: roundTo(data.x), y: roundTo(data.y) })],
    [pc.Vec3, (data) => ({ x: roundTo(data.x), y: roundTo(data.y), z: roundTo(data.z) })],
    [pc.Vec4, (data) => ({ x: roundTo(data.x), y: roundTo(data.y), z: roundTo(data.z), w: roundTo(data.w) })],
    [pc.Quat, (data) => ({ x: roundTo(data.x), y: roundTo(data.y), z: roundTo(data.z), w: roundTo(data.w) })],
    [pc.Color, (data) => ({ r: data.r, g: data.g, b: data.b, a: data.a })],
    [Map, (data) => Array.from(data)],
    [Object, (data) => data]
]);
