Jürg Lehni
|
849d3efc2e
|
Have PathItem#setPathData() clear the previous content.
|
2013-03-03 16:56:48 -08:00 |
|
Jürg Lehni
|
8a69fcd1e5
|
Actually use precision setting in Path#getPathData().
|
2013-03-03 16:51:31 -08:00 |
|
Jürg Lehni
|
7b7168feb1
|
Fix reading of rectangle in Path.Constructor.
And all tests are green again.
|
2013-03-03 15:29:15 -08:00 |
|
Jonathan Puckey
|
7643085378
|
Path example documentation.
|
2013-03-03 20:48:03 +01:00 |
|
Jonathan Puckey
|
fa861f2047
|
Improve example documentation.
|
2013-03-03 20:10:25 +01:00 |
|
Jonathan Puckey
|
801eb0f2a8
|
Add example to Segment#selected docs.
|
2013-03-03 20:09:41 +01:00 |
|
Jonathan Puckey
|
3cdb11fe36
|
GradientStop & PathItem example documentation.
|
2013-03-03 19:47:32 +01:00 |
|
Jonathan Puckey
|
09e4bd0bb4
|
Improve Path.Constructors example documentation.
|
2013-03-03 18:34:39 +01:00 |
|
Jürg Lehni
|
1bfafee0ca
|
Use a default precision of three digits for exporting path data.
|
2013-03-02 08:14:17 -08:00 |
|
Jürg Lehni
|
67b1a602c4
|
Fix hit-testing of open filled Paths when they are part of a CompoundPath.
|
2013-03-01 21:47:13 -08:00 |
|
Jürg Lehni
|
936b1bccbb
|
Get curves uncached in CurveLocation#split() and #divide().
|
2013-03-01 20:26:03 -08:00 |
|
Jürg Lehni
|
03521796ef
|
Setting Path#selected to false should deselect all handles too.
|
2013-03-01 20:25:09 -08:00 |
|
Jürg Lehni
|
dfe1a7efab
|
Define setter for Segment#linear.
|
2013-03-01 20:24:46 -08:00 |
|
Jürg Lehni
|
2230c2888d
|
Fix issue with Curve#divide() where the wrong curve reference is returned.
|
2013-03-01 20:19:44 -08:00 |
|
Jürg Lehni
|
532176ac62
|
Fix drawing of selected handles.
|
2013-03-01 18:32:55 -08:00 |
|
Jürg Lehni
|
c543704115
|
Define Project#options as a way to configure things.
For now, only options.handleSize is in use.
|
2013-03-01 18:28:22 -08:00 |
|
Jürg Lehni
|
f0593c1fb9
|
Fix error with #getPathData() and empty paths.
|
2013-03-01 17:46:55 -08:00 |
|
Jürg Lehni
|
3f5d0a6925
|
Merge constructor._name with _type and use CamelCase for Item types.
|
2013-03-01 17:13:22 -08:00 |
|
Jürg Lehni
|
7553712e35
|
Simplify code for readRectangle() in Path.Constructors.
|
2013-03-01 14:39:26 -08:00 |
|
Jürg Lehni
|
3f85dcdb77
|
Use #_set() in Rectangle#initialize() to simplify code and increase flexibility.
|
2013-03-01 14:37:27 -08:00 |
|
Jürg Lehni
|
8d2c2f5fda
|
Fix an issue with PathFitter where path with only one segment would throw an error.
Closes #175.
|
2013-03-01 14:28:32 -08:00 |
|
Jürg Lehni
|
7405858f32
|
Simplify code for reading of named arguments, removing the need for filtering arguments by using 'in' checks instead for the presence of properties / setters.
|
2013-03-01 14:06:04 -08:00 |
|
Jürg Lehni
|
06e33ba412
|
Improve flexibility of reading rectangles in Path.Constructor.
We can now define the rectangle by any property that it has setters for.
|
2013-03-01 13:52:11 -08:00 |
|
Jürg Lehni
|
12d4d563d9
|
Further shorten path data code.
|
2013-03-01 01:18:42 -08:00 |
|
Jürg Lehni
|
13a567bcaa
|
Fix handling of multiple h / v commands in path data.
|
2013-03-01 01:18:27 -08:00 |
|
Jürg Lehni
|
b649240696
|
Use correct defaults for #pathData serialization.
|
2013-02-28 19:55:18 -08:00 |
|
Jürg Lehni
|
cef30f9dd1
|
Switch to #pathData for JSON serialization of Path and CompoundPath.
|
2013-02-28 19:41:13 -08:00 |
|
Jürg Lehni
|
5fbc6e939d
|
Fix small SVG path-data parser issue.
|
2013-02-28 19:33:08 -08:00 |
|
Jürg Lehni
|
82cefa9846
|
Fix typo.
|
2013-02-28 19:29:44 -08:00 |
|
Jürg Lehni
|
0f140e391d
|
Minor clean ups.
|
2013-02-28 19:21:46 -08:00 |
|
Jürg Lehni
|
78b3621cf6
|
Implement PathItem#pathData getter and setter for SVG style path data.
And use it fro SvgImport too.
|
2013-02-28 19:14:06 -08:00 |
|
Jürg Lehni
|
9d8cddbe42
|
Implement new private Format object that handles formatting of number, point, size and rectangle.
|
2013-02-28 19:14:05 -08:00 |
|
Jürg Lehni
|
79e836373d
|
Clean up hitTest code a little.
|
2013-02-25 15:41:31 -08:00 |
|
Jürg Lehni
|
cd9184a6f0
|
Fix CompoundPath hit-testing.
|
2013-02-24 19:01:29 -08:00 |
|
Jürg Lehni
|
6b7c6b6c4c
|
Implement Item#bounds.selected to control drawing of selected item bounds.
|
2013-02-24 15:41:31 -08:00 |
|
Jürg Lehni
|
0a81787c7e
|
Fix a bug in CompoundPath#hitTest().
Results from Path#hitTest() were not passed through.
|
2013-02-24 14:56:28 -08:00 |
|
Jürg Lehni
|
119e5acbf9
|
Move #_setProperties() and #set() from Item to Base, rename it to #_set and use it for Tool too.
|
2013-02-15 18:28:49 -08:00 |
|
Jürg Lehni
|
23b51915eb
|
Implement CompoundPath#firstSegment, #lastSegment, #firstCurve and #lastCurve.
|
2013-02-15 18:05:16 -08:00 |
|
Jürg Lehni
|
d3ccec2256
|
Use the code from Group#isEmpty() and CompoundPath#isEmpty() for Item#isEmpty(), since any item that does not have children overrides it.
|
2013-02-15 18:01:23 -08:00 |
|
Jürg Lehni
|
24d467e292
|
Implement support for native dash strokes, through both setLineDash() and mozDash.
|
2013-02-12 15:32:21 -08:00 |
|
Jürg Lehni
|
fdd15e675f
|
Add options argument to #toJson() methods, and use to implement optional fractional digit precision control.
|
2013-02-12 14:57:54 -08:00 |
|
Jürg Lehni
|
489a785171
|
Override Item.extend() to merge the subclass' _serializeFields with the parent class' _serializeFields.
And have style fields always serialized in non-compact form for Color.
|
2013-02-11 17:08:23 -08:00 |
|
Jürg Lehni
|
b10454a83c
|
Rename Matrix#createInverse() to #inverted() and #createShiftless() to #shiftless().
|
2013-02-09 12:18:40 -08:00 |
|
Jürg Lehni
|
bc5826d324
|
Clean up code.
|
2013-02-08 18:46:22 -08:00 |
|
Jürg Lehni
|
dc35fdbd02
|
Move named inner functions out of nested scopes, to prepare for 'use strict;' transition.
|
2013-02-08 18:23:33 -08:00 |
|
Jürg Lehni
|
1ee29d56ac
|
Improve comment about JavaScriptCore bug.
|
2013-02-08 16:35:33 -08:00 |
|
Jürg Lehni
|
b6d2d83af5
|
Fix the strangest JavaScriptCore bug that I've encountered in ages.
Closes #168. Read comment for more details.
|
2013-02-08 16:32:47 -08:00 |
|
Jürg Lehni
|
02ca95eb46
|
Avoid accidental global leakage.
|
2013-02-08 16:12:57 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
b0deda9445
|
Add missing documentation for various location related functions on Curve.
|
2013-01-28 16:47:45 -08:00 |
|