OptionalpaddingA Gosling.js specification (declarative JSON). Data flows via the spec's
own data blocks; the factory's data argument is ignored. Typed as
unknown here to avoid importing gosling.js; gosling.ts narrows it.
OptionalthemeGosling's own theme, passed to Gosling as is: a built-in name such as
"light", "dark" or "ggplot", or a Gosling theme object. It is not
a plotomics theme. Every other component takes a
Partial<PlotomicsTheme> here, but Gosling draws its own tracks, so no
plotomics theme field applies: background, foreground, muted,
grid, axis, fontFamily, fontSize, categorical and padding
are not read. Set colours and fonts in the Gosling theme or in the
spec; the host keeps the default padding of 10 px around Gosling.
Gosling's own outer padding in px, passed to its component. The host keeps the default theme padding of 10 px around Gosling, so the views sit this padding plus 10 px in, and 10 px in with a padding of 0. Unset, it is 50, so the views sit 60 px in, as with Gosling's own default.