Commit Graph

86 Commits

Author SHA1 Message Date
Mikael Sand
fc61c9dad2 Simplify textAnchor and textDecoration handling 2017-07-23 20:11:01 +03:00
Mikael Sand
dff02c3dbb Implement wordSpacing in extractFont 2017-07-23 08:30:28 +03:00
Mikael Sand
eaf7b5e88b Improve fontSize handling 2017-07-22 23:02:37 +03:00
Mikael Sand
ed9c0bd647 Restructure fontSize handling. 2017-07-22 22:05:38 +03:00
Mikael Sand
6b022ac861 Harmonize parseSVGLengthList usage and naming. Probably requires api change in ios as well. 2017-07-22 20:33:05 +03:00
Mikael Sand
5372355b11 Fix parsing of generic units in dx and dy, and percentages in rotate text attributes. 2017-07-22 19:11:41 +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
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
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
Mikael Sand
e9747bee01 Revert 6b95d1a 2017-06-13 12:43:32 +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
陈阳
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
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
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
Horcrux
bd26c04a1d first step of TSpan 2016-08-30 09:37:38 +08:00
Horcrux
60654b7583 remove ART related comment 2016-08-13 17:03:54 +08:00