Jürg Lehni
|
02b6db1c7e
|
Do not cache the value returned by Item#position directly, but the bounds' center that is used to create it.
|
2011-06-03 00:04:02 +01:00 |
|
Jürg Lehni
|
1b197741fa
|
Add support for calculation of cumulative positioned offsets and use it to correctly determine visibility and event positions within canvases nested in relative divs.
|
2011-06-02 20:43:54 +01:00 |
|
Jonathan Puckey
|
5c88bdfac9
|
PlacedSymbol docs: use splitpane for constructor example.
|
2011-06-02 20:56:08 +02:00 |
|
Jürg Lehni
|
99e4cc7645
|
Add TODO comment about mousedown events not having delta set the first time.
|
2011-06-02 15:38:12 +01:00 |
|
Jürg Lehni
|
2ab7568d5d
|
Fix typo.
|
2011-06-02 15:36:44 +01:00 |
|
Jürg Lehni
|
a1cbd53e23
|
Use modulo again in hsb conversion.
|
2011-06-02 15:33:46 +01:00 |
|
Jürg Lehni
|
016476d1dc
|
Make sure mousemove events have lastPoint set even for the first move so event.delta is always defined for them.
|
2011-06-02 15:33:30 +01:00 |
|
Jürg Lehni
|
8b7eea4663
|
Merge remote-tracking branch 'origin/master'
|
2011-06-02 14:40:40 +01:00 |
|
Jürg Lehni
|
4a51ff4215
|
Remove unneeded blend mode.
|
2011-06-02 14:33:42 +01:00 |
|
Jonathan Puckey
|
5cede5f6ed
|
Update Item#blendMode documentation.
|
2011-06-02 15:00:16 +02:00 |
|
Jonathan Puckey
|
4455b1c33c
|
Documentation: fix Key.isDown example.
|
2011-06-02 14:48:21 +02:00 |
|
Jonathan Puckey
|
018ac46e87
|
Small improvement to Item#strokeCap docs.
|
2011-06-02 14:17:47 +02:00 |
|
Jonathan Puckey
|
5e9c64d9c8
|
View#onFrame docs: use code tags in description.
|
2011-06-02 14:17:02 +02:00 |
|
Jonathan Puckey
|
4d0db25e51
|
Item & PathStyle: improve documentation.
|
2011-06-02 13:58:56 +02:00 |
|
Jonathan Puckey
|
0e6811f022
|
Item: document and add examples to the different removeOn functions.
|
2011-06-02 13:32:00 +02:00 |
|
Jonathan Puckey
|
371428b9ee
|
Item docs: improve #scale examples.
|
2011-06-02 12:59:30 +02:00 |
|
Jürg Lehni
|
c07fee0e6b
|
Shorten variable names.
|
2011-06-02 09:38:13 +01:00 |
|
Jürg Lehni
|
bb11b74fa3
|
Clean up comments: No need for reference to Context Blender, since code has completely changed.
|
2011-06-02 09:36:49 +01:00 |
|
Jürg Lehni
|
9be8c154b7
|
Clean up code.
|
2011-06-02 09:34:10 +01:00 |
|
Jürg Lehni
|
1c886c125c
|
Make HSB converters private again in Color, and shorten code.
|
2011-06-02 09:34:02 +01:00 |
|
Jürg Lehni
|
b02b4bf7a3
|
Implement HSL blend modes according to PDF specs.
|
2011-06-02 09:33:41 +01:00 |
|
Jürg Lehni
|
0e3ed65206
|
Go back to old luminescence values since the new ones produces to large values occasionally.
|
2011-06-02 09:05:23 +01:00 |
|
Jürg Lehni
|
a1d3b1a167
|
Rename and shorten RGB/HSB converters.
|
2011-06-02 00:19:00 +01:00 |
|
Jürg Lehni
|
3a310f19cc
|
Directly access inner property.
|
2011-06-02 00:16:28 +01:00 |
|
Jürg Lehni
|
7dbda50431
|
Use more precise values for luminescence calculation.
|
2011-06-02 00:15:32 +01:00 |
|
Jürg Lehni
|
5e7998d803
|
Rename parameter.
|
2011-06-01 20:34:35 +01:00 |
|
Jürg Lehni
|
09e3010ed5
|
Merge remote-tracking branch 'origin/master'
|
2011-06-01 20:32:54 +01:00 |
|
Jürg Lehni
|
f7bdfc5019
|
Clean up comments.
|
2011-06-01 20:32:37 +01:00 |
|
Jürg Lehni
|
6558574980
|
Clean up code.
|
2011-06-01 20:23:20 +01:00 |
|
Jürg Lehni
|
7de0859a85
|
Clean up comments.
|
2011-06-01 20:21:41 +01:00 |
|
Jürg Lehni
|
d5952ba043
|
Implement HSB blend modes.
|
2011-06-01 20:21:25 +01:00 |
|
Jürg Lehni
|
ad8f046880
|
Expose HSB converters since they are required in BlendMode
|
2011-06-01 20:21:08 +01:00 |
|
Jürg Lehni
|
05a01604ca
|
Shorten css code.
|
2011-06-01 20:20:50 +01:00 |
|
Jürg Lehni
|
09e9298bf4
|
Fix blend modes to work correctly with alpha channels.
|
2011-06-01 19:25:43 +01:00 |
|
Jonathan Puckey
|
884446f606
|
Merge remote branch 'origin/master'
|
2011-06-01 19:49:57 +02:00 |
|
Jürg Lehni
|
0d1fcfbb81
|
Remove unused blend mode 'normal'.
|
2011-06-01 17:21:14 +01:00 |
|
Jürg Lehni
|
f58aa2a23b
|
Add comment about overlay mode being the reverse of hard-light.
|
2011-06-01 17:11:06 +01:00 |
|
Jürg Lehni
|
3850e4a53b
|
Optimise code for normal and multiply blend modes by precalculating values.
|
2011-06-01 17:10:40 +01:00 |
|
Jürg Lehni
|
8bbb3744fe
|
Use min() / max() in darken / lighten for shorter code.
|
2011-06-01 17:09:32 +01:00 |
|
Jürg Lehni
|
b08abcdd69
|
Remove 'unsupported' blend mode.
|
2011-06-01 16:50:14 +01:00 |
|
Jürg Lehni
|
9142c974c3
|
Revert to longer version of blend mode code as it is faster.
|
2011-06-01 16:49:48 +01:00 |
|
Jürg Lehni
|
62f5204810
|
Shorten variable names.
|
2011-06-01 16:45:42 +01:00 |
|
Jürg Lehni
|
44605433d1
|
Further shorten and simplify BlendMode cide by having process() only process one pixel value at a time.
|
2011-06-01 16:34:57 +01:00 |
|
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 |
|
Jonathan Puckey
|
c1d4161782
|
Merge remote branch 'origin/master'
|
2011-06-01 12:19:30 +02: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 |
|
Jonathan Puckey
|
5dd5694e3b
|
Merge branch 'master' of github.com:scriptographer/paper.js
|
2011-06-01 10:56:16 +02: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
|
932527ee5c
|
Improve Item's path style documentation.
|
2011-05-31 16:48:48 +02: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 |
|
Jonathan Puckey
|
9cc3b03f83
|
Document different constructors of Point, Rectangle & Size.
|
2011-05-28 02:38:33 +02:00 |
|
Jonathan Puckey
|
d644bbaa09
|
Documentation: Add optional alpha parameter to the different color constructors.
|
2011-05-28 02:29:08 +02:00 |
|
Jonathan Puckey
|
cd76c8c0e1
|
Documentation: remove ^n from method names, since this isn't necessary anymore.
|
2011-05-28 02:18:10 +02:00 |
|
Jonathan Puckey
|
1520cad144
|
Documentation: capitalize basic types in @ tags.
|
2011-05-27 21:21:49 +02:00 |
|
Jonathan Puckey
|
2d5007dcd9
|
Implement Color documentation.
|
2011-05-27 21:13:39 +02:00 |
|
Jonathan Puckey
|
8e84c79aa6
|
Documentation: capitalize 'string' and 'number' types.
|
2011-05-27 20:15:15 +02:00 |
|
Jonathan Puckey
|
82bc6fc796
|
Documentation: change return type of PathStyle#dashOffset & Item#dashOffset to number.
|
2011-05-27 20:08:06 +02:00 |
|
Jonathan Puckey
|
25c3534dc1
|
Documentation: remove part of the constructor explanation of CurveLocation until the mentioned functions have been added.
|
2011-05-27 20:06:57 +02:00 |
|
Jonathan Puckey
|
b3617cdab6
|
Documentation: add PathStyle properties to Item.
|
2011-05-27 20:05:51 +02:00 |
|
Jonathan Puckey
|
cf73f55c78
|
Documentation: use @link in Rectangle#include explanation.
|
2011-05-27 20:05:31 +02:00 |
|
Jonathan Puckey
|
4015b022ad
|
Docs: use @true tag in boolean return descriptions and add Key.isDown param options.
|
2011-05-27 18:43:27 +02:00 |
|
Jonathan Puckey
|
373e14dd76
|
Improve CompoundPath documentation.
|
2011-05-27 13:54:34 +02:00 |
|
Jonathan Puckey
|
bf19d8944c
|
Improve CharacterStyle documentation.
|
2011-05-27 13:54:27 +02:00 |
|
Jonathan Puckey
|
10763edc68
|
Add Line documentation.
|
2011-05-27 13:53:59 +02:00 |
|
Jonathan Puckey
|
ca3230c1ad
|
Documentation: reorder functions, add group titles and todos.
|
2011-05-27 13:28:13 +02:00 |
|
Jürg Lehni
|
397d3676ed
|
Merge remote-tracking branch 'origin/master'
|
2011-05-26 21:00:05 +01:00 |
|
Jonathan Puckey
|
6b611add37
|
More documentation edits and function reordering.
|
2011-05-26 20:09:25 +02:00 |
|
Jonathan Puckey
|
fb36a275ac
|
Edits to KeyEvent documentation
|
2011-05-26 16:56:03 +02:00 |
|
Jonathan Puckey
|
65fa7fb01d
|
Path documentation: use Type[] for 'typed' arrays.
|
2011-05-26 16:50:13 +02:00 |
|
Jonathan Puckey
|
0388917d90
|
Add @return to Point#directedAngle.
|
2011-05-26 16:49:51 +02:00 |
|
Jonathan Puckey
|
b52421c282
|
Project documentation: use Type[] for 'typed' arrays.
|
2011-05-26 16:49:19 +02:00 |
|
Jürg Lehni
|
ddf3670952
|
Fix / remove some comments.
|
2011-05-26 12:04:47 +01:00 |
|
Jürg Lehni
|
baf519a841
|
Remove unsupported style properties for now.
|
2011-05-26 12:04:30 +01:00 |
|
Jürg Lehni
|
8130ee458f
|
Rename #_countSelectedSegment() to #_updateSelection().
|
2011-05-26 11:52:28 +01:00 |
|
Jürg Lehni
|
3e7806ae50
|
Move #_countSelectedSegment().
|
2011-05-26 11:38:26 +01:00 |
|
Jürg Lehni
|
e31081f2fc
|
Use Path#_countSelectedSegment() in #removeSegments() as well.
|
2011-05-26 11:38:08 +01:00 |
|
Jürg Lehni
|
c67209f889
|
Optimize Curve#initialize for minifying.
|
2011-05-26 11:09:02 +01:00 |
|
Jürg Lehni
|
362eca7061
|
Further optimize Segment#initialize for minifying.
|
2011-05-26 11:08:07 +01:00 |
|
Jürg Lehni
|
d8fbca0d68
|
Shorten Segment#_changed().
|
2011-05-26 11:04:57 +01:00 |
|
Jürg Lehni
|
5b6bc1263c
|
Allow selection state of Segments to be changed before they are added to a Path (Part two of fixing selection cloning).
|
2011-05-26 10:59:22 +01:00 |
|
Jürg Lehni
|
2d218dbb19
|
Change and optimise the way SegmentPoints are created, so that selected state is actually copied over properly (Part one of fixing selection cloning).
|
2011-05-26 10:58:16 +01:00 |
|
Jürg Lehni
|
d2263b26db
|
No need to check argument for _colorType since Color.read already performs an instanceof check for us.
|
2011-05-26 09:20:58 +01:00 |
|
Jürg Lehni
|
4fbc462a96
|
Shorten local 'colorType' variable to 'type'.
|
2011-05-26 08:40:07 +01:00 |
|
Jürg Lehni
|
300ea72261
|
Simplify Color#initialize() by relying on #convert() for performing _colorType check and delegate to #clone() instead of #convert() if it is the same.
|
2011-05-26 08:39:21 +01:00 |
|
Jürg Lehni
|
bfcfb23a9e
|
Shorten Color#clone() further.
|
2011-05-26 08:36:56 +01:00 |
|
Jonathan Puckey
|
8ab56a7ebd
|
Some edits to Project documentation.
|
2011-05-26 00:57:58 +02:00 |
|
Jonathan Puckey
|
020cbbcef5
|
Implement Gradient / GradientColor / GradientStop docs.
|
2011-05-26 00:55:44 +02:00 |
|
Jonathan Puckey
|
00eea86d25
|
Some documentation edits in Point.
|
2011-05-26 00:54:59 +02:00 |
|
Jonathan Puckey
|
7910d134a7
|
Documentation: add Project Hierarchy properties.
|
2011-05-26 00:54:25 +02:00 |
|
Jonathan Puckey
|
b39d1c0695
|
Add View documentation.
|
2011-05-23 20:10:25 +02:00 |
|
Jonathan Puckey
|
eb2694467d
|
ToolEvent documentation: fix whitespace.
|
2011-05-23 20:10:02 +02:00 |
|
Jonathan Puckey
|
0a27879a23
|
Add KeyEvent documentation.
|
2011-05-23 19:56:18 +02:00 |
|
Jonathan Puckey
|
93b06f3acb
|
Add PlacedSymbol documentation.
|
2011-05-23 19:48:48 +02:00 |
|
Jonathan Puckey
|
de7926990b
|
Add CharacterStyle documentation.
|
2011-05-23 19:28:55 +02:00 |
|
Jonathan Puckey
|
de76b063b9
|
Add ParagraphStyle documentation.
|
2011-05-23 19:24:33 +02:00 |
|
Jonathan Puckey
|
50e996aa43
|
Add PointText documentation.
|
2011-05-23 19:13:51 +02:00 |
|
Jonathan Puckey
|
24689300c3
|
Add TextItem documentation.
|
2011-05-23 18:56:13 +02:00 |
|
Jonathan Puckey
|
5bd935be75
|
Symbol documentation & move Symbol#clone below Symbol#setDefinition.
|
2011-05-23 18:29:44 +02:00 |
|
Jonathan Puckey
|
14c693aa7c
|
Add Project documentation.
|
2011-05-23 18:13:03 +02:00 |
|
Jonathan Puckey
|
e66e8e330b
|
Point: whitespace.
|
2011-05-23 18:04:08 +02:00 |
|
Jonathan Puckey
|
65ee63546d
|
Add Key documentation.
|
2011-05-23 18:02:46 +02:00 |
|
Jonathan Puckey
|
26aa3c00d7
|
Add CurveLocation documentation.
|
2011-05-23 17:39:26 +02:00 |
|
Jonathan Puckey
|
0e63f11b72
|
Add Curve documentation.
|
2011-05-23 17:24:57 +02:00 |
|
Jonathan Puckey
|
08f6f94fb6
|
Clean up whitespace in Item documentation.
|
2011-05-23 17:10:12 +02:00 |
|