NY will use your full year of income to determine your tax rate. They will then apply that rate to the NY portion of your income. Only the NY-portion will be taxed by NY.
**Answers are correct to the best of my ability but do not constitute tax or legal advice.