Components / NinePointAnchor

NinePointAnchor

Three by three grid for a point of reference, moved by the arrow keys.

Example

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

Code

use ravenrs::prelude::*;

fn nine_point_anchor() -> impl View {
    let point = State::new(AnchorPoint::Center);
    NinePointAnchor::new(point.binding()).cell_size(12.0)
}

Open in the playground, with every example →

Full API of NinePointAnchor →