@rive-app/webgl-single 1.2.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +22 -0
- package/rive.js +153 -108
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +16 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -311,6 +311,28 @@ export declare class Rive {
|
|
|
311
311
|
* might happen.
|
|
312
312
|
*/
|
|
313
313
|
cleanupInstances(): void;
|
|
314
|
+
/**
|
|
315
|
+
* Tries to query the setup Artboard for a text run node with the given name.
|
|
316
|
+
*
|
|
317
|
+
* @param textRunName - Name of the text run node associated with a text object
|
|
318
|
+
* @returns - TextValueRun node or undefined if the text run cannot be queried
|
|
319
|
+
*/
|
|
320
|
+
private retrieveTextRun;
|
|
321
|
+
/**
|
|
322
|
+
* Returns a string from a given text run node name, or undefined if the text run
|
|
323
|
+
* cannot be queried.
|
|
324
|
+
*
|
|
325
|
+
* @param textRunName - Name of the text run node associated with a text object
|
|
326
|
+
* @returns - String value of the text run node or undefined
|
|
327
|
+
*/
|
|
328
|
+
getTextRunValue(textRunName: string): string | undefined;
|
|
329
|
+
/**
|
|
330
|
+
* Sets a text value for a given text run node name if possible
|
|
331
|
+
*
|
|
332
|
+
* @param textRunName - Name of the text run node associated with a text object
|
|
333
|
+
* @param textRunValue - String value to set on the text run node
|
|
334
|
+
*/
|
|
335
|
+
setTextRunValue(textRunName: string, textRunValue: string): void;
|
|
314
336
|
play(animationNames?: string | string[], autoplay?: true): void;
|
|
315
337
|
pause(animationNames?: string | string[]): void;
|
|
316
338
|
scrub(animationNames?: string | string[], value?: number): void;
|