10.1 Utility - Clip 裁剪


Clip a number so that it does not exceed the specified bounds.
裁剪一个数字,使其不超过指定的边界。

For example, if an input value is 1.5, but the Max bound is set to 1, the output value will be clipped to 1.
例如,如果输入值为1.5,但Max bound设置为1,则输出值将被裁剪为1。

输入口

Value 值
A number to clip.
要裁剪的值。

Min 最小
The lowest number to allow. The output value must be greater than or equal to this number.
允许的最小数字。
输出值必须大于或等于此数字。

Max 最大
The highest number to allow. The output value must be lower than or equal to this number.
允许的最大数字。
输出值必须小于或等于此数字。

输入口

Output 输出
The clipped value.
裁剪过的值。


Related Patches

ProgressTransition


Related Learn Content

Horizontal Scrolling
Create horizontal paging carousels.
Related Examples

Facebook New Stories
Trigger a prompt to appear when the News Feed is scrolled a certain distance.

Facebook Popular Events
Create simple horizontal scrolling carousels.

Instagram Adjust
Use drag to control the Instagram straighten tool.

Instagram Carousel
Create horizontal scrolling with page indicators.

Instagram Compose
Switch between the Instagram upload options.

Instagram Notifications
Switch between notifications with animation.

Instagram Stories Scroll
Tap to switch between read and unread Instagram Stories.


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 为了祭奠失去的和死去的,我和室友一起在楼下超市买了一瓶酒。第一次喝酒就是昨天晚上,牛栏山还是红星来着,五十六度,在...
    薄荷枫阅读 365评论 2 0
  • 何时终成眷属 奢望浇铸 寂寞填补 但愿与你搀扶 希望荒芜 执念桎梏 纵然坎坷路途 怨言毫无 唯有爱慕 来生换做植物...
    大理大理阅读 310评论 0 2
  • 我本身投保的保单有限,不存在退保问题,本节课仅供参考。 一、已有保单大体检 第一步 已有保单检视 将家庭中已购买的...
    ytxing阅读 198评论 0 1
  • 春雨绵绵了几天,雾蒙蒙的空气,弥漫着稚嫩的春的气息。我知道这是个春花的季节,可是我没出去踏春,只在小区里寻找春。茶...
    南岛渔妇阅读 652评论 0 3
  • 如是家人张婷,种种子第46天 发心:我今不仅是为了我个人而闻思修,更是为了六道轮回一切如母有情众生,愿一切如母有情...
    井田婷婷阅读 111评论 2 2