2. Outline
What is EDA ?
3 Tiers model
Tier 1
Tier 2
Tier 3
Practice
3. What is EDA
Epsilon data format for digital publishing.
We use them to represent the digital data:
book, comic, magazine, …
Anything else ?
Motion
Comic, Brochure, Menu, Animation, Diagram, Fin
ance report, Survey, …
And much much more …
4. Principle
It’s designed based on the idea that every
business object can be represent as a
tree of other objects.
Example:
a magazine will contains many pages,
each page will contain one or many articles,
each articles in turn will contain many widget:
slideshow, text, title, …
7. EDANode
One node will contain two parts:
Its properties and its children
Node will be identified by id, tags and type.
Node will have many states
Each states will contain its own attributes
For example: landscape, portrait, …
Any attributes which wasn’t declared in one state, it’s
contained in state default
13. EDAView
autoresizingMasks
rect
Name Value
kEDAAutoresizingMaskNone 0
kEDAAutoresizingMaskFlexibleWidth 1
kEDAAutoresizingMaskFlexibleHeight 2
kEDAAutoresizingMaskFixedLeftMargin 4
kEDAAutoresizingMaskFixedRightMargin 8
kEDAAutoresizingMaskFixedTopMargin 16
kEDAAutoresizingMaskFixedBottomMargin 32
14. EDAView (cont)
One view can have many renderer which can be
used separately for each purpose
By default, one view will have a render which named
by adding “-Renderer” to its class.
For example, EDAScrollPage will have
EDAScrollPageRenderer as its default renderer.
21. EDATransformAnimation
Points using unit vector (0,1) instead of absolute
vector.
fromPoint -> toPoint
fromScale->toScale
fromRotation->toRotation
fromAlpha->toAlpha
recursives
count
duration
22. EDAAnimation
Think of it as a view which animation applied up-on.
Can contains any EDAView inside.
23. EDATransformToAnimation
There’s no “from”. Just animate using the current
attributes.
<key>toPoint</key>
<string>{0.4013020833,0.814453125}</string>
<key>toAlpha</key>
<real>0.8</real>
<key>toScale</key>
<real>1</real>
24. EDASequenceAnimation
Play animation, one by one.
Every sub-animation will be represent as this node’s
children, and has tag animation
Can contains one and only one content node which
has id content
29. EDA package
Is an archive which contains many files
30. /
-- list.xml EDA Package
-- main.xml main.xml
-- 1.jpg the starting point for each
package. It’ll contain the
-- 1.xml root node.
-- 1-1.mp3
list.xml
-- 1-2.mp4
contain the required
-- 2.jpg information for transfering
-- 2.xml one package from server
to client.
-- 2-1.png
-- 2-2.jpg
-- 3.xml
-- ...
32. Practice
Create a multi page scrolling
Example 1:
a static image as background
Another image on top
Different background for portrait and landscape
Example 2:
Sprite
Example 3:
A ball appear using animation
Background sound
Example 4:
Multi-scroll page for comic