Commit graph

2545 commits

Author SHA1 Message Date
Jürg Lehni
eaa5f97e95 Merge remote-tracking branch 'origin/master' 2011-11-11 18:29:44 +01:00
Jürg Lehni
256e48b511 Define Callback code for callback based event handling (#atach() / #detach() #fire()) and start implementing it in View. 2011-11-11 18:29:28 +01:00
Jonathan Puckey
a96a92caba Add support for hit testing Raster items and getting the color of the pixel that was hit. 2011-11-11 15:00:53 +01:00
Jürg Lehni
6713d6aaa8 Clean up test code. 2011-11-11 14:47:25 +01:00
Jürg Lehni
af9df0e1b8 Provide point of hit handles and segments too in HitResult. 2011-11-11 14:47:03 +01:00
Jürg Lehni
e813ffd102 Only check for getters, not setters when deciding wether an object is a simple value or an accesor description. Workaround for a bug where Point is interpreted as accessor due to its #set(x, y) method. 2011-11-11 14:45:16 +01:00
Jürg Lehni
99a8532cca No need to set beans = true since we're always producing beans. 2011-11-11 14:03:36 +01:00
Jürg Lehni
1124236b8a Use inject() instead of a each() loop to add values to HitResult, so getters can be defined too (required for raster hit testing). 2011-11-11 13:11:10 +01:00
Jürg Lehni
e2eec3476d Add comments about backward compatible Color constructor names. 2011-11-10 20:00:20 +01:00
Jürg Lehni
6effceb9bc Bump version to 0.22 and include new dist files. 2011-11-10 19:19:25 +01:00
Jürg Lehni
a6c273c2e9 Update JsDoc. 2011-11-10 19:18:55 +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
c4bea4d24c Include comment about algorithm modifications. 2011-11-10 18:30:18 +01:00
Jürg Lehni
8a048e8448 Fix issue with prepro.js where double-slashes inside block comments were filtered out (e.g. as part of URLs). 2011-11-10 18:29:50 +01:00
Jonathan Puckey
eb34e058c0 Fix bug in Item#hitTest and Project#hitTest documentation. Closes #57 2011-11-10 15:14:49 +01:00
Jürg Lehni
34b5d043b3 Implement Matrix#inverseTransform(). 2011-09-23 11:19:03 +02:00
Jürg Lehni
4600fe1e21 Add comments about alternative arguments. 2011-09-23 11:18:25 +02:00
Jürg Lehni
d1d110f085 Document the two versions of Matrix#transform() separately. 2011-09-23 11:17:42 +02:00
Jürg Lehni
f8dac43107 Remove Matrix#determinant and convert getter to private method that only returns determinant if matrix is reversible, simplifying the various places where _getDeterminant is in use. 2011-09-22 21:19:41 +02:00
Jürg Lehni
3397931bb2 Be consistent in Numerical. EPSILON comparison rules. 2011-09-22 21:14:16 +02:00
Jürg Lehni
44e5c30436 Remove misleading alternative parameter comment. 2011-09-22 10:36:27 +02:00
Jürg Lehni
6052e94a2a Add basic code for fine-grained change tracking, as required by on-the fly SVG DOM manipulation. 2011-09-22 10:32:17 +02:00
Jürg Lehni
a2358a0fc0 Also fire key events for modifier keys. Closes #52. 2011-09-18 12:51:03 +02:00
Jürg Lehni
571ca31dbf Move ctx.restore() to same level as ctx.save(). Closes #51. 2011-09-18 10:56:04 +02:00
Jürg Lehni
b51c1286da Add documentation for all color components. Closes #43. 2011-09-18 10:54:26 +02:00
Jürg Lehni
8db7352342 Merge branch 'master' of github.com:paperjs/paper.js 2011-09-18 10:38:33 +02:00
Jürg Lehni
936fd43c37 Implement Item#layer. 2011-09-18 10:38:16 +02:00
Jürg Lehni
4ff710886e Merge pull request #49 from benogle/mac-command-key-fix
Add keycodes for Mac command keys in different browsers.
2011-09-03 06:15:57 -07:00
Ben Ogle
7ebd4a17bd Adds other keycodes for command keys in different browsers.
- 224 for firefox
 - 93 for the right command key in WebKit browsers.
2011-08-25 18:53:30 -07:00
Jürg Lehni
ae116cd043 Improve comments about change notifications. 2011-08-23 16:36:57 +02:00
Jürg Lehni
7a5ca5609f Have View#_redraw() properly redraw the content even if nothing has changed inside. 2011-08-23 16:36:18 +02:00
Jürg Lehni
79f351e5ee No need to check for _project as it will always bet set. 2011-08-23 16:35:19 +02:00
Jürg Lehni
a775ddec9e Remove obsolete comment. 2011-08-22 11:14:49 +02:00
Jürg Lehni
b54f9f2228 Introduce View#_redraw() and use it in #setViewSize() and #_transform(). 2011-08-22 11:14:38 +02:00
Jürg Lehni
3ca165f413 Move #_transform() up. 2011-08-22 11:13:42 +02:00
Jürg Lehni
a081419a8b Fix View#bounds for zoom levels other than 1. 2011-08-22 11:12:40 +02:00
Jürg Lehni
7c2fabd6a1 Remove redundant scope by sharing one between browser and server code. 2011-08-22 11:05:59 +02:00
Jonathan Puckey
0ee1e80c68 Node.js: add Raster support. 2011-08-21 16:38:06 +02:00
Jonathan Puckey
896afefa99 Merge pull request #46 from jonathanpuckey/master
Node.js integration for exporting images and frame sequences.
2011-08-20 07:06:38 -07:00
Jonathan Puckey
a28b20dac8 Merge branch 'master' of https://github.com/paperjs/paper.js 2011-08-20 15:55:48 +02:00
Jonathan Puckey
bec8cf967e View: add documentation todos. 2011-08-20 15:51:54 +02:00
Jonathan Puckey
c67b8acd4e Clean up Node.js tadpoles example. 2011-08-20 15:50:25 +02:00
Jonathan Puckey
1f9993f894 Move Node.js specific things to dedicated folder. 2011-08-20 15:48:57 +02:00
Jonathan Puckey
70dc88ca91 View: Clean up #exportImage() and #exportFrames(). 2011-08-20 15:46:06 +02:00
Jonathan Puckey
197c2670d6 Implement View#exportImage(uri, param) 2011-08-18 11:11:24 +02:00
Jürg Lehni
76df9d9a92 Fix documentation for beans. 2011-08-16 13:53:36 +02:00
Jürg Lehni
4e1dd90549 Use faster Size.create(). 2011-08-16 13:52:31 +02:00
Jürg Lehni
4dd90b440e Use new dontLink parameter for Path.Constructors optimisations. 2011-08-16 13:52:18 +02:00
Jürg Lehni
c9eb538f7a Support an optional argument 'dontLink' in getters that normalled return LinkedPoint and LinkedSize objects, for internal use. 2011-08-16 13:50:59 +02:00
Jürg Lehni
8f8188a091 Optimise Path.Rectangle constructor. 2011-08-16 13:39:37 +02:00