1.13 Layer 图层 - Text Layer 文本图层


A text layer. Define the size to wrap text. Change anchor to set text alignment.
文字图层,能定义容器的大小。更改锚点以设置文本对齐方式。

Enable 启用
A boolean that is true when the layer is displayed.
勾选启用查看器中才读取这个图层。

Text 文本
A text string to display.
要显示的文字。

Font Name 字体名称
The font family with which to render the text. By default, uses the font on the phone, tablet, or computer the prototype is running on.
用于呈现文本的字体系列。默认情况下,在使用正在运行的手机、平板电脑、电脑上的字体。

Font Size 文字尺寸
The size with which to render the text, in dp.
文字大小,单位dp。

Color 颜色
The color of the layer.
图层的颜色。

Position 位置
The position to display the layer. Use Point 3D to set Z position.
位置。使用 Point 3D 模块设置Z轴位置。
板栗:点击 Position 属性也可以显示3个轴向并设置值。

Anchor 锚点
The anchor point to position the layer relative to. Determines text alignment.See Coordinates for more information.
位于屏幕中的锚点,取保字符对齐。详细信息阅读Coordinates 坐标

Size 尺寸
The size of the layer. Any text overflowing the width will be wrapped to subsequent lines.
文本框的大小。溢出宽度的文本会自动换行。

Opacity 不透明度
The opacity of the layer.
图层的不透明度。

Scale 比例
The scale of the layer.
图层显示的比例。(板栗:1=100%)

Rotation 角度
The rotation of the layer. Use Point 3D to set X or Y rotations.
图层的角度。使用 Point 3D 模块设置Z、Y轴角度。
板栗:点击 Rotation 属性也可以显示3个轴向并设置值。

Pivot 轴心点
The pivot to rotate and scale the layer about. See Coordinates for more information.
图层缩放、旋转、移动时的中心点或初始点。详细信息阅读Coordinates 坐标

Shadow
Shadow Color 阴影颜色
The color of the shadow.
阴影的颜色。

Shadow Opacity 阴影不透明度
The opacity of the shadow. By default, the opacity is 0, which disables the shadow.
阴影的不透明度。 默认值为0,不显示阴影。

Shadow Radius 阴影半径
The blur radius of the shadow.
阴影的模糊半径值。(板栗:值越大范围越大,颜色越淡。)

Shadow Offset 阴影偏移
The size of the shadow relative to the size of the layer.
阴影相对于图层的距离和角度。

Character Spacing 字间距
A number that represents the horizontal space between characters, in dp.
表示字符之间的水平间距的数字,单位dp。

Line Height 行间距
A number that represents the distance between baselines, in dp.
表示两行文本间的距离,单位dp。

Paragraph Spacing 段落间距
A number that represents the vertical space between paragraphs, in dp.
表示两个段落之间的距离,单位dp。

全部图层,查看 图层目录


Related Patches 相关模块

Text Size,Text Length


Related Layers 相关图层

Text Field 文本输入框


Related Examples 案例

Facebook Notifications
Create a series of notifications entirely out of loops.

Fahrenheit to Celsius
Get to know logic and patches in Origami through temperature conversion.

Instagram Adjust
Use drag to control the Instagram straighten tool.

Instagram Color Picker
Change the text color in an Instagram Stories post.

Instagram Compose
Switch between the Instagram upload options.

Instagram Direct Messages
Send an Instagram direct message to a friend, over and over again.

Instagram Notifications
Switch between notifications with animation.

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

Photo Zoom
Animate between two states when the screen is tapped.

Traffic Light
Transition across three or more states and include logic.
See Example


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 长恨人心不如水,等闲平地起波澜。 年下到正月,家中几番变故,令人许久不得心静,唏嘘感慨,意难平!都说人生如戏,哪知...
    日夕间阅读 3,538评论 0 3
  • 武陵源风景区类似于天下第一桥的风景有很多,但其特征基本相似:这里是林的峰,峰的林,我们看山大多是仰望的,而这里...
    9e0b0fa679e8阅读 3,462评论 0 0
  • 尽管走下去,不必逗留着,去采鲜花来保存,因为在这一路上,花自然会继续开放。——泰戈尔 自从我喜欢上了文字后,偶尔有...
    八月天阅读 5,110评论 0 1

友情链接更多精彩内容