leaflet 鼠标移动到图层时变_【Sketch最新文档】2.3-Moving Layers(移动图层)

d50924d8c3fe9482196288fb632e0a62.png

Moving Layers
移动图层
You can move a selected layer by grabbing and moving it around with the pointer. To restrict movement to a particular axis, hold down the Shift key as you drag.
你可以通过使用鼠标指针拖拽选中的图层进行移动。并且按住Shift键,限制其在特定的坐标轴上移动。


As you move (or resize) your layer, Sketch should automatically align your layers to adjacent layers. If this doesn’t happen, you might have accidentally hidden smart guides. To enable them, choose View › Canvas › Show Smart Guides in the menu.
当你移动(调整)图层时,Sketch会自动将你操作的图层与临近的图层进行智能对齐。如果没有出现智能参考线,可能是你意外隐藏了。你可以开启它们,请在菜单中选择“视图(View)>画布(Canvas)>显示智能对齐参考线(Show Smart Guides)”。


If you hold down the Option key while dragging, you will clone the layer, leaving the original layer in its place. If you then immediately press Command-D (duplicate), Sketch will insert another duplicated layer at exactly the same offset as your first duplicate.
当你移动图层的同时按住Option键,你会在原有图层的基础上进行复制改图层并移动。如果你立即点击Command+D(复制:duplicate)键,Sketch会以你第一个复制图层完全相同的偏移量插入另一个复制图层。

You can also drag-and-drop layers to the Pages panel to quickly move objects between different pages.
你还可以拖拽图层在页面列表中的不同页面之间快速移动。

Moving an Obscured Layer
移动被覆盖的图层

Another complication of overlapping layers is moving an obscured layer. Normally, when you click-and-drag a shape it will immediately be selected—if it wasn’t selected yet—and moved to its new location.
移动被遮挡的图层也是挺麻烦的一件事。通常,当你单击并拖动一个形状时它即被选中——除非没有被选中——并可以被移动到新的位置。

Very often this isa convenience, but it can be a hindrance as well if you’ve got a layer selected that is completely obscured by another layer. Clicking on the layer would instead select the layer on top and move that one.
但是如果你选择的图层被另一个图层完全遮盖,点击选择底部的目标图层时往往选中的是顶部图层。

To get around this, you can hold down the keys, Option-Command and then clicking-and-dragging will not change your selection. You can even click-and-drag somewhere completely different on the Canvas and Sketch will still preserve your selection:
要解决这个问题,你可以在点选目标图层后按住Option和Command键,然后点击并拖拽,这样一来你选中的图层就不会变为它上面的遮挡图层,并且可以将该选中图层移动到画布的任何位置:

5d3e41814acb64e7a48070ef04229fa6.gif


Aligning Layers
对齐图层
In addition to quickly moving selected layers, you can align and distribute them evenly by using the following buttons in the top-right corner of the Inspector:
除了快速移动被选中的图层外,你还可以选择检查器(Inspector)右上角的对齐和平均分布按钮:

a0d7f795cb45be1904781f0694b63a15.png


The first two are for distributing layers horizontally and vertically . You can also choose Arrange› Distribute Objects or use these shortcuts; Control-Command-V orControl-Command-H. If you want to distribute the layers with fixed spacing then you can use the Make Grid tool. These options also take the pixel fitting preference into account to help you to be as precise as possible.
前两个用于垂直和水平平均分布图层。你也可以在菜单中选择“排列(Arrange)>分布(Distribute)”或者使用快捷键:Control+Command+V和Control+Command+H。如果你想以固定间距分布图层,你可以使用“制作网格(Make Grid)”工具。这些选项还会考虑像素拟合帮助你尽可能精准。

The next six buttons (align left ,horizontally , right , top , vertically , and bottom ) are for aligning layers among themselves or to the Art board.
接下来的六个按钮(左对齐、水平居中对齐、右对齐、顶部对齐、垂直居中对齐、底部对齐)可以用来对齐多个图层或者画板。

When multiple layers are selected, the MacBook Pro’s Touch Bar will display the above distribute and align controls right on the keyboard for easy access.
当选中多个图层时,MacBook Pro的触摸条会显示上述的分布和对齐操作,以方便访问。

f4f0fb4ddfd1feeeea411b3203423aa4.png


To align a layer to the Art board, hold down the Option key and choose the align button you desire. You can also do this with multiple layers simultaneously. Another approach is to first group the objects by using the Group item in the toolbar.
要将图层与画板对齐,按住Option键的同时选择你想要的对齐方式。最新的版本(52.6)中不需要按住Option键,可以直接选择对齐方式,对多个图层和画板进行均匀分布和对齐的操作。

To align layers to a specific object, first lock that layer by using the lock button in the LayerList or by using Shift-Command-L. If no specific object is selected, Sketch will align the layers to the outermost layer of all those selected.
要将图层与特定对象对齐,请先使用图层列表中的锁定按钮

98ec41b88464bd1f3bb9f6fc78036a7d.png


锁定目标对象或者使用Shift+Command+L。如果为选择特定对象,Sketch会将图层对齐到所有选定对象的最外层。
Last modified on Oct 02, 2018
最后一次修改于2018年10月02日


更多内容:The Interface(界面概述)
Canvas
Inspector
Layer List
Toolbar
Touch Bar
Layer Basic(图层概述)
Adding Layers
Selecting Layers


更多内容请关注公众号——“one点设计”,点击“设计翻译”>“Sketch最新文档”查阅,会陆续上传全部文档,希望该文档能够帮助到大家。
由于个人水平有限,如翻译中有什么问题,还请指正。如果你也有兴趣翻译设计文档可以和小编联系,欢迎大家多多交流。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值