Repository navigation
Added
-
Fit to content (#63, D29). A new
fitinput/prop,'canvas'(the
default, unchanged) or'content', andcontentPadding(canvas units,
default the map'sseatSize), identical in both bindings. Under'content'
the map'sviewBoxis the box around what is drawn (seat footprints turned
as they are, elements, group footprints, shown section labels, the rows
view's row labels) plus the padding, kept on the canvas. Fit, reset (0)
and full screen all frame that box, and it is the zoom's floor. Hiding a
section or switchingviewreframes the map. Core exports
contentBounds(layout, options),mapContentBounds(map, options)(so a
host can size its container to the content's proportions) and the
KerusiSeatmapFittype. -
KERUSI_SPECin core: the exact standard this library implements
(version: '1.0.0-draft',revision: 17,schemaVersion: '1.0.0-draft.17',
and alabel, "Kerusi v1.0.0-draft, rev 17"). A document'skerusimember is
"1.0"through every 1.0 draft revision, so use this, not that member, when
telling people which standard a map follows. A test keeps it in step with the
vendored conformance corpus.
Changed
- Both demos label the KerusiMap they show with the full version, "Kerusi
v1.0.0-draft, rev 17", and explain that"kerusi": "1.0"is the format
version the standard requires for every 1.0 draft. The documents themselves
are unchanged and still declare"1.0".