Huy Nguyen
8a6b7cff97
Revert "Fix ASCollectionView data inconsistency after reloadData"
...
This reverts commit 50e5cffbe1 .
2016-01-26 12:04:55 -08:00
yury
a3a0440a01
[text] Use the closest glyph to determine hit token
2016-01-26 22:41:02 +03:00
yury
a0b7254213
[text] Fix crash when highlighted range exceeds truncation range
2016-01-26 22:37:44 +03:00
Matej Knopp
0a45bd9596
[_ASAsyncTransaction] implement operation priority
...
Signed-off-by: Matej Knopp <matej.knopp@gmail.com >
2016-01-26 15:31:40 +01:00
Matej Knopp
75abf07c6f
[_ASAsyncTransaction] tweak number of threads
...
Thread count is now 2 * activeProcessorCount, however during tracking it is decreased by 1
Signed-off-by: Matej Knopp <matej.knopp@gmail.com >
2016-01-26 15:18:16 +01:00
appleguy
1514d23d33
Merge pull request #1114 from nguyenhuy/reloaddata_tests
...
Test reloadData in ASTableViewStressTest
2016-01-25 23:00:28 -08:00
Huy Nguyen
3bb8967b96
Enable ASCollectionViewTests:testCollectionViewController
2016-01-25 22:26:30 -08:00
Huy Nguyen
e1074b605b
Test reloadData in ASTableViewStressTest
2016-01-25 22:22:09 -08:00
appleguy
fb60acbecc
Merge pull request #1113 from lkzhao/ASTextKitFontSizeAdjuster
...
[ASTextNode] Fix test build for font size adjuster
2016-01-25 20:03:01 -08:00
Luke Zhao
70be4c96ba
import ASTextNode+Beta.h
2016-01-25 19:59:16 -08:00
appleguy
508e3db8ee
Merge pull request #1091 from lkzhao/ASTextKitFontSizeAdjuster
...
[ASTextNode] Support iteratively shrinking font size in order to ensure no single words are wrapped.
2016-01-25 19:36:39 -08:00
Luke Zhao
f37c805b72
Move minimumScaleFactor to ASTextNode+Beta
2016-01-25 19:12:29 -08:00
Luke Zhao
f413a618e0
add ASTextKitFontSizeAdjuster
2016-01-25 19:07:28 -08:00
appleguy
8f41ddc8e0
Merge pull request #1090 from knopp/_ASAsyncTransaction-limit-spawned-threads
...
[_ASAsyncTransaction] limit number of spawned threads in a way that GCD will not with the semaphore.
2016-01-25 18:39:27 -08:00
appleguy
e37cc4394c
Merge pull request #1107 from nguyenhuy/improve_reload_data
...
[ASTableNode, ASCollectionNode] Optimize -reloadData's teardown of state (blow away UIKit perf!)
2016-01-25 18:38:53 -08:00
appleguy
6bd62cbf72
Merge pull request #1110 from yury/fix-truncation
...
[ASTextNode] Prompt creation of truncater object when the context object is accessed.
2016-01-25 18:05:59 -08:00
appleguy
d70a9551de
Merge pull request #1111 from yury/fix-_linkAttributeValueAtPoint-crash
...
[ASTextNode] Fix out-of-bounds error when truncation string is longer than the original string.
2016-01-25 17:58:07 -08:00
appleguy
1dd6cef58b
Merge pull request #1105 from facebook/RangeControlAllNodes
...
[ASRangeControllerBeta] Scan all nodes after edit operations.
2016-01-25 13:51:09 -08:00
yury
f2012df3af
Fix Out of bounds error
...
Actually it is possible that truncated string is longer then original
string.
For example, original string:
```
hello
this is
very long
message here
and there
```
with maximumNumberOfLines=4, truncationAttributedString = ' ...' and
additionalTruncationMessage = 'read more'
will give
```
hello
this is
very long
message here ... read more
```
So `[attributedString attribute:attributeName atIndex:characterIndex
longestEffectiveRange:&range inRange:visibleRange]` will crash.
2016-01-25 22:25:12 +03:00
yury
313a3cc63c
Create Truncater with context. So it will actually truncate string in its initializer
2016-01-25 16:48:55 +03:00
Huy Nguyen
50e5cffbe1
Fix ASCollectionView data inconsistency after reloadData
...
Fix by using `_superIsPendingDataLoad` introduced in #672
2016-01-24 23:38:30 -08:00
Huy Nguyen
209425c22c
Revert commit 83aaa46, thus bring 2e4d716 back
2016-01-24 23:38:05 -08:00
Scott Goodson
e0e019ebcb
[ASRangeController] Enable new range controller by default (!!! yay !!!)
2016-01-24 22:50:36 -08:00
appleguy
b3239b6d36
Merge pull request #1106 from lappp9/ASVideoNode
...
[ASVideoNode] Performance enhancements
2016-01-24 22:29:14 -08:00
Scott Goodson
7ecc302e10
[ASImageNode] remove nullability from imageModificationBlock for Swift bridging.
...
https://github.com/facebook/AsyncDisplayKit/issues/1092
2016-01-24 22:26:42 -08:00
Luke Parham
526b2ab0cf
removed beta range controller
2016-01-24 23:51:34 -06:00
Luke Parham
41721aa42a
merged with master
2016-01-24 23:14:43 -06:00
Luke Parham
98fb2e46d4
wip but currently adding first frame as placeholder until it should play and removed extraneous 'pause'
2016-01-24 23:13:17 -06:00
Scott Goodson
e6d5e2666c
[ASRangeControllerBeta] Scan all nodes after edit operations.
2016-01-24 18:42:02 -08:00
appleguy
5a96985b55
Merge pull request #1104 from facebook/ASTextNodeInvalidationOptimization
...
[ASLayout, ASTextNode] Create -calculatedLayoutDidChange and use it in text node.
2016-01-24 18:19:27 -08:00
appleguy
2a63868e76
Merge pull request #1102 from knopp/ASRangeControlller-get-index-paths-optimization
...
[ASRangeController] don't get index paths twice if tuning parameters …
2016-01-24 18:19:02 -08:00
Scott Goodson
2713bdd72e
[ASTextNode, ASDisplayNode] Create -calculatedLayoutDidChange and use it in text node.
...
This allows the change in size for the NSTextContainer to occur off the main thread, whenever that size change
is necessary. Then the text relayout can occur earlier, during the process of computing ASLayoutSpecs.
2016-01-24 17:14:14 -08:00
Matej Knopp
51e4476068
[ASRangeController] don't get index paths twice if tuning parameters are same
...
Signed-off-by: Matej Knopp <matej.knopp@gmail.com >
2016-01-24 23:41:46 +01:00
appleguy
d70887448c
Merge pull request #1101 from facebook/ASRangeControllerPrioritization
...
[ASRangeControllerBeta] Utilize NSMutableOrderedSet to ensure visible items are prioritized.
2016-01-24 14:39:06 -08:00
Scott Goodson
92ce6ce4d3
[ASRangeControllerBeta] Improve comments, code clarity, cache respondsToSelector:
2016-01-24 14:07:39 -08:00
Scott Goodson
351f4a9afc
Utilize NSMutableOrderedSet in ASRangeControllerBeta to ensure visible items are prioritized.
...
This also adopts Objective-C generics for the various collections in this class.
2016-01-24 13:11:15 -08:00
appleguy
344b3a40e3
Merge pull request #1100 from facebook/ASTextNodeRendererRefactor
...
[ASTextNode] Optimize handling of constrained size to almost never recreate NSLayoutManager
2016-01-24 01:41:03 -08:00
Scott Goodson
9ddf68fa96
[ASTextNode] Optimize handling of constrained size to almost never recreate NSLayoutManager
...
This also fixes two fairly subtle but serious bugs, #1076 and #1046 .
2016-01-24 00:50:43 -08:00
appleguy
ae68f18388
Merge pull request #1050 from stowy/stowy/asdk_cat_sample
...
[Example App] New sample that uses a network-loading collection view on iPhone and iPad.
2016-01-23 20:29:02 -08:00
Scott Goodson
82f7956bf9
[ASMapNode] Some improvements to layout logic and snapshot triggering.
2016-01-23 20:12:45 -08:00
appleguy
570d3e202f
Merge pull request #1099 from facebook/ASMapNodeRegion
...
Re-add .region property for API compatibility and convenience, using options object internally.
2016-01-23 16:53:30 -08:00
Scott Goodson
28618f7238
Re-add .region property for API compatibility and convenience, using options object internally.
2016-01-23 16:52:39 -08:00
Sam Stow
3b4785cf24
Added sample project using networking and infinite scrolling and random cats
2016-01-23 14:52:53 -08:00
appleguy
64ad48a248
Merge pull request #1097 from facebook/iOS9ConcurrentImageDecodingSystemBug
...
[ASImageNode] @synchronized around UIImage draw to prevent concurrently decoding the same instance.
2016-01-23 13:37:36 -08:00
Scott Goodson
264887413e
Add @synchronized around UIImage draw to prevent concurrently decoding the same instance.
...
This is a workaround necessary due to an iOS 9 bug. I'm not gating it to iOS 9 only so as to
not exaggerate iOS version-specific behavior differences in the framework, since a majority are
on iOS 9 anyway. If we can confirm the bug is fixed in a later iOS version, then it will be gated.
Issue tracked in greater detail here: https://github.com/facebook/AsyncDisplayKit/issues/1068
2016-01-23 13:35:04 -08:00
Scott Goodson
2c5db2e335
Podfile bump to 1.9.6; minor preparations for release.
2016-01-23 13:05:27 -08:00
appleguy
ea6c7ae938
Merge pull request #1025 from 1nput0utput/ASButtonNodeImprovements
...
[ASButtonNode] Add support for backgroundImage. Extend & simplify API with separate title and color.
2016-01-23 12:45:48 -08:00
appleguy
eb7caa3ba6
Merge pull request #1036 from aaronschubert0/ASMapNode
...
[ASMapNode] now supports MKMapSnapshotOptions to specify map parameters
2016-01-23 12:37:51 -08:00
appleguy
ccbf38c72e
Merge pull request #1096 from facebook/pr/1059
...
[tvOS] Initial changes to support building AsyncDisplayKit for tvOS.
2016-01-23 12:28:43 -08:00
Luke Parham
87f8dbf393
Merge branch 'master' into ASVideoNode
2016-01-23 14:11:33 -06:00