Fixing rotate and supporting clearFilledLines