Commit graph

495 commits

Author SHA1 Message Date
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
95e39bcf30 Set a strokeColor, as the default seems to be invisible? 2011-03-05 00:02:46 +00:00
Jürg Lehni
3e4c49cb44 Make sure Events.js gets loaded in all examples. 2011-03-05 00:02:25 +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
20f3460222 Update BezierTool to work wtihout full Bootstrap. 2011-03-04 23:33:48 +00:00
Jürg Lehni
8d5024523c Add Path#first/lastSegment. 2011-03-04 23:33:37 +00:00
Jürg Lehni
551b28e27c Update tool scripts to load Events object. 2011-03-04 23:33:16 +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
7b237ceedc Further clean-up Bootstrap code. 2011-03-04 22:22:22 +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
84790780e3 Change Bootstrap core so no standard prototypes are modified, not even Function.prototype. 2011-03-04 22:02:40 +00:00
Jürg Lehni
7355c2d4a7 Switch to using Base.isArray. 2011-03-04 21:47:00 +00:00
Jürg Lehni
8a61599c7d More work on Bootstrap core. 2011-03-04 21:46:50 +00:00
Jürg Lehni
9bd8950e33 Make sure Base object is scoped locally. 2011-03-04 21:38:42 +00:00
Jürg Lehni
630c3431d8 Commit hand-crafted Bootstrap core, changes that need to be backported to the full Bootstrap later. 2011-03-04 21:37:58 +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
Jürg Lehni
101cb11973 Change Base.read to not return an object if only null is provided. 2011-03-04 19:06:05 +00:00
Jonathan Puckey
acb6e850a0 Use toCssString() in Color#getCanvasStyle. 2011-03-04 18:14:24 +01:00
Jürg Lehni
bbf19840d3 Fix Base.read() to support alternative objcets returned by initialize(). 2011-03-04 17:01:15 +00: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
bb5bfe1fb1 Examples: change mouse handlers to PaperScript. 2011-03-04 12:44:02 +01:00
Jonathan Puckey
e1a6c4f3d0 Update examples to PaperScript. 2011-03-04 12:38:38 +01:00