import { combineReducers } from 'redux';
import scene, { findObject } from './scene';
import ui from './ui';
export var getObjects = function (state) { return state.scene.objects; };
export var getSelectedObjects = function (state) {
    return state.ui.selectedIds
        .map(function (id) { return findObject(state.scene.objects, function (object) { return object.id === id; }); })
        .filter(function (o) { return o; });
};
export var getLastObject = function (state) {
    var objects = state.scene.objects;
    return objects[objects.length - 1];
};
var threed = combineReducers({
    scene: scene,
    ui: ui,
});
export default threed;
//# sourceMappingURL=index.js.map