@univerjs/core v0.3.0 • Docs
Class: BuildTextUtils
Constructors
new BuildTextUtils()
new BuildTextUtils(): BuildTextUtils
Returns
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
customRange | static | { 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:23 (opens in a new tab) |
customRange.add | public | (param : IAddCustomRangeTextXParam ) => false | TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:24 (opens in a new tab) |
customRange.copyCustomRange | public | (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:27 (opens in a new tab) |
customRange.delete | public | (accessor : IAccessor , params : IDeleteCustomRangeParam ) => false | TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:25 (opens in a new tab) |
customRange.getCustomRangesInterestsWithRange | public | (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:28 (opens in a new tab) |
customRange.isIntersecting | public | (line1Start : number , line1End : number , line2Start : number , line2End : number ) => boolean | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:31 (opens in a new tab) |
customRange.shouldDeleteCustomRange | public | (deleteStart : number , deleteLen : number , customRange : ICustomRange <Record <string , any >>, dataStream : string ) => boolean | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:29 (opens in a new tab) |
range | static | { isIntersects : isSegmentIntersects ; } | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:46 (opens in a new tab) |
range.isIntersects | public | (start : number , end : number , start2 : number , end2 : number ) => boolean | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:47 (opens in a new tab) |
selection | static | { getDeleteActions : getRetainAndDeleteFromReplace ; getDeleteExculdeLastLineBreakActions : 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:34 (opens in a new tab) |
selection.getDeleteActions | public | (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.getDeleteExculdeLastLineBreakActions | public | (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.getDeleteSelection | public | <T >(selection : T , body : IDocumentBody , direction : DeleteDirection ) => T | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:39 (opens in a new tab) |
selection.getInsertSelection | public | <T >(selection : T , body : IDocumentBody ) => T | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:40 (opens in a new tab) |
selection.makeSelection | public | (startOffset : number , endOffset ?: number ) => ITextRange | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:37 (opens in a new tab) |
selection.normalizeSelection | public | (selection : ITextRange ) => ITextRange | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:38 (opens in a new tab) |
selection.replace | public | (params : IReplaceSelectionTextXParams ) => false | TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:35 (opens in a new tab) |
transform | static | { fromPlainText : (text ) => IDocumentBody ; getPlainText : (dataStream ) => string ; } | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:50 (opens in a new tab) |
transform.fromPlainText | public | (text : string ) => IDocumentBody | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:52 (opens in a new tab) |
transform.getPlainText | public | (dataStream : string ) => string | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:51 (opens in a new tab) |