How to add a segmentation point to a polyline like a link

I want to achieve the effect of the following pictures on the polyline. Who can tell me how to do it? If you can give me an example, I would be grateful.

See the PolygonDrawingTool sample. You should be able to modify that sample such that it can add new points to the polylines.

You can customize the GeometryReshapingTool with extra handles that behave differently.

thank you for your reply, I’ll try