You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use animation frame (requestAnimationFrame) but because don't work (callback is called a single time) I used
rxjs interval:
interval(50)
.pipe(takeWhile(() => this.animation.isPlaying, true))
.subscribe(() => {
console.log(target.rotate); // is 0
getComputedCssValues(target); // rotate is also 0
getComputedStyle(canvasEl); // canvasEl taken with ViewChildren, error: ReferenceError: getComputedStyle is not defined
});
I use nativescript 8.4.
How can I get computed rotate style to see canvas rotation?
Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I rotate a canvas view using nativescript animation:
I tried to use animation frame (requestAnimationFrame) but because don't work (callback is called a single time) I used
rxjs interval:
I use nativescript 8.4.
How can I get computed rotate style to see canvas rotation?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions