feat: implement selection

This commit is contained in:
2024-03-13 14:30:30 +01:00
parent 9241700ada
commit 305341fdf0
16 changed files with 521 additions and 202 deletions

View File

@ -22,7 +22,7 @@
let mesh: Mesh;
function update(force = false) {
export const update = function (force = false) {
if (!force) {
const new_x = from.x + to.x;
const new_y = from.y + to.y;
@ -50,7 +50,7 @@
points = curve.getPoints(samples).map((p) => new Vector3(p.x, 0, p.y));
// mesh.setGeometry(points);
// mesh.needsUpdate = true;
}
};
update();
$: if (from || to) {