"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var react_redux_1 = require("react-redux");
var CanvasView_1 = require("../components/CanvasView");
var canvas_1 = require("../redux/canvas");
var mapStateToProps = function (state, ownProps) {
    return {
        rootScene: {
            debug: true,
            map: state.canvas,
            assets: state.asset,
            screen: {
                width: 320,
                height: 192
            }
        },
        loading: state.asset.loading,
        mode: state.mode
    };
};
var mapDispatchToProps = function (dispatch) {
    return {
        draw: function (cursor) { return dispatch(canvas_1.actions.draw(cursor)); }
    };
};
exports.default = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(CanvasView_1.CanvasView);
//# sourceMappingURL=CanvasView.js.map