Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rive-app/canvas

Package Overview
Dependencies
Maintainers
4
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rive-app/canvas - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

package.json
{
"name": "@rive-app/canvas",
"version": "2.0.0",
"version": "2.1.0",
"description": "Rive's canvas based web api.",

@@ -5,0 +5,0 @@ "main": "rive.js",

@@ -384,2 +384,7 @@ interface RiveOptions {

transformComponent(name: string): TransformComponent;
/**
* Returns a reference for a TextValueRun object to get/set a text value for
* @param name - Name of the Text Run to grab a reference to
*/
textRun(name: string): TextValueRun;
}

@@ -487,2 +492,13 @@

export declare class TextValueRun {
/**
* Getter for text value of the Text Run
*/
get text(): string;
/**
* Setter for the text value of the Text Run
*/
set text(val: string);
}
export declare class LinearAnimation {

@@ -489,0 +505,0 @@ /**

@@ -314,2 +314,24 @@ import * as rc from "./rive_advanced.mjs";

cleanupInstances(): void;
/**
* Tries to query the setup Artboard for a text run node with the given name.
*
* @param textRunName - Name of the text run node associated with a text object
* @returns - TextValueRun node or undefined if the text run cannot be queried
*/
private retrieveTextRun;
/**
* Returns a string from a given text run node name, or undefined if the text run
* cannot be queried.
*
* @param textRunName - Name of the text run node associated with a text object
* @returns - String value of the text run node or undefined
*/
getTextRunValue(textRunName: string): string | undefined;
/**
* Sets a text value for a given text run node name if possible
*
* @param textRunName - Name of the text run node associated with a text object
* @param textRunValue - String value to set on the text run node
*/
setTextRunValue(textRunName: string, textRunValue: string): void;
play(animationNames?: string | string[], autoplay?: true): void;

@@ -316,0 +338,0 @@ pause(animationNames?: string | string[]): void;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc