commit 7dfcf83933019cd10bc6edcedb8b3ecf6150817e
parent 5b6e016f100c4af024df0340be57c6ac2c7f583b
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Fri, 4 Oct 2024 17:52:53 -0700
Use three.js instead of threejs-math
Just including the math module from three.js and it's the same
difference, except it gets updated and is from a more trustworthy
source.
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -2,7 +2,7 @@ prefix = /var/www/htdocs/www.spaceplanner.app
libs =\
github.com/svgdotjs/svg.js@3.2.4 \
github.com/svgdotjs/svg.panzoom.js@2.1.2 \
- github.com/ros2jsguy/threejs-math@9a7b4c81c58b200b11670fd597edadd5972c0ae5 \
+ github.com/mrdoob/three.js@r169 \
install:
rsync $$(./libnames ${libs} | sed 's/^/--exclude=lib\//') -va --del files/ ${prefix}
diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js
@@ -1,6 +1,6 @@
import { default as SVG } from "/lib/github.com/svgdotjs/svg.js/svg.js"
import * as backend from "./backend.js"
-import { Vector2 } from "/lib/github.com/ros2jsguy/threejs-math/math/Vector2.js"
+import { Vector2 } from "/lib/github.com/mrdoob/three.js/math/Vector2.js"
const selectEvent = new Event("select")
const unselectEvent = new Event("unselect")
diff --git a/files/floorplans/floorplan/geometry.js b/files/floorplans/floorplan/geometry.js
@@ -1,5 +1,5 @@
import { default as SVG } from "/lib/github.com/svgdotjs/svg.js/svg.js"
-import { Vector2 } from "/lib/github.com/ros2jsguy/threejs-math/math/Vector2.js"
+import { Vector2 } from "/lib/github.com/mrdoob/three.js/math/Vector2.js"
SVG.extend(SVG.Point, {
vec: function() {
diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js
@@ -3,7 +3,7 @@ import "/lib/github.com/svgdotjs/svg.panzoom.js/svg.panzoom.js"
import * as ui from "/lib/ui.js"
import * as etc from "/lib/etc.js"
import * as lib from "./editor.js" // Confusing, but I don't want to fix variable conflict
-import { Vector2 } from "/lib/github.com/ros2jsguy/threejs-math/math/Vector2.js"
+import { Vector2 } from "/lib/github.com/mrdoob/three.js/math/Vector2.js"
import "./geometry.js"
import * as backend from "./backend.js"
import * as api from "/lib/api.js"