Jürg Lehni
|
fbe8a558bd
|
Refactor Format literal to Formatter class that keeps precision stored.
|
2013-04-09 17:32:19 -07:00 |
|
Jürg Lehni
|
9b50020721
|
Check for gradient Colors correctly.
|
2013-04-09 08:35:42 -07:00 |
|
Jürg Lehni
|
218732e320
|
Implement a row of simple optimizations to increase performance of Item constructors.
|
2013-04-07 17:36:09 -07:00 |
|
Jürg Lehni
|
a0b903e49c
|
Simply call slice() instead of slice(0).
|
2013-04-06 18:39:17 +02:00 |
|
Jürg Lehni
|
f43b322d2a
|
Rename Base#_type property to #_class.
|
2013-04-06 09:16:08 +02:00 |
|
Jürg Lehni
|
cb62c6053a
|
Switch back to persistence of segments for good.
|
2013-04-05 17:34:09 +02:00 |
|
Jürg Lehni
|
1392f87d85
|
Switch back to serializing segment lists for now, so we can fix other failing tests.
|
2013-03-19 18:48:59 -07:00 |
|
Jürg Lehni
|
5ff911f68c
|
Have Path#closePath() handle merging of first and last segment, if doubled.
So we finally found a reason for #closePath() to stick around :)
|
2013-03-19 18:47:18 -07:00 |
|
Jürg Lehni
|
3f634f6420
|
Use same precision in Path#getPathData() as everywhere else.
|
2013-03-19 16:23:36 -07:00 |
|
Jonathan Puckey
|
e5c32b9520
|
Actually fix handling of param.clip in Path#draw.
|
2013-03-17 21:59:07 +01:00 |
|
Jonathan Puckey
|
4c4258d2e1
|
Fix Raster#getAverageColor by having Path#draw clip the context, when param.clip is true.
|
2013-03-17 21:41:46 +01:00 |
|
Jonathan Puckey
|
4b87860b30
|
Add documentation of Path#getLocationOf
|
2013-03-16 18:39:53 +01:00 |
|
Jonathan Puckey
|
6f490d8b34
|
Add documentation for Path#split.
|
2013-03-16 17:59:31 +01:00 |
|
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 |
|