function BasicPaneUtils.observePercentVisible(G)assert(BasicPane.isBasicPane(G),"\066\097\100 \066\097\115\105\099\080\097\110\101")return(BasicPaneUtils.observeVisible(G)):Pipe({Rx.map(function(G)return G and 1 or 0 end);Rx.startWith({0})})end
--[=[
	Observes percent visibility
	@param basicPane BasicPane
	@return Observable<number>
]=]
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
