@rive-app/canvas-advanced-single 2.43.1 → 2.44.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/canvas_advanced_single.mjs +1 -1
- package/package.json +1 -1
- package/rive_advanced.mjs.d.ts +10 -3
package/package.json
CHANGED
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -1049,13 +1049,13 @@ export declare class StateMachineInstance {
|
|
|
1049
1049
|
focusRight(): boolean;
|
|
1050
1050
|
|
|
1051
1051
|
/**
|
|
1052
|
-
* Move focus to the nearest focusable node
|
|
1052
|
+
* Move focus to the nearest focusable node above the current focus, by on-screen position.
|
|
1053
1053
|
* @returns false if nothing is focused or no node lies in that direction
|
|
1054
1054
|
*/
|
|
1055
1055
|
focusUp(): boolean;
|
|
1056
1056
|
|
|
1057
1057
|
/**
|
|
1058
|
-
* Move focus to the nearest focusable node
|
|
1058
|
+
* Move focus to the nearest focusable node below the current focus, by on-screen position.
|
|
1059
1059
|
* @returns false if nothing is focused or no node lies in that direction
|
|
1060
1060
|
*/
|
|
1061
1061
|
focusDown(): boolean;
|
|
@@ -1075,7 +1075,7 @@ export declare class StateMachineInstance {
|
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Forward a key press/release to the focus tree via the state machine's focus manager.
|
|
1077
1077
|
* The event bubbles from the primary focus node up its ancestors until a handler consumes it.
|
|
1078
|
-
*
|
|
1078
|
+
* Modifier keys are sent as keys too; held modifiers also go in the `modifiers` bitmask.
|
|
1079
1079
|
* @param key - GLFW-style key code (see js/src/utils/keyMap.ts)
|
|
1080
1080
|
* @param modifiers - KeyModifiers bitmask (shift=1, ctrl=2, alt=4, meta=8)
|
|
1081
1081
|
* @param isPressed - true for keydown, false for keyup
|
|
@@ -1094,6 +1094,13 @@ export declare class StateMachineInstance {
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
textInput(text: string): boolean;
|
|
1096
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* The selected text of the focused element, or an empty string when nothing with a
|
|
1099
|
+
* selection is focused. Used to fill the clipboard on copy/cut. An obscured field
|
|
1100
|
+
* (i.e. a password) reports empty string.
|
|
1101
|
+
*/
|
|
1102
|
+
selectedText(): string;
|
|
1103
|
+
|
|
1097
1104
|
/**
|
|
1098
1105
|
* Deletes the underlying instance created via the WASM. It's important to clean up this instance
|
|
1099
1106
|
* when no longer in use
|