Skip to content

Commit

Permalink
Merge pull request #614 from HSF/fix-hit-color
Browse files Browse the repository at this point in the history
fix #591 - color should be int not string
  • Loading branch information
EdwardMoyse authored Aug 25, 2023
2 parents cfbcd20 + 1529299 commit d387e2a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,11 @@ export class PhoenixObjects {
geometry.setAttribute('position', new BufferAttribute(pointPos, 3));
geometry.computeBoundingSphere();
// material
const color = hitsParams[0].color ?? EVENT_DATA_TYPE_COLORS.Hits;
console.log('color', color);
const material = new PointsMaterial({
size: 10,
color: hitsParams[0].color ?? EVENT_DATA_TYPE_COLORS.Hits,
color: parseInt(hitsParams[0].color) ?? EVENT_DATA_TYPE_COLORS.Hits,
});
// object
const pointsObj = new Points(geometry, material);
Expand Down

0 comments on commit d387e2a

Please sign in to comment.