Skip to content

Third NLnet Quarterly Update

Electron Electron

Our third NLnet update, introducing a guide tool, adjustable anchor points, and more extensibility enhancements.

Guide tool

Guide

A guide tool that allows creating guides on documents was introduced. Users can create a guide by dragging the horizontal or the vertical ruler on the canvas. They can also click on the ruler and then click on the canvas. Locking the guides disables all interactions with guides, and the hide toggle hides all guides. Initiating a guide creation automatically unlocks guides and makes them visible (you can read more here).

The guides can be snapped on existing elements on create. Snapping elements on guides will be handled on a subsequent enhancement, because the snapping module cannot handle snap on axis yet.

Adjustable anchor points

Pivot point

Introduced an adjustable pivot handle at the center of the element selection. Users can move the point and scale the selection holding shift down to scale using the anchor point. In the future, this will also be used to rotate on the custom anchor point. Custom pivot positions are preserved until the element selection changes. Holding x down while moving the anchor point should snap it to various selection points (you can read more here).

Extensibility enhancements

The following registries where introduced

  • Action registry #119
  • Action groups registry #120
  • Icon registry #117

You can take a look at the corresponding PRs for more info.

[CANCELED] Using a different library for boolean operations

The available options seem inferior to paper.js, and we also don't have a way to replace stroke->path, so we can't get rid of the dependency if we want to keep this functionality. Putting this on hold for now.

Comments