649 Commits

Author SHA1 Message Date
Horcrux f9fe7bdc4e merge master fix conflicts 2017-01-09 11:11:12 +08:00
Horcrux 2ee1a249fb Fix Images do not render if they are not in the cache 2017-01-08 23:17:56 +08:00
Horcrux 88cacb69f6 Fix Use elements do not reset template bug 2017-01-08 22:16:31 +08:00
Horcrux 16231226d7 Fallback to bitmap again! 2017-01-08 21:19:25 +08:00
Horcrux 074166b111 rename mergeProperties related variables 2017-01-08 19:05:37 +08:00
Horcrux 152e839126 Remove path data usage in clipPath
Remove path data usage in clipPath.
Use clipPath in SVG way
2017-01-07 23:17:10 +08:00
Horcrux 609226d732 Fix arcTo circle bug 2017-01-07 21:46:08 +08:00
Horcrux 293263d6ef Move d parsing to native side(iOS) 2017-01-07 09:22:52 +08:00
Horcrux 4112d60c52 Move path parser to native side (Android) 2017-01-06 14:39:44 +08:00
Minsuk Kang c3a736b1b9 Add uri loading 2017-01-05 21:56:38 -08:00
Horcrux a194ade11e createRNSVG* => create* 2017-01-05 13:31:25 +08:00
Horcrux 1505e4f104 Rename java file names 2017-01-05 13:25:51 +08:00
Horcrux 884c9a228a Add supports for react-native@0.40.0
Add supports for react-native@0.40.0 and upgrade to 4.5.0
2017-01-05 11:45:16 +08:00
Horcrux e526816c4b Merge pull request #197 from janicduplessis/css-layout-fix
Add measure function CSSNode to fix error in RN 0.40
2017-01-05 11:11:22 +08:00
Janic Duplessis c84c67147f Add measure function CSSNode to fix error in RN 0.39 2016-12-01 17:45:14 -05:00
Albert Brand 65548a3076 Give recursive NodeRunnable a clear name 2016-11-24 12:26:34 +01:00
Albert Brand a4718c04b6 Update RNSVGDefsShadowNode.java
Make it more clear that we're traversing with the same `NodeRunnable`
2016-11-23 08:25:08 +01:00
Albert Brand d4cc619a9f Mark all descendants of Defs as seen after a draw
When adding clipping paths in a def and changing properties of that clipping path (or its descendants), redraw is triggered only once as updates are never marked as seen.
This change makes sure to call `markUpdateSeen` on all descendants of the Defs node on a `draw`.
2016-11-22 11:58:29 +01:00
Horcrux 90db825206 prevent race condition 2016-11-15 17:02:50 +08:00
Horcrux f566381191 revert 4.3.2 2016-11-14 17:28:27 +08:00
Horcrux a305a33985 merge master 2016-11-09 15:32:09 +08:00
Horcrux 4d3f1687da remove commands related code to the bottom 2016-11-09 15:12:25 +08:00
Horcrux 47cfd79c98 Add type check for Map returned by getExportedCustomDirectEventTypeConstants 2016-11-09 14:38:11 +08:00
Horcrux b7f7bdfb8c remove redundant override 2016-11-09 14:26:39 +08:00
Horcrux e48e5916ce Add traverseChildren for virtualNode 2016-11-09 13:10:53 +08:00
Horcrux 374d716f0b remove unnecessary this 2016-11-09 10:09:59 +08:00
Horcrux c06f28e951 mark update seen when child is drawn 2016-11-08 23:10:15 +08:00
Horcrux 7c6407e622 Using TextureView instead of Bitmap 2016-11-08 21:45:40 +08:00
Goran Gajic b1b9aef32b Fix android text update #115 2016-10-06 15:42:29 +02:00
Horcrux 09b3e1208d finish basic Text features on Android 2016-09-17 20:59:50 +08:00
Horcrux 3016fb4a0f bump version to 4.2.1 2016-09-02 10:53:26 +08:00
Jonathan Chang d864296b41 Handle touches when root is a ViewRootImpl
Sometimes (maybe in modals?) the root is not a ReactRootView, it’s an
object which is not castable to a View.  Check for these cases before
trying to cast.
2016-08-30 20:58:51 -07:00
Horcrux 4251854948 fix #118
fix #118 and change peerDependencies
bump to 4.2.0
2016-08-26 09:25:51 +08:00
Horcrux eabec82b97 fix #111
reset ownedPropList everytime mergeProperties method is called.
2016-08-24 17:36:27 +08:00
Horcrux c586912e9f fix #103
set event's offsetLocation as the view's absolute position.
and do not return true when hitTest matched target.
2016-08-24 15:52:14 +08:00
Horcrux 69a94d0fc3 remove unnecessary comments 2016-08-24 11:59:25 +08:00
Horcrux d1afb78da0 Add preserveAspectRatio prop for Image
Add preserveAspectRatio prop for Image.
Fix touch events for Image on Android.
Fix viewBox slice bug on Android.
2016-08-13 14:03:08 +08:00
Horcrux a4c0c60b7f optimize event dispatching code 2016-08-12 14:37:38 +08:00
Horcrux e747cc82a6 Add support to base64 data from svg
use `svgRef.toDataURL(function (base64) {console.log(base64);});` to get
base64 data of svgRef
2016-08-12 11:13:27 +08:00
Horcrux 857b5f5207 Fix Image not rendering the first time svg is displayed
Fix Image not rendering the first time svg is displayed
Add toDataURL method for Svg elements for Android (not finished yet)
2016-08-11 16:27:15 +08:00
Horcrux 72ca2cc573 Add nested G on touchEvents Example 2016-08-06 09:29:38 +08:00
Horcrux 2dc34c8fe5 Merge pull request #100 from steveliles/issue96
fixes #96 for Android only - viewBox or nested G elements stifle events
2016-08-05 18:09:58 +08:00
Horcrux bc25088d58 merge #105 2016-08-05 17:41:42 +08:00
steve 5bc6744634 fixes #104 by resetting the matrix at each draw to prevent applying the transforms on top of the previous transforms 2016-08-04 15:02:24 +01:00
steve 22b231152d fixes #96 for Android only - viewBox or nested G elements stifle events 2016-08-04 00:55:07 +01:00
steve c287b92862 translate then scale - fixes #98 2016-08-03 21:57:05 +01:00
Horcrux 5482a667ca Add G touch events on Android 2016-08-01 13:38:46 +08:00
Greg Hogan d353fca7db Android: Fix NPE in configuring brush
Fixing a NPE found when running the Example test, since the brush
returned from getDefinedBrush() may be null.
2016-07-29 14:54:50 -07:00
Greg Hogan cf6ec2c022 Android: SVG Images not rendering the first time a view is displayed
Since SVG images are loaded asynchronously, we need to invalidate the
view after drawing to the canvas so that the view will be re-rendered.

Storing a reference to the actual SvgView in ViewManager, and passing a
reference to the ViewManager to each shadow node, so that shadow nodes
can invalidate the root SVG view.
2016-07-29 14:40:21 -07:00
Horcrux ab064d86e0 fix #84 2016-07-27 18:10:40 +08:00