{"id":25869936,"url":"https://github.com/finnbear/yew_flight_indicators","last_synced_at":"2025-03-02T05:29:16.735Z","repository":{"id":268521633,"uuid":"904583654","full_name":"finnbear/yew_flight_indicators","owner":"finnbear","description":"Flight indicators for Yew","archived":false,"fork":false,"pushed_at":"2024-12-31T20:36:54.000Z","size":621,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T23:02:20.689Z","etag":null,"topics":["flight-simulator","yew","yew-framework"],"latest_commit_sha":null,"homepage":"https://finnbear.github.io/yew_flight_indicators/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/finnbear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-17T07:09:12.000Z","updated_at":"2024-12-31T20:31:11.000Z","dependencies_parsed_at":"2024-12-17T09:40:50.249Z","dependency_job_id":"ca7fd2cf-9ad5-4d27-a3b3-3930d99b765c","html_url":"https://github.com/finnbear/yew_flight_indicators","commit_stats":null,"previous_names":["finnbear/yew_flight_indicators"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnbear%2Fyew_flight_indicators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnbear%2Fyew_flight_indicators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnbear%2Fyew_flight_indicators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnbear%2Fyew_flight_indicators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finnbear","download_url":"https://codeload.github.com/finnbear/yew_flight_indicators/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241464994,"owners_count":19967237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flight-simulator","yew","yew-framework"],"created_at":"2025-03-02T05:29:16.245Z","updated_at":"2025-03-02T05:29:16.728Z","avatar_url":"https://github.com/finnbear.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yew_flight_indicators\n\n[![Documentation](https://docs.rs/yew_confetti/badge.svg)](https://docs.rs/yew_flight_indicators)\n[![crates.io](https://img.shields.io/crates/v/yew_flight_indicators.svg)](https://crates.io/crates/yew_flight_indicators)\n[![Build](https://github.com/finnbear/yew_flight_indicators/actions/workflows/build.yml/badge.svg)](https://github.com/finnbear/yew_flight_indicators/actions/workflows/build.yml) \n[![Test Page](https://img.shields.io/badge/Test-page-green)](https://finnbear.github.io/yew_flight_indicators/)\n\nLike [jQuery Flight Indicators](https://github.com/sebmatton/jQuery-Flight-Indicators) and [react-flight-indicators](https://github.com/skyhop/react-flight-indicators) but for Yew.\n\n![example](/example.png)\n\n## Usage\n\n```rust\nuse yew_flight_indicators::component::*;\n\nyew::html!{\n    \u003cdiv\n        style=\"display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; width: min-content;\"\n    \u003e\n        \u003cAirspeedIndicator\n            airspeed={80.0} // Knots.\n            stall_airspeed={70.0} // Knots; optional.\n            caution_airspeed={130.0} // Knots; optional.\n            never_exceed_airspeed={150.0} // Knots; optional.\n            max_airspeed={160.0} // Knots; optional.\n        /\u003e\n        \u003cAltimeter\n            altitude={50.0} // Feet.\n            pressure={29.92} // inHg; optional.\n        /\u003e\n        \u003cAttitudeIndicator\n            pitch={50.0} // Degrees.\n            roll={30.0} // Degrees.\n        /\u003e\n        \u003cTurnCoordinator\n            turn={30.0} // Degrees.\n            slip={20.0} // Degrees; optional.\n        /\u003e\n        \u003cHeadingIndicator\n            heading={200.0} // Degrees.\n            autopilot_heading={160.0} // Degrees; optional.\n        /\u003e\n        \u003cVariometer\n            vertical_speed={500.0} // Feet per minute.\n        /\u003e\n    \u003c/div\u003e\n}\n```\n\n## Acknowledgement\n\nDanny Edwards created the original [attitude-indicator](https://gitlab.com/DannyEdwards/attitude-indicator) in HTML.\n\nSébastien Matton added SVG's and adapted it into a [jQuery plugin](https://github.com/sebmatton/jQuery-Flight-Indicators), as part of his master's for showing realtime flight information from a quadcopter.\n\nCorstian Boerman adapted the project by Sébastien into a [React library](https://github.com/skyhop/react-flight-indicators).\n\nFinn Bear has adapted the project by Corstian into a Yew library. As of version 0.2, the\nSVG's and code were re-drawn, re-written, and distributed under a new license.\n\n## License\n\nCode and SVG's licensed under either of:\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\nAdditionally, SVG's can be licensed under the CC BY 4.0 License ([CC BY 4.0](src/svg_src/LICENSE-CC-BY) or https://creativecommons.org/licenses/by/4.0/legalcode.en) at your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual or triple licensed as above, without any additional terms or conditions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinnbear%2Fyew_flight_indicators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinnbear%2Fyew_flight_indicators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinnbear%2Fyew_flight_indicators/lists"}