interface RulerProps<MS extends RulerMeasurementSystem> {
    measurementSystem?: MS;
    onActivate?: () => void;
    onDeactivate?: () => void;
    onMeasure?: (e: RulerMeasureEvent<MS>) => void;
    onMeasurePartial?: (e: RulerMeasureEvent<MS>) => void;
}

Type Parameters

Properties

measurementSystem?: MS

Defines which units be used in measure events

onActivate?: () => void

Control is activated

onDeactivate?: () => void

Control is deactivated

onMeasure?: (e: RulerMeasureEvent<MS>) => void

Measure is complete, no new points can be added to the path

onMeasurePartial?: (e: RulerMeasureEvent<MS>) => void

New point is added to the path