Commit graph

  • 5e99833ebb Merge remote branch 'origin/master' Jonathan Puckey 2011-03-07 12:59:08 +0100
  • d9b8809f3c Further clean up getParameter() code. Jürg Lehni 2011-03-07 11:58:41 +0000
  • 1b7dbd659d Compress Rectangle corner getters and setters. Jonathan Puckey 2011-03-07 12:58:00 +0100
  • 7956b50886 Use === for undefined comparisons. Jürg Lehni 2011-03-07 11:52:04 +0000
  • 1e8dffac08 Clean up getParameter() code. Jürg Lehni 2011-03-07 11:51:01 +0000
  • 0ddfc9ef33 Add support for sub ranges and negatives lengths in Curve#getParameter(), a prerequirement for adding dash support. Jürg Lehni 2011-03-07 11:37:42 +0000
  • 2ac9a13e2a Give Numerical methods more meaningful names. Jürg Lehni 2011-03-07 11:12:00 +0000
  • f5c79bf709 Clean up PaperScript code a bit. Jürg Lehni 2011-03-07 11:10:45 +0000
  • bab7985185 Remove Google Closure Compiler and use UglifyJS instead, as it does not break the library and yields to similar compressions results. Jürg Lehni 2011-03-07 11:10:35 +0000
  • 6d8c7787bd Export ToolEvent too. Jürg Lehni 2011-03-07 11:08:58 +0000
  • 26caf099ca No need for all the .0 in brent() code. Jürg Lehni 2011-03-07 02:43:07 +0000
  • 08545983d7 Minor clean-ups. Jürg Lehni 2011-03-07 02:38:07 +0000
  • 4dd4072f6b Use push() instead fo concat() for better getParameter() performance. Jürg Lehni 2011-03-07 02:35:06 +0000
  • 3d7e66053c Simplify getLength() for line ranges. Jürg Lehni 2011-03-07 02:33:36 +0000
  • bbfd8eea73 Add comments as a reference for values produced by different precisions. Jürg Lehni 2011-03-07 02:29:17 +0000
  • 172212c222 Clean-up code and comments. Jürg Lehni 2011-03-07 02:28:49 +0000
  • add0bcf1fd Yet more optimisations in getParameter(), both for straight lines and curves. Jürg Lehni 2011-03-07 02:26:59 +0000
  • 0e8c346888 Further optimise getParameter() / getLength() code by reusing a integrand function and taking advantage of integral ranges. Jürg Lehni 2011-03-07 02:22:33 +0000
  • 3447d11a6f Some minor clean-ups. Jürg Lehni 2011-03-07 01:40:18 +0000
  • 027a5e67b9 Add getLength() optimisation for straight lines. Jürg Lehni 2011-03-07 01:37:18 +0000
  • f7f5a70b1c Fix recently newly introduced bug in getStrokeBounds(). Jürg Lehni 2011-03-07 01:30:45 +0000
  • 4fffbfcaff Update closure compiler to latest version. Jürg Lehni 2011-03-07 01:00:11 +0000
  • e1a7aff2f0 Add copyright notice and license file. Jürg Lehni 2011-03-07 00:50:44 +0000
  • 91160bc5d7 Add copyright notices. Jürg Lehni 2011-03-07 00:40:48 +0000
  • 003cfbd32b Format Gauss tables nicer. Jürg Lehni 2011-03-07 00:38:33 +0000
  • 0bfca81140 Clean-up getBounds() code and move to its own scope at the end of Path. Jürg Lehni 2011-03-07 00:36:44 +0000
  • 9fdbd0146d Rename MathUtils to Numerical. Jürg Lehni 2011-03-07 00:21:04 +0000
  • 58f5c8554e Add comments about initial guess. Jürg Lehni 2011-03-07 00:17:43 +0000
  • 83fea3bf4e Clean up MathUtils code. Jürg Lehni 2011-03-07 00:17:32 +0000
  • ded73129ad Minor clean-up. Jürg Lehni 2011-03-07 00:01:26 +0000
  • b1915fcb62 Add a test for Curve#getParameter(), with benchmarking too for now. Jürg Lehni 2011-03-07 00:01:16 +0000
  • 65900f8790 Implement Curve#getParameter() using MathUtils.brent(), with the astonishing result that performance can match the Java side on Chrome! Jürg Lehni 2011-03-07 00:00:45 +0000
  • b1e90efc9e Add Van Wijngaarden–Dekker–Brent method for root finding, ported from Numerical Recipes in C. Jürg Lehni 2011-03-06 23:25:57 +0000
  • 29e57cc521 Replace slow simpson() method with insanely fast Gauss-Legendre Numerical Integration by Jim Armstrong which was further optimised. Jürg Lehni 2011-03-06 23:24:33 +0000
  • c4ad95b0ac More variable chaining... Jürg Lehni 2011-03-06 22:06:24 +0000
  • 4c13ca6961 Fix syntax errors (that magically work on Safari). Jürg Lehni 2011-03-06 22:06:06 +0000
  • 87981efeb5 Massive refactoring of transform() / getBounds() code: getBounds() / getStrokeBounds() now supports an optional Matrix parameter which is used to on the fly transform all coordinates and stroke definitions before bounds are calculated. This even supports the correct determination of rotated ellipse bounds for round strokes in symbols. Jürg Lehni 2011-03-06 21:26:38 +0000
  • 6def2b9d3a Clean-up Path#arcTo() code. Jürg Lehni 2011-03-06 21:13:55 +0000
  • 2d4cf2cc72 Replace beans access to Item#position with getter calls. Jürg Lehni 2011-03-06 21:12:11 +0000
  • 8ddf5a3d90 Add Matrix#createShiftless(), to return a copy of the matrix that lacks the translation. Jürg Lehni 2011-03-06 21:10:47 +0000
  • 670512d123 Finally figured out why Matrix#applyToContext was not working right: The parameters where not passed in the right sequence! Jürg Lehni 2011-03-06 21:09:52 +0000
  • 994b9deb8f Fix Matrix#toString() to print values in correct sequence. Jürg Lehni 2011-03-06 21:08:37 +0000
  • 607fe8f5d6 Improve argument handling in Matrix constructor. Jürg Lehni 2011-03-06 21:07:44 +0000
  • a7d08bcc08 Use variable definition chaining in Matrix where possible. Jürg Lehni 2011-03-06 21:06:46 +0000
  • 32d0f31c31 Introduce Matrix.create() and use where applicable. Jürg Lehni 2011-03-06 21:05:24 +0000
  • 47d55e19f5 Impove various angle related code in Point. Jürg Lehni 2011-03-06 21:03:43 +0000
  • 420e0435ed Shorten create() methods, except for Point where it might have a performance impact. Jürg Lehni 2011-03-06 21:02:57 +0000
  • 90b94a8d83 Various simplificiations and clean-ups in Path constructors. Jürg Lehni 2011-03-06 18:46:28 +0000
  • deb78b78cf Define fast Rectangle.create() and use it internally where applicable. Jürg Lehni 2011-03-06 18:45:56 +0000
  • 4070f98374 Clean up calculateBounds(). Jürg Lehni 2011-03-06 18:33:52 +0000
  • 836da3ce47 Make getCurrentSegment() a real private. Jürg Lehni 2011-03-06 15:21:12 +0000
  • dfb11610e7 Define getCurrentSegment() as private and make sure it's not used as a bean. Jürg Lehni 2011-03-06 15:17:06 +0000
  • 162dab66a7 Clean up code. Jürg Lehni 2011-03-06 15:15:21 +0000
  • e533b4edbb Move PostScript commands to the end of Path definition in its own injection block. Jürg Lehni 2011-03-06 15:15:13 +0000
  • f803e1ad1d Remove obsolete comment. Jürg Lehni 2011-03-06 15:14:57 +0000
  • 164c08a972 Change tests to ignore Illustrator's faulty bounds calculation of symbols. Jürg Lehni 2011-03-06 15:11:18 +0000
  • 6735218ab5 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-06 14:59:30 +0000
  • 04a13bce19 Add strokeBounds example, and a test for stroke transformation with symbols. Jürg Lehni 2011-03-06 14:59:11 +0000
  • 501e42fb9d Add Path#getLength(). Jürg Lehni 2011-03-06 14:58:10 +0000
  • 22abd41aac Revert changes to BouncingBalls example. Jonathan Puckey 2011-03-06 15:52:38 +0100
  • 8b32aa9f09 Reactivate commented out code in addBevelJoin(), since it is required in some situations. Jürg Lehni 2011-03-06 14:51:46 +0000
  • 9f1bf92ecd Merge remote branch 'origin/master' Jonathan Puckey 2011-03-06 15:48:02 +0100
  • 78e6633804 Add missing BlendMode dependency to examples. Jonathan Puckey 2011-03-06 15:47:55 +0100
  • 78c7f645ab Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-06 14:45:57 +0000
  • 2df6dc989a Add comments about changes that need backporting to Scriptographer. Jürg Lehni 2011-03-06 14:45:44 +0000
  • f6a8de8cc6 Finish work on miter caps for Path#getStrokeBounds. Jürg Lehni 2011-03-06 14:45:32 +0000
  • 15b16aaed9 Add Line class to basics. Jürg Lehni 2011-03-06 14:45:07 +0000
  • 130d9ebb23 Merge remote branch 'origin/master' Jonathan Puckey 2011-03-06 15:45:03 +0100
  • 8be1041011 Make style setter calls chainable. Jürg Lehni 2011-03-06 14:44:54 +0000
  • 40b7571489 Move BlendMode into util and add missing var. Jonathan Puckey 2011-03-06 15:44:51 +0100
  • 2c034475b0 Fix a bug in Point#cross(). Jürg Lehni 2011-03-06 14:26:23 +0000
  • 4cda395ab3 Add Rotation Raster to Examples. Jonathan Puckey 2011-03-06 15:11:18 +0100
  • 0faab51a9f Add missing CanvasProvider.js dependency to Examples. Jonathan Puckey 2011-03-06 15:10:35 +0100
  • 54c1f3d8b1 Fix Raster#setSize. Jonathan Puckey 2011-03-06 15:08:41 +0100
  • 336c9e1441 Fix bug in setHidden where Item#visible was being interpreted as a bean. Jonathan Puckey 2011-03-06 14:50:57 +0100
  • 5507482d8f Add support for bevel joins to Path#getStrokeBounds, miter still pending. Jürg Lehni 2011-03-06 13:26:36 +0000
  • 407b6d8d33 Add Curve#getPrevious / Next. Jürg Lehni 2011-03-06 13:26:09 +0000
  • de9a406dc0 Add support for all strokeCaps in getStrokeBounds, joins are still pending. Jürg Lehni 2011-03-06 13:11:25 +0000
  • 15f124bd9c Link segments to their curves through Segment#getCurve(). Jürg Lehni 2011-03-06 13:11:04 +0000
  • eb09ec2442 Fix error in Curve evaluation. Jürg Lehni 2011-03-06 13:07:49 +0000
  • e19c3bf3c2 Define Curve#toString() and Curve#clone() Jürg Lehni 2011-03-06 12:56:47 +0000
  • f98de38451 Correct Segment#toString() Jürg Lehni 2011-03-06 12:56:30 +0000
  • d15bf94f8f Add curve evaluation methods, untested. Jürg Lehni 2011-03-06 12:52:13 +0000
  • 00d58a3e61 Move Path#getCurveLength() to Curve#getLength() and update tests accordingly. Jürg Lehni 2011-03-06 12:29:17 +0000
  • 3ca1e4a25e Always update segments when index is set, as segments list might have shifted in the meantime. Jürg Lehni 2011-03-06 12:25:08 +0000
  • 909b2a22ba Begin implementing Path#curves list. Jürg Lehni 2011-03-06 12:24:15 +0000
  • 474d79db17 Clean up Segment constructor and make sure internal point objects are never replaced, always updated instead. Jürg Lehni 2011-03-06 12:24:03 +0000
  • ee1ec4597a Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-06 12:15:28 +0000
  • cb2e4aaa04 Imrove Point, Size and Rectangle constructors. Jürg Lehni 2011-03-06 12:15:15 +0000
  • 2a348941af Merge remote branch 'origin/master' Jonathan Puckey 2011-03-06 13:08:32 +0100
  • a6fdaf85d8 Add Raster example. Jonathan Puckey 2011-03-06 13:08:24 +0100
  • fd0d409d9e More work on Path#getStrokeBounds(), unfinished. Jürg Lehni 2011-03-06 11:42:33 +0000
  • 0a690788ef Allow chaining of Item transform functions. Jürg Lehni 2011-03-06 11:42:08 +0000
  • 5a1d31bba7 Improve argument reading in PostScript drawing methods. Jürg Lehni 2011-03-06 11:23:21 +0000
  • 56c10f9196 Fix Segment#getHandleIn/OutIfSet and a newly introduced drawing error in Path#draw. Jürg Lehni 2011-03-06 11:18:35 +0000
  • 7bea7e36de Make use of new Segment#getHandleIn/OutIfSet() where we can. Jürg Lehni 2011-03-06 11:04:41 +0000
  • b98abeb416 Declare outX, outY outside of draw loop, as it is used from previous iteration. Jürg Lehni 2011-03-06 11:00:25 +0000
  • 2d2fb400d9 Add comment about Point#isParallel not being very precise. Jürg Lehni 2011-03-06 10:58:26 +0000
  • a7ec0ef269 Make sure Placed Symbol test uses a strokeWidth on Paper too. Jürg Lehni 2011-03-06 10:58:05 +0000
  • 72a1ba8e70 Activate beans for Segment and clean up bean / getter / setter mess for point / handleIn / handleOut. Jürg Lehni 2011-03-06 10:57:14 +0000