react-scenejs-timeline
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "react-scenejs-timeline", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "A library that represents the timeline of Scene.js. You can control time, properties, and items.", | ||
@@ -18,2 +18,3 @@ "main": "./dist/timeline.cjs.js", | ||
"scenejs", | ||
"scene.js", | ||
"css", | ||
@@ -20,0 +21,0 @@ "animate", |
<p align="middle"><img src="https://daybrush.com/scenejs/images/clapperboard.png" width="250"/></p> | ||
<p align="middle"><img src="https://raw.githubusercontent.com/daybrush/scenejs-timeline/master/demo/images/logo.png" width="320"/></p> | ||
<h2 align="middle">Scene.js React Timeline</h2> | ||
@@ -4,0 +4,0 @@ <p align="middle"><a href="https://badge.fury.io/js/react-scenejs-timeline" target="_blank"><img src="https://badge.fury.io/js/react-scenejs-timeline.svg" alt="npm version" height="18"/></a> <img src="https://img.shields.io/badge/language-typescript-blue.svg"/> <a href="https://github.com/daybrush/scenejs-timeline/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/github/license/daybrush/scenejs-timeline.svg"/></a></p> |
@@ -90,4 +90,5 @@ import Scene, { AnimatorState, SceneItem } from "scenejs"; | ||
const infiniteIndex = findIndex(states, state => { | ||
return state[ITERATION_COUNT] === INFINITE || !isFinite(state[DURATION]); | ||
}, states.length - 1); | ||
return state[ITERATION_COUNT] === INFINITE; | ||
}, states.length - 1) + 1; | ||
return getEntries(times, states.slice(0, infiniteIndex)); | ||
@@ -94,0 +95,0 @@ } |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
501029
7088