// This script only applies to this instance of the Atlas.
// Please also check code indicated with "@instanceonly" outside this file.
// TODO: Avoid having instance-only code inside the main scripts to make updating easier.

const prodDomain = "2024.canvas-atlas.fediverse.events";
window.prodDomain = prodDomain;

const instanceId = "canvas2024";
window.instanceId = instanceId;

const instanceSubreddit = null;
window.instanceSubreddit = instanceSubreddit;

const instanceRepo = null;
window.instanceRepo = instanceRepo;

const pageTitle = "2024 Fediverse Canvas Atlas";
window.pageTitle = pageTitle;

const canvasSize = {
	x: 1000,
	y: 500,
};
window.canvasSize = canvasSize;

const canvasOffset = {
	x: 0,
	y: 0,
};
window.canvasOffset = canvasOffset;

const canvasCenter = {
	x: canvasSize.x / 2 + canvasOffset.x,
	y: canvasSize.y / 2 + canvasOffset.y,
};
window.canvasCenter = canvasCenter;

const variationsConfig = {
	default: {
		name: "canvas",
		code: "",
		default: 0,
		drawablePeriods: [0, 0],
		drawableRegions: [
			[
				[0, 0],
				[0, 0, 999, 499],
			],
		],
		versions: [
			{
				timestamp: "Final",
				url: "./_img/fedicanvas2024/final.png",
			},
		],
		icon: '<svg width="14" height="14" version="1.1" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><g><rect y="8" width="6" height="6"/><rect x="6" width="8" height="8"/></g></svg>',
	},
};
window.variationsConfig = variationsConfig;

let defaultVariation = "default";
window.defaultVariation = defaultVariation;

let defaultPeriod = variationsConfig[defaultVariation].default;
window.defaultPeriod = defaultPeriod;

const useNumericalId = true;
window.useNumericalId = useNumericalId;

window.defaultAtlasURL = "./atlas/2024.json";
