Skip to content

Commit 935cf1c

Browse files
committed
Fix: a regression from #208 where new colors wouldn't be set properly
Fix #214
1 parent 6601aac commit 935cf1c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.13.1
2+
3+
- Fix: an issue where new colors wouldn't be set properly ([#214](https://github.com/flekschas/regl-scatterplot/issues/214))
4+
15
## 1.13.0
26

37
- Feat: add support for two new lasso types: `'rectangle'` and `'brush'`. The lasso type can be changed via `lassoType`. Additionally, for the brush lasso, you can adjust the brush size via `lassoBrushSize`. The default lasso type is `'freeform'`. ([#186](https://github.com/flekschas/regl-scatterplot/issues/186))

src/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ export const isSameElements = (a, b) =>
323323
export const isSameRgbas = (a, b) =>
324324
Array.isArray(a) &&
325325
Array.isArray(b) &&
326+
a.length === b.length &&
326327
a.every(([r1, g1, b1, a1], i) => {
327328
const [r2, g2, b2, a2] = b[i];
328329
return r1 === r2 && g1 === g2 && b1 === b2 && a1 === a2;

0 commit comments

Comments
 (0)