Skip to content

Re-usable Speed indicator Web Component refactored from flightSimPanels as Custom Element in Polymer

License

Notifications You must be signed in to change notification settings

hb9cwp/flightpanel-speed

Repository files navigation

#flightpanel-speed Build Status

Re-usable Speed indicator Custom Element refactored from flightSimPanels using Polymer library with Web Component.

<flightpanel-speed id="si2speed" width=200 height=200 speed=25></flightpanel-speed>

Speed Indicator 200 x 200 px

The Speed indicator is scaled to the top speed 49 kts of SolarImpulse2. Its native resolution and default width & height are 300 px.

The Custom Element accepts attributes width, height (in px), and speed (in kts). It watches speed, and adjusts the hand as it changes. See example in index.html .

This Custom Element is derived from Polymer's seed-element according to "Create a reusable element: Publish reusable Polymer elements on GitHub" https://www.polymer-project.org/1.0/docs/start/reusableelements.html .

About

Re-usable Speed indicator Web Component refactored from flightSimPanels as Custom Element in Polymer

Resources

License

Stars

Watchers

Forks

Packages

No packages published