API Reference
@univerjs
@univerjs/core
classes
Buildtextutils

@univerjs/core v0.2.14Docs


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; getCustomRangesInterestsWithRange: (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:22 (opens in a new tab)
customRange.addpublic(param: IAddCustomRangeTextXParam) => false | TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:23 (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:26 (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:24 (opens in a new tab)
customRange.getCustomRangesInterestsWithRangepublic(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:27 (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:30 (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:28 (opens in a new tab)
rangestatic{ isIntersects: isSegmentIntersects; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:46 (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:47 (opens in a new tab)
selectionstatic{ getDeleteActions: getRetainAndDeleteFromReplace; getDeleteExculdeLastLineBreakActions: getRetainAndDeleteAndExcludeLineBreak; getDeleteSelection: <T>(selection, body, direction) => T; getInsertSelection: <T>(selection, body) => T; getSelectionWithNoSymbolSide: (selection, body) => { endOffset: number; startOffset: number; }; getSelectionWithSymbolMax: (selection, body) => { endOffset: number; startOffset: number; }; makeSelection: (startOffset, endOffset?) => ITextRange; normalizeSelection: (selection) => ITextRange; replace: replaceSelectionTextX; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:33 (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:42 (opens in a new tab)
selection.getDeleteExculdeLastLineBreakActionspublic(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:43 (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.getSelectionWithNoSymbolSidepublic(selection: ITextRange, body: IDocumentBody) => { endOffset: number; startOffset: number; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:39 (opens in a new tab)
selection.getSelectionWithSymbolMaxpublic(selection: ITextRange, body: IDocumentBody) => { endOffset: number; startOffset: number; }submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:38 (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:36 (opens in a new tab)
selection.normalizeSelectionpublic(selection: ITextRange) => ITextRangesubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:37 (opens in a new tab)
selection.replacepublic(params: IReplaceSelectionTextXParams) => false | TextXsubmodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:34 (opens in a new tab)

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