openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Source Control


From: Ger Hobbelt
Subject: Re: [Openexr-devel] Source Control
Date: Sat, 21 May 2011 00:41:15 +0200

On Fri, May 20, 2011 at 6:44 PM,  <address@hidden> wrote:
On 20 May 2011 15:01, Bob Friesenhahn <address@hidden> wrote:
> The pretty network graph depends on the user's browser supporting the Adobe
> FLASH plugin.

Actually, it's html and js. Or that's the viewer I get here anyway.

Right. IIRC it's a canvas (HTML5) thing; depending on browser, you get Flash as a replacement (IE8 and lower, most probably; IE9 got native canvas support)

Checked: yes, it is canvas with Flash fallback:

<script type="text/_javascript_">
if (CanvasRenderingContext2D) {
var canvas = $("#ng").find('canvas')[0]
var ctx = canvas.getContext('2d')
if (ctx.fillText) {
var ng = new Network("#ng", 920, 600)
} else {
var div = $("#ng")
div.empty()
div.after("<object classid="" width=\"920\" height=\"600\" id=\"network\" ><param name=\"movie\" value=\"http://asset0.github.com/flash/network-3.0.0.swf\"/><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"noscale\" /><param NAME=\"FlashVars\" value=\"repo=" + GitHub.nameWithOwner + "\"><embed src="" href="http://asset0.github.com/flash/network-3.0.0.swf\">http://asset0.github.com/flash/network-3.0.0.swf\" width=\"920\" height=\"600\" name=\"network\" quality=\"high\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" FlashVars=\"repo=" + GitHub.nameWithOwner + "\" /></object> ")
}
}
</script>


so you need a HTML5 browser on your nix box and you're good to go.

Just tested: OK on vanilla install Ubuntu VM with extra FireFox 3.6.16: graph and everything renders as expected, so you got it all.
Konqueror is fubar when it comes to running _javascript_ (it will already croaks on mootools, jQuery and their ilk), so that one is out.
Haven't tested other on Linux; I know several folks who dev on a Mac and don't hear them complain (Safari knows canvas and at least the basic HTML5)

--
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   address@hidden
mobile: +31-6-11 120 978
--------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]