Jürg Lehni
|
06ca80573a
|
Allow chaining of all Matrix calls without returns.
|
2011-03-05 21:04:01 +00:00 |
|
Jürg Lehni
|
7fa53a2db3
|
Allow chaining of Size setters.
|
2011-03-05 20:59:06 +00:00 |
|
Jürg Lehni
|
9f67f32701
|
Allow chaining of Point setters.
|
2011-03-05 20:58:46 +00:00 |
|
Jürg Lehni
|
a4c67a1bc1
|
Allow changing of Rectangle setters.
|
2011-03-05 20:57:45 +00:00 |
|
Jürg Lehni
|
79d5a46cab
|
Make it clear it's an empty loop.
|
2011-03-05 14:26:52 +00:00 |
|
Jürg Lehni
|
06e870f69c
|
Improve some comments.
|
2011-03-05 14:26:16 +00:00 |
|
Jürg Lehni
|
cfb7d195c0
|
Use the new statics: true setting for Base injection, and fix Array.prototype.slice issue in Base.read().
|
2011-03-05 14:23:42 +00:00 |
|
Jürg Lehni
|
3f0a45a7c2
|
Allow Rasters to be created directly from id strings.
|
2011-03-05 14:17:32 +00:00 |
|
Jürg Lehni
|
8e25a951bc
|
Move Base.capitalize() and Base.read() out of Bootstrap core into Paper.js, so normal Bootstrap libs can work with it too.
|
2011-03-05 14:17:17 +00:00 |
|
Jürg Lehni
|
352b3f0d40
|
More work on Bootstrap core, move Base.isArray back to Array.isArray.
|
2011-03-05 13:53:18 +00:00 |
|
Jürg Lehni
|
cc134de058
|
Remove trailing collon.
|
2011-03-05 13:51:23 +00:00 |
|
Jürg Lehni
|
836ee492ae
|
More beans related refactoring.
|
2011-03-05 02:40:38 +00:00 |
|
Jürg Lehni
|
b06bf88aed
|
More beans clean-up in Rectangle.
|
2011-03-05 01:59:15 +00:00 |
|
Jürg Lehni
|
e87e7b2582
|
Move get/setContext to get/setCanvas.
|
2011-03-05 01:59:01 +00:00 |
|
Jürg Lehni
|
a365bf45a4
|
Apply the same optimisation from previous commit to Layer.
|
2011-03-05 01:53:32 +00:00 |
|
Jürg Lehni
|
02bf012aa5
|
Simplify #appendTop / Bottom and #moveAbove / Bellow by using generator functions.
|
2011-03-05 01:50:56 +00:00 |
|
Jürg Lehni
|
083a9864f0
|
Use Matrix#transformBounds() in DocumentView#getBounds().
|
2011-03-05 01:42:24 +00:00 |
|
Jürg Lehni
|
4908ba5edf
|
Expand shortened name.
|
2011-03-05 01:37:02 +00:00 |
|
Jürg Lehni
|
ce74516228
|
Remove more beans access, this time related to various PathStyle getters / setters.
|
2011-03-05 01:36:27 +00:00 |
|
Jürg Lehni
|
c313e702c9
|
Clean up a whole lot of beans access, and in the process of the refactoring improve canvas, context, size and bounds handling in Raster and PlacedSymbol.
|
2011-03-05 01:26:12 +00:00 |
|
Jürg Lehni
|
b1027dbb38
|
Use better variable name.
|
2011-03-05 00:24:32 +00:00 |
|
Jürg Lehni
|
1d858147ec
|
Stop using style beans internally.
|
2011-03-05 00:23:16 +00:00 |
|
Jürg Lehni
|
1d866ecb6c
|
Clean up internal properties and beans in Color related classes.
|
2011-03-05 00:16:26 +00:00 |
|
Jürg Lehni
|
44ab8ed3a0
|
Refer to currentStyle through getters and setters, not through beans.
|
2011-03-05 00:03:28 +00:00 |
|
Jürg Lehni
|
4db061a048
|
Make sure Point is not using any beans internally.
|
2011-03-05 00:03:11 +00:00 |
|
Jürg Lehni
|
815e35fda6
|
Fix Segment#toString().
|
2011-03-04 23:55:49 +00:00 |
|
Jürg Lehni
|
342c5911c1
|
Add Events.getOffset(), to return coordinates relative to the target element's position.
|
2011-03-04 23:46:16 +00:00 |
|
Jürg Lehni
|
8d5024523c
|
Add Path#first/lastSegment.
|
2011-03-04 23:33:37 +00:00 |
|
Jürg Lehni
|
298dc912f3
|
Convert Tool to using new Events object instead of realing on full Bootstrap.
|
2011-03-04 23:32:46 +00:00 |
|
Jürg Lehni
|
ef1da14c0e
|
Use Events object to install 'load' event in PaperScript.
|
2011-03-04 23:32:11 +00:00 |
|
Jürg Lehni
|
b85235e1cb
|
Add Events object as a helper for installing and removing events.
|
2011-03-04 23:31:51 +00:00 |
|
Jürg Lehni
|
c25db2377f
|
Clean up Bootstrap core further and move Base.capitalize there.
|
2011-03-04 22:14:23 +00:00 |
|
Jürg Lehni
|
996af95ba3
|
Inline Bootstrap core into paper scope.
|
2011-03-04 22:03:43 +00:00 |
|
Jürg Lehni
|
7355c2d4a7
|
Switch to using Base.isArray.
|
2011-03-04 21:47:00 +00:00 |
|
Jürg Lehni
|
aa4892c0d8
|
Apply same optimisations from DOM methods in Item / Layer to Segment too.
|
2011-03-04 21:34:31 +00:00 |
|
Jürg Lehni
|
be6d60102c
|
Make sure Item#children is always checked for != null and simplify many of the DOM methods.
|
2011-03-04 21:34:14 +00:00 |
|
Jürg Lehni
|
e66dd46b9c
|
Start improving Item#clone() / #copyTo().
|
2011-03-04 20:57:16 +00:00 |
|
Jürg Lehni
|
f3663c04fe
|
Compress code using Base.each side-car.
|
2011-03-04 20:55:11 +00:00 |
|
Jürg Lehni
|
1bd0127ece
|
Remove dependency from full Bootstrap.
|
2011-03-04 20:54:57 +00:00 |
|
Jürg Lehni
|
93c3920505
|
Add definition of Base.capitalize() and remove dependencies of String#capitalize().
|
2011-03-04 19:46:41 +00:00 |
|
Jürg Lehni
|
702899b382
|
Fix a bug in #getFixedDistance() where equals was used on numbers (Java port left-over).
|
2011-03-04 19:16:25 +00:00 |
|
Jonathan Puckey
|
acb6e850a0
|
Use toCssString() in Color#getCanvasStyle.
|
2011-03-04 18:14:24 +01:00 |
|
Jürg Lehni
|
fb547a758f
|
Merge remote-tracking branch 'origin/master'
|
2011-03-04 16:55:01 +00:00 |
|
Jonathan Puckey
|
ff5ee13ba0
|
Fix Color#getCanvasStyle.
|
2011-03-04 17:54:36 +01:00 |
|
Jürg Lehni
|
66f5fcc847
|
Merge paper.js and build.js, to make sure the global paper object exists also when including seperate files during development and when running tests.
|
2011-03-04 16:52:17 +00:00 |
|
Jonathan Puckey
|
d54c30b9be
|
Avoid using beans in Rectangle.js
|
2011-03-04 16:18:42 +01:00 |
|
Jürg Lehni
|
92bf51a7cc
|
Simplify the way the paper namespace is created and populated.
|
2011-03-04 13:34:31 +00:00 |
|
Jürg Lehni
|
c6d79f964c
|
Generalise all read() functions in Base.read(), fix an issue in by making sure arguments passed to initialie are never larger than length, and have Color's initialize create an RGBColor, to still be able to use Color.read().
|
2011-03-04 13:19:07 +00:00 |
|
Jonathan Puckey
|
3837ca1f14
|
Have Path#setSegments convert elements in the passed array to segments.
|
2011-03-04 13:02:11 +01:00 |
|
Jonathan Puckey
|
c00f85c9e5
|
Merge remote branch 'origin/master'
|
2011-03-04 12:21:06 +01:00 |
|
Jonathan Puckey
|
81c5e0e4c8
|
Fix ToolHandler#getFixedDistance.
|
2011-03-04 12:20:53 +01:00 |
|
Jürg Lehni
|
6d00c723d9
|
Rename $operator() to more meaningful $eval().
|
2011-03-04 11:15:04 +00:00 |
|
Jürg Lehni
|
11672d104f
|
Align #include to the left.
|
2011-03-04 01:25:28 +00:00 |
|
Jürg Lehni
|
6f0f0cbd6b
|
Fix comments.
|
2011-03-04 01:23:47 +00:00 |
|
Jürg Lehni
|
7462a58903
|
Change missleading variable name.
|
2011-03-04 01:22:08 +00:00 |
|
Jürg Lehni
|
5a640b50f8
|
No need to export handleOperator() and handleSignOperator(), just use local privates.
|
2011-03-04 01:20:29 +00:00 |
|
Jürg Lehni
|
17aee283ec
|
Change sequence of handleOperator arguments for better readable resulting code.
|
2011-03-04 01:16:09 +00:00 |
|
Jürg Lehni
|
453da21bab
|
Test code for tool handlers and only create tool if they are present.
|
2011-03-04 01:13:21 +00:00 |
|
Jürg Lehni
|
c86eaf5684
|
Use nice formatting in produced code.
|
2011-03-04 01:09:22 +00:00 |
|
Jürg Lehni
|
be0d260cb4
|
Add support for Tool scripts in PaperScript.
|
2011-03-04 01:05:23 +00:00 |
|
Jürg Lehni
|
b80ba6fc86
|
Add support for canvas attribute in paperscript tags.
|
2011-03-04 00:58:10 +00:00 |
|
Jürg Lehni
|
6619447aa1
|
Convert ToolEvent type constants to Sg-style hyphenated lowercase strings.
|
2011-03-03 23:06:53 +00:00 |
|
Jürg Lehni
|
52ab361ed5
|
Include minified version of parse-js (25kb) inside PaperScript object.
|
2011-03-03 22:55:18 +00:00 |
|
Jürg Lehni
|
2b6dede883
|
Clean up white-spaces and line lengths.
|
2011-03-03 22:45:17 +00:00 |
|
Jürg Lehni
|
15a7b7e245
|
Add operator overloading through JS AST parsing and mangling to PaperScript.
|
2011-03-03 22:19:12 +00:00 |
|
Jürg Lehni
|
3324b083b7
|
Always execute PaperScripts on load, not on domready, as we want assets to be present as well.
|
2011-03-03 18:53:06 +00:00 |
|
Jürg Lehni
|
0b3c57ff88
|
Let paper be an instance of Base, and use its #extend() function to create scopes that inherit from paper but do not directly modify it.
|
2011-03-03 18:35:37 +00:00 |
|
Jürg Lehni
|
2c78a0a08b
|
Add beginning of support for <script type="text/paperscript">, inspired by Coffee Script.
|
2011-03-03 18:31:56 +00:00 |
|
Jürg Lehni
|
08970abd6d
|
Let paper.install() override existing values...
|
2011-03-03 18:31:18 +00:00 |
|
Jürg Lehni
|
cbe29fd02b
|
Rename Color#getCssString() to #toCssString(), to go with #toString().
|
2011-03-03 17:36:53 +00:00 |
|
Jürg Lehni
|
2f63a65ded
|
Clean up code.
|
2011-03-03 17:35:59 +00:00 |
|
Jürg Lehni
|
46a0589547
|
Use Error constructor correctly.
|
2011-03-03 17:29:40 +00:00 |
|
Jürg Lehni
|
484d74160b
|
Set private properties directly in initialize(), no need to call setters.
|
2011-03-03 17:27:56 +00:00 |
|
Jürg Lehni
|
0efc23b25c
|
Remove 2nd redundant definition of Gradient#getStops().
|
2011-03-03 17:26:30 +00:00 |
|
Jürg Lehni
|
7e52355f93
|
Rename Doc -> Document since paper code is namespaced now and does not clash with global Document prototype.
|
2011-03-03 17:23:27 +00:00 |
|
Jürg Lehni
|
fe1a01ecb6
|
Move paper.populate() functionality back to build.js.
|
2011-03-03 17:11:14 +00:00 |
|
Jürg Lehni
|
9a9cb91f72
|
Use the faster Point/Size.create() constructors across the basic classes for higher performance.
|
2011-03-03 17:07:12 +00:00 |
|
Jürg Lehni
|
dca26949ff
|
Add Size.create(), in analogy to Point.create().
|
2011-03-03 17:06:35 +00:00 |
|
Jürg Lehni
|
5508e6eab6
|
Change scoped compilation of paper so that only a populated paper object is returned to the global scope, but nothing is installed yet.
|
2011-03-03 16:57:29 +00:00 |
|
Jürg Lehni
|
59dc0ae6d0
|
Make sure paper.* objects are only installed in the passed object if there is not already something under the same name.
|
2011-03-03 16:38:04 +00:00 |
|
Jürg Lehni
|
e9881c02fc
|
Merge remote-tracking branch 'origin/master'
|
2011-03-03 16:33:01 +00:00 |
|
Jürg Lehni
|
5ed30d7089
|
Make sure all files end on empty line.
|
2011-03-03 16:32:55 +00:00 |
|
Jürg Lehni
|
dc75e14c59
|
Make sure utility objects stay in paper scope.
|
2011-03-03 16:32:39 +00:00 |
|
Jürg Lehni
|
aed8b0a6bc
|
Add utility objects to build.
|
2011-03-03 16:32:15 +00:00 |
|
Jürg Lehni
|
d088dc629e
|
Rename Paper to paper, implement it as an object literal and add paper.populate() and paper.install() methods that do the bootstraping.
|
2011-03-03 16:21:17 +00:00 |
|
Jonathan Puckey
|
00bf9aa88c
|
Fall back to Item#bounds if the Item doesn't have Item#strokeBounds in Item#draw.
|
2011-03-03 17:05:12 +01:00 |
|
Jürg Lehni
|
6923e168ab
|
Scope the compilation of the whole library and inject produced classes into global scope for now, add options later.
|
2011-03-03 14:09:20 +00:00 |
|
Jürg Lehni
|
80a5e4513e
|
Add preprocessor and build scripts for production of single file Paper.js version, based on previous work for Bootstrap.
|
2011-03-03 13:45:21 +00:00 |
|
Jonathan Puckey
|
2f9531810c
|
Implement todos about using strokeBounds instead of bounds.
|
2011-03-03 14:43:37 +01:00 |
|
Jürg Lehni
|
941c3c7346
|
Declare all classes as local variables, so they can be scoped.
|
2011-03-03 13:33:41 +00:00 |
|
Jürg Lehni
|
c84df5a346
|
Use Segment.read() correctly in Path#initialize().
|
2011-03-03 13:16:14 +00:00 |
|
Jürg Lehni
|
3a46ac3b54
|
Allow read() methods to receive an optional length parameter.
|
2011-03-03 13:15:55 +00:00 |
|
Jürg Lehni
|
ecbd52cdf7
|
Fix Path.Line() constructor with 4 arguments.
|
2011-03-03 13:10:29 +00:00 |
|
Jürg Lehni
|
e089e080c2
|
Make Path#_add() handle both addition and insertion, and use it consequently so segment.path always gets correctly set.
|
2011-03-03 13:10:17 +00:00 |
|
Jürg Lehni
|
9a2462d147
|
No need to explicitely call Point#toString() in Segment#toString().
|
2011-03-03 13:03:57 +00:00 |
|
Jürg Lehni
|
d4d6d652ec
|
Rename Path#addSegment() to #_add(), to make sure it's supposed to be a private method.
|
2011-03-03 12:51:47 +00:00 |
|
Jürg Lehni
|
53b091b871
|
Rename #transformContent() to #_transform(), to make sure it's supposed to be a private method.
|
2011-03-03 12:47:55 +00:00 |
|
Jürg Lehni
|
1f29f6f104
|
Improve formating.
|
2011-03-03 12:46:50 +00:00 |
|
Jürg Lehni
|
b29a87653d
|
Replace % 2 with & 1 (modulo 2).
|
2011-03-03 12:46:31 +00:00 |
|
Jürg Lehni
|
231343c6a2
|
Fix context orientation bug correct proberly, by flipping shear values instead of scale values.
|
2011-03-03 12:34:55 +00:00 |
|