Skip to content

Commit

Permalink
Change color of vessel on path
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasGLund99 committed Nov 7, 2024
1 parent c8c2e4e commit 4d544ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/pathOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function pathToGraphic(path: ILocation[]): IGraphicOptions {
})
graphic.clear()

graphic.lineStyle(1 / scale, 0x5858ff, 1)
graphic.lineStyle(1 / scale, 0x005cc8, 1)
graphic.moveTo(projectedCords[0].x, projectedCords[0].y)
for (let i = 1; i < projectedCords.length; i++) {
graphic.lineTo(projectedCords[i].x, projectedCords[i].y)
Expand All @@ -97,7 +97,7 @@ function vesselToGraphic(
const sprite: PIXI.Sprite = new PIXI.Sprite(location.heading ? arrowTexture : circleTexture)
sprite.anchor.set(0.5, 0.5)
sprite.rotation = Math.PI / 2 + (location.heading ? (location.heading * Math.PI) / 180 : 0)
sprite.tint = 0x5858ff
sprite.tint = 0x005cc8
sprite.x = projectedCords.x
sprite.y = projectedCords.y
sprite.width = 20 / scale
Expand Down
2 changes: 1 addition & 1 deletion src/components/timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Timeline({ timestamps, onChange, timelineVal, setTimelin
? timestamps[timelineVal].toISOString().replace('T', ' ').replace('Z', '').slice(0, 19)
: 'unknown'}
</p>
<button onClick={closePath} className="ml-auto -mr-2">
<button title="Hide path" onClick={closePath} className="ml-auto -mr-2">
<CloseSVG />
</button>
</div>
Expand Down

0 comments on commit 4d544ca

Please sign in to comment.