Commit graph

  • 1267f41559 Add beginning of ObservedRectangle support and test it in animatedStar example. Jürg Lehni 2011-03-16 23:32:46 +0100
  • b1c0a48552 Add ObservedPoint class that records changes and passes them on to the owner, and use it for all Point objects returned from Rectangle. Jürg Lehni 2011-03-16 07:12:34 +0100
  • 4e65d2c1d3 Fix simple syntax error. Jürg Lehni 2011-03-15 12:30:44 +0100
  • db1e7e8880 Simple optimisations. Jürg Lehni 2011-03-14 22:38:40 +0100
  • 3a8bdeb19b Move scroll bounds code to Element.getScrollBounds(). Jürg Lehni 2011-03-14 22:37:31 +0100
  • ca9e70ade0 Request next animation frame at beginning of callback. Jürg Lehni 2011-03-14 22:35:31 +0100
  • 2fcca38a9c Add support for onFrameLoop() callback to PaperScript. Jürg Lehni 2011-03-14 22:34:09 +0100
  • 7e46eeabc4 Use the experimental Event.requestAnimationFrame() rather than setInterval(). Jürg Lehni 2011-03-14 22:21:27 +0100
  • 4ec8847859 Use the experimental Event.requestAnimationFrame() rather than setInterval(). Jürg Lehni 2011-03-14 22:20:04 +0100
  • 8179d7bf7e Clean up Event.requestAnimationFrame. Jürg Lehni 2011-03-14 22:19:06 +0100
  • 6d8379f885 Separate Events into Event and Element object, add a row of useful Element helper functions and define experimental Event.requestAnimationFrame(). Jürg Lehni 2011-03-14 22:14:20 +0100
  • aae88d7568 Optimise chained return statements. Jürg Lehni 2011-03-14 22:13:01 +0100
  • f02b7031a9 Reintroduce accidentally removed definition of _readNull: true. Jürg Lehni 2011-03-14 22:08:07 +0100
  • a48c130965 Improve comments. Jürg Lehni 2011-03-14 22:07:21 +0100
  • a2a9646d02 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-14 16:18:28 +0100
  • c284b0837e Fix tiny error in Path#smooth() Jürg Lehni 2011-03-14 16:18:12 +0100
  • 46ee4c517d Optimize nameToRGBColor to also handle strings like rgb(0, 0, 0). Jonathan Puckey 2011-03-14 13:54:57 +0100
  • bfd43b27fa Improve commens and get rid of for loop to in nameToRGBColor(). Jürg Lehni 2011-03-13 23:00:01 +0100
  • 1c8c64c473 One more nameToRGBColor() simplification, by reversing return logic. Jürg Lehni 2011-03-13 22:57:01 +0100
  • a842b5faa6 Simplify nameToRGBColor() further: No need to create function in its own scope, simply use the inject scope to contain cache and context variables. Jürg Lehni 2011-03-13 22:55:20 +0100
  • 21aa12271e Simplify nameToRGBColor() code a little: Shorter variables names, no need to save and restore context, as all we do is fillRect(). Jürg Lehni 2011-03-13 22:53:32 +0100
  • 873e715361 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-13 22:48:17 +0100
  • c8449162d8 Remove unnecessary checks for rect. Jürg Lehni 2011-03-13 22:48:07 +0100
  • e0753179e3 Clean up last commit a bit. Jonathan Puckey 2011-03-13 20:16:04 +0100
  • 0d173e39bf Merge remote branch 'origin/master' Jonathan Puckey 2011-03-13 20:15:00 +0100
  • b004a83361 Color: avoid huge named color lookup table by drawing the named color on a canvas and reading its components. Jonathan Puckey 2011-03-13 20:14:16 +0100
  • cd80db14d8 Rearrange color converters to group by pairs. Jürg Lehni 2011-03-13 18:41:32 +0100
  • d5fa3d7ae6 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-13 18:34:05 +0100
  • 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. Jürg Lehni 2011-03-13 18:31:00 +0100
  • 1cd6daada1 Use _item instead of item as internal reference to PathStyle's item. Jürg Lehni 2011-03-13 18:29:59 +0100
  • 38018c83f6 Lines example: use 'new Date().getTime()' instead of 'Date.now()'. Jonathan Puckey 2011-03-12 15:33:09 +0100
  • 6430baa858 Some small changes to lines example. Jonathan Puckey 2011-03-12 15:28:01 +0100
  • f39895a945 Update lines.html example. Jonathan Puckey 2011-03-12 15:17:08 +0100
  • 5079259a8e Small change to Color. Jonathan Puckey 2011-03-12 15:16:17 +0100
  • d7399926a0 Allow for Raster#setPixel(x, y, color). Jonathan Puckey 2011-03-11 14:23:30 +0100
  • 1bb9a262d9 Add VoronoiTool to examples (work in progress). Jonathan Puckey 2011-03-09 19:40:34 +0100
  • b643fdfc1f Implement Item#removeOn and Item#getId. Jonathan Puckey 2011-03-09 19:35:03 +0100
  • fed52bd521 Paperscript#run: keep tool on global the paper object. Jonathan Puckey 2011-03-09 19:33:53 +0100
  • c7cefcba3a Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-09 18:17:50 +0000
  • 427e969d3d Add data access to Raster, untested. Jürg Lehni 2011-03-09 18:17:12 +0000
  • dae2d6acb1 Remove todo in PlacedSymbol. Jonathan Puckey 2011-03-09 17:09:23 +0100
  • 1ae89049ed Make the RadialRainbows example interaction smoother. Jonathan Puckey 2011-03-09 17:08:20 +0100
  • df0c95e41f Fix bug in Tool.js. Jonathan Puckey 2011-03-09 16:51:50 +0100
  • f57a7ba0d9 Use Math.min / Math.max to clamp component values in color classes. Jonathan Puckey 2011-03-09 16:48:53 +0100
  • 81f48e2168 Add SquareRounded.html example. Jonathan Puckey 2011-03-09 16:15:01 +0100
  • 08d66ae231 Color: small change. Jonathan Puckey 2011-03-09 15:50:32 +0100
  • 87de9f4fa8 Further refactoring in Color. Jonathan Puckey 2011-03-09 15:25:41 +0100
  • 30d2f16c8c Color: save a var statement. Jonathan Puckey 2011-03-09 14:59:38 +0100
  • da92ff9773 Check for min and max values in the different color component setters. Jonathan Puckey 2011-03-09 14:48:16 +0100
  • 41ce6279f1 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-09 13:34:13 +0000
  • 9fd0381b82 Minor clean-ups. Jürg Lehni 2011-03-09 13:31:40 +0000
  • b7902635bf Color#setAlpha: comment out code using Math.min and Math.max, which was supposed to just be there to explain what is happening. Jonathan Puckey 2011-03-09 14:31:30 +0100
  • bda24fbd54 Color: simplify stringToRGB again. Jonathan Puckey 2011-03-09 14:29:19 +0100
  • eacf346aab Color: reintroduce hexToRGB to be called from stringToRGB. Jonathan Puckey 2011-03-09 14:23:18 +0100
  • 741652aa9c Color: combine stringToRgb, namedToRgb and hexToRgb and optimize a bit. Jonathan Puckey 2011-03-09 14:20:09 +0100
  • ba42884f57 Move RotationRaster.html from Animated to Scripts. Jonathan Puckey 2011-03-09 13:51:54 +0100
  • 526711ffd4 Fix and improve performance of Raster#getPixel. Jonathan Puckey 2011-03-09 13:38:58 +0100
  • 00c4b5ee34 Small change to HSBColor#setHue. Jonathan Puckey 2011-03-09 02:30:50 +0100
  • 60c8c6ce02 Add more color tests. Jonathan Puckey 2011-03-09 02:25:50 +0100
  • ba7e2fb99b Add test helpers for HSBColor and GrayColor and fix compareNumbers function. Jonathan Puckey 2011-03-09 02:25:38 +0100
  • 6a26cf3228 Add HSBColor to load.js. Jonathan Puckey 2011-03-09 02:24:35 +0100
  • 62db3e56dd Implement HSBColor, introduce Color#convert(type) and refactor color classes. Jonathan Puckey 2011-03-09 02:23:39 +0100
  • 526e2ea0ba Hide Curve#getLength() parameters from Bootstrap so it injects bean too. Jürg Lehni 2011-03-08 17:31:36 +0000
  • 72469dc65f Clean up PlacedSymbol constructor, make sure it declares parameters. Jürg Lehni 2011-03-08 17:21:05 +0000
  • 195b089424 Clean up Path.* constructors and make sure they handle Base.read() returning null. Jürg Lehni 2011-03-08 17:20:30 +0000
  • 484b2b0c94 Test code for Path#segments change observation. Jürg Lehni 2011-03-08 17:20:03 +0000
  • 3927836441 Declare functions that work both as getters for beans and also as callalble functions with optional parameters differently, since they do not inject beans anymore if they declare parameters. Jürg Lehni 2011-03-08 17:19:02 +0000
  • dd9340d522 Handle all the calls to Base.read() differently, by checking result for null and bailing out if it is. Jürg Lehni 2011-03-08 17:17:36 +0000
  • 261fa819d7 Change Bootstrap.js to only make beans if gettes has no function parameters defined, in order to avoid beans for functions that start with get but expect arguments when called. Jürg Lehni 2011-03-08 17:09:13 +0000
  • ea9a1d2c47 Fix Base.read() to correctly read existing objects even when length > 1. Jürg Lehni 2011-03-08 17:08:30 +0000
  • 74167ff28d Add test code for segments list that detects change. Jürg Lehni 2011-03-08 13:19:08 +0000
  • fc0d3efd29 Simplify Path constructor further. Jürg Lehni 2011-03-08 13:03:57 +0000
  • e35fb1efb6 Move populating of segments list to Path#setSegments() and rely on it in constructor. Jürg Lehni 2011-03-08 13:03:11 +0000
  • 848befe103 No need to create a new segments array in setSegments, just set length of existing one instead. Jürg Lehni 2011-03-08 13:00:32 +0000
  • 7a4e49c5d5 Clean up Document#draw a bit and define param outside of loop. Jürg Lehni 2011-03-08 12:55:52 +0000
  • 456e9f2815 Use variable definition chaining in Raster. Jürg Lehni 2011-03-08 12:55:34 +0000
  • 6a67052090 Update copyright / licensing comments. Jürg Lehni 2011-03-08 01:41:50 +0000
  • 34a6c7871c Clean-up loading code. Jürg Lehni 2011-03-08 01:07:26 +0000
  • 2e55cd9871 Clean up source loading sequence, and rename test_function.js to helpers.js Jürg Lehni 2011-03-08 01:05:01 +0000
  • 4680283ce7 Simply use document.write() for script loading, as load.js seems not ready for primetime yet (it magically half-broke QUnit on Safari). Jürg Lehni 2011-03-08 00:58:47 +0000
  • de797aa0fe Improve load.js mechanism and make it work for QUnit too. Jürg Lehni 2011-03-08 00:17:42 +0000
  • 8f78513174 Change naming of exported PaperScript methods. Jürg Lehni 2011-03-08 00:17:19 +0000
  • 798bcd709a Since Firefox does not seem to support the <base> tag for script loading, roll our own solution through the load.js calls. Jürg Lehni 2011-03-07 23:11:41 +0000
  • 3dd523a683 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-07 18:37:03 +0000
  • e32549aaf2 Switch to using load.js for loading the various parts of the library during development. Jürg Lehni 2011-03-07 18:36:42 +0000
  • 6db184341a Fix a small syntax error. Jürg Lehni 2011-03-07 18:36:13 +0000
  • b4356078a7 Export PaperScript.install, so it can be loaded after onload. Jürg Lehni 2011-03-07 18:35:48 +0000
  • 3685a614a5 Add copyright / license comment to main file and include Line.js and BlendMode.js in compiled library. Jürg Lehni 2011-03-07 18:34:17 +0000
  • 781fd4adda Fix Size#dot. Jonathan Puckey 2011-03-07 18:49:43 +0100
  • 6b5ce7c18c Merge remote branch 'origin/master' Jonathan Puckey 2011-03-07 18:39:25 +0100
  • dc25512f73 Compress getters and setters of translateX / translateY / scaleX / scaleY / rotateX / rotateY. Jonathan Puckey 2011-03-07 18:38:50 +0100
  • c4c5b070b5 Minor code clean-up. Jürg Lehni 2011-03-07 16:51:12 +0000
  • 2a0c393b85 Simplify HSB code a little. Jürg Lehni 2011-03-07 16:51:00 +0000
  • 350fef00ec Simplify new getter / setter generation code a bit. Jürg Lehni 2011-03-07 16:49:24 +0000
  • ff2b740c68 Use local references to often called Math functions, allowing uglify to shorten them further. Jürg Lehni 2011-03-07 16:49:02 +0000
  • 8bfa4e6073 Update RadialRainbows example to use Color#hue. Jonathan Puckey 2011-03-07 16:07:30 +0100
  • d713102734 Implement Color#saturation / Color#hue / Color#brightness and allow chaining of color channel setters. Jonathan Puckey 2011-03-07 15:59:35 +0100
  • 513bd1da67 Merge remote branch 'origin/master' Jonathan Puckey 2011-03-07 13:42:58 +0100
  • 69829e03f6 Rectangle: optimize creation of corner getters / setters and combine multiple variable declarations. Jonathan Puckey 2011-03-07 13:42:50 +0100
  • 8895209e3b Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-07 12:01:33 +0000