"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var lib_1 = require("csstips/lib");
var React = require("react");
var ReactDOM = require("react-dom");
var _1 = require(".");
var rootId = 'root';
var container = document.createElement('div');
container.id = rootId;
document.body.appendChild(container);
lib_1.normalize();
lib_1.setupPage("#" + rootId);
ReactDOM.render(React.createElement(_1.default, { ref: function (ref) { return (window.root = ref); }, map: defaultMap() }), container);
function defaultMap() {
    // 15x10 の草原からスタート
    var row = function (index) { return Array.from({ length: 15 }).map(function () { return index; }); };
    var table = function (index) {
        return Array.from({ length: 10 }).map(function () { return row(index); });
    };
    return {
        tables: [table(-888), table(-888), table(1000)],
        squares: [
            {
                index: 1000,
                placement: {
                    type: 'Ground'
                },
                tile: {
                    size: [32, 32],
                    image: {
                        type: 'data-url',
                        src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAAA4UlEQVRYw8WXMQ7CQAwE8xEED+GBlFT5RFpKHsGPQJzkZtFqvQFuCxe+8ykT39pxlu1xfr7tejsOW++nYeXjPouvdTyP+3h+iQOwwMt2GMbA0Gfxtc7A8wAshSyl3StQV1JgeQCV4gpkfld8zM8DoOi6KXfFxvw8gNtQGBiWoWpgVITTAdwHqXj3RfIALIWqtaqUs7LF+DzA7LKTGpgOgGJRrZaJyy3Dj1YcA/hXGXbFmAfYO1y6DUf2gRiAO2i4DUiNcHmAX4vLHWbzAN2Ufzu22/8F0wD2iq/7uVVlHAd4AY/m2cw040lfAAAAAElFTkSuQmCC'
                    },
                    author: {
                        name: 'ぴぽや',
                        url: 'http://blog.pipoya.net/'
                    }
                }
            }
        ]
    };
}
//# sourceMappingURL=example.js.map