Jürg Lehni
c43752dc3e
Use #hasFill() and #hasStroke() more broadly and avoid drawing strokes when strokeWidth is set to 0.
2013-10-29 20:05:39 +01:00
Jürg Lehni
5d0fd8f970
Implement Style#windingRule and use it in Path#contains().
2013-10-18 14:54:13 +02:00
Jürg Lehni
73d2c34088
Implement item-level #equals() method and clean up other equals methods.
2013-10-17 13:08:54 +02:00
Jürg Lehni
c2a34d9f1f
Implement an easier approach in serialization to handle the default value of leading.
2013-10-17 11:53:34 +02:00
Jürg Lehni
1eb6b49e8a
Allow serialization values to mark themselves as _default.
...
Solves unnecessarily serialized leading values.
2013-10-17 11:47:46 +02:00
Jürg Lehni
efe8bab129
Revert previous Style change.
2013-10-17 11:40:44 +02:00
Jürg Lehni
2324fbc565
Define correct style default for leading.
2013-10-17 11:14:34 +02:00
Jürg Lehni
f63cb40723
Fix SVG error in importing transformed gradients with highlights.
2013-10-16 15:09:23 +02:00
Jürg Lehni
03efd56df7
Fix strange issue on iOS 7 where a simple regular expression appears to cause a complete browser crash.
...
Closes #306 .
2013-10-10 14:47:27 +02:00
Jürg Lehni
5a45260740
Docs: Fix shadow example.
2013-09-12 15:30:07 -07:00
Jürg Lehni
19c7788617
Fix documentation irregularities.
2013-08-23 19:45:28 -07:00
Jürg Lehni
1a1c2674fd
Take Item#matrix into account when drawing gradients.
...
Closes #267 .
2013-08-14 11:27:04 -07:00
Jürg Lehni
6b19f25f4b
Fix typos in comments.
2013-08-08 15:21:35 -07:00
Jürg Lehni
f466473bfb
Add support for shadows.
...
Closes #36 .
2013-07-19 17:48:29 -07:00
Jürg Lehni
f68f1ad518
Docs: Fix some faulty object parameters.
2013-07-02 12:22:45 -07:00
Jürg Lehni
8ee52d2983
Export legacy Color constructors.
2013-07-01 06:50:20 -07:00
Jürg Lehni
d369984196
Allow math operands larger than 1 when multiplying and dividing colors.
2013-06-28 07:59:33 -07:00
Jürg Lehni
e8765d18d5
Make argument reading more flexible by introducing options object for readNull and clone, and passing it on to the constructor through this.__options for additional values.
2013-06-28 07:37:03 -07:00
Jürg Lehni
2c578d0558
Start implementing math operators for Color.
2013-06-28 07:19:53 -07:00
Jürg Lehni
22df17c192
Docs: Minor cleanups.
2013-06-28 06:41:36 -07:00
Jürg Lehni
b588f3234c
Docs: Improve documentation for Color constructors.
2013-06-28 06:41:21 -07:00
Jürg Lehni
1866e4ff15
Remove need for all special arguments in minification, and restructure code to avoid warnings.
2013-06-24 10:15:54 -07:00
Jürg Lehni
a4535edbb9
Bring back _class names, since code minification breaks reliance on constructor.name.
...
Closes #248 .
2013-06-23 20:18:32 -07:00
Jürg Lehni
db49718015
No need for white-space in CSS color format.
2013-06-18 14:33:50 -07:00
Jürg Lehni
2196ef2a74
Streamline various #equals() methods.
2013-06-12 18:57:12 -07:00
Jürg Lehni
4a8469b740
Define Base.isPlainValue() and use it to implement more flexible #equals() for Color and Rectangle.
2013-06-12 18:55:14 -07:00
Jürg Lehni
6fe60cff9d
Fix trailing comas.
2013-06-12 17:42:38 -07:00
Jürg Lehni
34ad9045cc
Fix wrong default fillColor on TextItems.
2013-06-12 17:30:35 -07:00
Jürg Lehni
b581f8b33e
Implement Style#selectedColor and Item#selectedColor as a way to control appearance of selections.
...
Closes #219 .
2013-06-12 14:17:34 -07:00
Jürg Lehni
9977ec5c28
Rename #toCss() to #toCSS()
2013-06-12 14:04:59 -07:00
Jürg Lehni
ce7d584c05
Revert readNull and clone parameter sequence in arguments reading code.
2013-06-11 19:49:35 -07:00
Jürg Lehni
72082bdcff
Fix new failing test.
2013-06-11 13:57:28 -07:00
Jürg Lehni
10d5de3ed6
Implement a better way to name and export class constructors.
...
This change also simplified the way classes are exported to PaperScope objects.
2013-05-27 12:48:58 -07:00
Jürg Lehni
c533dda7b5
Finally found a better and faster alternative for this.base() calls, by setting base on the function object instead.
...
base can be accessed on named functions very easily, leading to another measurable speed increase. Finally all performance reasons against straps.js are eliminated!
2013-05-27 10:04:05 -07:00
Jürg Lehni
7c2e57e105
Remove Item#applyMatrix boolean, go back to previous way of directly applying transformations to children in Group and Layer, and introduce new Clip class for non-transformed nested matrices.
2013-05-13 18:57:17 -07:00
Jürg Lehni
731a873884
Check for radial property as well when predicting gradient color type.
2013-05-08 20:19:40 -07:00
Jürg Lehni
fcb697264f
Make sure alpha channel is included in serialization of Color.
...
Fixes #215 .
2013-05-07 22:51:23 -07:00
Jürg Lehni
ead3646581
Handle alpha channels correctly in Raster#get/setPixel.
...
Closes #209 .
2013-04-24 16:29:28 -07:00
Jürg Lehni
6029f59494
More uppercase changes.
2013-04-23 07:29:30 -07:00
Jürg Lehni
6800a6d534
Use separate id ranges for different classes.
2013-04-22 19:09:59 -07:00
Jürg Lehni
2a53dbe60f
Restructure Color constructor to remove need for Color.create().
2013-04-22 19:07:38 -07:00
Jonathan Puckey
e4203c2e36
Improve Color documentation.
2013-04-21 15:36:20 +02:00
Jonathan Puckey
d4d1a0fdae
Improve Style example code.
2013-04-21 15:36:03 +02:00
Jonathan Puckey
191213f362
Improve GradientStop example code.
2013-04-21 15:35:45 +02:00
Jonathan Puckey
fbc3985bbf
Add Gradient class examples.
2013-04-21 15:35:31 +02:00
Jürg Lehni
3025c63179
Simplify Style creation.
2013-04-19 20:00:30 -07:00
Jürg Lehni
41a58acb8c
Document new approach to styles.
2013-04-19 19:51:04 -07:00
Jürg Lehni
f51dc65cca
Use Color object for default.
2013-04-19 19:39:05 -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
bb546decae
Various improvements to Color caching mechanisms.
2013-04-19 12:51:53 -07:00
Jürg Lehni
e2a118e43e
Make sure color components cannot be anything else than numbers.
2013-04-09 17:43:18 -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
8da8f116d1
Restructure style related class organization.
2013-04-09 17:08:09 -07:00
Jürg Lehni
b3b0fa649b
Minor Style refactoring clean-ups.
2013-04-09 16:51:57 -07:00
Jürg Lehni
b4a99415d0
Merge PathStyle, CharacterStyle and ParagraphStyle into Style.
...
Closes #130 .
2013-04-09 16:46:20 -07:00
Jürg Lehni
a48e6e5bf9
More work on Color refactoring.
2013-04-08 00:11:43 -07:00
Jürg Lehni
136c028d29
Increase performance of Style getters / setters.
2013-04-07 17:36:35 -07:00
Jürg Lehni
232ea221b4
First batch of large Color refactoring and simplification.
...
Work in progress.
2013-04-07 10:03:51 -07:00
Jürg Lehni
1d1e6425fa
Remove all left-overs of call chaining, except for where it's in use.
2013-03-05 20:39:07 -08:00
Jürg Lehni
5140e8f003
Minor changes on documentation.
2013-03-01 20:24:26 -08:00
Jürg Lehni
2607d2c075
Allow setting of styles on empty Groups.
...
As required by upcoming import SVG fix.
2013-02-14 21:36:58 -08:00
Jürg Lehni
a17068fd42
Style should not be inheriting form Item, but Base instead!
...
How could we oversee this one?
2013-02-14 21:32:32 -08:00
Jürg Lehni
3aa0166d57
Improve documentation for CharacterStyle#fontSize.
2013-02-14 20:25:40 -08:00
Jürg Lehni
8bdcbe1777
Support units other than 'px' in CharacterStyle#fontSize, but default to 'px' if no unit is specified.
2013-02-14 20:23:13 -08:00
Jürg Lehni
6c9c16ad3d
Update copyright information comments, and year.
2013-01-28 18:03:27 -08:00
Jürg Lehni
5a2be6d545
No need for chainable functions on Item types.
2012-12-31 21:42:14 +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
8f093f6dd7
Remove all PORT comments, since we won't port back features to Scriptographer.
2012-12-25 16:07:48 +01:00
Jürg Lehni
35568c15f2
Implement transparent constant-substitution in prepro.js to shave of some extra bytes of final distribution file.
2012-11-05 18:11:44 -08:00
Jürg Lehni
b979c3b362
Define Base.equals(), supporting Arrays and Objects.
...
And use it for style comparisons.
2012-11-04 09:00:40 -08:00
Jürg Lehni
6ed1d67ada
Modernize Bootstrap.js, introduce Base.create() and use it instead of the Constructor.dont hack for object creation without the calling of initialize.
2012-11-03 21:49:37 -07:00
Jürg Lehni
6b50641c18
Add documentation for Item#_getChildren().
2012-10-22 19:07:22 -04:00
Jürg Lehni
f6f80e4061
Implement CompoundPath#contains() and #hitTest() correctly.
...
And change the way that styles are stored on CompoundPaths: Not in the first child but in the item itself.
2012-10-22 18:48:51 -04:00
Jürg Lehni
7329f4ef77
Improve handling of owner referencing in colors.
...
Allow one owner per Color only and clone colors when setting color styles. Gradient can still have multiple GradientColor owners. Closes #124 .
2012-10-10 19:27:14 -07:00
Jürg Lehni
16113d5462
Declare all Character/ParagraphStyle properties that change GEOMETRY.
...
Fixing a failing test that showed up after debugging code was removed in recent commit, which disabled speed optimisations.
2011-12-20 22:37:46 +01:00
Jürg Lehni
0fcee7d8df
Move _owner / _style declarations to the top.
2011-12-20 22:36:24 +01:00
Jürg Lehni
e30a0ae26d
Define CharacterStyle#getFontStyle()
...
And use it in PointText.
2011-12-19 23:05:22 +01:00
Jürg Lehni
ea0eaf04ea
Make TextItem#style a reference to #characterStyle.
...
Internally, CharacterStyle extends PathStyle and is now stored in TextItem#_style.
2011-12-19 22:26:09 +01:00
Jürg Lehni
19429d9b6d
Automate generation of style accessors through Style class.
...
Shaving off some byes by adding more magic.
2011-12-19 22:14:10 +01:00
Jürg Lehni
9e79514b54
Add documentation about observed discrepancy between TextItem#characterStyle and #style.
2011-12-19 22:03:36 +01:00
Jürg Lehni
e1c8c48f11
Increase default type size to 12px.
2011-12-18 16:56:31 +01:00
Jürg Lehni
11f298c994
Start adding support for PointText#bounds and multi-line text, work in progress.
2011-11-23 18:12:41 +01:00
Jürg Lehni
44291fe33b
Support injecting multiple object parameters into Style classes.
2011-11-18 20:08:54 +01:00
Jürg Lehni
24f07dccec
Clean up some JSDoc comments.
2011-11-12 13:27:29 +01:00
Jürg Lehni
42d0e722db
Rename RGBColor -> RgbColor, to avoid clash with native constructor, and follow same naming convention for HsbColor and HslColor, but keep references to old names for PaperScript scopes for now.
2011-11-10 19:16:34 +01:00
Jürg Lehni
ae116cd043
Improve comments about change notifications.
2011-08-23 16:36:57 +02:00
Jürg Lehni
43cc8e45b2
Clean up and separate PaperScript documetation from JavaScript related classes. Work in progress.
2011-07-25 00:25:23 +01:00
Jürg Lehni
ced45c4e8f
Add HSLColor to documentation.
2011-07-07 20:51:23 +02:00
Jürg Lehni
79c0ad8cc5
Update copyright notices.
2011-07-01 12:17:45 +02:00
Richard D. Worth
ac39873693
Whitespace. Removed all trailing whitespace from .js files
2011-06-30 06:01:51 -04:00
Jürg Lehni
3d21a3a8e1
Remove obsolete comment about examples not showing up.
2011-06-23 00:21:54 +01:00
Jürg Lehni
7cd749e63d
Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples.
2011-06-22 23:56:05 +01:00
Jonathan Puckey
2361556af6
TextItem related documentation.
2011-06-21 00:54:14 +02:00
Jonathan Puckey
ba7291700b
Hide Style from documentation.
2011-06-21 00:49:42 +02:00
Jürg Lehni
937a9def77
Override default fillColor to 'black' in CharacterStyle.
2011-06-20 20:25:02 +01:00
Jürg Lehni
4e3aa3e5c5
Move all Style classes into their own folder.
2011-06-20 16:38:01 +01:00