cdotyone / mochaui

development tree for MochaUI
http://mochaui.org/demo/
Other
290 stars 83 forks source link

Enhancement: Use Safari's built-in shadowing in canvas - #59 #5

Closed mui-org closed 14 years ago

mui-org commented 14 years ago

Reported by carlsholmberg, Jan 29, 2009

I hacked together a Shadower.js-file that implements MochaUI.Window if the browser is Browser.Engine.webkit. It changes some of the functions to use Safari's support for shadowin in canvas-drawing.

It is a proof-of-concept which could be included in the library to make the generation of windows faster in Safari and other browsers in the future.

Currently it only checks if it is Browser.Engine.webkit, which is'nt ideal. I'm not sure which exact versions of Safari have native shadows in canvas, so this needs to be corrected.

And again sorry for the previous post!

Thanks for a awesome library! Great work!

Comment 1 by carlsholmberg, Jan 29, 2009

Here is the file.

Shadower.js

4.0 KB Download

mui-org commented 14 years ago

added shadower for safari