That is indeed the case, unfortunately.
I would use a shape and a scatter trace in tandem. First draw a shape as you would normally, then add a scatter trace with x/y coordinates along the shape. To not obstruct the shape, you can try setting marker.opacity: 0
.