vendor/chart.js/Chart.js
function getConstraintDimension(domNode, maxStyle, percentageProperty) {
		var view = document.defaultView;
		var parentNode = helpers$1._getParentNode(domNode);
		var constrainedNode = view.getComputedStyle(domNode)[maxStyle];
		var constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];
		var hasCNode = isConstrainedValue(constrainedNode);
		var hasCContainer = isConstrainedValue(constrainedContainer);
		var infinity = Number.POSITIVE_INFINITY;

		if (hasCNode || hasCContainer) {
			return Math.min(
				hasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,
				hasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);
		}

		return 'none';
	}
function getConstraintDimension(domNode, maxStyle, percentageProperty) {
		var view = document.defaultView;
		var parentNode = helpers$1._getParentNode(domNode);
		var constrainedNode = view.getComputedStyle(domNode)[maxStyle];
		var constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];
		var hasCNode = isConstrainedValue(constrainedNode);
		var hasCContainer = isConstrainedValue(constrainedContainer);
		var infinity = Number.POSITIVE_INFINITY;

		if (hasCNode || hasCContainer) {
			return Math.min(
				hasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,
				hasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);
		}

		return 'none';
	}
function getConstraintDimension ( domNode , maxStyle , percentageProperty ) { var view = document . defaultView ; var parentNode = helpers$1 . _getParentNode ( domNode ) ; var constrainedNode = view . getComputedStyle ( domNode ) [ maxStyle ] ; var constrainedContainer = view . getComputedStyle ( parentNode ) [ maxStyle ] ; var hasCNode = isConstrainedValue ( constrainedNode ) ; var hasCContainer = isConstrainedValue ( constrainedContainer ) ; var infinity = Number . POSITIVE_INFINITY ; if ( hasCNode || hasCContainer ) { return Math . min ( hasCNode ? parseMaxStyle ( constrainedNode , domNode , percentageProperty ) : infinity , hasCContainer ? parseMaxStyle ( constrainedContainer , parentNode , percentageProperty ) : infinity ) ; } return 'none' ; }
Returns the max width or height of the given DOM node in a cross-browser compatible fashion
@param {HTMLElement} domNode - the node to check the constraint on
@param {string} maxStyle - the style that defines the maximum for the direction we are using ('max-width' / 'max-height')
@param {string} percentageProperty - property of parent to use when calculating width as a percentage
@see {@link https://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser}
Returns the max width or height of the given DOM node in a cross - browser compatible fashion