@aurigma/text-whizz
Advanced tools
Comparing version 1.5.24 to 1.5.40
{ | ||
"version": "1.5.24", | ||
"version": "1.5.40", | ||
"name": "@aurigma/text-whizz", | ||
@@ -4,0 +4,0 @@ "license": "SEE LICENSE IN License.md", |
@@ -354,3 +354,10 @@ declare module "@aurigma/text-whizz/TextWhizzJS" { | ||
} | ||
export interface TextLimits | ||
{ | ||
maxLineCount: number; | ||
maxCharCount: number; | ||
maxCharCountPerLine: number; | ||
} | ||
export interface Rectangle { | ||
@@ -639,2 +646,10 @@ x: number; | ||
/** | ||
* Gets a TextPosition object from the logical position. | ||
* @param lineIndex logical line index. Not a paragraph index!!! | ||
* @param offset the offset inside of the logical line. | ||
* @returns TextPosition object. | ||
*/ | ||
getPositionByIndex(lineIndex: number, offset: number): TextPosition; | ||
/** | ||
* Gets a TextPosition object from the first position. | ||
@@ -831,2 +846,19 @@ * @returns TextPosition object. | ||
getParagraphMetadata(index: number): StringMap; | ||
/** | ||
* Sets limits for the text | ||
* @param limits a structure containing limits. | ||
* @param callback calls when the text doesn't meet any of the limits. | ||
*/ | ||
setTextLimits(limits: TextLimits, callback: () => void); | ||
/** | ||
* Stops putting changes to undo/redo queue. | ||
*/ | ||
pauseUndoRedo(); | ||
/** | ||
* Starts putting changes to undo/redo queue. | ||
*/ | ||
resumeUndoRedo(); | ||
} | ||
@@ -833,0 +865,0 @@ |
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
2678895
1732