Repository navigation
5.11.5: a pin on a map of size 0 is no longer counted as placed
A pin on a map of size 0 is no longer counted as placed. A Map whose width and height are both 0, and that has no image, has no canvas on the map page, so nothing on it is drawn; 5.11.4's summary counted its pins as placed all the same. On a small world of four maps, one of them 0 by 0 with one pin, 5.11.4 printed:
4 maps, 3 pins and 0 zones placed. Left out: nothing. Not placed: nothing.
and 5.11.5 prints:
4 maps, 2 pins and 0 zones placed. Left out: nothing. Not placed: 1 pin on a map with no size.
1 pin sits on a map with no size (Flat) and is not placed: the map has no image to take a size from.
The map's own line said "(no stated size)", though the map states 0 and 0. It now reads "Flat: 1 pins, 0 zones (no size: width 0, height 0), not placed". On the page, the side panel's note for such a map already said its pins were not placed while the count under it read "1 pins, 0 zones placed"; the count now reads "1 pins, 0 zones not placed". The draw skill's text states the rule too: "A map has a canvas only when its width and height, stated or measured, are both greater than 0."
A map of size 0 with an image says its pins wait on the image. The page takes such a map's size from its image when the image loads, so its pins are placed only then. With a pin added on Chart and a fifth map, Sheet, 0 by 0 with an image and a pin, 5.11.4 printed the same with images on and with --no-image: "5 maps, 5 pins and 0 zones placed. Left out: nothing. Not placed: nothing." and "Sheet: 1 pins, 0 zones (no stated size)". 5.11.5 counts Sheet's pin in neither total ("5 maps, 3 pins and 0 zones placed") and gives it a line of its own:
1 pin sits on a map with no size (Sheet): the page places it if the map's image loads and gives a size.
The map's line reads "Sheet: 1 pins, 0 zones (no size: width 0, height 0), placed if its image loads and gives a size". With --no-image the totals end "Not placed: 2 pins on maps with no size." and the line says why:
1 pin sits on a map with no size (Sheet) and is not placed: the map images are not loaded (--no-image), so its image cannot give a size.
A map with an image, no stated size and a pin is unchanged: in both versions it takes its size from its pins, "Chart: 1 pins, 0 zones (size measured from its points)".
A measured size says which side was measured. A Map with a width and no height takes its height from its pins. The summary said "(size measured from its points)"; it now names the side: "Strip: 1 pins, 0 zones (height measured from its points)". The page's panel carries the same words after the size, "500 × 60 px (height measured from its points)", where it said "(measured from its points)".
A map drawn before 5.11.5. Updating the toolkit changes nothing in a world: the script writes its page into the output folder, never into the world. A map page drawn with 5.11.4 keeps 5.11.4's words; draw the maps again to see the new ones.
The rest of the release is tests.