rcancro
e6a07ffe58
Kittens sample working
2015-08-28 15:55:41 -07:00
rcancro
9a702a49ad
Hide ASLayoutOptions from the user
2015-08-28 14:30:50 -07:00
rcancro
afade854af
Moved ASLayoutable* properties into ASLayoutOptions class
2015-08-28 09:36:22 -07:00
rcancro
499adb5145
Added method to ASLayoutable to allow a layoutable to override how it will be added to the layoutSpec.
...
Also moved ASStaticLayoutSpec to act more like the other layouts.
2015-08-25 14:04:06 -07:00
rcancro
e991242513
removed "Stack" from baseline related layout names
2015-08-22 19:03:55 -07:00
ricky cancro
5d286930f6
Renamed ASStackText... to ASBaselineStack...
2015-08-22 19:03:54 -07:00
ricky cancro
2d6ddfe32e
moved baseline alignment to a layout spec.
2015-08-22 19:03:54 -07:00
rcancro
9036ab8e7d
new stack layout spec for text
2015-08-22 19:03:54 -07:00
ricky cancro
ef89f758bc
flailing
2015-08-22 19:03:54 -07:00
Roy Marmelstein
26202865ac
Adding files that were missing from the framework target
2015-08-04 00:07:30 +02:00
Roy Marmelstein
76e5f794da
Fixing framework target build issues - missing info plist and headers
2015-08-03 23:47:53 +02:00
Huy Nguyen
e1fd58268c
Clean up #468 :
...
- -layoutSpecThatFits: must return an ASLayoutSpec.
- Move ASDisplayNode's -measureWithSizeRange: redeclaration to ASDisplayNode.h.
- Rename ASStackLayoutChild.h to ASStackLayoutDefines.h.
- Rename ASStaticLayoutSpecDimension.h to ASRelativeSize.h.
- Don't import ASLayout.h in other headers to prevent circular inclusions.
- Explain use cases of ASLayout's initializers.
- Clean up ASInternalHelpers.h.
2015-07-10 19:41:17 +07:00
Victor Mayorov
01771f7860
Implemented test for crash in ASCollectionView on reloadData
2015-07-07 23:14:54 -07:00
Bogdan Iusco
a0fcecc469
Fix duplicate symbols on ASIndexPath
2015-07-07 18:23:04 +03:00
Huy Nguyen
2149d44990
Fix naming convetion:
...
- "Layout node" is changed to "layout spec".
- Update tests.
- Update Kittens sample.
2015-07-01 18:13:44 +07:00
Huy Nguyen
e74823bbee
Merge branch 'master' into layout_node
2015-06-28 23:47:09 +07:00
Huy Nguyen
dd29a890df
Still support -calculateLayoutThatFits: (and manual layout), for backward compatibility.
2015-06-28 20:31:32 +07:00
Huy Nguyen
95e787b226
Remove stack children type:
...
- ASLayoutable requires mutable properties that are used when attached to a stack layout.
- Thus, ASLayoutable objects (including ASDisplayNode) can be injected into stack layout directly.
- ASStackLayoutNodeChild no longer needed.
- Tests and Kitten sample updated.
2015-06-26 11:47:42 +07:00
Huy Nguyen
f588bceb4d
Introduce ASLayoutable and eliminate ASCompositeNode:
...
- Both ASDisplayNode and ASLayoutNode conforms to this protocol.
- ASDisplayNode can be embeded directly into layout graph.
- Eliminate ASCompositeNode.
- Fix ASStaticSizeDisplayNode not recpect min constrained size.
- Updated tests.
2015-06-26 09:29:16 +07:00
Huy Nguyen
99fe79339d
Simplify ASDimension:
...
- ASRelativeSize and ASRelativeSizeRange are used only by ASStaticLayoutNode. They are declared in a standalone header.
- ASDimension contains a minimal set of new size types required to use the common layouts. Thus minimize the learning curve.
2015-06-25 11:36:02 +07:00
Huy Nguyen
4ad64b2841
Update tests.
2015-06-25 11:34:37 +07:00
Huy Nguyen
64e2323a4e
Remove ASLayoutNodeSize:
...
- ASLayoutNode no longer has 'size' constraint during its initialization..
- ASLayoutNode no longer needs parentSize to calculate its layout.
2015-06-25 11:34:36 +07:00
Huy Nguyen
323136298c
Update visibility of layout header files. Travis should be happy now.
2015-06-25 11:34:36 +07:00
Huy Nguyen
e23a3fe4c2
Add layout tests.
2015-06-25 11:34:36 +07:00
Huy Nguyen
abe98d5b09
Integrate new layout nodes to the framework.
...
- Introduce ASLayoutNode and its subclasses.
- ASDisplayNode measures its ASLayoutNode and cache the result (ASLayout). Calculated size and position of each subnode can be retrieved from the calculated layout.
- Custom nodes need to override -layoutNodeThatFits:(CGSize) instead of -calculateSizeThatFits:(CGSize).
- Custom nodes do not need to layout its subnodes (in -layout:) anymore. ASDisplayNode can handle the job most of the time, by walking through its layout tree.
- ASCompositeNode is used to embed (display) subnodes to a node's layout. That way, each subnode will also be measured while the parent node is measuring. And the parent node knows where its subnodes are within its layout.
2015-06-25 11:34:35 +07:00
Sebastian Rehnby
c215356eb3
Include missing files in iOS Framework target
2015-06-24 15:55:50 +02:00
Paul Young
8fa6667d93
Remove old and add new framework target.
2015-06-23 23:24:55 -07:00
appleguy
e5f2f820c4
Merge pull request #449 from nrcmedia/master
...
Added iOS framework target for Carthage support
2015-06-23 10:51:23 -07:00
Rene Cacheaux
777b48cc33
Adds layout controller for collection views. This new layout controller leverages UICollectionViewLayout's layoutAttributesForElementsInRect in order to calculate index paths for items in AsyncDisplayKit ranges. Flow layout is still a requirement in order to test the waters.
2015-06-21 18:37:00 -05:00
Rene Cacheaux
0adac6851a
Adds abstract ASLayoutController implementation in preparation for custom layout ASLayoutController implementation.
2015-06-21 13:24:24 -05:00
Rene Cacheaux
e46c13edc5
Exposes ASCollectionView's ability to determine scroll direction. Scroll direction detection can now support 2-axis collection view layouts. ASCollectionView can now determine scrollable axes.
2015-06-21 11:45:25 -05:00
Rene Cacheaux
a7f7620b8c
Turns ASScrollDirection into Option set in preparation for supporting 2-axis collection view layouts. Clears test host target warnings.
2015-06-20 18:25:48 -05:00
VictorM
645b3c1e4a
Added tests to project file
2015-06-11 10:47:13 +03:00
Niels van Hoorn
b8f60e126a
Added iOS framework target for Carthage support
2015-06-09 09:16:06 -07:00
Ryan Nystrom
527a6228a9
Xcode 6.3 support
2015-04-08 16:35:10 -07:00
Nadine Salter
ecd6872814
[tests] AsyncDisplayKitTestHost.
2015-03-23 14:06:38 -07:00
Nadine Salter
b869d025ff
[tests] ASSnapshotTestCase.
2015-03-23 14:06:38 -07:00
Ryan Nystrom
7117548bc1
Longer timeout for async tests
2015-03-17 11:44:10 -07:00
Ryan Nystrom
db8bbcfd0e
Thread safe creation and canceling of download tasks
...
fixes #364
2015-03-11 16:52:14 -07:00
Ryan Nystrom
47b53d9293
Stricter build flags for ASDK and tests
2015-03-04 11:09:02 -08:00
Ryan Nystrom
69dbbae91c
Fix miscellaneous build failures.
2015-03-02 16:44:25 -08:00
Ryan Nystrom
8d7fe334e2
Revisions based on feedback
2015-02-26 22:29:13 -08:00
Ryan Nystrom
b3ae15858a
Unit tests for batch fetching
2015-02-26 22:26:25 -08:00
Ryan Nystrom
1f8001a104
ASCollectionView batch API
2015-02-26 22:24:46 -08:00
Ryan Nystrom
09ade3dd00
ASTableView batch API and context object
2015-02-26 22:23:32 -08:00
Ryan Nystrom
599bf42675
Revisions based on feedback
2015-02-26 15:41:32 -08:00
Ryan Nystrom
4fa03a01d1
Functioning Preload range
...
Refactor how we do ranges so they can be arbitrarily managed. Introduce the concept of a preload range.
2015-02-26 15:41:32 -08:00
Ryan Nystrom
ad474fce8e
Make project imports consistent
2015-02-23 14:55:15 -08:00
Ryan Nystrom
52cbbd3d3c
Allow all gestures through ASControlNode
...
fixes #305
2015-02-11 17:00:44 -08:00
Nadine Salter
c6a04ef8bd
Switch ASScrollNode to block initialiser syntax.
2015-02-02 19:41:30 -08:00