Week 4

Khushal AgrawalKhushal Agrawal
2 min read

Introduction

I am Khushal Agrawal (skippr), a Google Summer Of Code contributor and developer at Inkscape. This blog summarises my progress during the forth week of Google Summer Of Code 2024.

This week's activity

This week was spent mostly on working on the remaining features of PenTool. The major feature implemented was feature 4. For this feature I had to make changes to my previous MR's also mainly, using a vector of SPDrawAnchor* instead of a vector of CanvasItemPtr<CanvasItemCtrl>> this allows me to use an inbuilt function anchorTest that checks wether an anchor is active or not. The above feature was also discussed with Adam in a meet and he approved it's working so I have submitted a MR already. This feature adds a new mode to the tool : PenTool::BREAK when the cursor hovers over the end anchor.

Also upon reading the code base, I discovered that the SPACE key was being used by ToolBase and FreehandBase classes to pan around the screen, and these functions overwrote all functions of children classes, resulting in the fact that SPACE key could not be used in shortcuts. This was also the reason why sometimes the changes made to node tool were buggy.

Next week's plan

Next week I plan to have a meet with Adam and discuss what should be the new keybindings for the newly added Node Tool features. I will implement these changes in the coming week. I will also get my MR for changes in the Pen Tool approved by developers for code quality and hopefully make it ready to be merged.

Apart from these features, I plan to work on the most difficult to implement feature so far i.e. feature 2 of Pen Tool, this could take a few weeks. Along with this I also want to work on the MR, I talked about last week.

0
Subscribe to my newsletter

Read articles from Khushal Agrawal directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Khushal Agrawal
Khushal Agrawal