@univerjs/core v0.5.0-beta.1 • Docs
Class: BuildTextUtils
Constructors
new BuildTextUtils()
new BuildTextUtils(): BuildTextUtils
Returns
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
customDecoration | static | { 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.add | public | (param : IAddCustomDecorationParam ) => TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:34 |
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:35 |
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 ; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:25 |
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:26 |
customRange.copyCustomRange | public | (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.delete | public | (accessor : IAccessor , params : IDeleteCustomRangeParam ) => false | TextXSelection | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:27 |
customRange.getCustomRangesInterestsWithSelection | public | (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.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:30 |
paragraph | static | { 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.bullet | public | { 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.changeNestLevel | public | (params : IChangeParagraphBulletNestLevelParams ) => TextX | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:60 |
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:57 |
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:58 |
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:59 |
range | static | { isIntersects : isSegmentIntersects ; } | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/build-utils/index.ts:45 |
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:46 |
selection | static | { 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.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:42 |
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:40 |
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:41 |
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:39 |
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:49 |
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:51 |
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:50 |
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:52 |