@aurigma/text-whizz
Advanced tools
Comparing version 1.5.50 to 1.5.56
{ | ||
"version": "1.5.50", | ||
"version": "1.5.56", | ||
"name": "@aurigma/text-whizz", | ||
@@ -4,0 +4,0 @@ "license": "SEE LICENSE IN License.md", |
@@ -9,2 +9,4 @@ declare module "@aurigma/text-whizz/TextWhizzJS" { | ||
export const EndLineOffset: number; | ||
interface Collection<TItem> { | ||
@@ -641,5 +643,6 @@ get(index: number): TItem; | ||
* @param y coordinate y. | ||
* @param forSelection true means that EndOfLine offset is possible to return. | ||
* @returns TextPosition object. | ||
*/ | ||
getPosition(x: number, y: number): TextPosition; | ||
getPosition(x: number, y: number, forSelection: boolean): TextPosition; | ||
@@ -665,2 +668,8 @@ /** | ||
getLastPosition(): TextPosition; | ||
/** | ||
* Gets a TextPosition object from the end position. | ||
* @returns TextPosition object. | ||
*/ | ||
getEndPosition(): TextPosition; | ||
@@ -835,5 +844,5 @@ /** | ||
/** | ||
* Gets a paragraph text range. | ||
* Gets a paragraph metadata. | ||
* @param index paragraph index. | ||
* @returns TextRange | ||
* @param metadata metadata | ||
*/ | ||
@@ -843,5 +852,5 @@ setParagraphMetadata(index: number, metadata: StringMap); | ||
/** | ||
* Gets a paragraph text range. | ||
* Gets a paragraph metadata. | ||
* @param index paragraph index. | ||
* @returns TextRange | ||
* @returns StringMap | ||
*/ | ||
@@ -851,2 +860,16 @@ getParagraphMetadata(index: number): StringMap; | ||
/** | ||
* Sets a paragraph char style | ||
* @param index paragraph index. | ||
* @param cs char style. | ||
*/ | ||
setParagraphCharStyle(index: number, cs: CharStyle); | ||
/** | ||
* Gets a paragraph char style | ||
* @param index paragraph index. | ||
* @returns char style. | ||
*/ | ||
getParagraphCharStyle(index: number): CharStyle; | ||
/** | ||
* Sets limits for the text | ||
@@ -1016,3 +1039,3 @@ * @param limits a structure containing limits. | ||
getPosition(): TextPosition; | ||
move(MoveDirection); | ||
move(direction: MoveDirection, forSelection: boolean): boolean; | ||
set(pos: TextPosition); | ||
@@ -1019,0 +1042,0 @@ insertText(text: string): TextPosition; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2696942
1754