Commit graph

  • 484d74160b Set private properties directly in initialize(), no need to call setters. Jürg Lehni 2011-03-03 17:27:56 +0000
  • 0efc23b25c Remove 2nd redundant definition of Gradient#getStops(). Jürg Lehni 2011-03-03 17:26:30 +0000
  • 7e52355f93 Rename Doc -> Document since paper code is namespaced now and does not clash with global Document prototype. Jürg Lehni 2011-03-03 17:23:27 +0000
  • fe1a01ecb6 Move paper.populate() functionality back to build.js. Jürg Lehni 2011-03-03 17:11:14 +0000
  • 9a9cb91f72 Use the faster Point/Size.create() constructors across the basic classes for higher performance. Jürg Lehni 2011-03-03 17:07:12 +0000
  • dca26949ff Add Size.create(), in analogy to Point.create(). Jürg Lehni 2011-03-03 17:06:35 +0000
  • 5508e6eab6 Change scoped compilation of paper so that only a populated paper object is returned to the global scope, but nothing is installed yet. Jürg Lehni 2011-03-03 16:57:29 +0000
  • a543801598 Rename Bootstrap.js file to lowercase bootstrap.js. Jürg Lehni 2011-03-03 16:56:31 +0000
  • 59dc0ae6d0 Make sure paper.* objects are only installed in the passed object if there is not already something under the same name. Jürg Lehni 2011-03-03 16:38:04 +0000
  • e9881c02fc Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-03 16:33:01 +0000
  • 5ed30d7089 Make sure all files end on empty line. Jürg Lehni 2011-03-03 16:32:55 +0000
  • dc75e14c59 Make sure utility objects stay in paper scope. Jürg Lehni 2011-03-03 16:32:39 +0000
  • aed8b0a6bc Add utility objects to build. Jürg Lehni 2011-03-03 16:32:15 +0000
  • d088dc629e Rename Paper to paper, implement it as an object literal and add paper.populate() and paper.install() methods that do the bootstraping. Jürg Lehni 2011-03-03 16:21:17 +0000
  • 00bf9aa88c Fall back to Item#bounds if the Item doesn't have Item#strokeBounds in Item#draw. Jonathan Puckey 2011-03-03 17:05:12 +0100
  • 02943c4190 Add missing CanvasProvider.js dependency to Examples. Jonathan Puckey 2011-03-03 17:04:14 +0100
  • 6923e168ab Scope the compilation of the whole library and inject produced classes into global scope for now, add options later. Jürg Lehni 2011-03-03 14:09:20 +0000
  • 80a5e4513e Add preprocessor and build scripts for production of single file Paper.js version, based on previous work for Bootstrap. Jürg Lehni 2011-03-03 13:45:21 +0000
  • 2f9531810c Implement todos about using strokeBounds instead of bounds. Jonathan Puckey 2011-03-03 14:43:37 +0100
  • 941c3c7346 Declare all classes as local variables, so they can be scoped. Jürg Lehni 2011-03-03 13:33:41 +0000
  • c84df5a346 Use Segment.read() correctly in Path#initialize(). Jürg Lehni 2011-03-03 13:16:14 +0000
  • 3a46ac3b54 Allow read() methods to receive an optional length parameter. Jürg Lehni 2011-03-03 13:15:55 +0000
  • ecbd52cdf7 Fix Path.Line() constructor with 4 arguments. Jürg Lehni 2011-03-03 13:10:29 +0000
  • e089e080c2 Make Path#_add() handle both addition and insertion, and use it consequently so segment.path always gets correctly set. Jürg Lehni 2011-03-03 13:10:17 +0000
  • 9a2462d147 No need to explicitely call Point#toString() in Segment#toString(). Jürg Lehni 2011-03-03 13:03:57 +0000
  • d4d6d652ec Rename Path#addSegment() to #_add(), to make sure it's supposed to be a private method. Jürg Lehni 2011-03-03 12:51:47 +0000
  • 53b091b871 Rename #transformContent() to #_transform(), to make sure it's supposed to be a private method. Jürg Lehni 2011-03-03 12:47:55 +0000
  • 1f29f6f104 Improve formating. Jürg Lehni 2011-03-03 12:46:50 +0000
  • b29a87653d Replace % 2 with & 1 (modulo 2). Jürg Lehni 2011-03-03 12:46:31 +0000
  • 231343c6a2 Fix context orientation bug correct proberly, by flipping shear values instead of scale values. Jürg Lehni 2011-03-03 12:34:55 +0000
  • 490ef78b53 Fix error in CompoundPath#closePath(): Forgot to pass 'this' to getCurrentPath(). Jürg Lehni 2011-03-03 12:26:28 +0000
  • 1d37c7b76f Use 'that' variable for private instance method. Jürg Lehni 2011-03-03 12:25:41 +0000
  • 26ebe2f2c0 Refacture CompoundPath to only use injection scope for methods that require getCurrentPath(). Jürg Lehni 2011-03-03 12:23:46 +0000
  • 07fcc000cf Move the new refactored CanvasDraw functionality to static Item.draw() and #draw() instance methods on each prototype. Jürg Lehni 2011-03-03 12:19:43 +0000
  • 54bb4d5527 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-03-03 10:55:39 +0000
  • 964dc462e9 Add comments to Path#strokeBounds and scafolding for #controlBounds too. Jürg Lehni 2011-03-03 10:55:35 +0000
  • acf06937f5 BouncingBalls example: remove line which was committed by accident. Jonathan Puckey 2011-03-03 02:30:55 +0100
  • 83df699975 Update dependencies of examples. Jonathan Puckey 2011-03-03 02:25:45 +0100
  • 136fe67917 Small change to CanvasDraw. Jonathan Puckey 2011-03-03 02:25:09 +0100
  • 8ff04b6614 Unify canvas drawing commands in CanvasDraw.js and rework compositing code. Jonathan Puckey 2011-03-03 02:22:21 +0100
  • 91ec37de9c Add foundations for Path#strokeBounds support. Jürg Lehni 2011-03-02 17:27:20 +0000
  • 620cb2c754 Various clean-ups in Path. Jürg Lehni 2011-03-02 17:23:45 +0000
  • 311ae66a0f Update added Path Bound tests with correct values from Scriptographer. Jürg Lehni 2011-03-02 16:38:14 +0000
  • 42ffdec911 On master: "Curve" Jürg Lehni 2011-03-02 16:22:26 +0000
  • dbbefa9526 index on master: fd4b7b7 Include DocumentView.js in all examples and tests. Jürg Lehni 2011-03-02 16:22:26 +0000
  • fd4b7b76ae Include DocumentView.js in all examples and tests. Jürg Lehni 2011-03-02 16:18:32 +0000
  • 9f8bf39f1f Break long line. Jürg Lehni 2011-03-02 16:17:40 +0000
  • ab9d07501e Simplify code a bit, by chainging variable declarations. Jürg Lehni 2011-03-02 16:08:11 +0000
  • 5d680b1987 Reformat code and add comment about clearRect dimensions. Jürg Lehni 2011-03-02 16:07:44 +0000
  • f9346a3b7a Simplify code by merging setTransform() / transform() call to one. Jürg Lehni 2011-03-02 16:06:06 +0000
  • 8cb3efb28e Simplify calculation of total in getAverageColor(). Jürg Lehni 2011-03-02 08:53:38 +0100
  • 98de3cbb2a Simplify getAverageColor() loop. Jürg Lehni 2011-03-02 08:52:39 +0100
  • 8c96d91400 Fix errors introduced by bad merge. Jürg Lehni 2011-03-02 08:52:13 +0100
  • 3f972be500 Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-02-28 23:27:03 +0100
  • a93156ec45 Break long lines at 80 chars. Jürg Lehni 2011-02-28 20:24:15 +0100
  • caa6e8f88e Add comment about necessity to write more comments (nudge nudge, wink wink). Jürg Lehni 2011-02-28 20:23:03 +0100
  • aca79fc6a9 Simplify and optimise bounds calculations in Raster#transformContent(). Jürg Lehni 2011-02-28 20:22:11 +0100
  • 0305c91e8c Change array format. Jürg Lehni 2011-02-28 20:21:21 +0100
  • d442ab1d71 Replace * 0.5 optimisations with more obvious / 2, as there is no need for such optimisation here. Jürg Lehni 2011-02-28 20:20:44 +0100
  • c3d02bbd16 Add explanatory comments to Raster#transformContent(). Jürg Lehni 2011-02-28 20:17:59 +0100
  • 763fc95776 Fix odd issue of Rasters rotating the wrong way, which seems to be caused by Canvas not using the same Matrix orientation as Paper.js (scaleX (m00) and scaleY (m11) need to be flipped). Jürg Lehni 2011-02-28 20:15:40 +0100
  • 700f4aeb6a Add #set() function to Point, Rectangle and Size (Matrix has it already). Jürg Lehni 2011-02-28 20:14:10 +0100
  • 14b8452bad Fix mistakes in Tool.js Jonathan Puckey 2011-02-28 19:29:32 +0100
  • 1261dc03df Doc: point to the correct performance test url. Jonathan Puckey 2011-02-28 18:41:46 +0100
  • eee5e63a72 BlendMode: support DocumentView and return if an item's bounds is null. Jonathan Puckey 2011-02-28 18:36:06 +0100
  • 0e011dee2a Support DocumentView in Group#draw. Jonathan Puckey 2011-02-28 18:35:12 +0100
  • fe9853852a Implement new Doc(size) constructor, Doc#views / Doc#activeView and support DocumentView in Doc#redraw. Jonathan Puckey 2011-02-28 18:34:39 +0100
  • 285f81f363 Support PlacedSymbol opacity. Jonathan Puckey 2011-02-28 18:31:51 +0100
  • 4fa293ec6d Have Tool convert points from view coordinates to artwork coordinates. Jonathan Puckey 2011-02-28 18:31:03 +0100
  • 74f797a9dd Clean up whitespace. Jonathan Puckey 2011-02-28 18:30:08 +0100
  • 84e31925b6 Implement DocumentView. Jonathan Puckey 2011-02-28 18:28:16 +0100
  • a7429205ed Allow Matrix#applyToContext to optionally reset the matrix transformation. Jonathan Puckey 2011-02-28 18:27:57 +0100
  • 12859d7a24 Item: pass on param object to Item#draw. Jonathan Puckey 2011-02-28 16:41:24 +0100
  • b03ad9b090 Some small changes BezierTool example. Jonathan Puckey 2011-02-27 17:42:30 +0100
  • 196f89d9a7 Examples: Add simple BezierTool example. Jonathan Puckey 2011-02-27 17:16:42 +0100
  • c6d606db0a Path: After calling Path#add(segment), return the added segment. Add todo to Path#insert. Jonathan Puckey 2011-02-27 15:50:41 +0100
  • 9496ac70bd Clean up Path.RegularPolygon constructor. Jonathan Puckey 2011-02-26 19:21:52 +0100
  • eebe7e2731 Implement Path.RegularPolygon constructor and add tests for it. Jonathan Puckey 2011-02-26 19:19:02 +0100
  • f9ccd1d1a5 Tests: add tests for group bounds after rotation. Jonathan Puckey 2011-02-26 18:17:44 +0100
  • 506e7c036c Merge remote-tracking branch 'origin/master' Jürg Lehni 2011-02-26 17:27:12 +0100
  • b1b923ab27 Add comment about problems with Base.clone(). Jürg Lehni 2011-02-26 17:27:07 +0100
  • 6d25dbbd22 Add beginning of path length calculations, work in progress. Jürg Lehni 2011-02-26 17:26:54 +0100
  • 461aa87211 Group: add todo. Jonathan Puckey 2011-02-26 15:55:58 +0100
  • 9e6fd5a7e7 Speed up CanvasProvider. Jonathan Puckey 2011-02-26 15:29:51 +0100
  • 1a6c5c8c6f Doc: Change comment about using canvas.width = canvas.width instead of context.clearRect. Jonathan Puckey 2011-02-26 14:34:01 +0100
  • 8cf2f54d5f Add test to Path_Bounds.js which tests bounds and segments after rotation. Jonathan Puckey 2011-02-26 13:58:00 +0100
  • fd2926bc45 Implement tests for PlacedSymbol, which fail because of lack of Item#strokeBounds and problems with PlacedSymbol#rotate. Jonathan Puckey 2011-02-26 13:48:31 +0100
  • 422b8911b8 Fix PlacedSymbol#transformContent. Jonathan Puckey 2011-02-26 13:14:58 +0100
  • 22bccf3a31 Tool: Fix issue with onMouseMove being called while the user is dragging the mouse. Jonathan Puckey 2011-02-26 13:00:55 +0100
  • 51f4ee718c As in Scriptographer, we don't worry if there wasn't a moveTo before the first lineTo. Jonathan Puckey 2011-02-26 12:44:09 +0100
  • 71bf8dba88 Item: remove logging statement. Jonathan Puckey 2011-02-26 02:04:18 +0100
  • 8828ed7e25 CompoundPath - check for this.blendMode != 'normal'. Jonathan Puckey 2011-02-26 01:02:17 +0100
  • bebc8bc8cc Another attempt at fixing Item#transformContent. The bounds are correctly calculated now, but Item#rotate rotates the items in the wrong direction and rotating by a point doesn't work well. Jonathan Puckey 2011-02-26 00:58:54 +0100
  • f79e6a0454 PlacedSymbol & Raster: fix transformContent and support BlendMode. Jonathan Puckey 2011-02-25 19:38:55 +0100
  • 049504a67a Changed BlendMode library from code ported from Pixastic to code ported from Gavin Kistner's Context Blender Javascript Library. Jonathan Puckey 2011-02-25 18:37:46 +0100
  • c47a18ea58 BlendMode: add todo about using Item#strokeBounds instead of Item#bounds. Jonathan Puckey 2011-02-25 13:57:01 +0100
  • 1c364601b4 Added todo about supporting BlendMode for PlacedSymbols. Jonathan Puckey 2011-02-25 13:28:35 +0100
  • ec0b1dec1d PlacedSymbol: add missing param object to PlacedSymbol#definition#draw call. Jonathan Puckey 2011-02-25 13:13:46 +0100
  • 76e7045785 Merge remote branch 'origin/master' Jonathan Puckey 2011-02-25 12:49:55 +0100
  • c9d04d33f8 Implement BlendMode class. Jonathan Puckey 2011-02-25 12:46:45 +0100