ref #81 moved usage of coordinateprovider from canvas to viewer