docs/a.js
function getBaseModel(tooltipOpts) {
		var globalDefaults = Chart.defaults.global;
		var getValueOrDefault = helpers.getValueOrDefault;

		return {
			// Positioning
			xPadding: tooltipOpts.xPadding,
			yPadding: tooltipOpts.yPadding,
			xAlign: tooltipOpts.xAlign,
			yAlign: tooltipOpts.yAlign,

			// Body
			bodyFontColor: tooltipOpts.bodyFontColor,
			_bodyFontFamily: getValueOrDefault(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),
			_bodyFontStyle: getValueOrDefault(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),
			_bodyAlign: tooltipOpts.bodyAlign,
			bodyFontSize: getValueOrDefault(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),
			bodySpacing: tooltipOpts.bodySpacing,

			// Title
			titleFontColor: tooltipOpts.titleFontColor,
			_titleFontFamily: getValueOrDefault(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),
			_titleFontStyle: getValueOrDefault(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),
			titleFontSize: getValueOrDefault(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),
			_titleAlign: tooltipOpts.titleAlign,
			titleSpacing: tooltipOpts.titleSpacing,
			titleMarginBottom: tooltipOpts.titleMarginBottom,

			// Footer
			footerFontColor: tooltipOpts.footerFontColor,
			_footerFontFamily: getValueOrDefault(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),
			_footerFontStyle: getValueOrDefault(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),
			footerFontSize: getValueOrDefault(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),
			_footerAlign: tooltipOpts.footerAlign,
			footerSpacing: tooltipOpts.footerSpacing,
			footerMarginTop: tooltipOpts.footerMarginTop,

			// Appearance
			caretSize: tooltipOpts.caretSize,
			cornerRadius: tooltipOpts.cornerRadius,
			backgroundColor: tooltipOpts.backgroundColor,
			opacity: 0,
			legendColorBackground: tooltipOpts.multiKeyBackground,
			displayColors: tooltipOpts.displayColors
		};
	}
function getBaseModel(tooltipOpts) {
		var globalDefaults = Chart.defaults.global;
		var getValueOrDefault = helpers.getValueOrDefault;

		return {
			// Positioning
			xPadding: tooltipOpts.xPadding,
			yPadding: tooltipOpts.yPadding,
			xAlign: tooltipOpts.xAlign,
			yAlign: tooltipOpts.yAlign,

			// Body
			bodyFontColor: tooltipOpts.bodyFontColor,
			_bodyFontFamily: getValueOrDefault(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),
			_bodyFontStyle: getValueOrDefault(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),
			_bodyAlign: tooltipOpts.bodyAlign,
			bodyFontSize: getValueOrDefault(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),
			bodySpacing: tooltipOpts.bodySpacing,

			// Title
			titleFontColor: tooltipOpts.titleFontColor,
			_titleFontFamily: getValueOrDefault(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),
			_titleFontStyle: getValueOrDefault(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),
			titleFontSize: getValueOrDefault(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),
			_titleAlign: tooltipOpts.titleAlign,
			titleSpacing: tooltipOpts.titleSpacing,
			titleMarginBottom: tooltipOpts.titleMarginBottom,

			// Footer
			footerFontColor: tooltipOpts.footerFontColor,
			_footerFontFamily: getValueOrDefault(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),
			_footerFontStyle: getValueOrDefault(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),
			footerFontSize: getValueOrDefault(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),
			_footerAlign: tooltipOpts.footerAlign,
			footerSpacing: tooltipOpts.footerSpacing,
			footerMarginTop: tooltipOpts.footerMarginTop,

			// Appearance
			caretSize: tooltipOpts.caretSize,
			cornerRadius: tooltipOpts.cornerRadius,
			backgroundColor: tooltipOpts.backgroundColor,
			opacity: 0,
			legendColorBackground: tooltipOpts.multiKeyBackground,
			displayColors: tooltipOpts.displayColors
		};
	}
function getBaseModel ( tooltipOpts ) { var globalDefaults = Chart . defaults . global ; var getValueOrDefault = helpers . getValueOrDefault ; return { // Positioning xPadding : tooltipOpts . xPadding , yPadding : tooltipOpts . yPadding , xAlign : tooltipOpts . xAlign , yAlign : tooltipOpts . yAlign , // Body bodyFontColor : tooltipOpts . bodyFontColor , _bodyFontFamily : getValueOrDefault ( tooltipOpts . bodyFontFamily , globalDefaults . defaultFontFamily ) , _bodyFontStyle : getValueOrDefault ( tooltipOpts . bodyFontStyle , globalDefaults . defaultFontStyle ) , _bodyAlign : tooltipOpts . bodyAlign , bodyFontSize : getValueOrDefault ( tooltipOpts . bodyFontSize , globalDefaults . defaultFontSize ) , bodySpacing : tooltipOpts . bodySpacing , // Title titleFontColor : tooltipOpts . titleFontColor , _titleFontFamily : getValueOrDefault ( tooltipOpts . titleFontFamily , globalDefaults . defaultFontFamily ) , _titleFontStyle : getValueOrDefault ( tooltipOpts . titleFontStyle , globalDefaults . defaultFontStyle ) , titleFontSize : getValueOrDefault ( tooltipOpts . titleFontSize , globalDefaults . defaultFontSize ) , _titleAlign : tooltipOpts . titleAlign , titleSpacing : tooltipOpts . titleSpacing , titleMarginBottom : tooltipOpts . titleMarginBottom , // Footer footerFontColor : tooltipOpts . footerFontColor , _footerFontFamily : getValueOrDefault ( tooltipOpts . footerFontFamily , globalDefaults . defaultFontFamily ) , _footerFontStyle : getValueOrDefault ( tooltipOpts . footerFontStyle , globalDefaults . defaultFontStyle ) , footerFontSize : getValueOrDefault ( tooltipOpts . footerFontSize , globalDefaults . defaultFontSize ) , _footerAlign : tooltipOpts . footerAlign , footerSpacing : tooltipOpts . footerSpacing , footerMarginTop : tooltipOpts . footerMarginTop , // Appearance caretSize : tooltipOpts . caretSize , cornerRadius : tooltipOpts . cornerRadius , backgroundColor : tooltipOpts . backgroundColor , opacity : 0 , legendColorBackground : tooltipOpts . multiKeyBackground , displayColors : tooltipOpts . displayColors } ; }
Helper to get the reset model for the tooltip
@param tooltipOpts {Object} the tooltip options
Helper to get the reset model for the tooltip