Jonathan Puckey
|
be8ee90f75
|
Document: use a hash for Document#_selectedItems to speed up adding to and removing from it.
|
2011-04-21 20:43:42 +02:00 |
|
Jonathan Puckey
|
745f002cd3
|
Segment: add todo.
|
2011-04-21 20:00:11 +02:00 |
|
Jonathan Puckey
|
abb0878a25
|
Curve: Implement selection of curves.
|
2011-04-21 19:54:32 +02:00 |
|
Jonathan Puckey
|
cf541901dd
|
Rename getSelected methods to isSelected.
|
2011-04-21 19:51:49 +02:00 |
|
Jonathan Puckey
|
d831d66758
|
Implement SelectionState.js: bitwise flags for segment selection state.
|
2011-04-21 19:37:51 +02:00 |
|
Jonathan Puckey
|
7867a46c35
|
Path#setSelected: do XOR correctly.
|
2011-04-21 18:45:36 +02:00 |
|
Jonathan Puckey
|
cf2faa14e3
|
Path#join: use internal variables.
|
2011-04-21 18:43:22 +02:00 |
|
Jonathan Puckey
|
ff9976ab57
|
Implement Document#getSelectedItems.
|
2011-04-21 18:10:47 +02:00 |
|
Jonathan Puckey
|
73b97dbfba
|
Implement segment point selection.
|
2011-04-21 18:06:06 +02:00 |
|
Jonathan Puckey
|
732caec7bf
|
Speed up drawing of selected items.
|
2011-04-21 15:48:21 +02:00 |
|
Jonathan Puckey
|
517793c48a
|
Implement Item#get/setDocument and Document#selectedItems.
|
2011-04-21 15:47:00 +02:00 |
|
Jonathan Puckey
|
b2cd8cdec2
|
Path: use the internal SegmentPoint#_x and #_y properties where possible.
|
2011-04-21 15:25:25 +02:00 |
|
Jürg Lehni
|
985aa5aff8
|
Directly access internal _x and _y properties on internal SegmentPoints, to avoid callling getters.
|
2011-04-21 13:33:12 +01:00 |
|
Jürg Lehni
|
96f266b4d2
|
Add beginning of SegmentPoint class.
|
2011-04-21 13:21:56 +01:00 |
|
Jürg Lehni
|
00958afd09
|
Explain lookup tables in Numerical.
|
2011-04-21 12:37:35 +01:00 |
|
Jonathan Puckey
|
1d92aea8e2
|
Fix Item#setSelected.
|
2011-04-20 16:00:08 +02:00 |
|
Jonathan Puckey
|
3fcfe3adbb
|
Implement drawing of selection of PlacedSymbol & Raster items.
|
2011-04-18 18:46:39 +02:00 |
|
Jonathan Puckey
|
be9f312110
|
Implement a first version of drawing path selection.
|
2011-04-17 18:46:35 +02:00 |
|
Jonathan Puckey
|
74cee4abef
|
Implement Path#remove() and add tests for it.
|
2011-04-13 16:16:32 +02:00 |
|
Jonathan Puckey
|
6d4d07f2a8
|
Path.Constructors: simply Path.Star constructor.
|
2011-04-13 00:05:46 +02:00 |
|
Jonathan Puckey
|
8a113a1c84
|
Item: clean up white space.
|
2011-04-12 14:37:52 +02:00 |
|
Jonathan Puckey
|
0d4517c77f
|
Path: add todos for missing functions.
|
2011-04-12 14:36:02 +02:00 |
|
Jonathan Puckey
|
60dca8c2e8
|
Path#cubicCurveTo: convert arguments to points first.
|
2011-04-12 14:35:42 +02:00 |
|
Jonathan Puckey
|
91d8dd1187
|
Path: add todos for missing functions.
|
2011-04-12 14:28:18 +02:00 |
|
Jonathan Puckey
|
491250ef14
|
Simplify Path.Star constructor.
|
2011-04-12 14:20:56 +02:00 |
|
Jonathan Puckey
|
12de77eb42
|
Path.Constructors: implement Path.Star and add tests.
|
2011-04-12 14:18:00 +02:00 |
|
Jonathan Puckey
|
bd59e48682
|
Fix problem with Point constructor when passed { angle: 0, length: n }, by checking for undefined.
|
2011-04-12 13:48:44 +02:00 |
|
Jonathan Puckey
|
2a9bbd3dee
|
Fix Path#closePath & CompoundPath#closePath.
|
2011-04-11 23:33:08 +02:00 |
|
Jonathan Puckey
|
499c421021
|
Implement Path#join(path) and add tests for it.
|
2011-04-11 23:30:08 +02:00 |
|
Jonathan Puckey
|
d02885cba7
|
Implement Item#isParent and add tests for it.
|
2011-04-11 19:42:03 +02:00 |
|
Jonathan Puckey
|
594c11fedd
|
CurveLocation: fix mistakes.
|
2011-04-11 19:36:40 +02:00 |
|
Jonathan Puckey
|
aa043428c0
|
CurveLocation: add empty line to end of file.
|
2011-04-11 19:33:34 +02:00 |
|
Jonathan Puckey
|
b46c6d0a29
|
Curve: implement getLocation(length), getLength(location), getTangent(length), getNormal(length)
|
2011-04-11 19:32:19 +02:00 |
|
Jonathan Puckey
|
d396f48c4b
|
Implement CurveLocation.
|
2011-04-11 19:32:04 +02:00 |
|
Jonathan Puckey
|
5f05c85b42
|
Gradient: rename midPoint to rampPoint.
|
2011-04-07 17:12:00 +02:00 |
|
Jonathan Puckey
|
c875953198
|
Merge remote branch 'origin/master'
|
2011-04-07 17:03:33 +02:00 |
|
Jonathan Puckey
|
06df8b1288
|
Allow Gradient constructor to receive an array of colors or [color, midPoint]. Also allow the user to specify the type of the gradient in the constructor.
|
2011-04-07 17:01:49 +02:00 |
|
Jürg Lehni
|
08d0499251
|
Change comment.
|
2011-03-25 19:58:20 +02:00 |
|
Jürg Lehni
|
e83195bb8f
|
Add #first/lastCurve getters.
|
2011-03-25 19:58:02 +02:00 |
|
Jürg Lehni
|
b5fdecf3d1
|
Rename ObservedRectangle to LinkedRectangle, ObservedPoint to LinkedPoint, and add more comments about what it is they are doing.
|
2011-03-22 17:27:46 +00:00 |
|
Jürg Lehni
|
dbb947b7aa
|
Finish ObservedRectangle, by solving observer notification for all setters.
|
2011-03-22 17:15:56 +00:00 |
|
Jürg Lehni
|
14010eb8b2
|
Format abscissas array for better reading.
|
2011-03-21 12:46:00 +00:00 |
|
Jürg Lehni
|
417d015eab
|
Improve curve time parametrization precision by iteratively adding up sub-range lengths, and optimise speed by determining integration precision based on range size.
|
2011-03-20 11:38:06 +00:00 |
|
Jürg Lehni
|
a794816097
|
Fix wrong number of iterations in False Position method.
|
2011-03-20 02:03:26 +00:00 |
|
Jürg Lehni
|
11e70c5069
|
Use fast Newton-Raphson Method for now.
|
2011-03-20 02:02:02 +00:00 |
|
Jürg Lehni
|
0620a19eb9
|
Use False Position method as fall back in Newton-Raphson method, for accurate results in rare sitatuations wher the fast Newton-Raphson method fails.
|
2011-03-20 02:01:17 +00:00 |
|
Jürg Lehni
|
02328287cb
|
Use n=16 evaluations in integrations for now.
|
2011-03-20 02:00:15 +00:00 |
|
Jürg Lehni
|
500942e86d
|
Improve Numerical.integrate() by adding higher precision and supported iterations of up to n = 16.
|
2011-03-20 01:59:53 +00:00 |
|
Jürg Lehni
|
7ae504e51f
|
Add support for Item#removeOnMove().
|
2011-03-20 00:11:02 +00:00 |
|
Jürg Lehni
|
ad71293983
|
Remove Van Wijngaarden–Dekker–Brent method again as it led to imprecise results, and experiment with the very fast Newton-Raphson method (keeping False Position as a possible fallback for now).
|
2011-03-20 00:04:33 +00:00 |
|
Jürg Lehni
|
2c9d168224
|
Clean up and improve Path drawing commands.
|
2011-03-19 23:09:17 +00:00 |
|
Jürg Lehni
|
1267f41559
|
Add beginning of ObservedRectangle support and test it in animatedStar example.
|
2011-03-16 23:32:46 +01:00 |
|
Jürg Lehni
|
b1c0a48552
|
Add ObservedPoint class that records changes and passes them on to the owner, and use it for all Point objects returned from Rectangle.
|
2011-03-16 07:12:34 +01:00 |
|
Jürg Lehni
|
4e65d2c1d3
|
Fix simple syntax error.
|
2011-03-15 12:30:44 +01:00 |
|
Jürg Lehni
|
db1e7e8880
|
Simple optimisations.
|
2011-03-14 22:38:40 +01:00 |
|
Jürg Lehni
|
3a8bdeb19b
|
Move scroll bounds code to Element.getScrollBounds().
|
2011-03-14 22:37:31 +01:00 |
|
Jürg Lehni
|
ca9e70ade0
|
Request next animation frame at beginning of callback.
|
2011-03-14 22:35:31 +01:00 |
|
Jürg Lehni
|
2fcca38a9c
|
Add support for onFrameLoop() callback to PaperScript.
|
2011-03-14 22:34:09 +01:00 |
|
Jürg Lehni
|
8179d7bf7e
|
Clean up Event.requestAnimationFrame.
|
2011-03-14 22:19:06 +01:00 |
|
Jürg Lehni
|
6d8379f885
|
Separate Events into Event and Element object, add a row of useful Element helper functions and define experimental Event.requestAnimationFrame().
|
2011-03-14 22:14:20 +01:00 |
|
Jürg Lehni
|
aae88d7568
|
Optimise chained return statements.
|
2011-03-14 22:13:01 +01:00 |
|
Jürg Lehni
|
f02b7031a9
|
Reintroduce accidentally removed definition of _readNull: true.
|
2011-03-14 22:08:07 +01:00 |
|
Jürg Lehni
|
a48c130965
|
Improve comments.
|
2011-03-14 22:07:21 +01:00 |
|
Jürg Lehni
|
a2a9646d02
|
Merge remote-tracking branch 'origin/master'
|
2011-03-14 16:18:28 +01:00 |
|
Jürg Lehni
|
c284b0837e
|
Fix tiny error in Path#smooth()
|
2011-03-14 16:18:12 +01:00 |
|
Jonathan Puckey
|
46ee4c517d
|
Optimize nameToRGBColor to also handle strings like rgb(0, 0, 0).
|
2011-03-14 13:54:57 +01:00 |
|
Jürg Lehni
|
bfd43b27fa
|
Improve commens and get rid of for loop to in nameToRGBColor().
|
2011-03-13 23:00:01 +01:00 |
|
Jürg Lehni
|
1c8c64c473
|
One more nameToRGBColor() simplification, by reversing return logic.
|
2011-03-13 22:57:01 +01:00 |
|
Jürg Lehni
|
a842b5faa6
|
Simplify nameToRGBColor() further: No need to create function in its own scope, simply use the inject scope to contain cache and context variables.
|
2011-03-13 22:55:20 +01:00 |
|
Jürg Lehni
|
21aa12271e
|
Simplify nameToRGBColor() code a little: Shorter variables names, no need to save and restore context, as all we do is fillRect().
|
2011-03-13 22:53:32 +01:00 |
|
Jürg Lehni
|
873e715361
|
Merge remote-tracking branch 'origin/master'
|
2011-03-13 22:48:17 +01:00 |
|
Jürg Lehni
|
c8449162d8
|
Remove unnecessary checks for rect.
|
2011-03-13 22:48:07 +01:00 |
|
Jonathan Puckey
|
e0753179e3
|
Clean up last commit a bit.
|
2011-03-13 20:16:04 +01:00 |
|
Jonathan Puckey
|
0d173e39bf
|
Merge remote branch 'origin/master'
|
2011-03-13 20:15:00 +01:00 |
|
Jonathan Puckey
|
b004a83361
|
Color: avoid huge named color lookup table by drawing the named color on a canvas and reading its components.
|
2011-03-13 20:14:16 +01:00 |
|
Jürg Lehni
|
cd80db14d8
|
Rearrange color converters to group by pairs.
|
2011-03-13 18:41:32 +01:00 |
|
Jürg Lehni
|
d5fa3d7ae6
|
Merge remote-tracking branch 'origin/master'
Conflicts:
src/item/Raster.js
|
2011-03-13 18:34:05 +01:00 |
|
Jürg Lehni
|
9d4af0ce9e
|
Clean up recently caused Base.read() mess by introducing _readNull property,m setting it to true on Color and reverting to previous behavior for Point, Size and Rectangle, where dimensions of 0 are read by default if nothing is provided.
|
2011-03-13 18:31:00 +01:00 |
|
Jürg Lehni
|
1cd6daada1
|
Use _item instead of item as internal reference to PathStyle's item.
|
2011-03-13 18:29:59 +01:00 |
|
Jonathan Puckey
|
5079259a8e
|
Small change to Color.
|
2011-03-12 15:16:17 +01:00 |
|
Jonathan Puckey
|
d7399926a0
|
Allow for Raster#setPixel(x, y, color).
|
2011-03-11 14:23:30 +01:00 |
|
Jonathan Puckey
|
b643fdfc1f
|
Implement Item#removeOn and Item#getId.
|
2011-03-09 19:35:03 +01:00 |
|
Jonathan Puckey
|
fed52bd521
|
Paperscript#run: keep tool on global the paper object.
|
2011-03-09 19:33:53 +01:00 |
|
Jürg Lehni
|
c7cefcba3a
|
Merge remote-tracking branch 'origin/master'
|
2011-03-09 18:17:50 +00:00 |
|
Jürg Lehni
|
427e969d3d
|
Add data access to Raster, untested.
|
2011-03-09 18:17:12 +00:00 |
|
Jonathan Puckey
|
dae2d6acb1
|
Remove todo in PlacedSymbol.
|
2011-03-09 17:09:23 +01:00 |
|
Jonathan Puckey
|
df0c95e41f
|
Fix bug in Tool.js.
|
2011-03-09 16:51:50 +01:00 |
|
Jonathan Puckey
|
f57a7ba0d9
|
Use Math.min / Math.max to clamp component values in color classes.
|
2011-03-09 16:48:53 +01:00 |
|
Jonathan Puckey
|
08d66ae231
|
Color: small change.
|
2011-03-09 15:50:32 +01:00 |
|
Jonathan Puckey
|
87de9f4fa8
|
Further refactoring in Color.
|
2011-03-09 15:25:41 +01:00 |
|
Jonathan Puckey
|
30d2f16c8c
|
Color: save a var statement.
|
2011-03-09 15:00:13 +01:00 |
|
Jonathan Puckey
|
da92ff9773
|
Check for min and max values in the different color component setters.
|
2011-03-09 14:48:16 +01:00 |
|
Jürg Lehni
|
41ce6279f1
|
Merge remote-tracking branch 'origin/master'
Conflicts:
src/color/Color.js
|
2011-03-09 13:34:13 +00:00 |
|
Jürg Lehni
|
9fd0381b82
|
Minor clean-ups.
|
2011-03-09 13:31:40 +00:00 |
|
Jonathan Puckey
|
b7902635bf
|
Color#setAlpha: comment out code using Math.min and Math.max, which was supposed to just be there to explain what is happening.
|
2011-03-09 14:31:30 +01:00 |
|
Jonathan Puckey
|
bda24fbd54
|
Color: simplify stringToRGB again.
|
2011-03-09 14:29:19 +01:00 |
|
Jonathan Puckey
|
eacf346aab
|
Color: reintroduce hexToRGB to be called from stringToRGB.
|
2011-03-09 14:23:18 +01:00 |
|
Jonathan Puckey
|
741652aa9c
|
Color: combine stringToRgb, namedToRgb and hexToRgb and optimize a bit.
|
2011-03-09 14:20:09 +01:00 |
|
Jonathan Puckey
|
526711ffd4
|
Fix and improve performance of Raster#getPixel.
|
2011-03-09 13:38:58 +01:00 |
|
Jonathan Puckey
|
00c4b5ee34
|
Small change to HSBColor#setHue.
|
2011-03-09 02:30:50 +01:00 |
|