@rive-app/webgl-single 2.0.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-single",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Rive's webgl based web api with bundled wasm.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
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;