'use strict';

var connectors = require('../../connectors-BKxapB1B.js');
require('uuid');
require('pathfinding');
require('dom-to-image');
require('file-saver');
require('chroma-js');
require('immer');
require('zod');
require('./ui.js');

var getRectangleFromSize = function (from, size) {
    var to = {
        x: from.x + size.width,
        y: from.y + size.height
    };
    return { from: from, to: to };
};

exports.ISO_PROJECTION_TRANSFORM = connectors.ISO_PROJECTION_TRANSFORM;
exports.ISO_TRANSFORM_PARAMS = connectors.ISO_TRANSFORM_PARAMS;
exports.getAllConnectorsInBounds = connectors.getAllConnectorsInBounds;
exports.getAllEntitiesInBounds = connectors.getAllEntitiesInBounds;
exports.getAllItemsInBounds = connectors.getAllItemsInBounds;
exports.getAllRectanglesInBounds = connectors.getAllRectanglesInBounds;
exports.getAllTextBoxesInBounds = connectors.getAllTextBoxesInBounds;
exports.getBoundingBox = connectors.getBoundingBox;
exports.getBoundingBoxSize = connectors.getBoundingBoxSize;
exports.getFirstItemAtTile = connectors.getFirstItemAtTile;
exports.getFitToViewParams = connectors.getFitToViewParams;
exports.getGridSubset = connectors.getGridSubset;
exports.getIsoMatrix = connectors.getIsoMatrix;
exports.getIsoProjectedTileSize = connectors.getIsoProjectedTileSize;
exports.getIsoProjectionCss = connectors.getIsoProjectionCss;
exports.getIsoProjectionTransformCss = connectors.getIsoProjectionTransformCss;
exports.getMouse = connectors.getMouse;
exports.getProjectBounds = connectors.getProjectBounds;
exports.getTextBoxDimensions = connectors.getTextBoxDimensions;
exports.getTextBoxEndTile = connectors.getTextBoxEndTile;
exports.getTextWidth = connectors.getTextWidth;
exports.getTileFlatPosition = connectors.getTileFlatPosition;
exports.getTileIsoPosition = connectors.getTileIsoPosition;
exports.getTileScrollPosition = connectors.getTileScrollPosition;
exports.getTranslateCSS = connectors.getTranslateCSS;
exports.getUnprojectedBounds = connectors.getUnprojectedBounds;
exports.hasMovedTile = connectors.hasMovedTile;
exports.isBoundsIntersection = connectors.isBoundsIntersection;
exports.isWithinBounds = connectors.isWithinBounds;
exports.isoToScreen = connectors.isoToScreen;
exports.screenToFlatTile = connectors.screenToFlatTile;
exports.screenToIsoTile = connectors.screenToIsoTile;
exports.sortByPosition = connectors.sortByPosition;
exports.getRectangleFromSize = getRectangleFromSize;
