Jürg Lehni
|
9d7ec13724
|
Update prepro.js to version that can evaluate whole expressions, and fix a newly introduced issue with it.
|
2014-05-14 15:14:03 +02:00 |
|
Jürg Lehni
|
f002c633a7
|
Remove trailing white spaces and ensure newlines at the end.
|
2014-04-06 13:48:03 +02:00 |
|
Jürg Lehni
|
59da291d54
|
Remove tabs in examples in favor of 4 spaces.
To remove all these annoying JSHint complaints.
|
2014-04-02 21:03:35 +02:00 |
|
Jürg Lehni
|
7dd3bfa2ec
|
Fix issue in recent Path.Line constructor optimization.
Line paths should not be closed.
|
2014-03-01 23:40:38 +01:00 |
|
Jürg Lehni
|
ccfd51a65a
|
Improve performance of Path constructors and handling of { insert: false } Item creation.
|
2014-02-26 16:15:51 +01:00 |
|
Jürg Lehni
|
49801e4b8b
|
Improve performance of Path.Line() constructor.
Passing an array is much faster than using arguments directly.
|
2014-02-26 14:55:43 +01:00 |
|
Jürg Lehni
|
74a153dd88
|
Some code clean-up.
More to come.
|
2014-02-17 20:59:38 +01:00 |
|
Jürg Lehni
|
706fe2c77d
|
Rearrange Base.read argument sequence.
options are used more often than length.
|
2014-01-05 18:31:24 +01:00 |
|
Jürg Lehni
|
e22fa3a664
|
Update copyright notice.
|
2014-01-04 01:47:16 +01:00 |
|
Jürg Lehni
|
fd96447ac1
|
Share ellipse reading code between Shape.Ellipse and Path.Ellipse.
|
2013-10-29 21:15:28 +01:00 |
|
Jürg Lehni
|
9d60662a28
|
Check for the occurrence of 'radius' rather than 'center' when deciding to read a center / radius pair for ellipses.
|
2013-10-29 18:53:55 +01:00 |
|
Jürg Lehni
|
c3aed5277d
|
Use center and radius in all ellipse code, rather than bounding rect.
Simplifies things.
|
2013-10-29 18:10:30 +01:00 |
|
Jürg Lehni
|
085fa3e1c6
|
Set named arguments at the end, since some depend on geometry to be defined (e.g. #clockwise).
|
2013-10-17 14:03:05 +02:00 |
|
Jürg Lehni
|
b325aebc77
|
Docs: More smaller fixes.
|
2013-10-16 15:03:29 +02:00 |
|
Jürg Lehni
|
543609c0c6
|
Have Path.Ellipse constructor support negative radius values correctly.
|
2013-10-16 14:25:14 +02:00 |
|
Jürg Lehni
|
3af179e2cf
|
Docs: Improve Path constructors.
|
2013-10-16 14:19:25 +02:00 |
|
Jürg Lehni
|
41d6650666
|
Add support for named center & radius arguments to Path.Ellipse.
|
2013-10-16 13:32:40 +02:00 |
|
Jürg Lehni
|
4b636dd31c
|
Clean up Path constructors code.
|
2013-10-16 13:26:08 +02:00 |
|
Jürg Lehni
|
aa4d990c90
|
Move and unify handling of Item#_set(props) to new Item#_initialize(), and add support for props.insert = false.
|
2013-07-21 15:45:22 -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
|
e63edba0b5
|
Clean up various documentations a bit.
|
2013-06-27 18:03:03 -07:00 |
|
Jürg Lehni
|
7ade053dea
|
Move Path.Circle constructor above Path.Rectangle.
|
2013-06-27 17:54:00 -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
|
cd7db56249
|
Remove all create() constructors for basic types since new constructors are now faster.
Woop!
|
2013-05-27 23:57:31 -07:00 |
|
Jonathan Puckey
|
fdd367e1c2
|
Add titles to Path.Constructors documentation examples.
|
2013-04-21 13:58:22 +02:00 |
|
Jürg Lehni
|
bf9acd4499
|
Correct Numerical.KAPPA value.
|
2013-04-19 18:57:31 -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
|
90f2614d52
|
Export Numerical object and move KAPPA constant there.
|
2013-04-19 17:03:41 -07:00 |
|
Jürg Lehni
|
9efbc288a1
|
Merge Path.Rectangle and Path.RoundRectangle.
|
2013-04-19 12:36:49 -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 |
|
Jonathan Puckey
|
38b9b327ae
|
Add Path.Constructor examples.
|
2013-03-10 19:09:09 +01:00 |
|
Jonathan Puckey
|
177f799bde
|
Rename Path.Star parameter from numPoints to points.
|
2013-03-10 18:09:05 +01:00 |
|
Jonathan Puckey
|
097a9c958f
|
Rename Path.RegularPolygon parameter from numSides to sides.
|
2013-03-10 18:02:16 +01:00 |
|
Jürg Lehni
|
97e85d66db
|
Fix issue with object literal properties being accidentally misread as path segments.
Closes #177.
|
2013-03-05 00:28:21 -08:00 |
|
Jonathan Puckey
|
2d103dd792
|
Improve and fix example documentation.
|
2013-03-04 12:09:58 +01:00 |
|
Jürg Lehni
|
7b7168feb1
|
Fix reading of rectangle in Path.Constructor.
And all tests are green again.
|
2013-03-03 15:29:15 -08:00 |
|
Jonathan Puckey
|
09e4bd0bb4
|
Improve Path.Constructors example documentation.
|
2013-03-03 18:34:39 +01:00 |
|
Jürg Lehni
|
7553712e35
|
Simplify code for readRectangle() in Path.Constructors.
|
2013-03-01 14:39:26 -08:00 |
|
Jürg Lehni
|
3f85dcdb77
|
Use #_set() in Rectangle#initialize() to simplify code and increase flexibility.
|
2013-03-01 14:37:27 -08:00 |
|
Jürg Lehni
|
7405858f32
|
Simplify code for reading of named arguments, removing the need for filtering arguments by using 'in' checks instead for the presence of properties / setters.
|
2013-03-01 14:06:04 -08:00 |
|
Jürg Lehni
|
06e33ba412
|
Improve flexibility of reading rectangles in Path.Constructor.
We can now define the rectangle by any property that it has setters for.
|
2013-03-01 13:52:11 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
4ab9a942b0
|
Clean up Path.Constructor code.
|
2012-12-30 18:33:46 +01:00 |
|
Jürg Lehni
|
a1fc86b19e
|
Add forgotten passing on of arguments._filtered.
|
2012-12-30 18:29:01 +01:00 |
|
Jürg Lehni
|
4e20a5794f
|
Remove debug logging.
|
2012-12-30 18:27:42 +01:00 |
|
Jürg Lehni
|
8bed8cb15d
|
Define mechanism for flexible reading of named arguments through Base.readNamed() and Base.hasNamed(), and use it to implement property object literal versions of Path.Constructor code.
|
2012-12-30 18:24:33 +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
|
28642bd1c8
|
Rename Path.Oval() to Path.Ellipse(), and deprecate Path.Oval().
|
2012-11-06 11:37:00 -08:00 |
|
Jürg Lehni
|
4c51544b6e
|
Implement correct checks for primitives (rect, ellipse, circle).
|
2012-11-06 01:22:16 -08:00 |
|
Jürg Lehni
|
1ce332756e
|
Rename ImportSvg to SvgImporter, and ExportSvg to SvgExporter.
|
2012-11-02 17:40:07 -07:00 |
|