complexpoly: ($: ComplexPolygon, fn) =>
                new ComplexPolygon(
                    transformVertices($.boundary, fn),
                    $.children.map((child) => transformVertices(child, fn)),
                    __copyAttribs($.attribs)