Commit Graph

13022 Commits

Author SHA1 Message Date
Michael Schneider
ddc23af8e7 [Layout Transition] Reset the alpha value for inserted and removed subnode to initial value (#2729)
* Reset the alpha value for removed subnodes in layout transition to 1 after removal

* Some improvements

* Restore alpha value of inserted and removed subnodes to original alpha value in animated layout transition
2016-12-12 19:46:01 -08:00
jaichaudhry
03045ee549 [PhotoCellNode]Update formatting of layoutSpec to a flat structure. (#2732)
* [PhotoCellNode]Update formatting of layoutSpec to a flat structure.

* [PhotoCellNode] Adding a flag to switch between flat and tree like structure of layout specs.
2016-12-12 19:45:33 -08:00
appleguy
eeb977e145 [ASDisplayNode] Ensure all subclasses are using base class __instanceLock__ and not re-defining their own. (#2754)
* [ASDisplayNode] Ensure all subclasses are using base class __instanceLock__ and not re-defining their own.

This also moves the @package definition of the instance variable to +FrameworkPrivate instead of Internal.h,
because Internal.h should ideally not be used outside of the ASDisplayNode file setup.  This has greatly reduced
the number of imports of Internal.h.

* [ASDisplayNode] Add ASDisplayNode+FrameworkSubclasses.h to share __instanceLock__ definition.
2016-12-12 19:42:41 -08:00
Michael Schneider
ad37ecfa74 Some smaller SocialAppLayout example improvements (#2743) 2016-12-12 16:12:26 -08:00
Michael Schneider
57cd6a3ba8 [ASPagerNode] Fix content insets are wrong in pager node if root node of ASViewController and transition back (#2736)
* Fix content insets are wrong in pager node if root node of ASViewController and transition back

* Add unit test

* Improve test

* Fix test

* Move tests to ASPagerNodeTests
2016-12-12 16:05:09 -08:00
appleguy
d874eed78a [ASScrollNode] Refine edge case of new automaticallyManagesContentSize logic to adopt stack's size in unconstrained dimensions. (#2759) 2016-12-12 15:56:15 -08:00
appleguy
2feabd2832 [ASScrollNode] Support for automaticallyManagesContentSize, adopting the ASLayoutSpec's size as the scrollable contentSize. (#2753)
* [ASScrollNode] Support for automaticallyManagesContentSize, adopting the ASLayoutSpec's size as the scrollable contentSize.

This feature has been desired for a long time, and has turned out to be phenomenally useful and easy to use.

It works well either for a blank ASScrollNode with .layoutSpecBlock set on it, or a subclass of ASScrollNode with a more
traditional layoutSpecThatFits: implementation.  With this approach there is no need to capture the layout size, use
an Absolute layout spec as a wrapper, or set contentSize anywhere in the code and it will update as the layout changes!

There is no automatic management of contentInset, but it would make sense to add this with keyboard listeners in the future.

* [ASScrollNode] Add locking to new properties, adjust how calculateLayout override is done.
2016-12-12 12:03:54 -08:00
appleguy
92affcee64 [ASControlNode] Add ASControlNodeEventValueChanged to support creating switches, sliders, etc. (#2751) 2016-12-12 10:42:42 -08:00
Peter
4f40805456 no message 2016-12-12 02:42:27 +03:00
Peter
a7c21c60a6 Merge commit '5b80a641afae4cee6dcf0e4cf5a829dffeb1e8d6' into debug-drawrect 2016-12-12 01:21:05 +03:00
Peter
f5e632ce9b Merge commit '016d99f420dc6a8a237b4f8b794cb3cb00939ce1' into debug-drawrect 2016-12-12 01:17:14 +03:00
Peter
d6cc31eaff Merge commit '4355f4d2eef9472642a8a8029aeef1c7fdad034f' into debug-drawrect 2016-12-12 01:10:39 +03:00
Peter
a2ca258b6b Merge commit 'aec8dbfb33832cafdd183f5818ddb01c8b1c3997' into debug-drawrect 2016-12-12 01:07:18 +03:00
Peter
bef812c50b no message 2016-12-12 01:02:45 +03:00
Peter
3121ecf636 Merge commit 'd9209e69c25657586b43a72def4c5ac537956e40' into debug-drawrect
# Conflicts:
#	AsyncDisplayKit/ASCollectionNode.mm
#	AsyncDisplayKit/ASDisplayNode.mm
#	AsyncDisplayKit/ASTableNode.mm
#	AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.h
#	AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.h
#	AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.m
2016-12-12 01:02:23 +03:00
Peter
7bf7235e0c no message 2016-12-11 22:59:02 +03:00
Benjamin Scholtysik (Reimold)
23410a11ac Merge pull request #100 from bitstadium/master
Master
2016-12-09 15:27:03 -08:00
Garrett Moon
b8be6076a8 Remove build status for now since we're using Jenkins and we can't publicise results because of network restrictions. (#2745) 2016-12-09 14:02:56 -08:00
Hannah Trosi
a64253cf38 [Examples] move failing Shop example to extra folder until config is fixed 2016-12-09 13:52:25 -08:00
Peter
72cbe5da9e No message 2016-12-09 23:17:21 +03:00
Peter
51c51b1992 No message 2016-12-09 23:17:21 +03:00
Garrett Moon
2e1d6c122e Update to 2.0 (#2735) 2016-12-08 15:35:55 -08:00
Benjamin Scholtysik (Reimold)
191d532b37 Merge pull request #375 from bitstadium/master
Master
2016-12-08 14:41:37 -08:00
StrauneanuDimitri
3d1ff675c5 [Examples] Added Bear Shop project (#2614)
* [Examples] Added Bear Shop project

* - added screenshots
2016-12-08 09:57:07 -08:00
Adlai Holler
5b80a641af Improve Handling of Rasterized Node Interface & Hierarchy States (#2731)
* Improve handling of rasterize node interface states and testing

* Fix harder

* Finish fixes and move rasterization flag into beta header

* Re-enable rasterization in ASDKgram

* Re-enable working test

* Only do it in debug
2016-12-08 09:52:21 -08:00
Huy Nguyen
016d99f420 Document default values of alignItems and justifyContent (#2733) 2016-12-08 07:53:05 -08:00
Brandon Withrow
d442ae859d Fix project Setting 2016-12-07 15:35:19 -08:00
Brandon Withrow
b245983bd1 Merge pull request #3 from brandon-withrow/btw/lottie/animationstate
Btw/lottie/animationstate
2016-12-07 15:34:14 -08:00
Brandon Withrow
e4fd35fe84 Updated LAAnimationView with new Animation State
- Added animation state machine
- Fixes bugs with play/pause
- Fully Supported completion blocks
2016-12-07 15:32:49 -08:00
Michael Schneider
4355f4d2ee [Layout] Don't crash if layout elements are created in layoutSpecThatFits: (#2694)
* Fix crash if layout elements are created with no owner and referenced in layoutSpecThatFits:

* Add failing test for nodes deallocated while creating in layoutSpecThatFits:

* Some more

* Some cleanup

* Added more complexity to tests

* Only cache sublayouts if the layout get’s flattened

* Address comments

* Address comments
2016-12-07 14:58:34 -08:00
Garrett Moon
80ab695cd0 Add lint mode to build.sh (#2728) 2016-12-07 14:38:12 -08:00
Adlai Holler
7de2decdcb Allow section-indexpaths in collection & table validation (#2727) 2016-12-07 13:36:15 -08:00
Michael Schneider
a6b2166244 Don’t compare the hash instead compare the attributes in ASTextNodeRendererKey isEqual (#2726) 2016-12-07 09:57:48 -08:00
Michael Schneider
beb98b448e [ASTextKit] Remove internal side effects related to constrainedSize. 2016-12-06 19:53:58 -08:00
Michael Schneider
c3cbd3b583 Just call super to change the size of the cell node that will resize itself instead of setting the frame directly (#2725) 2016-12-06 15:53:09 -08:00
Adlai Holler
5b8330107f Merge pull request #2708 from maicki/MSPreventSettingImageSpecificImageNodeSubclasses
[ASImageNode] Add handling of setting .image in specific ASImageNode subclasses
2016-12-06 15:23:13 -08:00
Garrett Moon
54eba883d8 Update to RC 2 (#2723) 2016-12-06 15:11:00 -08:00
Michael Schneider
ee0cc9b103 Further logic and documentation improvements 2016-12-06 14:19:54 -08:00
Benjamin Scholtysik (Reimold)
93551df117 Merge pull request #374 from bitstadium/release/4.1.3
Release/4.1.3
2016-12-06 13:05:40 -08:00
Michael Schneider
aec8dbfb33 Fix ASDKGram deprecation warning (#2719) 2016-12-06 11:52:31 -08:00
Garrett Moon
d57760797a Update to beta 7 of PINRemoteImage - fixes image corruption issues. (#2720) 2016-12-06 11:11:00 -08:00
Andrey Konstantinov
52eb9df366 Fix typo in README (#2718) 2016-12-06 11:05:23 -08:00
Benjamin Scholtysik (Reimold)
69e1374f1d Merge pull request #369 from bitstadium/feature/persian-localization
Add persian language file
2016-12-06 09:45:04 -08:00
Michael Schneider
cacc366706 Some video node improvements 2016-12-06 06:55:47 -08:00
Peter
d093d7fa3f no message 2016-12-06 12:12:43 +03:00
Peter
bed02f5c56 no message 2016-12-06 12:12:28 +03:00
Michael Schneider
ef84e99673 Tremendously make the implementation easier 2016-12-05 20:15:23 -08:00
Michael Schneider
018ad148bc Further work 2016-12-05 16:50:58 -08:00
Michael Schneider
d57e33b2f0 Some further improvements 2016-12-05 16:43:46 -08:00
Michael Schneider
9fefd4a5b0 Cleanup ASVideoNode a bit 2016-12-05 16:43:46 -08:00