@aurigma/text-whizz
Advanced tools
Comparing version 1.2.185 to 1.5.24
{ | ||
"version": "1.2.185", | ||
"version": "1.5.24", | ||
"name": "@aurigma/text-whizz", | ||
@@ -4,0 +4,0 @@ "license": "SEE LICENSE IN License.md", |
@@ -16,2 +16,10 @@ declare module "@aurigma/text-whizz/TextWhizzJS" { | ||
} | ||
export class StringMap | ||
{ | ||
get(key: string): string; | ||
set(key: string, value: string); | ||
size(): number; | ||
keys(): Collection<string>; | ||
} | ||
@@ -357,8 +365,8 @@ export interface FontInfo { | ||
left, | ||
right, | ||
up, | ||
down, | ||
lineStart, | ||
lineEnd, | ||
textStart, | ||
right, | ||
up, | ||
down, | ||
lineStart, | ||
lineEnd, | ||
textStart, | ||
textEnd, | ||
@@ -782,2 +790,43 @@ leftWord, | ||
draw(ctx: CanvasRenderingContext2D); | ||
/** | ||
* Gets a paragraph count in the text. | ||
* @returns paragraph count. | ||
*/ | ||
getParagraphCount(): number; | ||
/** | ||
* Sets new style for the paragraph. | ||
* @param index paragraph index. | ||
* @param ps paragraph style. | ||
*/ | ||
setParagraphStyle(index: number, ps: ParagraphStyle); | ||
/** | ||
* Gets a paragraph style. | ||
* @param index paragraph index. | ||
* @returns paragraph style | ||
*/ | ||
getParagraphStyle(index: number): ParagraphStyle; | ||
/** | ||
* Gets a paragraph text range. | ||
* @param index paragraph index. | ||
* @returns TextRange | ||
*/ | ||
getParagraphTextRange(index: number): TextRange; | ||
/** | ||
* Gets a paragraph text range. | ||
* @param index paragraph index. | ||
* @returns TextRange | ||
*/ | ||
setParagraphMetadata(index: number, metadata: StringMap); | ||
/** | ||
* Gets a paragraph text range. | ||
* @param index paragraph index. | ||
* @returns TextRange | ||
*/ | ||
getParagraphMetadata(index: number): StringMap; | ||
} | ||
@@ -823,2 +872,8 @@ | ||
isValid(): boolean; | ||
/** | ||
* Gets the index of the paragraph | ||
* @returns 0 based index | ||
*/ | ||
getParagraphIndex(): number; | ||
} | ||
@@ -957,2 +1012,7 @@ | ||
export class ArchedTextFrame extends TextFrame { | ||
center : PointF; | ||
bend : number; | ||
} | ||
export enum PathTextAlignment { | ||
@@ -1112,3 +1172,3 @@ ascender, | ||
*/ | ||
function getVersion(): string; | ||
function getVersion(): string; | ||
} |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
2667732
6
1705
3