import { TypeEditor } from "../../TypeEditor.js";
import { make_row_editor } from "../common/makeV3_editor.js";

export class Vector2Editor extends TypeEditor {

    build(parent, field) {
        const v2 = field.adapter.read(parent, field.name);

        return make_row_editor(['x', 'y'], v2);
    }
}
