@univerjscoreclassesBuildtextutils

@univerjs/core v0.5.0-beta.1Docs


Class: BuildTextUtils

Constructors

new BuildTextUtils()

new BuildTextUtils(): BuildTextUtils

Returns

BuildTextUtils

Properties

PropertyModifierTypeDefined in
customDecorationstatic{ add: addCustomDecorationTextX; delete: deleteCustomDecorationTextX; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:33
customDecoration.addpublic(param: IAddCustomDecorationParam) => TextXpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:34
customDecoration.deletepublic(params: IDeleteCustomRangeParam) => false | TextXpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:35
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; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:25
customRange.addpublic(param: IAddCustomRangeTextXParam) => false | TextX & { selections: ITextRange[]; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:26
customRange.copyCustomRangepublic(range: ICustomRange<Record<string, any>>) => { endIndex: number; properties: Record<string, any>; rangeId: string; rangeType: number; startIndex: number; wholeEntity: boolean; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:28
customRange.deletepublic(accessor: IAccessor, params: IDeleteCustomRangeParam) => false | TextXSelectionpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:27
customRange.getCustomRangesInterestsWithSelectionpublic(range: ITextRange, customRanges: ICustomRange<Record<string, any>>[]) => ICustomRange<Record<string, any>>[]packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:29
customRange.isIntersectingpublic(line1Start: number, line1End: number, line2Start: number, line2End: number) => booleanpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:30
paragraphstatic{ bullet: { changeNestLevel: changeParagraphBulletNestLevel; set: setParagraphBullet; switch: switchParagraphBullet; toggleChecklist: toggleChecklistParagraph; }; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:55
paragraph.bulletpublic{ changeNestLevel: changeParagraphBulletNestLevel; set: setParagraphBullet; switch: switchParagraphBullet; toggleChecklist: toggleChecklistParagraph; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:56
paragraph.bullet.changeNestLevelpublic(params: IChangeParagraphBulletNestLevelParams) => TextXpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:60
paragraph.bullet.setpublic(params: ISetParagraphBulletParams) => false | TextXpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:57
paragraph.bullet.switchpublic(params: ISwitchParagraphBulletParams) => TextXpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:58
paragraph.bullet.toggleChecklistpublic(params: IToggleChecklistParagraphParams) => false | TextXpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:59
rangestatic{ isIntersects: isSegmentIntersects; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:45
range.isIntersectspublic(start: number, end: number, start2: number, end2: number) => booleanpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:46
selectionstatic{ delete: deleteSelectionTextX; makeSelection: (startOffset, endOffset?) => ITextRange; normalizeSelection: (selection) => ITextRange; replace: replaceSelectionTextX; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:38
selection.deletepublic(selections: ITextRange[], body: IDocumentBody, memoryCursor: number, insertBody: Nullable<IDocumentBody>, keepBullet: boolean) => TextXAction[]packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:42
selection.makeSelectionpublic(startOffset: number, endOffset?: number) => ITextRangepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:40
selection.normalizeSelectionpublic(selection: ITextRange) => ITextRangepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:41
selection.replacepublic(params: IReplaceSelectionTextXParams) => false | TextXpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:39
transformstatic{ fromPlainText: (text) => IDocumentBody; getPlainText: (dataStream) => string; isEmptyDocument: (dataStream?) => boolean; }packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:49
transform.fromPlainTextpublic(text: string) => IDocumentBodypackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:51
transform.getPlainTextpublic(dataStream: string) => stringpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:50
transform.isEmptyDocumentpublic(dataStream?: string) => booleanpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:52