查看“︁编程语言/photoshop/导出格式”︁的源代码
来自康健生活
←
编程语言/photoshop/导出格式
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 引言 == == 源 == {| class="wikitable" |- ! 属性 !! 描述 !! eq |- | bounds || 长宽 || <syntaxhighlight lang="javascript"> { "top": 382, "left": 1125, "bottom": 417, "right": 1295 }</syntaxhighlight> |- | boundsWithFX || 效果-描边 || <syntaxhighlight lang="javascript"> { "top": 379, "left": 1122, "bottom": 420, "right": 1298 }</syntaxhighlight> |- | 示例 || 示例 || 示例 |} === layerEffects === === text === {| class="wikitable" |- ! 属性 !! 描述 !! eq !! info |- | impliedFontSize || 隐含/默认字体大小 || <syntaxhighlight lang="javascript">{ "value": 36, "units": "pointsUnit" }</syntaxhighlight> || 导出的时候首选 impliedFontSize 作为字体大小的标尺 |- | impliedLeading || 隐含/默认行高 || <syntaxhighlight lang="javascript">{ "value": 30.6716, "units": "pointsUnit" }</syntaxhighlight> || |- | transform || 变形 || <syntaxhighlight lang="javascript">{ "xx": 1.331, "xy": 0, "yx": 0, "yy": 1.331, "tx": 0, "ty": 0 }</syntaxhighlight> || 当 transform 存在时,会导致 textStyleRange.textStyle.impliedFontSize 与 textStyleRange.textStyle.size 不一致。其缘由是进行了拖拽文字图层进行变形导致,并且变形过程中的 <code>xx</code>、<code>yy</code> 值并不固定,是不确定值。同样受影响的参数还有 <code>impliedLeading</code>、<code>leading</code> |} ==== textStyleRange ==== ===== textStyle ===== {| class="wikitable" |- ! 属性 !! 描述 !! eq !! info |- | impliedFontSize || 隐含/默认字体大小 || <syntaxhighlight lang="javascript">{ "value": 36, "units": "pointsUnit" }</syntaxhighlight> || 导出的时候首选 impliedFontSize 作为字体大小的标尺 |- | size || 字体大小 || <syntaxhighlight lang="javascript">{ "value": 27.0473, "units": "pointsUnit" }</syntaxhighlight> || 当 impliedFontSize 变化的时候,size 跟随一起改变,如:<code>impliedFontSize 36</code>、<code>size 27.0473</code>,<code>impliedFontSize 14</code>、<code>size 10.5184</code>。比例约为 <code>1.33100</code> |} == 导出格式 == <syntaxhighlight lang="javascript"> const cssTemp = { backgrounds: [ { color: { r: 216, g: 216, b: 216, a: 1, }, }, ], x: 244, y: 222, width: 20, height: 13, borders: [ { color: { r: 151, g: 151, b: 151, a: 1, }, width: 1, }, ], boxShadows: [], borderRadius: 0, opacity: 0, fontFamily: 'PingFang SC', fontSize: 12, color: { r: 27, g: 36, b: 50, a: 1, }, content: '财务复审待办', textAlign: 'left', letterSpacing: 0, lineHeight: 17, exportable: true, exportOptions: [], }</syntaxhighlight>
返回
编程语言/photoshop/导出格式
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。