@univerjs/core v0.4.2 • 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 ; 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.add | public | (param : IAddCustomRangeTextXParam ) => false | TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:25 (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:28 (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:26 (opens in a new tab) |
customRange.getCustomRangesInterestsWithSelection | 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:29 (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:32 (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:30 (opens in a new tab) |
paragraph | static | { 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.bullet | public | { 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.changeNestLevel | public | (params : IChangeParagraphBulletNestLevelParams ) => TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:62 (opens in a new tab) |
paragraph.bullet.set | public | (params : ISetParagraphBulletParams ) => false | TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:59 (opens in a new tab) |
paragraph.bullet.switch | public | (params : ISwitchParagraphBulletParams ) => TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:60 (opens in a new tab) |
paragraph.bullet.toggleChecklist | public | (params : IToggleChecklistParagraphParams ) => false | TextX | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:61 (opens in a new tab) |
range | static | { isIntersects : isSegmentIntersects ; } | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:47 (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:48 (opens in a new tab) |
selection | static | { 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.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:43 (opens in a new tab) |
selection.getDeleteExcludeLastLineBreakActions | 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:44 (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:40 (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:41 (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:38 (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:39 (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:36 (opens in a new tab) |
transform | static | { 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.fromPlainText | public | (text : string ) => IDocumentBody | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:53 (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:52 (opens in a new tab) |
transform.isEmptyDocument | public | (dataStream ?: string ) => boolean | submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:54 (opens in a new tab) |