@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/rive_advanced.mjs.d.ts
CHANGED
|
@@ -381,6 +381,11 @@ export declare class Artboard {
|
|
|
381
381
|
* @param name - Name of the transform component to grab a reference to
|
|
382
382
|
*/
|
|
383
383
|
transformComponent(name: string): TransformComponent;
|
|
384
|
+
/**
|
|
385
|
+
* Returns a reference for a TextValueRun object to get/set a text value for
|
|
386
|
+
* @param name - Name of the Text Run to grab a reference to
|
|
387
|
+
*/
|
|
388
|
+
textRun(name: string): TextValueRun;
|
|
384
389
|
}
|
|
385
390
|
|
|
386
391
|
export declare class Bone extends TransformComponent {
|
|
@@ -483,6 +488,17 @@ export declare class LinearAnimationInstance {
|
|
|
483
488
|
delete(): void;
|
|
484
489
|
}
|
|
485
490
|
|
|
491
|
+
export declare class TextValueRun {
|
|
492
|
+
/**
|
|
493
|
+
* Getter for text value of the Text Run
|
|
494
|
+
*/
|
|
495
|
+
get text(): string;
|
|
496
|
+
/**
|
|
497
|
+
* Setter for the text value of the Text Run
|
|
498
|
+
*/
|
|
499
|
+
set text(val: string);
|
|
500
|
+
}
|
|
501
|
+
|
|
486
502
|
export declare class LinearAnimation {
|
|
487
503
|
/**
|
|
488
504
|
* The animation's loop type
|