Skip to main content

Function: titleImage()

titleImage(figure, o): HTMLElement

Defined in: packages/sdvplot/src/plot/title.ts:19

Puts a team logo (or an https image) in the <h2> of a Plot figure and returns the <figure> (a bare <svg> is wrapped in a new one). An unknown team draws the title alone (the resolver warned once).

Parameters​

figure​

HTMLElement | SVGSVGElement

o​

TitleImageOptions

Returns​

HTMLElement