'use strict';

const PACKAGE_VERSION = "1.0.6";const REPOSITORY_URL = "https://github.com/ITCase/itcase-map";

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

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

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