A user-supplied specification for rendering shields
const shieldsSpecification = { shields: { "US:I": { textColor: Color.shields.white, spriteBlank: ["shield_us_interstate_2", "shield_us_interstate_3"], textLayout: textConstraint("southHalfEllipse"), padding: { left: 4, right: 4, top: 6, bottom: 5, }, } }, options: { bannerTextColor: "#000", bannerTextHaloColor: "#FFF", bannerHeight: 9, bannerPadding: 1, shieldFont: '"sans-serif-condensed", "Arial Narrow", sans-serif', shieldSize: 20, }}; Copy
const shieldsSpecification = { shields: { "US:I": { textColor: Color.shields.white, spriteBlank: ["shield_us_interstate_2", "shield_us_interstate_3"], textLayout: textConstraint("southHalfEllipse"), padding: { left: 4, right: 4, top: 6, bottom: 5, }, } }, options: { bannerTextColor: "#000", bannerTextHaloColor: "#FFF", bannerHeight: 9, bannerPadding: 1, shieldFont: '"sans-serif-condensed", "Arial Narrow", sans-serif', shieldSize: 20, }};
Shield definitions
Shield options
Generated using TypeDoc
A user-supplied specification for rendering shields
Example