Class: BuildTextUtils
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:25
Constructors
new BuildTextUtils()
new BuildTextUtils(): BuildTextUtils
Returns
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
customDecoration | static | { add : (param ) => TextX ; delete : (params ) => false | TextX ; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:34 |
customDecoration.add | public | (param : IAddCustomDecorationParam ) => TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:35 |
customDecoration.delete | public | (params : IDeleteCustomRangeParam ) => false | TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:36 |
customRange | static | { add : (param ) => | false | TextX & { selections : ITextRange []; }; copyCustomRange : (range ) => { endIndex : number ; properties : Record <string , any >; rangeId : string ; rangeType : number ; startIndex : number ; wholeEntity : boolean ; }; delete : (params ) => false | TextXSelection ; getCustomRangesInterestsWithSelection : (range , customRanges ) => ICustomRange []; 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:26 |
customRange.add | public | (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:27 |
customRange.copyCustomRange | public | (range : ICustomRange ) => { 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:29 |
customRange.delete | public | (params : IDeleteCustomRangeParam ) => false | TextXSelection | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:28 |
customRange.getCustomRangesInterestsWithSelection | public | (range : ITextRange , customRanges : ICustomRange []) => ICustomRange [] | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:30 |
customRange.isIntersecting | public | (line1Start : number , line1End : number , line2Start : number , line2End : number ) => boolean | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:31 |
drawing | static | { add : (param ) => false | JSONOp ; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:67 |
drawing.add | public | (param : IAddDrawingParam ) => false | JSONOp | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:68 |
paragraph | static | { bullet : { changeNestLevel : (params ) => TextX ; set : (params ) => false | TextX ; switch : (params ) => TextX ; toggleChecklist : (params ) => false | TextX ; }; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:58 |
paragraph.bullet | public | { changeNestLevel : (params ) => TextX ; set : (params ) => false | TextX ; switch : (params ) => TextX ; toggleChecklist : (params ) => false | TextX ; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:59 |
paragraph.bullet.changeNestLevel | public | (params : IChangeParagraphBulletNestLevelParams ) => TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:63 |
paragraph.bullet.set | public | (params : ISetParagraphBulletParams ) => false | TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:60 |
paragraph.bullet.switch | public | (params : ISwitchParagraphBulletParams ) => TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:61 |
paragraph.bullet.toggleChecklist | public | (params : IToggleChecklistParagraphParams ) => false | TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:62 |
range | static | { isIntersects : (start , end , start2 , end2 ) => boolean ; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:48 |
range.isIntersects | public | (start : number , end : number , start2 : number , end2 : number ) => boolean | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:49 |
selection | static | { delete : (selections , body , memoryCursor , insertBody , keepBullet ) => TextXAction []; makeSelection : (startOffset , endOffset ?) => ITextRange ; normalizeSelection : (selection ) => ITextRange ; replace : (params ) => false | TextX ; replaceTextRuns : (params ) => false | TextX ; retain : (selections , body , memoryCursor ) => TextXAction []; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:39 |
selection.delete | public | (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:43 |
selection.makeSelection | public | (startOffset : number , endOffset ?: number ) => ITextRange | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:41 |
selection.normalizeSelection | public | (selection : ITextRange ) => ITextRange | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:42 |
selection.replace | public | (params : IReplaceSelectionTextXParams ) => false | TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:40 |
selection.replaceTextRuns | public | (params : IReplaceSelectionTextXParams ) => false | TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:44 |
selection.retain | public | (selections : ITextRange [], body : IDocumentBody , memoryCursor : number ) => TextXAction [] | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:45 |
transform | static | { 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:52 |
transform.fromPlainText | public | (text : string ) => IDocumentBody | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:54 |
transform.getPlainText | public | (dataStream : string ) => string | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:53 |
transform.isEmptyDocument | public | (dataStream ?: string ) => boolean | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:55 |