Commit Graph

133 Commits

Author SHA1 Message Date
Mikael Sand 0dcd5d7c92 Merge remote-tracking branch 'matrixfix/patch-1' into 5.3.0-conformance 2017-07-20 07:01:13 +03:00
Mikael Sand ebeb89beb5 Improve units and fontSize implementation.
Implement support for units in strokewidth based on relativeOnOther.
2017-07-19 23:35:34 +03:00
Mikael Sand 8e15791107 Fix extractTransform not to interpret text rotate attribute and transform rotation 2017-07-16 02:01:50 +03:00
Mikael Sand 2458a2f262 Implement rotate and textDecoration 2017-07-16 01:50:59 +03:00
Mikael Sand 7547effd1f Merge remote-tracking branch 'upstream/master' into 5.3.0-conformance
# Conflicts:
#	lib/extract/extractViewBox.js
#	package.json
2017-07-15 14:07:29 +03:00
Mikael Sand c7039588f6 Improve coordinate system calculations for font-size, letter-spacing etc.
Fix parsing of transform to account for single parameter scale and translate correctly.
Fix skewX, had opposite of intended effect.
https://www.w3.org/TR/SVG/coords.html
https://www.w3.org/TR/SVG2/coords.html
https://www.w3.org/TR/SVGTiny12/coords.html
https://www.w3.org/TR/SVG/coords.html#TransformAttribute
https://www.w3.org/TR/SVG/coords.html#SkewXDefined
2017-06-27 20:45:04 +03:00
Igor Borges 2e5ea29e68 move createReactNativeComponentClass import 2017-06-26 18:11:32 -03:00
Mikael Sand bd84f09a96 Implement correct path measurement, matrix calculation, getTextAnchorShift, startOffset.
Add method and spacing attributes to textPath.
Correct startOffset calculation.
Implement method="stretch".
2017-06-22 17:02:30 +03:00
Mikael Sand dac969b944 First letterSpacing implementation attempt 2017-06-20 22:04:41 +03:00
Mikael Sand 155fa4b6ae Implement support for em in dx and dy attributes and font props for G element 2017-06-20 03:15:01 +03:00
Lauren cdfb3ef701 Correct matrix typo
I believe this is a typo, introduced here: https://github.com/react-native-community/react-native-svg/commit/5bd9b40c1725b60f5a034ce5488c488393356593#diff-53fd7ef0f8293582e3a5625fe345b1f9R86
2017-06-13 15:58:26 -07:00
Mikael Sand e9747bee01 Revert 6b95d1a 2017-06-13 12:43:32 +03:00
Mikael Sand 377cb7267f Change transform PropType to oneOfType([PropTypes.object, PropTypes.string]) 2017-06-12 20:08:52 +03:00
Mikael Sand 77e54cfcfb Fix linting 2017-06-07 17:25:22 +03:00
Mikael Sand b758d77a98 Transform fix 2017-06-06 00:14:02 +03:00
fxwan 67e072307c remove the y check 2017-06-05 16:54:25 +03:00
fxwan 6b95d1a33c Fix text position on Y-axis, we should take fontSize in mind to layout the Text/TSpan shapes, SVG coord tes case https://www.w3.org/TR/SVG/images/coords/OrigCoordSys.svg 2017-06-05 16:54:25 +03:00
fxwan 1e6f36053a Add Basic support to transform props, including translate, rotate, scale, skewX, skewY and matrix. Keep in mind that the current implementation doesn't support 3-arguments rotate(a, x, y) transform yet. 2017-06-05 16:54:25 +03:00
Tim Rijavec 294d2da2b3 Replaced React and RN PropTypes with prop-types package 2017-05-15 16:34:42 +01:00
陈阳 9a07c4251d Fix polypoints RegExp. Close #303 2017-05-02 11:56:03 +08:00
Horcrux bbe1964a42 Fix #284 2017-04-04 12:30:53 +08:00
Horcrux ea1a87887e Fix polypoints RegExp 2017-04-04 11:59:59 +08:00
Horcrux e3b2f4c71a Fix Polygon and Polyline 2017-04-04 11:56:38 +08:00
Horcrux 5bd9b40c17 refactor Components props extracting 2017-02-03 19:43:25 +08:00
Horcrux cfaca8b3cb Add gradientUnits support 2017-01-24 22:24:36 +08:00
Horcrux 1b04e11ca4 Refactor Symbol on iOS 2017-01-22 17:51:47 +08:00
Horcrux 8582e076e4 Merge branch 'master' into percentage-props-refactor-ios 2017-01-20 14:59:14 +08:00
Horcrux 43e45b95c5 Fix #231 2017-01-16 21:01:12 +08:00
Horcrux 7c9f6b2d3d Remove unused public method 2017-01-16 14:38:43 +08:00
Horcrux 58823495d6 Fix #228 2017-01-15 20:17:21 +08:00
Horcrux 13e7595ab5 Remove unused files 2017-01-14 00:30:49 +08:00
Horcrux b15d0791e0 Add startOffset support 2017-01-10 12:30:48 +08:00
Horcrux 84ea887a06 Finish TextPath
Finish TextPath step two: add `dy` support
2017-01-09 20:48:33 +08:00
Horcrux 52dfe21074 Implement TextPath: first step (iOS) 2017-01-09 20:16:20 +08:00
Horcrux 1d06134719 Add TextPath element 2017-01-09 13:08:22 +08:00
Horcrux f9fe7bdc4e merge master fix conflicts 2017-01-09 11:11:12 +08:00
Horcrux 4f54fe219f move renderLayerTo to Renderable
Move renderLayerTo to Renderable.
2017-01-08 17:43:03 +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 293263d6ef Move d parsing to native side(iOS) 2017-01-07 09:22:52 +08:00
Horcrux 0a6dc56b68 Move serialize path to native side 2017-01-06 14:57:06 +08:00
Horcrux 0434cddc8b Fix memory issue with ClipPath
Fix memory issue with ClipPath.
2016-11-11 13:25:16 +08:00
Horcrux aae482236d Finish TSpan 2016-11-11 00:48:55 +08:00
Horcrux da32b1bb96 Temp commit 2016-11-05 18:42:49 +08:00
Horcrux 5f4ff90c2a finish basic Text features on iOS 2016-09-17 17:14:31 +08:00
Horcrux a37c3ceee6 finish basic text support on iOS 2016-09-17 15:42:27 +08:00
Horcrux d549f6ca9c clean up unused code 2016-09-17 09:49:28 +08:00
Horcrux 09c5b10f02 convert span frames into Span components 2016-09-17 00:20:18 +08:00
Horcrux ad196a7071 finish Text props extract refactoring 2016-09-16 23:59:38 +08:00
Goran Gajic 6bbd4d2d88 fix passing numbers to Text element 2016-09-06 19:33:04 +02:00
Horcrux 74b9917bd3 flattern text into several spans
flattern text into several spans (step 1, not finish yet)
2016-09-02 10:24:33 +08:00