Live data from Hacker News

Show HN: Flight Instruments in Snap SVG and JavaScript

fl7b8.csb.app

31–38 of 38 posts

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#33
post #17

Earlier quoted context omitted.

Too bad, was only a thin wrapper at best though. Maybe time for a new open source SVG library.

d3 would be the obvious choice to me. I have only taken a cursory look at your code but strikes me that it could be fairly straight forward to rewrite it using d3.

d3 is just a low-level combination of HTML, CSS, JS and SVG. It's seldom obvious how anything is easy to do "using d3," unless manipulating a table of data.

Essentially, if you're a raw d3 programmer, you're a front-end web engineer.

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#34
post #29
post #20

Earlier quoted context omitted.

* the plane crashes because there was an undiscovered bug in an important library whose sole maintainer is currently in a penal colony.

Oddly specific

If you are out-of-the-loop, it’s a reference to this:

https://www.theregister.co.uk/2020/03/26/corejs_maintainer_j...

Associated HN thread:

https://news.ycombinator.com/item?id=22681860

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#35

Hey, they look great & realistic! Possible issue with the Altimeter. I'm not sure if this was meant as an accurate simulation, or just a technical demonstration of what is possible with the component, but I've noticed that the Altimeter pressure setting (small window) is changing on its own as the altitude hand sweeps around. That never happens, the altimeter setting is a fixed setting set by the pilot used to calibr…

Looks like the site is demoing the altimeter reading changing as the setting is changed. Note the altitude is changing properly with respect to altimeter setting.

Correct! If you play with the source on codesandbox you can disable the demo mode and actually rotate the Kollsman window using the BARO button. The calculations for pressure and resulting altitude are from standard physics texts.

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#37
post #17

Earlier quoted context omitted.

d3 would be the obvious choice to me. I have only taken a cursory look at your code but strikes me that it could be fairly straight forward to rewrite it using d3.

d3 is just a low-level combination of HTML, CSS, JS and SVG. It's seldom obvious how anything is easy to do "using d3," unless manipulating a table of data. Essentially, if you're a raw d3 programmer, you're a front-end web engineer.

[deleted]

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#38
post #17

Earlier quoted context omitted.

d3 would be the obvious choice to me. I have only taken a cursory look at your code but strikes me that it could be fairly straight forward to rewrite it using d3.

d3 is just a low-level combination of HTML, CSS, JS and SVG. It's seldom obvious how anything is easy to do "using d3," unless manipulating a table of data. Essentially, if you're a raw d3 programmer, you're a front-end web engineer.

https://medium.com/@Elijah_Meeks/d3-is-not-a-data-visualizat...
Post reply on HN