egret-docs-master/Engine2D/update/update315/README.md

57 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## Egret Engine 2D
* DropShadowFilter 新增 hideObject 属性
表示是否隐藏对象。如果值为 true则表示没有绘制对象本身只有阴影是可见的。默认值为 false显示对象
如下是应用阴影滤镜后的白鹭小鸟,分别设定`hideObject`为 `false``true`
![egret-bird-filter-shadow][] ![egret-bird-filter-shadow-hide][]
* BlurFilter 增加默认值
* 优化 ColorMatrixFilter 性能
* 修复 exml 中 currentState 绑定数据错误
* 修复 TouchScroll 中 throwTo 方法重复滚动问题
* 修复 BitmapLabel text 属性传入数字显示异常问题
* 修复多行输入文本输入过程中显示异常问题
## 开放平台
#### 创建 Nest示例工程
全局安装命令行工具:
~~~ javascript
npm install -g egret-cli
~~~
**1.创建命令**
~~~ javascript
egret-cli nest create [relativePathToCwd] | -p <absolutePath>
~~~
参数说明:
* [relativePathToCwd] 项目名称(相对路径)
* -p, path 项目名称(绝对路径,必须指定-p 否则会当做相对路径处理)
**2.run 运行命令**
~~~
egret-cli nest run [relativePathToCwd | -p <absolutePath>] [-a]
~~~
用法示例:
~~~
egret-cli nest run
egret-cli nest run -a
egret-cli nest run test -a
egret-cli nest run -p /Users/testuser/test -a
~~~
可选参数说明:
* relativePathToCwd 项目名称(相对路径)
* -p, path 项目名称(绝对路径,必须指定-p)
* -a, autoBuild 打开自动编译
[bern_hdr]: 5791e02548192.jpg
[egret-bird-filter-shadow]: 5791e0255665b.png
[egret-bird-filter-shadow-hide]: 5791e0253bbb2.png
<!--Engine2D/releaseNote/egret-3-1-4/-->