We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4672ed2 commit 7d792c5Copy full SHA for 7d792c5
1 file changed
src/plotArray.tsx
@@ -122,6 +122,23 @@ function PlotArray({
122
}
123
}, [resultArray]);
124
125
+ useEffect(() => {
126
+ if (canvasMain.current) {
127
+ crossXLine.color =
128
+ theme === "dark"
129
+ ? new ColorRGBA(0.1, 1, 0.1, 1)
130
+ : new ColorRGBA(0.05, 0.4, 0.05, 1);
131
+ crossYLine.color =
132
133
134
+ : new ColorRGBA(0.1, 0.5, 0.1, 1);
135
+ zoomRect.color =
136
137
+ ? new ColorRGBA(0.8, 0.8, 0.2, 0.25)
138
+ : new ColorRGBA(0.1, 0.1, 0.4, 0.25);
139
+ }
140
+ }, [theme]);
141
+
142
useEffect(() => {
143
if (canvasMain.current) {
144
const devicePixelRatio = window.devicePixelRatio || 1;
0 commit comments