KEMBAR78
от Flash к html5. александр бацуев. зал 4 | PPT
Flash -> html5 Александр Бацуев . AnyChart.Com
AnyChart http://anychart.com
AnyChart
EcmaScript5 SVG Canvas Firefox 4 mobile iOS Safari Android Opera Mini Windows Phone
EcmaScript5 SVG Canvas Firefox 4 mobile + + + iOS Safari +/- + + Android +/- - + Opera Mini - + + Windows Phone - - -
Canvas SVG Vector Bitmap
textField.height? Antialiasing?
Interactivity DOM Single Element Redraw all for changes DOM manipulations Mouse events on any DOM element Mouse events on html element + Math Canvas SVG
<svg></svg>
Flash Sprite Shape Graphics
SVG <g></g> <path /> <rect />
SVG document.createElementNS(); element.setAttribute(); element.appendChild();
Flash. Events obj.addEventListener();
SVG. Events group.addEventListener('mouseover', mouseOverHandler);
Redraw? Clear + Redraw Update DOM <svg></svg>
JavaScript AnyChart ~800  классов ~ 80 000  LOC
JavaScript public class ClassName    extends ClassB    implements ICustom1, ICustom2 { }
Google Closure Closure Library Closure Linter Closure Compiler
Closure sample project https://github.com/batsuev/closure-sample
Problems?
Google Chrome + svg TEST T TES
SVG + JavaScript VS Flash
No binary data API. Can’t get screenshot from content. textField.editable textField.htmlText Printing? Fullscreen
Simple test test(&quot;a basic test example&quot;, function() { ok( true, &quot;this test is fine&quot; ); var value = &quot;hello&quot;; equals( &quot;hello&quot;, value, &quot;We expect value to be hello&quot; ); });
CI? PhantomJS
Questions? Александ Бацуев [email_address] twitter: alex_batsuev Skype: alex.batsuev AnyChart.Com

от Flash к html5. александр бацуев. зал 4