Commit graph

2131 commits

Author SHA1 Message Date
Jonathan Puckey
458b03ff43 Move Raster related examples to examples/Rasters 2011-07-05 18:28:21 +02:00
Jürg Lehni
ccd4113ba3 Implement Nearest Point-on-Curve Problem. 2011-07-05 13:20:31 +02:00
Jürg Lehni
4630a1bd4a Fix documentation. 2011-07-05 13:17:34 +02:00
Jürg Lehni
c1f46977fa Rename Curve.isSufficientlyFlat() to shorter Curve.isFlatEnough() 2011-07-05 13:17:07 +02:00
Jürg Lehni
4110a56521 Improve comments. 2011-07-05 01:20:25 +02:00
Jürg Lehni
277ab844f2 Add comment about improving Rectangle#contains(). 2011-07-05 01:17:55 +02:00
Jürg Lehni
2a9066c555 Fix comment. 2011-07-05 01:17:37 +02:00
Jürg Lehni
f6f4c917f4 Fix accidentally removed comas. 2011-07-05 01:16:20 +02:00
Jürg Lehni
6cc7417201 Handle edge case in crossing number algorithm where the beam in right x-direction is touching a tip where the curves change y-direction but do not interesect with the shape, by checking for slope changes. 2011-07-05 01:15:45 +02:00
Jürg Lehni
24d77c1ece Remove root fixing code again, seems not necessary. 2011-07-05 01:14:20 +02:00
Jürg Lehni
8a2a9409bd Commit experimental root fixing code. 2011-07-05 01:13:58 +02:00
Jürg Lehni
4924d683e4 Simplify Curve.solve() and improve documentation. 2011-07-04 23:42:16 +02:00
Jürg Lehni
c5269ecbab Implement Path#contains(point) efficiently using the crossing number algorithm and our cubic polynomial solver. 2011-07-04 23:32:15 +02:00
Jürg Lehni
dad118cc20 Fix comments. 2011-07-04 23:30:25 +02:00
Jürg Lehni
110cffc14c Improve comments for bounds functions. 2011-07-04 23:28:28 +02:00
Jürg Lehni
9499125b22 Link Item <-> Symbol#definition <-> PlacedItem and make sure changed events get sent across the whole chain. 2011-07-04 21:27:42 +02:00
Jürg Lehni
3b5e00f343 Add test for symbol definition modification. 2011-07-04 21:23:40 +02:00
Jürg Lehni
1ed6d46ce3 Define Item ids immediately, not on first request. 2011-07-04 20:19:37 +02:00
Jürg Lehni
4748bb48e8 Fix and improve test for bounds of symbols with groups. 2011-07-04 20:13:33 +02:00
Jürg Lehni
fdb6e8dff2 Remove debug logging. 2011-07-04 20:09:49 +02:00
Jürg Lehni
bfa774f717 Move private bounds methods above the actual beans definitions. 2011-07-04 19:53:29 +02:00
Jürg Lehni
f817f748f8 Merge remote-tracking branch 'origin/master' 2011-07-04 19:49:12 +02:00
Jürg Lehni
f2d2937a18 Define Rectangle#expand() and #scale(), as an easy way to manipulate rectangles. 2011-07-04 19:48:18 +02:00
Jürg Lehni
9cf5292496 Define solvers for cubic and quadratic polynomials, as required by hit testing code. 2011-07-04 19:47:54 +02:00
Jürg Lehni
0eb2546fff Improve Group bounds tests. 2011-07-04 19:46:56 +02:00
Jürg Lehni
45a3e7f873 Big refactoring of the way bounds are handled and cached, properly supporting Groups inside Symbols, and also adding #roughBounds, to be used by upcoming hit testing code. 2011-07-04 19:45:53 +02:00
Jonathan Puckey
724fdcd727 Merge remote branch 'origin/master' 2011-07-04 15:10:26 +02:00
Jonathan Puckey
d726cef4e4 Add a few PlacedSymbol tests, two of which are failing. 2011-07-04 15:09:17 +02:00
Jürg Lehni
10b0062ce2 Minor fixes and clean ups. 2011-07-04 11:54:52 +02:00
Jürg Lehni
e88043a1f4 Implement Path#roughBounds, based on an improved Path#getHandleBounds() that supports additional hidden join and stroke padding parameters. 2011-07-02 18:27:43 +02:00
Jürg Lehni
287e91bd0c Update JsDoc. 2011-07-02 18:06:38 +02:00
Jürg Lehni
3eecb924c8 Fix bug in Segment#_transformCoordinates, where handles were not set when they were zero, change was false and no matrix was provided. 2011-07-02 06:24:27 +02:00
Jürg Lehni
7e26a7af1e Rename all x-axis / y-axis parameters in #scale and #shear to hor / ver, and fix a bug in Matrix#shear, where an undeclared variable was used (sx instead of shx). 2011-07-01 18:00:16 +02:00
Jürg Lehni
0644d9d8b5 Move TODOs up to where they make sense. 2011-07-01 17:40:29 +02:00
Jürg Lehni
51d6ff945e Improve Path#getHandleBounds() and fix bean access for #handleOut. 2011-07-01 17:39:39 +02:00
Jürg Lehni
aa9be1d9c5 Rename #controlBounds -> #handleBounds, to reflect terminology used elsewhere. 2011-07-01 17:23:10 +02:00
Jürg Lehni
189e15b1e8 Remove console logging. 2011-07-01 12:56:30 +02:00
Jürg Lehni
9fa51a0457 Implement Item#controlBounds and Path#controlBounds, and test it in StrokeBounds example. This is a first step towards fast hit-testing. 2011-07-01 12:51:18 +02:00
Jürg Lehni
ee23877fd1 Move view redrawing from resize handler to #setViewSize(). 2011-07-01 12:50:11 +02:00
Jürg Lehni
ce9700dc4d Have views redrawn after resize if they do not define a onFrame handler. 2011-07-01 12:49:27 +02:00
Jürg Lehni
84bce71b1c Remove unnecessary Segment#getHandleIn/OutIfSet. 2011-07-01 12:30:10 +02:00
Jürg Lehni
79c0ad8cc5 Update copyright notices. 2011-07-01 12:17:45 +02:00
Jürg Lehni
d95480bc22 Remove trailing white spaces. 2011-07-01 12:01:32 +02:00
Jürg Lehni
230e42ee50 Create new parse-js-unicode.js with latest changes and fixes from HEAD (including unicode suport), and backport other fixes to smaller parse-js.js (except space consuming unicode support). 2011-07-01 11:58:43 +02:00
Jürg Lehni
609f23c64d Make PlacedItem#matrix private and add getter / setter for it. 2011-07-01 11:32:09 +02:00
Jürg Lehni
1cd7165ea2 Define PlacedItem as base class for Raster and PlacedSymbol. 2011-07-01 11:26:51 +02:00
Jürg Lehni
7211e68245 Add documentation to PathItem class. 2011-07-01 11:22:33 +02:00
Jürg Lehni
93518c07dc Merge branch 'master' of github.com:paperjs/paper.js 2011-07-01 11:04:53 +02:00
Jürg Lehni
1d5838cdbf Merge branch 'examples_filerenames' of https://github.com/rdworth/paper.js into rdworth-examples_filerenames 2011-07-01 11:03:57 +02:00
Jürg Lehni
bb467462c3 Merge pull request #10 from rdworth/text_content_string
TextItem content: Added coersion to string in content setter since 0 numb
2011-07-01 02:00:26 -07:00