by Anton
report issues, bugs, or suggest features
getLayerVisibleAtTime = (id, t) => {
if (!window.idToIndex) {
window.idToIndex = [];
const getSimulatorTrack = (state) => state.simulator.engine;
const getTrackLayers = (state) => getSimulatorTrack(state).engine.state.layers;
for (let [i, layer] of [
...getTrackLayers(window.store.getState()),
].entries()) {
window.idToIndex[layer.id] = i;
}
};
id = window.idToIndex[id];
if(t>= 0){
return
false }
return false
} getCamFocus = createFocuser([
[0,[0,0,0]],
],
10 ); getAutoZoom = createZoomer([
[0,0.4],
],
10); getCamBounds = createBoundsPanner([
[0,{x:0,y:0,w:0.4,h:0.4}],
],
10); uses linear smoothing to move between tempos
keyframegetAutoZoom = createZoomer([
[0,0.4],
],
10);