Smoothing lines using Chaikins algorithm
This example uses the npm package chaikin-smooth which implements Chaikins algorithm to smooth drawn lines. Start by drawing on the map. Once you finish a drawing, the feature's geometry will be smoothed as configured via the form elements.
https://openlayers.org/en/latest/examples/chaikin.html