Jonathan Puckey
|
2d9b0b2e8e
|
Improve Path documentation.
|
2013-03-10 19:48:46 +01:00 |
|
Jonathan Puckey
|
177f799bde
|
Rename Path.Star parameter from numPoints to points.
|
2013-03-10 18:09:05 +01:00 |
|
Jonathan Puckey
|
2666e60f28
|
Fix Path#getTangentAt example.
|
2013-03-04 12:37:55 +01:00 |
|
Jonathan Puckey
|
2d103dd792
|
Improve and fix example documentation.
|
2013-03-04 12:09:58 +01:00 |
|
Jürg Lehni
|
8a69fcd1e5
|
Actually use precision setting in Path#getPathData().
|
2013-03-03 16:51:31 -08:00 |
|
Jonathan Puckey
|
7643085378
|
Path example documentation.
|
2013-03-03 20:48:03 +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
|
03521796ef
|
Setting Path#selected to false should deselect all handles too.
|
2013-03-01 20:25:09 -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
|
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
|
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
|
6b7c6b6c4c
|
Implement Item#bounds.selected to control drawing of selected item bounds.
|
2013-02-24 15:41:31 -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
|
24d467e292
|
Implement support for native dash strokes, through both setLineDash() and mozDash.
|
2013-02-12 15:32:21 -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
|
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 |
|
Jürg Lehni
|
1a438b8b9b
|
Change Curve#[getPoint / getTangent / getNormal](t) to #[getPoint / getTangent / getNormal](offset, isParamter).
Keep deprecated versions around for now.
|
2013-01-28 16:30:28 -08:00 |
|
Jürg Lehni
|
e75ee18de1
|
Restructure code a bit.
|
2013-01-22 14:58:34 -08:00 |
|
Jürg Lehni
|
a5bfa9e5d3
|
Remove debug logging for Segment / Curve insertion, deletion and splitting.
|
2013-01-22 14:54:19 -08:00 |
|
Jürg Lehni
|
f09bc84a12
|
Implement correct handling of Curves / Segments synchronization, improve CurveLocation linking to Curves through their linked Segments, and preserve Curves in Path#split() calls.
|
2013-01-22 14:46:49 -08:00 |
|
Jürg Lehni
|
4346563fe4
|
No need to merge Path#_serializeFields, simply keep in sync with Item#_serializeFields (excluding #children).
|
2013-01-20 14:01:43 -08:00 |
|
Jürg Lehni
|
49c8f8b6b5
|
A couple of improvements on Path#split().
|
2013-01-20 14:01:42 -08:00 |
|
Jürg Lehni
|
b04eb2b98f
|
Implement Path#split() and Curve#split().
|
2012-12-31 22:28:41 +01:00 |
|
Jürg Lehni
|
d2b799f4db
|
Fix various issues with Path#curves synchronization.
|
2012-12-31 22:21:50 +01:00 |
|
Jürg Lehni
|
f0038465cc
|
Fix clearing of removed segments.
|
2012-12-31 21:45:30 +01:00 |
|
Jürg Lehni
|
a10e44d601
|
Minor code clean-up.
|
2012-12-31 21:43:43 +01:00 |
|
Jürg Lehni
|
5a2be6d545
|
No need for chainable functions on Item types.
|
2012-12-31 21:42:14 +01:00 |
|
Jürg Lehni
|
d509f86e1a
|
Fix issue where removing segments from open paths would correct curves wrongly.
|
2012-12-31 21:19:55 +01:00 |
|
Jürg Lehni
|
5da4e89672
|
Return 'this' in more places to facilitate chained calls inside the library.
|
2012-12-31 20:07:28 +01:00 |
|
Jürg Lehni
|
4185b63d99
|
Und recent renaming of #getNearest*() methods.
|
2012-12-30 19:43:35 +01:00 |
|
Jürg Lehni
|
2abefee336
|
Merge Base.readValue() with Base.read() and rename Base.peekValue() to Base.peek().
When called directly on Base, read() reads values, otherwise the specific type of the subclass it is called on.
|
2012-12-30 16:07:20 +01:00 |
|
Jürg Lehni
|
1b539301ad
|
Find a better naming convention for the various getLocation* methods (*At for offsets / parameters, *Of for points), implement the missing methods on Curve and use them in Path.
|
2012-12-27 21:08:03 +01:00 |
|
Jürg Lehni
|
3c4978eb04
|
Rename Curve#getParameter(point) to Curve#getParameterOf(point), to better distinguish from Curve#getParameterAt(length).
|
2012-12-27 20:09:21 +01:00 |
|
Jürg Lehni
|
68ad4bb5ba
|
Implement PathItem#getIntersections(path) and Curve#getIntersections(curve) using divide-and-conquer approach, and new Curve.getBounds().
|
2012-12-27 19:23:03 +01:00 |
|
Jürg Lehni
|
75596e1d03
|
Move a part of Path.getBounds() code into Curve._addBounds(), and use it to also define Curve.getBounds().
|
2012-12-27 18:38:55 +01:00 |
|
Jürg Lehni
|
050ca1dcb1
|
Further clean up Path.getBounds() code.
|
2012-12-27 17:43:21 +01:00 |
|
Jürg Lehni
|
3a1f2eec3f
|
Restructure Path#getBounds() code so Curve bounds calculations can be moved to Curve.
|
2012-12-27 15:19:42 +01:00 |
|
Jürg Lehni
|
2673991620
|
Have Path#_serializeFields inherit from Item#_serializeFields.
|
2012-12-27 13:04:38 +01:00 |
|
Jürg Lehni
|
f45c04a359
|
Remove overridden Path#matrix getters and setters, since we now control behavior through #applyMatrix.
|
2012-12-27 13:04:07 +01:00 |
|
Jürg Lehni
|
4f83e0eee6
|
Commit first version of serialization / deserialization mechanism.
It appears to work fine already for Paths and Groups.
|
2012-12-27 12:45:55 +01:00 |
|
Jürg Lehni
|
ae4e5d4be5
|
Rename Item#setProperties() to hidden #_setProperties() and add public Item#set() to use same functionality from outside.
|
2012-12-27 00:52:09 +01:00 |
|