Fluid-for-Sketch

授权协议 Readme
开发语言 JavaScript
所属分类 应用工具、 图形和图像工具
软件类型 开源软件
地区 不详
投 递 者 雷硕
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

⚠️ This project is no longer actively maintained.

While some functionality of this plugin may continue to work for the forseeable future, there is no guarantee that it will survive any breaking changes made by the Sketch team. If you're looking for potential alternatives to Fluid plugin, look here.


�� Fluid for Sketch 1.7.6

A collaborative project brought to you by Matt Curtis & Cat Noone

Fluid is a Sketch plugin that provides a means to create more constraint-based, responsive designs. It is based on Auto Layout constraints.

�� Download Plugin (.zip) Changelog ⬇️ Download the Demo Sketch Document

Installation

Using Sketchpacks

Install Fluid for Sketch with Sketchpacks

Using Sketch Runner

With Sketch Runner, just go to the install command and search for Fluid. Runner allows you to manage plugins and do much more to speed up your workflow in Sketch. Download Runner here.

Using Sketch Plugin Manager

Installation via Sketch Plugin Manager:

  1. In the 'Catalog' tab, click in the 'Search' field and type 'Fluid', to filter the list
  2. You will see the 'Fluid for Sketch' plugin listed. Click the 'Install' button.

Using Sketch Toolbox

⚠️ Sketch Toolbox is no longer officially supported due to a lack of updates and several bugs. If you usually use Sketch Toolbox, please install manually or through another plugin manager.

Manually

  1. Download the .zip above and extract it.
  2. Double-click Fluid.sketchplugin.
  3. ???
  4. Profit!!!

Updating

  1. After updating Fluid (whether manually or via other manager) restart Sketch to receive goodness.

Features

  • Pin, Offset, Center, and Size relative to Parent Group, Parent Artboard, or Previous Sibling Layer
  • Utilize simple mathematic expressions as values, such as 50% - 10
  • Quickly resize artboards and update their layout
  • Preview, export and copy artboards at different sizes in Preview Mode
  • Constraints are stored directly on a layer, so no worries with layer names

Usage

First and foremost, we recommend downloading the example Sketch document included in this repo (linked to it above). There are several examples included there. Examining the constraints used and playing around with the different options (i.e. Changing constraints, re-sizing artboards and pressing Update Layout) makes things clearer.

There are 5 primary actions: Show/Hide Toolbar, Update Layout, Edit Constraints, Preview, and Toggle Size. All of the features the plugin provides are available via Plugins > Fluid.

Show/Hide Toolbar (⌃ + ⇧ + T)

For convenience, the plugin provides a toolbar that floats above the current document, giving you quick access to all of the above actions.

Edit Constraints (⌃ + ⇧ + C)

This option shows the Constraint Inspector. Here you can edit all of the constraints for the currently selected layer.

Next to each section (Align, Fixed Size and Pinning) is a dropdown button. Pressing it opens a menu where you can set relativity:

Update Layout (⌃ + ⇧ + L)

Adjusts the layers in the currently selected artboards to reflect your constraints.

Pressing L while the Constraint Inspector is focused will also Update Layout.

Preview (⌃ + ⇧ + P)

Opens a window allowing you to preview the selected artboard at a range of preset device and icon sizes. You can also copy the preview artboard to paste into Sketch (Didn't have a mobile design? Now you do!), or export an image of the preview artboard at different scales (@1x, @2x, @3x, and so on).

Toggle Sizes (⌃ + ⇧ + S)

Opens a popup where you can toggle the size of the current artboard between different presets, or flip its orientation.

Additional Notes

Fade UI

You can have Fluid fade its floating UI (Inspector & Toolbar) when they are not focused. See Plugins > Fluid > Settings.

Width & Height

If you have Fixed Width or Fixed Height checked, and leave the value blank, the plugin will lock the width or height to whatever the current height or width is in Sketch. This is useful in some cases where you want to ensure the height and width do not change, but don't want to enter the existing height/width manually.

Groups

Since the width and height of Groups in Sketch are dependent on their sub-layers, Fluid does not actually resize the height or width of a group, as that causes Sketch to distort the layers within it. Rather, it simulates that sizing when calculating the geometry of sub-layers.

Symbols

It's worth noting that while constraints you set on a Symbol itself will not propagate to other instances of that Symbol, any constraints you set on its sub-layers will.

Text

If you set the width of a text layer but not its height, the plugin will set the height of the text layer to the height of the text after reflow.

This feature was available in former versions of Fluid, but has been removed in 1.7.4. See this issue for more info. Restored in Fluid 1.7.5! ��

Mathematic Values

All of the values in Fluid support mathematic expressions, such as 20 * 2 or (50 / 2) + 10 and so on. This becomes even more useful when you add percentages to the mix.

Percentages are relative to the dimension of the axis they're on. Here's how that shakes out:

  • Using 100% as your fixed width equals 100% of the relative layer's width
  • Using 100% as your fixed height equals 100% of the relative layer's height
  • Using 100% in the top or bottom pinnings equals 100% of the relative layer's height
  • Using 100% in the right or left pinnings equals 100% of the relative layer's width

One neat application of this is that it enables padding between sibling layers, e.g:

  • Parent Group or Artboard
    • Layer B (top pinning = 100% + 20, relativity = Previous Sibling (Layer A))
    • Layer A

Text Field Tricks n' Tips

  • Numbers in the Constraint Inspector text fields can be incremented or deincrement by 1 by pressing the up and down keys. Holding down Shift (⇧) and Up or Down will increment by 10.
  • Pressing space while a text field is focused will toggle that constraint's checkbox.

Preset Sizes

You can search through the section names of the preset sizes list (in both Preview Mode and when toggling sizes) by prefixing your searches with s:, i.e.: s:iOS or s:Material. Normally Fluid only searches among the preset names themselves.

Contact

If you have any questions, comments, become attacked by technical bugs, or have ideas to improve the plugin, ping us on twitter:@matt_sven and @imcatnoone.

  • THE UNIVERSITY OF MELBOURNE DEPARTMENT OF MECHANICAL ENGINEERING MCEN90008 FLUID DYNAMICS ASSIGNMENT FOR POTENTIAL FLOW Instructions: • Assignment to be handed in by 23:59 on Friday 13th September 201

  • self-defination reader def make_reader(txt_file, is_train = True): def reader(): with open(txt_file, 'r') as f: lines = f.readlines() f.close() if is_train:

  •  from_generator(feed_list=None, capacity=None, use_double_buffer=True, iterable=True, return_list=False, use_multiprocess=False, drop_last=True) import paddle.fluid as fluid import numpy as np BATCH_

  • 根据《90分钟PaddlePaddle快速上手》整理。 Paddle Fluid的整体架构 组网模块 模型表达与优化 训练模块 服务器预测 移动端预测 Paddle Fluid的使用基本概念 layer:表示一个独立计算的逻辑,通常包含一个或多个operator,layers.relu表示relu计算,layers.pool2d表示pool操作。 Layer有Variable输入和输出。示例:ou

  • The automated liquid handling solution saves space, is flexible and convenient, simplifies the sample pretreatment process and ensures consistent high accuracy. Automation frees up laboratory manpower

 相关资料
  • Fluid 可以让你在Mac OS系统的桌面上创建互联网网站的应用图标。

  • 为了解决大数据、AI 等数据密集型应用在云原生计算存储分离场景下,存在的数据访问延时高、联合分析难、多维管理杂等痛点问题,南京大学 PASALab、阿里巴巴、Alluxio 在 2020 年 9 月份联合发起了开源项目 Fluid 。 Fluid 是一款开源的云原生基础架构项目。在计算和存储分离的大背景驱动下,Fluid 的目标是为 AI 与大数据云原生应用提供一层高效便捷的数据抽象,将数据从存储

  • A plugin that allows multiple input elements to be treated as one when typing. For example, if you have social security number split among three input elements, this plugin would allow the user to cli

  • Fluid Framework 是一个 TypeScript 库,用于构建分布式实时协作 Web 应用程序。 Fluid Framework 提供: 以客户端为中心的应用程序模型,具有数据持久性,无需自定义服务器代码 具有熟悉的编程模式的分布式数据结构 极低的延迟

  • Fluid Paint 可以在浏览器上实现油画的绘制效果。

  • Fluid 是基于 Hexo 框架开发的一款 Material Design 风格的主题。 该主题相较于其他主题的优势: 优雅的颜值,使用 Material Design 风格突出层次感,但又不失简约,让用户能专注于写作; 提供大量定制化配置项,使每个用户使用该主题都能具有独特的样式; 响应式页面,适配手机、平板等设备,包括极端的分辨率都能轻松应对; 主题中少有的整合了 LaTeX 和 merma