function BasicPaneUtils.observePercentVisible(M)assert(BasicPane.isBasicPane(M),"\066\097\100 \066\097\115\105\099\080\097\110\101")return(BasicPaneUtils.observeVisible(M)):Pipe({Rx.map(function(M)return M and 1 or 0 end),Rx.startWith({0})})end

function BasicPaneUtils.observePercentVisible(basicPane)
	assert(BasicPane.isBasicPane(basicPane), "Bad BasicPane")

	return BasicPaneUtils.observeVisible(basicPane):Pipe({
		Rx.map(function(visible)
			return visible and 1 or 0
		end);
		Rx.startWith({0}); -- Ensure fade in every time.
	})
end
