Skip to main content
100%

Gist ffc41d0e0de68f09f053d577f0e3e76a

✓ Published0🌍 Public
KKevinGutowski
Last edited Oct 6, 2019
Created on Oct 5, 2019

A floating HUD panel displays a minimap of the current document's artboards, implemented with QuartzCore's layering and NSPanel APIs. The code constructs a scaled map from `CAShapeLayer` objects for each artboard and a semi-transparent viewport rectangle representing the visible canvas area. The map's position and scaling are computed from the document's scroll origin and zoom value, then fitted to the panel using `CATransform3DMakeScale` and custom frame-calculation functions.

AI-generated description

Similar vizzes