Skip to content

Commit

Permalink
[slide] 调整 Editor 下部分 API
Browse files Browse the repository at this point in the history
  • Loading branch information
cagen committed Nov 7, 2018
1 parent 60cffa2 commit 5d9c189
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions slide/editor/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
| `editorLayers.canvas` | `HTMLElement` |画布 dom|
| `previewLayers` | `Object` |预览插件层|
| `previewLayers.viewport` | `HTMLElement` |可视区域 dom|
| `previewLayers..canvas` | `HTMLElement` |画布 dom|
| `previewLayers.canvas` | `HTMLElement` |画布 dom|

* 用法 `registerPlugin(name, plugin)`
* 参数
Expand Down Expand Up @@ -259,7 +259,10 @@
|名称|类型|默认值|描述|必选/可选|
| -- | -- | -- | -- | -- |
| `styles` | `Object` || 样式选项 |必选|
| `applyToAll` | `boolean` | false | 是否应用到整个文本框 |可选|
| `applyToAllLines` | `boolean` | false | 是否应用于所有内容 |可选|
| `applyToGlobal` | `boolean` | false | 是否应用到文本元素全局 |可选|
| `toggle` | `boolean` | false | 是否取消当前元素与 styles 里数值相等的样式 |可选|
| `isPreset` | `boolean` | false | 是否为预设的快捷样式 |可选|

### setCurrentTextAutoResize
设置当前选中文本内文字自适应。
Expand Down Expand Up @@ -308,6 +311,13 @@
| `slideTransition` | `Editor.slideTransition` || 转场效果常量 |必选|
| `slideIds` | `string[]` || 如果提供此参数,则改变特定的 slide 的转场效果;如果不提供此参数,则全局应用转场效果 |可选|

### groupElements
组合选中的元素

* 返回 `undefined`
* 用法 `Editor.groupElements()`
* 参数 无

## 事件列表

* 用法
Expand Down

0 comments on commit 5d9c189

Please sign in to comment.