"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var react_redux_1 = require("react-redux");
var CanvasView_1 = require("../components/CanvasView");
var redux_1 = require("../redux");
var mapStateToProps = function (state, ownProps) {
    return {
        rootScene: {
            map: state.canvas,
            assets: state.asset,
            screen: {
                width: 320,
                height: 192
            }
        },
        loading: state.asset.loading,
        cursorMode: state.mode.cursorMode
    };
};
var mapDispatchToProps = function (dispatch, ownProps) {
    return {
        onCanvasMouseEnter: function (e) { return dispatch(redux_1.input.actions.mouseEnter(e)); },
        onCanvasMouseLeave: function (e) { return dispatch(redux_1.input.actions.mouseLeave(e)); },
        onCanvasMouseDown: function (e) { return dispatch(redux_1.input.actions.mouseDown(e)); },
        onCanvasMouseMove: function (e) { return dispatch(redux_1.input.actions.mouseMove(e)); },
        onCanvasMouseUp: function (e) { return dispatch(redux_1.input.actions.mouseUp(e)); }
    };
};
exports.default = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(CanvasView_1.default);
//# sourceMappingURL=CanvasView.js.map