When mergeDistance is set similar decorations (equal style & nearby frames) are merged together into an irregular shape. This makes it possible to draw nice exterior borders and rounded corners around decorations that span multiple runs. In a future release I hope to make this work for text and row decorations too.