function shapeTypeMap(canvas) {
	return {
		0: { create: shapeData => path(canvas, shapeData) },
		1: { create: shapeData => circle(canvas, shapeData) },
		2: { create: shapeData => rect(canvas, shapeData) },
		3: { create: shapeData => { /** @type {RectData} */(shapeData).t = true; return rect(canvas, shapeData); } },
		4: { create: shapeData => rhomb(canvas, shapeData) }
	};
}
@param {CanvasElement} canvas
@returns {Record<number, ShapeType>}