Mikael Sand
13552cfc49
Refactor, rewrite iterables and for of to plain access and for loops
2019-01-22 21:54:04 +02:00
Mikael Sand
eeae255fdd
Inherit from Shape where refMethod is used
2019-01-22 18:22:06 +02:00
Mikael Sand
3dc6b80953
[android] Fix Use element spec conformance (x and y interpretation)
2019-01-14 15:44:00 +02:00
Mikael Sand
ccb615dbca
[iOS] Fix Use element spec conformance (x and y interpretation)
2019-01-14 15:03:28 +02:00
Mikael Sand
ca611a4416
Lift default setNativeProps and refMethod implementation to Shape class
2019-01-09 15:41:43 +02:00
Mikael Sand
51917038c0
Add class names
2019-01-08 23:32:45 +02:00
Mikael Sand
0160ac5140
Add missing setNativeProps
2019-01-08 23:25:26 +02:00
Mikael Sand
fd772cdf11
Remove redundant id and constructor from root svg element.
2019-01-08 23:15:30 +02:00
Mikael Sand
c7ed29b33a
Simplify id/url regex matching. Allow mask/clipPath without url prefix.
...
Remove redundant variables.
Unify use of newlines.
2019-01-08 22:53:03 +02:00
Mikael Sand
b559e73dbc
[android] Cache text groups. Refactor Svg root group structure.
2019-01-06 20:02:14 +02:00
Mikael Sand
35dca0d98f
Refactor svg bounds extraction
2019-01-06 19:38:47 +02:00
Mikael Sand
63991dbb4f
Organize imports. (ios) Fix numeric font size handling.
2019-01-06 17:28:42 +02:00
Mikael Sand
4a2d0f561a
Remove outdated comments
2019-01-06 16:59:09 +02:00
Mikael Sand
9fa7a4045c
Refactor, optimize length list extraction for minimal transformations.
2019-01-06 16:14:18 +02:00
Mikael Sand
84bd922747
Use const where possible
2019-01-06 15:08:47 +02:00
Mikael Sand
de3e1f9b1e
Ensure TSpan is imported if Text is imported.
2019-01-06 13:53:13 +02:00
Mikael Sand
aad9c21d0d
Specialize G props extraction
2019-01-06 13:48:20 +02:00
Mikael Sand
e18b2512a5
Specialize G props extraction
2019-01-06 13:42:41 +02:00
Mikael Sand
0146792e9b
Use setter instead of parameter injection, fix/specialize extraction
2019-01-06 13:22:13 +02:00
Mikael Sand
741509763c
Refactor, simplify, improve readability, remove redundant closures.
2019-01-06 01:31:34 +02:00
Mikael Sand
e8d23439a4
Refactor extractGradient, simplify RNSVGCGGradient conversion, prettier
2019-01-05 22:28:16 +02:00
Mikael Sand
07292c1ab0
Optimize startup
...
Compile transform parser in development instead of in run-time
Remove lodash dependency and use tailor-made replacements instead
Change pag.js from dependency to dev dependency
2019-01-05 17:43:51 +02:00
Janic Duplessis
bb57f86906
Fix compat with latest RN master
...
The code in the Shape constructor assumes that `SvgTouchableMixin` contains only functions but [this](https://github.com/facebook/react-native/blob/master/Libraries/Components/Touchable/Touchable.js#L904 ) was added which breaks this assumption.
This simply makes sure whatever we assign is a function before calling `.bind`.
2018-12-16 21:55:05 +02:00
Mikael Sand
2f513504d2
[ios] Fix gesture responder, onPress/In/Out, onLayout
2018-12-08 03:04:22 +02:00
Mikael Sand
766926f758
Add support for clipRule on ClipPath element
...
[iOS] fix spec conformance, clipRule on non ClipPath elements must not
have any effect.
2018-10-24 22:13:41 +03:00
Mikael Sand
b9debca598
Restore support for array of styles on Svg root.
2018-10-19 18:26:41 +03:00
Mikael Sand
b6d17ff1df
Fix merge issue
2018-10-19 18:26:02 +03:00
Mikael Sand
d91e3e5755
Merge pull request #805 from janicduplessis/no-proptypes
...
Remove prop-types
2018-10-19 18:13:37 +03:00
Adam Sajko
2602cb951b
Fix require cycle between extractText.js and TSpan.js
2018-10-16 08:35:28 +02:00
Janic Duplessis
0be0d00fc3
Remove prop-types
2018-10-14 17:15:12 -04:00
Mikael Sand
a548179363
Simplify project structure
2018-10-12 19:54:07 +03:00
Mikael Sand
600c13c526
Remove internal import from react-native
2018-10-12 19:38:48 +03:00
Mikael Sand
6f256f1da1
Use const where possible, cleanup attributes, fix imports
...
Fix viewBox validation
2018-10-12 19:37:44 +03:00
Mikael Sand
1e25870f5d
Simplify and optimize property handling logic
...
Remove redundant toString calls / type transforms.
The view managers handle the different types natively.
2018-10-12 18:52:23 +03:00
Mikael Sand
2a43579404
Implement support for animation of transform and some text properties
2018-10-11 03:31:47 +03:00
Mikael Sand
e307eeee57
Fixes for animation of width and height
2018-10-10 22:35:25 +03:00
Mikael Sand
5fdcdf6fc3
Fix linting, make Polygon and Polyline extend Shape
2018-10-10 20:24:34 +03:00
Mikael Sand
4f5c226ef8
Support setting dimensions of Svg using stylesheet.
...
[android] Support borders on Svg root
2018-10-05 03:54:56 +03:00
Mikael Sand
2d9d73804c
Support for style attribute inheritance from the Svg element
2018-10-05 00:53:41 +03:00
Mikael Sand
e7d0eb6df6
Basic support for the style attribute
2018-10-05 00:24:58 +03:00
Mikael Sand
f076c345a2
Support fill, stroke etc. on Svg element
2018-10-04 23:26:52 +03:00
Mikael Sand
1827b91883
First attempt at partial currentColor support
2018-10-04 22:17:18 +03:00
Mikael Sand
ad99f97c84
Fix onPress/In/Out and responder handling
2018-09-24 01:41:30 +03:00
Mikael Sand
b88cba85a4
[iOS] Fix transform in mask handling
...
cleanup mask implementation
2018-09-12 02:59:38 +03:00
Mikael Sand
46307ecd2d
Implement basic support for Mask element
...
iOS luminanceToAlpha calculation seems off
probably some color space or gamma issue
2018-09-12 01:48:39 +03:00
Mikael Sand
fc63635f3c
Implement basic support for Pattern element
2018-09-02 16:06:44 +03:00
Mikael Sand
e98b0fe1d1
Merge branch 'master' into NativeAnimation
...
# Conflicts:
# android/src/main/java/com/horcrux/svg/RenderableShadowNode.java
# android/src/main/java/com/horcrux/svg/SvgViewShadowNode.java
# elements/Image.js
# elements/Rect.js
# elements/Use.js
# lib/attributes.js
2018-08-19 15:48:40 +03:00
Mikael Sand
443de17d2e
Merge pull request #722 from bayukp/chore/fix-proptypes-new-rn
...
chore(Image): Update image prop type to ImageSourcePropType
2018-08-05 02:00:23 +03:00
Mikael Sand
7a43500b49
[js] Fix crash on missing width or height prop in Use element
2018-07-02 05:25:20 +03:00
BAYU KRESNO PRASETYO
d839311af3
chore(Image): Update image prop type to ImageSourcePropType
2018-06-26 13:35:40 +07:00