An exhaustive review of design tool hover areas
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
An exhaustive review of design tool hover areas
This weekend, while working on a re-design of tldraw’s overlays, I found myself reviewing the geometries that we use for our selection box. When a user has one or more shapes selected, we display an interactive overlay that allows the user to transform their selection: a drag inside the box will translate the selection; a drag on the edges will resize along that axis; a drag from the corner will resize along both axes; and a drag from further out on the corners will rotate the selection.
这个周末,在重新设计 tldraw 的覆盖层时,我回顾了我们用于选择框的几何形状。当用户选中一个或多个形状时,我们会显示一个交互式覆盖层,允许用户变换其选择:在框内拖动可以平移所选内容;在边缘拖动可以沿该轴调整大小;从角落拖动可以沿两个轴调整大小;从角落更靠外的位置拖动则可以旋转所选内容。
Like many features in tldraw, my design here was meant to follow the conventions of design tools. This meant a broad survey of other applications, both new and old, reconciling differences between them, and picking a design that I felt best served the user while remaining conventional.
像 tldraw 中的许多功能一样,我在这里的设计旨在遵循设计工具的惯例。这意味着需要对新旧应用程序进行广泛的调查,调和它们之间的差异,并选择一个我认为既能服务好用户又保持常规的设计。
With the selection box, I remember being surprised by how much variation I found between tools. Some apps let me resize from edges, some didn’t. The rotation corners were less common than I thought, perhaps because they’re less discoverable than a rotation handle. Even the interactions, like flipping from a right edge side across the left edge, were only variously supported or weirdly divergent.
关于选择框,我记得自己对不同工具之间的差异之大感到惊讶。有些应用允许我从边缘调整大小,有些则不行。旋转角落比我想象的要少见,也许是因为它们不如旋转手柄容易被发现。即使是交互方式,例如从右边缘翻转到左边缘,也只有部分支持或存在奇怪的分歧。
One of the most interesting questions was: where are the different hover areas? If a user could drag both the edges and the corners, how did those two hit areas fit together? Where was the rotation area? Every app I tried seemed to do things in a slightly different way. Working on my design in 2021, I struggled to find the patterns. Because there was no way to see the hit areas, my investigations were limited to moving my mouse around very carefully and seeing where the cursor changed.
最有趣的问题之一是:不同的悬停区域在哪里?如果用户既可以拖动边缘也可以拖动角落,这两个点击区域是如何组合在一起的?旋转区域在哪里?我尝试的每个应用程序似乎都以略有不同的方式处理这些问题。在 2021 年进行设计时,我很难找到规律。由于无法看到点击区域,我的调查仅限于非常小心地移动鼠标,观察光标在何处发生变化。
Coming back to the issue five years later, I decided to find out for sure. To do this, I fired up Claude Code and put together a Hammerspoon script that would move my mouse in a 50x50 grid, keep track of what the cursor was at every position, and then generate a PNG of the result.
五年后回到这个问题,我决定一探究竟。为此,我启动了 Claude Code 并编写了一个 Hammerspoon 脚本,让鼠标在 50x50 的网格中移动,记录每个位置的光标状态,然后生成结果的 PNG 图片。
And here are the results:
以下是结果:
tldraw: As a baseline of correctness and perfection, here are tldraw’s own hit areas looks. The resize corner area is a square slightly offset from the box geometry’s corner, with an area slightly bigger than the edges. The rotate area is also a square with its inside corner at the geometry corner.
tldraw:作为正确性和完美性的基准,这是 tldraw 自身的点击区域外观。调整大小的角落区域是一个从框几何形状角落稍微偏移的正方形,其面积比边缘略大。旋转区域也是一个正方形,其内角位于几何形状的角落处。
Figma: In Figma, the edges are bigger, the rotate area a circle that shares the outer edges with the edge hit areas, but is smaller than the edges. The rotate area is an arc segment that wraps around the corner. The yellow area is the corner radius control.
Figma:在 Figma 中,边缘更大,旋转区域是一个与边缘点击区域共享外边缘但比边缘小的圆。旋转区域是一个环绕角落的弧段。黄色区域是圆角半径控制。
Sketch: Sketch uses a similar wrapping corner radius, though it is a square centered on the corner control. Its edges are smaller, with a slightly larger corner area, similar to tldraw’s.
Sketch:Sketch 使用类似的环绕圆角半径,尽管它是一个以角落控制为中心的方形。它的边缘较小,角落区域稍大,与 tldraw 类似。
Paper: Paper’s results were unusual: it looks like the app uses a square rotation handle, pinned to the inside corner of its edges, with a “teardrop” shaped resize handle formed of a circle and square.
Paper:Paper 的结果很不寻常:看起来该应用使用了一个方形旋转手柄,固定在其边缘的内角上,并配有一个由圆形和正方形组成的“泪滴”形状的调整大小手柄。
Framer: Framer sadly must lose a point due to its right edge overlapping slightly the top edge. The corner resize area is a circle centered on the corner of the shape geometry with the same radius as the edges, and a healthy rotate area aligned to the inside of the edges.
Framer:遗憾的是,由于其右边缘与顶边缘略有重叠,Framer 必须扣分。角落调整大小区域是一个以形状几何中心为圆心、半径与边缘相同的圆,并且有一个与边缘内侧对齐的充足旋转区域。
Excalidraw: A beacon of rationality, Excalidraw uses the same size used for edges and corner. No rotation handle here, as the app uses a rotation knob instead. The yellow area here shows a resize cursor. Most applications surveyed here don’t show this until the user starts a click, or long press in tldraw’s case.
Excalidraw:作为理性的灯塔,Excalidraw 在边缘和角落使用了相同的大小。这里没有旋转手柄,因为该应用改用了旋转旋钮。此处的黄色区域显示了调整大小的光标。此处调查的大多数应用程序在用户开始点击(或在 tldraw 的情况下长按)之前不会显示此内容。
Pencil: A new entrant to the design tools space, Pencil also uses the same size for both its corner and edge areas, with an offset square rotation area centered on the geometry corner and clipped from the internal space of the geometry. Similar to Sketch but without the slightly more narrow edges.
Pencil:作为设计工具领域的新成员,Pencil 在角落和边缘区域也使用了相同的大小,并带有一个以几何角落为中心、从几何内部空间裁剪出来的偏移方形旋转区域。与 Sketch 类似,但没有稍微窄一点的边缘。
Mural: Similar to Excalidraw, Mural also uses the same size for both its corner and edge areas, though with more generous spacing overall, and a healthy offset for its rotation area.
Mural:与 Excalidraw 类似,Mural 在角落和边缘区域也使用了相同的大小,尽管整体间距更宽裕,并且其旋转区域有充足的偏移。
Canva: Canva also uses the same size for its corner and edge areas, though Canva’s outside corner is rounded off. Fantastic! It uses a separate knob for rotation, so no area for rotation here.
Canva:Canva 在角落和边缘区域也使用了相同的大小,尽管 Canva 的外角是圆形的。太棒了!它使用单独的旋钮进行旋转,因此这里没有旋转区域。
Miro: Miro’s hover areas are in a poor state, with a corner area smaller than its edges as well as edges that overlap. It also uses a rotation knob so no rotation area here either.
Miro:Miro 的悬停区域状况不佳,角落区域比边缘小,且边缘存在重叠。它也使用旋转旋钮,因此这里也没有旋转区域。
Spline (3D): Spline is an interesting case because it actually appears twice on this list. These are the areas for its 3D app’s corner and edge areas. Rotation is handled with a widget. The app gets extra credit because it handles edge and corner resizing in three dimensions quite reliably.
Spline (3D):Spline 是一个有趣的案例,因为它实际上在这个列表中出现了两次。这些是其 3D 应用的角落和边缘区域。旋转通过小部件处理。该应用获得了额外加分,因为它在三个维度上处理边缘和角落调整大小非常可靠。
Spline (2D / Hana): Spline’s other editor is their 2D application, Hana, that has my personal favorite in niche designs for hover areas. Its edges are tapered! Its corner is a circle, centered on the corner of the selection geometry, with a second circle for rotation aligned to the inside of the corner. How strange!
Spline (2D / Hana):Spline 的另一个编辑器是他们的 2D 应用程序 Hana,它拥有我个人最喜欢的利基悬停区域设计。它的边缘是锥形的!它的角落是一个圆,以选择几何形状的角落为中心,第二个用于旋转的圆与角落内侧对齐。真奇怪!
Draw.io: With no edges, Draw.io’s only claim to fame on this list is that its rotation area is placed in front of its corner resize area.
Draw.io:由于没有边缘,Draw.io 在此列表中唯一的亮点是其旋转区域放置在其角落调整大小区域的前面。
Adobe Illustrator: This unusual result from Adobe Illustrator is quite interesting. Illustrator has separate interaction controls for its edges, which do not include a change in cursor, and which take precedence over the corner resize and rotate controls. These are centered on the outside of the selection geometry.
Adobe Illustrator:Adobe Illustrator 的这个不寻常结果非常有趣。Illustrator 为其边缘提供了单独的交互控制,这些控制不包括光标的变化,并且优先于角落调整大小和旋转控制。这些控制位于选择几何形状的外部中心。
MSPaint: Well, at least JSPaint. What is lost from edge resizing is made up for by a big honking corner resize.
MSPaint:好吧,至少是 JSPaint。边缘调整大小功能的缺失,通过一个巨大的角落调整大小功能得到了弥补。
Rive: Finally, the most unusual of the group belongs to Rive, an animation tool whose selection box features large edges, a very large corner rotation, and a bizarre arc for rotation that to my practiced eyes appears to be rotated by degrees, rather than radians, or perhaps a misplaced decimal. -4.5° rather than -45°?
Rive:最后,最不寻常的一个属于 Rive,这是一款动画工具,其选择框具有大边缘、非常大的角落旋转,以及一个奇怪的旋转弧线。在我看来,它似乎是按度数而不是弧度旋转的,或者可能是一个小数点放错了位置。是 -4.5° 而不是 -45°?
Conclusion: What a lovely collection of hover areas, and so diverse as well. Upon reflection, maybe I shouldn’t have been so surprised: every time I’ve done these deep explorations of application features…
结论:多么可爱的悬停区域集合,而且如此多样化。回想起来,也许我不应该感到如此惊讶:每次我进行这些对应用程序功能的深入探索时……