mirror of https://gitee.com/godoos/godoos.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
904 B
904 B
Common API
splitText
Feature: split text
Usage:
import { splitText } from '@hufe921/canvas-editor'
splitText(text: string): string[]
createDomFromElementList
Feature: Create a DOM tree based on the elementList
Usage:
import { createDomFromElementList } from '@hufe921/canvas-editor'
createDomFromElementList(elementList: IElement[], options?: IEditorOption): HTMLDivElement
getElementListByHTML
Feature: Create an elementList based on HTML
Usage:
import { getElementListByHTML } from '@hufe921/canvas-editor'
getElementListByHTML(htmlText: string, options: IGetElementListByHTMLOption): IElement[]
getTextFromElementList
Feature: Create text based on elementList
Usage:
import { getTextFromElementList } from '@hufe921/canvas-editor'
getTextFromElementList(elementList: IElement[]): string