From b5ab94eb124ee0d39e94de99cea83db11d7acf61 Mon Sep 17 00:00:00 2001 From: Aliaksandr Mitskevich Date: Wed, 10 Sep 2025 14:45:41 +0300 Subject: [PATCH] fix: Add missing methods to handle TextValueRun objects in the artboard interface --- .gitignore | 3 +++ js/src/rive_advanced.mjs.d.ts | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 63b47406..232a8221 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,9 @@ #VSCode stuff .vscode +#Idea stuff +.idea + # Node stuff node_modules diff --git a/js/src/rive_advanced.mjs.d.ts b/js/src/rive_advanced.mjs.d.ts index d27b17e3..5368f1b7 100644 --- a/js/src/rive_advanced.mjs.d.ts +++ b/js/src/rive_advanced.mjs.d.ts @@ -534,6 +534,16 @@ export declare class Artboard { * @param path - Path of where the text exists at an artboard level */ textByPath(name: string, path: string): TextValueRun; + /** + * Returns the number of TextValueRun objects in the artboard + * @returns number of TextValueRun objects in the artboard + */ + textValueRunCount(): number; + /** + * Returns a reference for a TextValueRun object to get/set a text value for + * @param index - Index of the Text Run to grab a reference to + */ + textValueRunByIndex(index: number): TextValueRun; /** * Getter and setter for the artboard width */