extract out straightedge, part of #22966608799905