init from https://github.com/Hufe921/canvas-editor
This commit is contained in:
commit
977ba1c283
456 files changed
+52892
No files matched your search
@@ -0,0 +1,49 @@
|
||||
# Common API
|
||||
|
||||
## splitText
|
||||
|
||||
Feature: split text
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
import { splitText } from '@hufe921/canvas-editor'
|
||||
|
||||
splitText(text: string): string[]
|
||||
```
|
||||
|
||||
## createDomFromElementList
|
||||
|
||||
Feature: Create a DOM tree based on the elementList
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
import { createDomFromElementList } from '@hufe921/canvas-editor'
|
||||
|
||||
createDomFromElementList(elementList: IElement[], options?: IEditorOption): HTMLDivElement
|
||||
```
|
||||
|
||||
## getElementListByHTML
|
||||
|
||||
Feature: Create an elementList based on HTML
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
import { getElementListByHTML } from '@hufe921/canvas-editor'
|
||||
|
||||
getElementListByHTML(htmlText: string, options: IGetElementListByHTMLOption): IElement[]
|
||||
```
|
||||
|
||||
## getTextFromElementList
|
||||
|
||||
Feature: Create text based on elementList
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
import { getTextFromElementList } from '@hufe921/canvas-editor'
|
||||
|
||||
getTextFromElementList(elementList: IElement[]): string
|
||||
```
|
||||
Reference in new issue
Block a user