Components / Protractor

Protractor

A band of ticks along an arc that sets an angle.

Example

The component itself, running in WebAssembly, beside its code in a playground. Try it.

Code

use ravenrs::prelude::*;

fn protractor() -> impl View {
    let angle = State::new(7.5_f32);
    Protractor::new(angle.binding()).label("Straighten")
}

Open in the playground, with every example →

Full API of Protractor →