26
Flash -> html5 Александр Бацуев. AnyChart.Com

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

  • Upload
    rit2011

  • View
    1.242

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Citation preview

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

Flash -> html5

Александр Бацуев.AnyChart.Com

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

AnyChart

http://anychart.com

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

AnyChart

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

EcmaScript5 SVG Canvas

Firefox 4 mobile

iOS Safari

Android

Opera Mini

Windows Phone

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

EcmaScript5 SVG Canvas

Firefox 4 mobile + + +iOS Safari +/- + +

Android +/- - +Opera Mini - + +

Windows Phone - - -

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

CanvasSVGVector Bitmap

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

textField.height?

Antialiasing?

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

Interactivity

DOM Single Element

Redraw all for changesDOM manipulations

Mouse events on any DOM element Mouse events on html element + Math

CanvasSVG

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

<svg></svg>

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

Flash

SpriteShape

Graphics

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

SVG

<g></g><path /><rect />

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

SVG

document.createElementNS();element.setAttribute();element.appendChild();

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

Flash. Events

obj.addEventListener();

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

SVG. Events

group.addEventListener('mouseover', mouseOverHandler);

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

Redraw?

Clear + Redraw Update DOM

<svg></svg>

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

JavaScript

AnyChart~800 классов~80 000 LOC

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

JavaScript

public class ClassName extends ClassB implements ICustom1, ICustom2 {}

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

Google Closure

Closure LibraryClosure LinterClosure Compiler

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

Closure sample project

https://github.com/batsuev/closure-sample

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

Problems?

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

TESTTTES

Google Chrome + svg

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

SVG + JavaScriptVS

Flash

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

1. No binary data API.2. Can’t get screenshot from content.3. textField.editable4. textField.htmlText5. Printing?6. Fullscreen

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

Simple testtest("a basic test example", function() { ok( true, "this test is fine" ); var value = "hello"; equals( "hello", value, "We expect value to be hello" );});

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

CI?

PhantomJS

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

Questions?

Александ Бацуев[email protected]

twitter: alex_batsuevSkype: alex.batsuev

AnyChart.Com