Jürg Lehni
|
727db4c5f2
|
Further improve Color constructors.
|
2013-04-08 20:06:29 -07:00 |
|
Jürg Lehni
|
3ffb2e6a75
|
Refactor Color conversion code.
|
2013-04-08 19:42:17 -07:00 |
|
Jürg Lehni
|
062abab78b
|
More work on Color refactoring.
Improve backward compatible constructors.
|
2013-04-08 13:50:12 -07:00 |
|
Jürg Lehni
|
01673d675d
|
Fix issues with new Color serialization.
|
2013-04-08 13:10:49 -07:00 |
|
Jürg Lehni
|
cf21da75fc
|
Improve Color constructor and simplify serialization.
|
2013-04-08 07:27:48 -07:00 |
|
Jürg Lehni
|
3a893600ca
|
Handle overlapping HSB / HSL properties and make sure conversions are only performed when needed.
|
2013-04-08 07:12:50 -07:00 |
|
Jürg Lehni
|
8292112ecd
|
More work on Color and testing.
|
2013-04-08 07:07:41 -07:00 |
|
Jürg Lehni
|
a48e6e5bf9
|
More work on Color refactoring.
|
2013-04-08 00:11:43 -07:00 |
|
Jürg Lehni
|
09824e6b91
|
More work on Color refactoring.
|
2013-04-07 23:01:49 -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
|
606389238d
|
Have Color always serialize in non-compact mode.
|
2013-03-19 18:47:34 -07:00 |
|
Jürg Lehni
|
780e842d74
|
Use === instead of ==.
|
2013-03-10 20:15:45 -07:00 |
|
Jürg Lehni
|
b8ca30a4cd
|
Add support for GradientColor object literal constructor.
And introduce getter / setter for #gradient.
|
2013-03-05 20:41:36 -08: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
|
0e72dbd2e0
|
Rename Color#getCanvasStyle() to #toCanvasStyle().
|
2013-03-05 19:58:41 -08:00 |
|
Jürg Lehni
|
31c06b4a61
|
Switch to short form of _type for GradientColor, similar to all other colors.
|
2013-03-05 11:00:50 -08:00 |
|
Jonathan Puckey
|
3cdb11fe36
|
GradientStop & PathItem example documentation.
|
2013-03-03 19:47:32 +01:00 |
|
Jonathan Puckey
|
cd94ecd7ca
|
Gradient & GradientColor documentation.
|
2013-03-03 19:07:09 +01:00 |
|
Jürg Lehni
|
5afa1b1688
|
Allow direct passing of color arguments to gradient constructors as well as arrays.
|
2013-03-01 17:44:16 -08:00 |
|
Jürg Lehni
|
58fad6ed72
|
Switch from Gradient#type to separate LinearGradient / RadialGradient classes.
But remain backward compatible through direct calls to Gradient constructor.
|
2013-03-01 17:39:36 -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
|
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
|
ca3cc7f46d
|
Define CanvasProvider.getContext() next to getCanvas(), and support both types in release().
|
2013-02-12 16:06:24 -08:00 |
|
Jürg Lehni
|
51150cb20d
|
Support CanvasProvider.get(width, height) arguments.
|
2013-02-12 15:57:02 -08:00 |
|
Jürg Lehni
|
357b7dbc54
|
Shorten CanvasProvider method names.
|
2013-02-12 15:53:27 -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
|
15554b8bf2
|
Simplify adding / referencing of JSON dictionary entries.
|
2013-02-11 19:31:58 -08:00 |
|
Jürg Lehni
|
366524d0a7
|
Implement JSON serialization for Gradient and GradientColor.
|
2013-02-11 19:22:18 -08:00 |
|
Jürg Lehni
|
629e16144a
|
Define #_type property for both Symbol and Gradient and use it in SvgExport.
|
2013-02-11 18:23:41 -08:00 |
|
Jürg Lehni
|
e0d0eb175a
|
Implement exporting of Gradients to SVG.
|
2013-02-10 19:38:35 -08:00 |
|
Jürg Lehni
|
565fb86430
|
Give any item / object that needs to be exported as a definition / symbol its own unique id.
This will be useful in SVG and JSON exporter.
|
2013-02-10 09:37:40 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08: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
|
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
|
0fb89bd3e0
|
Rename Color#_colorType to #_type, to prepare for serialization mechanism.
|
2012-12-27 00:48:56 +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
|
05ab8910ea
|
Optimise GradientStop constructor for better minification.
|
2012-12-18 13:49:29 +01:00 |
|
Jürg Lehni
|
87393d130d
|
Make sure converting #saturation getter uses HSB, not HSL.
Fixes #111.
|
2012-12-17 23:03:02 +01:00 |
|
Jürg Lehni
|
62c7bb804b
|
Add comment about caching _css values.
|
2012-12-08 20:12:36 -08:00 |
|
Jürg Lehni
|
68dc7e8b12
|
Correctly fix SVG alpha support through opacity attributes.
|
2012-12-08 20:09:24 -08:00 |
|
Jürg Lehni
|
86d3a3521b
|
Avoid rgba() colors in SVG output since it's not part of SVG 1.1
Use fill- / stroke-opacity instead.
|
2012-12-01 12:44:54 -08:00 |
|
Jürg Lehni
|
f1abdccf85
|
Result of getAlpha() is always defined.
|
2012-12-01 12:34:45 -08:00 |
|
Jürg Lehni
|
f268c6e152
|
Rename Color#toCssString() to #toCss(), and only include alpha if its < 1.
|
2012-12-01 12:31:22 -08:00 |
|
Jürg Lehni
|
9ff39eb603
|
Define Color.random() similar to Point.random().
|
2012-11-27 17:35:03 -08:00 |
|
Jürg Lehni
|
d671a08205
|
Introduce Base.toFloat() and rename Base.formatNumber() to Base.formatFloat()
|
2012-11-14 01:31:08 -08:00 |
|
Jonathan Puckey
|
494874ec8f
|
Svg Importer: Fix handling of getDefinition for color values.
|
2012-11-08 14:29: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
|
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
|
30374ae3b4
|
Implement proper index independent argument list reading of basic types.
Implemented for Point, Size, Rectangle and Color.
|
2012-10-18 14:24:15 -07: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 |
|