Jürg Lehni
|
bb03c72ce8
|
Implement Item#hasFill().
|
2013-04-20 20:40:20 -07:00 |
|
Jürg Lehni
|
e1807214f4
|
Large refactoring of Style handling for notable speed improvements.
|
2013-04-19 19:31:29 -07:00 |
|
Jürg Lehni
|
9da392a99c
|
Commit initial support for Shape class.
Hit testing is still missing.
|
2013-04-19 17:25:50 -07:00 |
|
Jürg Lehni
|
67203e753c
|
Move #applyMatrix setting to PathItem.
|
2013-04-19 13:16:00 -07:00 |
|
Jürg Lehni
|
8d99aa5f95
|
Handle color transformation in Item#transform() rather than Path#_applyMatrix().
Fixes an issue with BoucingBalls.html, now that CompoundPath#applyMatrix is true.
|
2013-04-19 13:13:54 -07:00 |
|
Jürg Lehni
|
922b9b5bd0
|
Rename _cloning parameter to _preserve.
|
2013-04-19 11:54:16 -07:00 |
|
Jürg Lehni
|
2e265693ff
|
Make #drawSelected() protected.
|
2013-04-18 17:50:53 -07:00 |
|
Jürg Lehni
|
d23e21edd7
|
Make Item#draw() protected, so we know to not directly call it.
|
2013-04-18 16:58:35 -07:00 |
|
Jürg Lehni
|
1333f59d54
|
Have CompoundPath always apply transformations by default.
|
2013-04-18 16:22:21 -07:00 |
|
Jürg Lehni
|
b55d89acda
|
Move handling of clipping outside of draw function, so canvas context can correctly be saved and restored for clipping paths too.
|
2013-04-09 19:08:41 -07:00 |
|
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 |
|