Fix linter warnings in Graphics.ts