coerceToCanvas

private fun Offset.coerceToCanvas(canvasSize: IntSize): Offset(source)