@rive-app/canvas 2.43.1 → 2.44.1
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 +15 -4
- package/rive.js +1755 -384
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +87 -3
- package/rive_fallback.wasm +0 -0
- package/semantics/accessibilityOverlay.d.ts +56 -1
- package/semantics/claimedKeyEvents.d.ts +7 -0
- package/semantics/semanticTreeModel.d.ts +2 -0
- package/utils/canvasOffset.d.ts +8 -0
- package/utils/keyMap.d.ts +141 -0
- package/utils/registerKeyboardInteractions.d.ts +42 -7
- package/utils/registerTouchInteractions.d.ts +9 -4
- package/utils/textInputProxy.d.ts +61 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -732,6 +732,8 @@ export declare class Rive {
|
|
|
732
732
|
private _dataEnums;
|
|
733
733
|
private _tabIndex;
|
|
734
734
|
private _prevHasFocus;
|
|
735
|
+
private _prevWantsTextInputSession;
|
|
736
|
+
private _inPointerDownDrain;
|
|
735
737
|
private _focusOptions;
|
|
736
738
|
private _semanticTree;
|
|
737
739
|
private _accessibilityOverlay;
|
|
@@ -777,11 +779,18 @@ export declare class Rive {
|
|
|
777
779
|
* i.e. { isTouchScrollEnabled: true }
|
|
778
780
|
*/
|
|
779
781
|
setupRiveListeners(riveListenerOptions?: SetupRiveListenersOptions): void;
|
|
782
|
+
private isEditingHostFocused;
|
|
783
|
+
private get focusStateMachine();
|
|
780
784
|
/**
|
|
781
785
|
* Wire keyboard interactions when a playing state machine has focus nodes.
|
|
782
786
|
* Called at listener setup and lazily each frame so late-bound bindable artboards work.
|
|
783
787
|
*/
|
|
784
788
|
private ensureKeyboardInteractions;
|
|
789
|
+
/** Runs inside touchend/mouseup so focusing the proxy raises the mobile keyboard. */
|
|
790
|
+
private summonKeyboardForGesture;
|
|
791
|
+
/** expectsKeyboardInput, and (with semantics on) the focused node is a textField. */
|
|
792
|
+
private wantsTextInputSession;
|
|
793
|
+
private advanceAndDrainForPointer;
|
|
785
794
|
private cleanupKeyboardInteractions;
|
|
786
795
|
/**
|
|
787
796
|
* Remove Rive Listeners setup on the canvas
|
|
@@ -806,11 +815,12 @@ export declare class Rive {
|
|
|
806
815
|
drawFrame(): void;
|
|
807
816
|
private _canvasSizeChanged;
|
|
808
817
|
private _deferredWorkPending;
|
|
809
|
-
/**
|
|
810
|
-
* Poll focus state each frame to see if we should focus/blur the canvas in case
|
|
811
|
-
* Rive internally updated focus outside of user interaction (e.g., via listener action)
|
|
812
|
-
*/
|
|
818
|
+
/** Rive can move focus on its own, so reconcile the text session and DOM focus each frame. */
|
|
813
819
|
private pollFocusState;
|
|
820
|
+
/** Begin/end the text session on wantsSession edges; decorate the proxy while it has DOM focus. */
|
|
821
|
+
private syncTextInputSession;
|
|
822
|
+
/** Mirror Rive's hasFocus into the keyboard session state and, on opt-in, canvas focus. */
|
|
823
|
+
private syncRiveFocus;
|
|
814
824
|
private lastRenderTime;
|
|
815
825
|
private frameRequestId;
|
|
816
826
|
/**
|
|
@@ -1241,6 +1251,7 @@ export declare class Rive {
|
|
|
1241
1251
|
*/
|
|
1242
1252
|
get devicePixelRatioUsed(): number;
|
|
1243
1253
|
set devicePixelRatioUsed(value: number);
|
|
1254
|
+
private reportDisplayScale;
|
|
1244
1255
|
/**
|
|
1245
1256
|
* Sets the main view model instance and applies it (rebinds). Equivalent to
|
|
1246
1257
|
* `setViewModelInstance(vmi)` followed by `bind()`.
|