Files
JiboSDK/node_modules/jibo-keyframes/lib/keyframe-search.js

1 line
374 B
JavaScript
Raw Normal View History

2026-03-22 03:21:45 +02:00
"use strict";function e(e,r){for(var t=0,o=e.length-2,f=void 0;o>=t;)if(f=Math.floor((t+o)/2),r>=e[f+1].time)t=f+1;else{if(!(r<e[f].time))return{start:f,end:f+1};o=f-1}}function r(e,r){if(0!==e.length)for(var t=0,o=e.length-1,f=void 0;o>=t;){f=Math.floor((t+o)/2);var i=e[f].time;if(r===i)return f;r>i?t=f+1:o=f-1}}module.exports={keyframeSearch:e,keyframeSearchAbsolute:r};