Commit graph

1192 commits

Author SHA1 Message Date
Jürg Lehni
9fa193d26f Move opacity precalculation out of variable definition. 2011-06-01 15:31:02 +01:00
Jürg Lehni
117a828b2b Don't set dst[i + 3] directly, set dA2 instead. 2011-06-01 14:01:46 +01:00
Jürg Lehni
acecb1a2c1 Clean up variable names. 2011-06-01 14:01:22 +01:00
Jürg Lehni
b9739aa26a Optimise blend mode loop by pre-calculating divisions. 2011-06-01 14:00:50 +01:00
Jürg Lehni
4a9f0d726f Pre-calculate opacity value. 2011-06-01 14:00:02 +01:00
Jürg Lehni
a1d996df05 Clean up formating. 2011-06-01 13:42:34 +01:00
Jürg Lehni
69e989f834 No need to set dst[i + 3] again after changing dA2, since we are now only setting it after calling process() from the main loop. 2011-06-01 13:42:22 +01:00
Jürg Lehni
c47d281308 Speed up blend-modes by using a lookup table for process functions rather than a switch() statement for each pixel. 2011-06-01 13:37:36 +01:00
Jürg Lehni
29967153c3 Clean up TODO comments... 2011-06-01 10:49:43 +01:00
Jürg Lehni
2a5f885f50 "for var in" is good practise in such a case, as we don't need additional functionality of Base.each(). 2011-06-01 09:57:18 +01:00
Jürg Lehni
ad335374cd Copyrights are included correctly in the paper.js file. 2011-05-31 22:22:07 +01:00
Jürg Lehni
90631b9dd0 Merge remote-tracking branch 'origin/master' 2011-05-31 22:16:27 +01:00
Jonathan Puckey
7087b5476d Clean up Matrix#setToRotation. 2011-05-31 16:19:43 +02:00
Jonathan Puckey
d2827e35c6 Documentation: clean up Size example code. 2011-05-31 16:18:59 +02:00
Jonathan Puckey
c39d092ee4 Documentation: Clean up Point example code. 2011-05-31 16:16:15 +02:00
Jonathan Puckey
97c8a7cb83 Clean up Line#getSide. 2011-05-31 16:13:42 +02:00
Jonathan Puckey
7a4c44ec7b Matrix documentation. 2011-05-31 16:08:25 +02:00
Jonathan Puckey
434268fbd1 Document the properties of PaperScope to be global. 2011-05-31 15:18:37 +02:00
Jonathan Puckey
2b8f1b71ec Documentation: use inline code tags for boolean and number values, 2011-05-31 14:28:42 +02:00
Jonathan Puckey
31bf3ffa70 Matrix: add param tags to #applyToContext documentation. 2011-05-31 14:25:24 +02:00
Jonathan Puckey
8b7d7b68e1 Size: fix typo in documentation. 2011-05-31 14:24:30 +02:00
Jonathan Puckey
33cc1b47b8 View: Move onResize below onFrame and document both of them. 2011-05-31 14:24:13 +02:00
Jonathan Puckey
7eb35bf6fb Point documentation: add examples to Point.min, Point.max and Point.random. 2011-05-31 01:19:33 +02:00
Jonathan Puckey
2e2b7cad24 PlacedSymbol docs: make constructor argument optional. 2011-05-30 20:09:46 +02:00
Jonathan Puckey
6892608ecd Documentation: rename 'Sample Code:' to 'Example:' 2011-05-30 19:55:40 +02:00
Jonathan Puckey
17fcb923ff Documentation: rearrange @example tags, improve examples, rename boolean -> Boolean and misc smaller edits. 2011-05-30 19:42:17 +02:00
Jürg Lehni
6effdcd450 Move comment. 2011-05-30 17:04:15 +01:00
Jonathan Puckey
16f521b8a2 Path.Constructors docs: move @example tags to the end of the comments and shorten the lines of the examples. 2011-05-30 17:13:19 +02:00
Jürg Lehni
1e9f2dc057 Fix typos. 2011-05-30 15:17:44 +01:00
Jürg Lehni
78f43b52b9 Set default styles for Project#currentStyle. 2011-05-29 21:35:46 +01:00
Jürg Lehni
15da2fe257 Implement Item#isAbove / #isBelow and define tests for it. 2011-05-29 19:54:43 +01:00
Jürg Lehni
ba42295942 Change variable name in #isEditable() to reflect what's being checked more correctly. 2011-05-29 19:22:59 +01:00
Jürg Lehni
9d00541987 Clean up PORT comments. 2011-05-29 19:20:10 +01:00
Jonathan Puckey
f9eca3efbf Docs: improve the description of the Size class. 2011-05-29 17:40:23 +02:00
Jonathan Puckey
9012bed504 Matrix: add some docs todos and make center optional in Matrix#shear. 2011-05-29 17:34:51 +02:00
Jonathan Puckey
005f505959 Matrix: add documentation for Matrix#scale(scale[, center]). 2011-05-29 17:31:13 +02:00
Jonathan Puckey
742d7f809d Segment: document #toString and #selected. 2011-05-29 16:57:48 +02:00
Jonathan Puckey
6b63bb8a36 Documention: add postscript methods to CompoundPath 2011-05-29 16:49:52 +02:00
Jonathan Puckey
41bf1f4543 CompoundPath: document #moveTo and #moveBy. 2011-05-29 16:13:30 +02:00
Jonathan Puckey
0b9c034e0d Path: document #addSegments and #insertSegments 2011-05-29 16:06:23 +02:00
Jonathan Puckey
78ab493709 Documentation: add todo to Path#add 2011-05-29 16:05:47 +02:00
Jonathan Puckey
b37604cbac Tool: document onkeyDown and onKeyUp. 2011-05-29 15:28:46 +02:00
Jonathan Puckey
b3eca3895d Documentation: remove dashArray / dashOffset from Item & PathStyle, since they are not implemented yet. 2011-05-29 14:51:07 +02:00
Jonathan Puckey
418aee0792 Document options of strokeCap / strokeJoin for Item and PathStyle. 2011-05-29 14:49:51 +02:00
Jonathan Puckey
556c927448 Improve docs of Point#equals and Rectangle#equals. 2011-05-29 14:20:48 +02:00
Jonathan Puckey
f75570078a Merge remote branch 'origin/master' 2011-05-29 14:06:21 +02:00
Jonathan Puckey
4fcd26a914 Docs: remove todo. 2011-05-29 14:05:32 +02:00
Jonathan Puckey
ea192e3817 Document Point#normalize and Point#quadrant. 2011-05-29 13:54:53 +02:00
Jürg Lehni
3c2977287a Simplify Item#isAncestor() by formulating it as the reverse of Item#isDescendant(). 2011-05-28 21:09:03 +01:00
Jürg Lehni
6aac2b3e67 Fix Item#isChild(item). 2011-05-28 21:06:30 +01:00