Skip to content

Commit 538301e

Browse files
Replace three.js Color by a hard-coded solution in graphics3d.js
1 parent 8ca1a97 commit 538301e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/graphics3d.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
BufferAttribute,
33
BufferGeometry,
4-
Color,
54
LineSegments,
65
PerspectiveCamera,
76
Scene,
@@ -223,7 +222,7 @@ export default function (
223222
let color = 'black';
224223

225224
if (i < axes.ticks_style?.length) {
226-
color = new Color(...axes.ticks_style[i]).getStyle();
225+
color = `rgb(${axes.ticks_style[i][0] * 255}, ${axes.ticks_style[i][1] * 255}, ${axes.ticks_style[i][2] * 255})`;
227226
}
228227

229228
tickNumbers[i][j] = document.createElement('div');

0 commit comments

Comments
 (0)