Commit Graph

25012 Commits

Author SHA1 Message Date
overtake
5dfc159ada Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCoreDev 2018-08-28 23:32:26 +03:00
Peter
664082f1f0 no message 2018-08-28 23:27:43 +03:00
Peter
09573be008 Merge commit 'e299f91950807d4a4f1fd4aeec09da6c55f6a8cd' 2018-08-28 22:33:52 +03:00
Peter
2a0866ff3e no message 2018-08-28 22:27:33 +03:00
Peter
b10a2225a4 no message 2018-08-28 22:27:02 +03:00
appleguy
465abb1ded [License] Simplify the Texture license to be pure Apache 2 (removing ASDK-Licenses). (#1077)
* [License] Simplify the Texture license to be pure Apache 2 (removing ASDK-Licenses)

With permission of the Facebook Open Source team, we are simplifying the Texture
license so that clients can rely on the Apache 2 terms that most of Texture is
already covered by. This means that code originally forked from AsyncDisplayKit
will be re-licensed from "BSD 3-clause + PATENTS v2" to Apache 2 without a
PATENTS file.

After getting confirmation that the updates to these core files look good, we'll
propagate this new license header to all files (in this same PR) and get sign-off
from all parties before landing.

* [License] Update all Texture source files to be pure Apache 2.

* Changelog entry for Apache 2 license update.

* Revert "[License] Update all Texture source files to be pure Apache 2."

This reverts commit ffa0fbbba9717d871dd16c4b07539f2f8208fc2b.

* [License] Update all Texture source files to be pure Apache 2, maintaining copyrights.

* [License] Update CONTRIBUTING, README, Podspec & Dangerfile.
2018-08-28 07:39:18 -07:00
subhransu mohanty
c87e393308 lottie/vector: refactor VPathMesure to handle offset .
Change-Id: Ic84c63376c52167ee2ae88d363bf22aadf4fbca9
2018-08-28 19:26:30 +09:00
overtake
e299f91950 no message 2018-08-28 13:09:12 +03:00
overtake
844392f644 no message 2018-08-28 12:48:40 +03:00
Youngbok Shin
7c5b266b03 vector/vdasher: fix a wrong code indentation about the previous patch
Sorry for my mistake.

Change-Id: I22388fce81738b781c225545e8bff98219be9317
2018-08-28 15:45:48 +09:00
Youngbok Shin
171165be39 lottie/vdasher: fix multiple dashes issue on multiple pathes
mIndex is for handling multiple dashes.
If a previous path ends at mIndex > 0,
it should be initialized as 0 when it starts job for next path.
The previous work shouldn't affect the next path.

Change-Id: Iab2b00fe456f7195acd7e086f55758ad7d2a7bf6
2018-08-28 15:08:40 +09:00
subhransu mohanty
d129603118 lottie/vector: refactor VDasher.
Change-Id: I30ae3b69839754bfd7c3a19543d03cc205504681
2018-08-28 10:56:20 +09:00
Grishka
bfa1e6ab76 Proxy fix 2018-08-27 14:39:27 +03:00
Youngbok Shin
e8195241c4 lottie/vdasher: improve readability for cubicTo function
Change-Id: I86422527c33c323d0469a4a6b58089997b55b004
2018-08-27 17:51:13 +09:00
Youngbok Shin
9de63f660f lottie/vdasher: improve readability for lineTo function
It creates two internal functions for duplicated code.
By replacing nested 'if' conditions with the functions,
it improves readability and manageability.

Change-Id: I303ba6849f776c5f02df6552f0a37acecb14a78b
2018-08-27 17:06:59 +09:00
Youngbok Shin
f86f1bedd7 lottie/vdasher: remove connected dash lines between pathes
Since managing multiple pathes by a painter or a stroke,
multiple pathes will be drawn in one "dashed" function call.
And its vdasher's moveTo() function only do the job properly
when there is only one moveTo call.
Now, the moveTo() function initialize internal properties properly.

Change-Id: I4dd45d480f27dce734ce2ef8d1ff38774c589e64
2018-08-27 14:31:51 +09:00
Jia Wern Lim
1d31fc21d4 Refactored accessibleElements to accessibilityElements (#1069)
* Refactored `accessibleElements` to `accessibilityElements`, and removed the re-definition of the property.

With this refactor, the field can now be used as a single access point into the accessibility elements of a view. Also, removing the re-definition of the property in _ASDisplayViewAccessibility.h enables us to make use of the field and its associated helper methods directly from the `UIAccessibilityContainer` API rather than rolling our own implementation.

* Added tests for the accessors to ASDisplayView.accessibilityElements.

* Commented out tests for older a11y accessors & added relevant warnings.

Also added assertions that the getter and setter for the accessibilityElements
property are used only on the main thread.
2018-08-24 20:41:27 +02:00
Grishka
23ae67306d closes #50 2018-08-24 18:38:09 +03:00
subhransu mohanty
d2fc8fc576 lottie: refactor the viewitems to have a parent, to optimize the size of the structure.
1. we could move as much common data to parent structure and then keep the parent pointer in the child.
2. move expensive vmatrix data to parent.

Change-Id: Icfd3aa885ebfce5c9555f8b107d3b885827ebedf
2018-08-24 15:44:51 +09:00
Youngbok Shin
a752461b8f lottie: fix issue - path was not updated properly for each painter item
It also adds debug message for polystar type.

Change-Id: Ie1b788571d003402da0d518be484a0458df5dcec
2018-08-24 14:44:03 +09:00
Ilya Laktyushin
8028166b15 no message 2018-08-24 07:28:53 +03:00
subhransu mohanty
a73e49a6f9 lottie: refactor processing of trim objects.
1. now each trim item keeps a list of path item it operates on.
2. trim update phase happens after the update phase. so that all path items are correctly updated.
3. Trim objects operate on a intermediate path so that multiple trim objects operating on same path can be possible.

Change-Id: I9a6d66aef4449b9399ebc65e29d8633cf41cd25a
2018-08-24 11:07:26 +09:00
Grishka
1ca50fdce7 fixes again 2018-08-24 02:31:27 +03:00
Youngbok Shin
386e6ebbff lottie: fix doubled scale issue
The scale was calculated based on length 2.
So, its result was also doubled.
It should be half before return scale result.

Change-Id: I66a5fa9ba235bd5ebcde89b9b3c01c0f128d217e
2018-08-23 19:31:28 +09:00
subhransu mohanty
2e59b9fb93 lottie: remove dead code.
Change-Id: I81d8c6e3e0c4b6b6d9cff03f70e8818af57dfade
2018-08-23 17:19:43 +09:00
Youngbok Shin
eea5add913 lottie: fixed regression caused by last commit
There was issue caused by item inside of groups.

Change-Id: If9057db4f183fc2956d3bd43dca92fc5bb628202
2018-08-23 17:07:48 +09:00
subhransu mohanty
5775d02261 lottie: refactor the lottie scene graph processing.
Change-Id: I739aa19abaf7f141b556b67083df4461945461d9
2018-08-23 15:28:33 +09:00
subhransu mohanty
43d77af0d1 lottie/vector : added addPath() api to vpath.
Change-Id: I3fd7ee9ba8add8f7109c23c0b6e62388b3fda5bf
2018-08-23 13:15:49 +09:00
subhransu mohanty
f0515f36b8 lottie/vector: return correct number from segments() api.
Change-Id: Ifb90d0f7567ba0737f70c7b7abfc467e94004780
2018-08-23 13:13:08 +09:00
Hermet Park
857fde3fa7 lottieplayer: polishing getFrameDuration(), getFrameRate()
Change-Id: I4344a6689c7ee8890e33978bfc5ca6a2c401da36
2018-08-23 00:38:29 +00:00
Jaeun Choi
d2c954d535 lottie/example: add frame information in lottieviewer example
Change-Id: If9245244bfd3e8d8050e18b5ea09fcaf240a867d
2018-08-23 00:36:25 +00:00
Jaeun Choi
02e660cff7 lottie/example: add APIs in lottieview to get frame rate and total frame number
Change-Id: I25d14d37776cd6bf07bcba1f0fc6a1c88e66dd71
2018-08-23 00:34:57 +00:00
Youngbok Shin
318151a35d lottie: remove the combined alpha value and method from path item
Alpha(opacity) values are not applied to path items.
Fill, Stroke and etc will handle opacity.

Change-Id: I8e05989e7f85797a00508c7ca151b1805d44f454
2018-08-23 00:27:37 +00:00
Huy Nguyen
31cb65b38a Fix compiler error in ASLocking #trivial (#1079) 2018-08-22 16:14:03 -07:00
overtake
95c47f013c Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCoreDev into feature/secureid 2018-08-22 17:40:50 +03:00
Peter
f8cb1f2332 no message 2018-08-22 17:40:42 +03:00
overtake
0f7d0266f8 Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCoreDev into feature/secureid 2018-08-22 16:10:13 +03:00
overtake
6503224afb no message 2018-08-22 16:10:06 +03:00
Peter
217f472d3b no message 2018-08-22 15:44:39 +03:00
Peter
81892e714e no message 2018-08-22 15:44:18 +03:00
Jaeun Choi
25784d646a lottie: add APIs in lottieplayer to get frame rate and total frame number
Change-Id: Ib81eed03adf520927b3b434b67425168b07f13b1
2018-08-22 05:14:27 +00:00
Hermet Park
830ef02827 binding/c: more compatible with C compiler.
Change-Id: I9fea4817cc913913f65c4b228cb0a42aae2cb2f8
2018-08-22 04:53:44 +00:00
JK Junkyu Jeon
2e95f5503e Update showcase to add Wishpoke (#1078) 2018-08-21 07:54:36 -07:00
Jaeun Choi
388736bfbe lottie: fixed lottieviewer example
Change-Id: I5ede2096f3e00dd4b343a05b337dd67070f6ac66
2018-08-21 17:28:31 +09:00
subhransu mohanty
17bc03eb44 lottie/example: updated lottieviewer example.
Change-Id: I97e30598090f16e4370f1d08dc94315789d82a3d
2018-08-21 14:25:50 +09:00
subhransu mohanty
3b4f97911f lottie/parser: changed the datatype of gradient member object .
Change-Id: I2b1ca35904f1d5af39c0c76be47af582f9b93041
2018-08-21 14:07:24 +09:00
Youngbok Shin
8ea21ce487 lottie/example: add complex gradient examples and remove simple one
Change-Id: I6003e3ca3209125c119feaaae55da35327b52a2c
2018-08-21 13:57:22 +09:00
subhransu mohanty
bfbe3c986a lottie: fixed warnings generated by '-Wextra' flag.
Change-Id: I73c122f61e628bdbdb6ab98bb68b7d32ab9f4ec0
2018-08-21 13:26:08 +09:00
Youngbok Shin
d23e61c69d lottie/example: add a missing example lottie file
It is good to test matte feature and managing multiple layers.

Change-Id: Ie87cc18d0b37b35858c765339d129dc35f2c2986
2018-08-21 13:20:22 +09:00
subhransu mohanty
8a0d4d746b lottie: build fix.
Change-Id: Ie008c71e2fcb3bcf7197245e26880e71e2bedc32
2018-08-21 04:01:24 +00:00