From 37102627d8f9dc9dd3e052b090d8b7d4c8d1697a Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Mon, 20 Jan 2025 10:24:57 -0500 Subject: [PATCH] feat(ScatterPlot): force axes to show in 2D mode --- vue-components/src/components/ScatterPlot.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vue-components/src/components/ScatterPlot.vue b/vue-components/src/components/ScatterPlot.vue index 0e73f70..678a15a 100644 --- a/vue-components/src/components/ScatterPlot.vue +++ b/vue-components/src/components/ScatterPlot.vue @@ -125,6 +125,9 @@ onMounted(() => { scatterPlot = new ScatterGL(plotContainer.value, { rotateOnStart: false, selectEnabled: true, + styles: { + axesVisible: true + }, pointColorer(i) { const id = indexToId(i) const isTrans = isTransformed(i) @@ -165,6 +168,8 @@ onMounted(() => { } }) scatterPlotRef.value = scatterPlot + // @ts-expect-error: force axes in 2D mode + scatterPlot.scatterPlot.add3dAxes() const cameraControls = ((scatterPlot as any).scatterPlot as any).orbitCameraControls cameraControls.addEventListener('start', emitCameraPosition)