Browse Source

linter fix

Ievgen Naida 1 year ago
parent
commit
bc49eb6da2
3 changed files with 3 additions and 3 deletions
  1. 1 1
      CHANGELOG.md
  2. 1 1
      package.json
  3. 1 1
      src/timeline.ts

+ 1 - 1
CHANGELOG.md

@@ -2,7 +2,7 @@
 
 ## Changes
 
-## [2.3.3] - 10.04.2024
+## [2.3.4] - 10.04.2024
 
 ### Changed
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "animation-timeline-js",
-  "version": "2.3.3",
+  "version": "2.3.4",
   "description": "animation timeline control based on the canvas.",
   "main": "lib/animation-timeline.min.js",
   "types": "lib/animation-timeline.d.ts",

+ 1 - 1
src/timeline.ts

@@ -2019,8 +2019,8 @@ export class Timeline extends TimelineEventsEmitter {
 
           this._renderKeyframe(this._ctx, keyframeViewModel);
         } finally {
+          this._ctx.restore();
         }
-        this._ctx.restore();
       }
     });
   };