@rickosborne/hexgrid
Version:
Rick Osborne's collection of hexagonal grid-related code.
49 lines (48 loc) • 2.49 kB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var double_exports = {};
__export(double_exports, {
DOUBLE_H_N: () => DOUBLE_H_N,
DOUBLE_H_NE: () => DOUBLE_H_NE,
DOUBLE_H_NW: () => DOUBLE_H_NW,
DOUBLE_H_S: () => DOUBLE_H_S,
DOUBLE_H_SE: () => DOUBLE_H_SE,
DOUBLE_H_SW: () => DOUBLE_H_SW,
DOUBLE_W_E: () => DOUBLE_W_E,
DOUBLE_W_NE: () => DOUBLE_W_NE,
DOUBLE_W_NW: () => DOUBLE_W_NW,
DOUBLE_W_SE: () => DOUBLE_W_SE,
DOUBLE_W_SW: () => DOUBLE_W_SW,
DOUBLE_W_W: () => DOUBLE_W_W
});
module.exports = __toCommonJS(double_exports);
var import_hex_system = require("./hex-system.cjs");
const DOUBLE_H_N = Object.freeze({ col: 0, row: -2, system: import_hex_system.DOUBLE_H });
const DOUBLE_H_NE = Object.freeze({ col: 1, row: -1, system: import_hex_system.DOUBLE_H });
const DOUBLE_H_SE = Object.freeze({ col: 1, row: 1, system: import_hex_system.DOUBLE_H });
const DOUBLE_H_S = Object.freeze({ col: 0, row: 2, system: import_hex_system.DOUBLE_H });
const DOUBLE_H_SW = Object.freeze({ col: -1, row: 1, system: import_hex_system.DOUBLE_H });
const DOUBLE_H_NW = Object.freeze({ col: -1, row: -1, system: import_hex_system.DOUBLE_H });
const DOUBLE_W_E = Object.freeze({ col: 2, row: 0, system: import_hex_system.DOUBLE_W });
const DOUBLE_W_SE = Object.freeze({ col: 1, row: 1, system: import_hex_system.DOUBLE_W });
const DOUBLE_W_SW = Object.freeze({ col: -1, row: 1, system: import_hex_system.DOUBLE_W });
const DOUBLE_W_W = Object.freeze({ col: -2, row: 0, system: import_hex_system.DOUBLE_W });
const DOUBLE_W_NW = Object.freeze({ col: -1, row: 1, system: import_hex_system.DOUBLE_W });
const DOUBLE_W_NE = Object.freeze({ col: 1, row: -1, system: import_hex_system.DOUBLE_W });
//# sourceMappingURL=double.cjs.map