API Reference
@univerjs
@univerjs/core
classes
Buildtextutils

@univerjs/core v0.4.2Docs


Class: BuildTextUtils

Constructors

new BuildTextUtils()

new BuildTextUtils(): BuildTextUtils

Returns

BuildTextUtils

Properties

PropertyModifierTypeDefined in
customRangestatic{ add: addCustomRangeTextX; copyCustomRange: (range) => { endIndex: number; properties: Record<string, any>; rangeId: string; rangeType: number; startIndex: number; wholeEntity: boolean; }; delete: deleteCustomRangeTextX; getCustomRangesInterestsWithSelection: (range, customRanges) => ICustomRange<Record<string, any>>[]; isIntersecting: (line1Start, line1End, line2Start, line2End) => boolean; shouldDeleteCustomRange: (deleteStart, deleteLen, customRange, dataStream) => boolean; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:24 (opens in a new tab)
customRange.addpublic(param: IAddCustomRangeTextXParam) => false | TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:25 (opens in a new tab)
customRange.copyCustomRangepublic(range: ICustomRange<Record<string, any>>) => { endIndex: number; properties: Record<string, any>; rangeId: string; rangeType: number; startIndex: number; wholeEntity: boolean; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:28 (opens in a new tab)
customRange.deletepublic(accessor: IAccessor, params: IDeleteCustomRangeParam) => false | TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:26 (opens in a new tab)
customRange.getCustomRangesInterestsWithSelectionpublic(range: ITextRange, customRanges: ICustomRange<Record<string, any>>[]) => ICustomRange<Record<string, any>>[]submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:29 (opens in a new tab)
customRange.isIntersectingpublic(line1Start: number, line1End: number, line2Start: number, line2End: number) => booleansubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:32 (opens in a new tab)
customRange.shouldDeleteCustomRangepublic(deleteStart: number, deleteLen: number, customRange: ICustomRange<Record<string, any>>, dataStream: string) => booleansubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:30 (opens in a new tab)
paragraphstatic{ bullet: { changeNestLevel: changeParagraphBulletNestLevel; set: setParagraphBullet; switch: switchParagraphBullet; toggleChecklist: toggleChecklistParagraph; }; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:57 (opens in a new tab)
paragraph.bulletpublic{ changeNestLevel: changeParagraphBulletNestLevel; set: setParagraphBullet; switch: switchParagraphBullet; toggleChecklist: toggleChecklistParagraph; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:58 (opens in a new tab)
paragraph.bullet.changeNestLevelpublic(params: IChangeParagraphBulletNestLevelParams) => TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:62 (opens in a new tab)
paragraph.bullet.setpublic(params: ISetParagraphBulletParams) => false | TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:59 (opens in a new tab)
paragraph.bullet.switchpublic(params: ISwitchParagraphBulletParams) => TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:60 (opens in a new tab)
paragraph.bullet.toggleChecklistpublic(params: IToggleChecklistParagraphParams) => false | TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:61 (opens in a new tab)
rangestatic{ isIntersects: isSegmentIntersects; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:47 (opens in a new tab)
range.isIntersectspublic(start: number, end: number, start2: number, end2: number) => booleansubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:48 (opens in a new tab)
selectionstatic{ getDeleteActions: getRetainAndDeleteFromReplace; getDeleteExcludeLastLineBreakActions: getRetainAndDeleteAndExcludeLineBreak; getDeleteSelection: <T>(selection, body, direction) => T; getInsertSelection: <T>(selection, body) => T; makeSelection: (startOffset, endOffset?) => ITextRange; normalizeSelection: (selection) => ITextRange; replace: replaceSelectionTextX; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:35 (opens in a new tab)
selection.getDeleteActionspublic(range: ITextRange, segmentId: string, memoryCursor: number, body: IDocumentBody) => { cursor: number; dos: (IRetainAction | IDeleteAction)[]; retain: retainPoints.size; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:43 (opens in a new tab)
selection.getDeleteExcludeLastLineBreakActionspublic(selection: ITextRange, body: IDocumentBody, segmentId: string, memoryCursor: number, preserveLineBreak: boolean) => (IRetainAction | IDeleteAction)[]submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:44 (opens in a new tab)
selection.getDeleteSelectionpublic<T>(selection: T, body: IDocumentBody, direction: DeleteDirection) => Tsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:40 (opens in a new tab)
selection.getInsertSelectionpublic<T>(selection: T, body: IDocumentBody) => Tsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:41 (opens in a new tab)
selection.makeSelectionpublic(startOffset: number, endOffset?: number) => ITextRangesubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:38 (opens in a new tab)
selection.normalizeSelectionpublic(selection: ITextRange) => ITextRangesubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:39 (opens in a new tab)
selection.replacepublic(params: IReplaceSelectionTextXParams) => false | TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:36 (opens in a new tab)
transformstatic{ fromPlainText: (text) => IDocumentBody; getPlainText: (dataStream) => string; isEmptyDocument: (dataStream?) => boolean; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:51 (opens in a new tab)
transform.fromPlainTextpublic(text: string) => IDocumentBodysubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:53 (opens in a new tab)
transform.getPlainTextpublic(dataStream: string) => stringsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:52 (opens in a new tab)
transform.isEmptyDocumentpublic(dataStream?: string) => booleansubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:54 (opens in a new tab)

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.