Commit graph

2131 commits

Author SHA1 Message Date
Jürg Lehni
cd2fce9bc7 Clean up documentation. 2011-06-27 12:31:39 +02:00
Jürg Lehni
efa20386b0 Update docs and library. 2011-06-27 12:31:35 +02:00
Jürg Lehni
cbbdec072a Move viewport related code to the end. 2011-06-26 10:16:28 +02:00
Jürg Lehni
f610acedf2 Access other static DomElement methods through 'this'. 2011-06-26 10:15:30 +02:00
Jürg Lehni
f18b5df99d Rename 'Window' in DomElement to 'Viewport', and have getViewportSize return the size of the viewport the passed element is contained in. 2011-06-26 10:14:26 +02:00
Jürg Lehni
d4b6d14f36 Make sure we're removing the right canvas offset from the available viewport size. 2011-06-26 10:06:19 +02:00
Jürg Lehni
6eee8bf62e Rename scroll parameter in DomElement.getOffset() / getBounds() to more meaningful viewport, as it calculates the offset in viewport coordinates, with scrolling removed. 2011-06-26 10:05:41 +02:00
Jürg Lehni
a454bbe187 Remove unneeded parameter from cumulateOffset(). 2011-06-26 10:04:54 +02:00
Jürg Lehni
dd37e22c86 Fix DomElement.getOffset() for fixed positioned elements. 2011-06-26 00:49:19 +02:00
Jürg Lehni
ab524b7642 Define DomElement.getComputedStyle() 2011-06-26 00:48:47 +02:00
Jürg Lehni
fa29686202 Define Base.hyphenate, to hyphenate camelized strings. 2011-06-26 00:47:40 +02:00
Jürg Lehni
d6cf11efce Add #!/bin/sh to all shell scripts. 2011-06-25 22:34:59 +02:00
Jürg Lehni
38768e81d5 Fix titles. 2011-06-25 08:59:45 +01:00
Jürg Lehni
282ad88acd Improve text about testing. 2011-06-25 08:58:44 +01:00
Jürg Lehni
0f8e0f2c81 Add documentation about building, editing and testing code. 2011-06-25 08:53:52 +01:00
Jürg Lehni
6e38d855ac Use public urls as sources in README. 2011-06-24 21:59:43 +01:00
Jürg Lehni
0eac144796 Change submodule source to public url. 2011-06-24 21:59:11 +01:00
Jürg Lehni
3f8a511835 Update titles. 2011-06-24 21:30:23 +01:00
Jürg Lehni
e80b3800b0 Add the tag-line. 2011-06-24 21:29:24 +01:00
Jürg Lehni
5f40fe5eab Add AUTHORS. 2011-06-24 21:28:13 +01:00
Jürg Lehni
9ca1f6dd4e Check in a first version of README.md, largely based on https://github.com/rsms/kod/blob/master/README.md 2011-06-24 21:24:35 +01:00
Jürg Lehni
8c255acdd0 Change location of jsdoc-toolkit submodule to new github account. 2011-06-24 20:38:48 +01:00
Jürg Lehni
ab71329b8c Add scripts for packaging paper.js for distribution. 2011-06-24 20:12:48 +01:00
Jürg Lehni
8d2cee16c5 Flock Example: Rename to Tadpoles. 2011-06-24 19:47:13 +01:00
Jürg Lehni
b910d9ee61 Flock Example: Remove Stats. 2011-06-24 19:46:16 +01:00
Jürg Lehni
3d21a3a8e1 Remove obsolete comment about examples not showing up. 2011-06-23 00:21:54 +01:00
Jürg Lehni
c6105bace2 Fix white spaces in libs. 2011-06-23 00:21:41 +01:00
Jürg Lehni
aa7a4627fa Update JsDoc. 2011-06-23 00:18:26 +01:00
Jürg Lehni
45627ceced Update dist versions of paper.js and docs. 2011-06-23 00:02:40 +01:00
Jürg Lehni
c76779a025 Ignore serverdocs. 2011-06-23 00:01:46 +01:00
Jürg Lehni
4a344c8fad Clean up forgotten @lends statements. 2011-06-22 23:58:50 +01:00
Jürg Lehni
7cd749e63d Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples. 2011-06-22 23:56:05 +01:00
Jürg Lehni
219f288207 Update JsDoc. 2011-06-22 22:39:51 +01:00
Jürg Lehni
a1196c9f74 Change focusing behavior: Try getting the view from the current event target in mousemove event, and temporarily focus views so keyboard events are handled too. 2011-06-22 08:29:53 +01:00
Jürg Lehni
07cfaf8662 Rename DomEvent.getElement() -> getTarget(). 2011-06-22 08:27:51 +01:00
Jürg Lehni
725499dc2e Only change focus if none is set or if the current view is invisible. 2011-06-22 08:10:54 +01:00
Jürg Lehni
8cb6169249 Produce ids for View canvases without one and link to views by id. 2011-06-22 08:10:17 +01:00
Jürg Lehni
b3e1fa68b8 Always stop events when they are handled by our View, removing the need to specifically handle touch events on iOS. 2011-06-22 08:09:22 +01:00
Jürg Lehni
c2244be53b Remove View#viewBounds in favour of #viewSize, and have View always occupy the full canvas. 2011-06-22 07:56:16 +01:00
Jürg Lehni
1d9bad5d01 Define view.updateFocus(), to loop through all scopes and their views and set the focus on the first active one, and call it whenever the browser is scrolled. 2011-06-21 21:49:36 +01:00
Jürg Lehni
8002ede7bd Use DomElement.isVisible() check even if keepalive=true. 2011-06-21 21:48:51 +01:00
Jonathan Puckey
52175da3e9 Improve RoundedRectangles example. 2011-06-21 20:10:23 +02:00
Jonathan Puckey
115d12f6ce Add failing test where cloning a linked size throws an error. 2011-06-21 18:42:53 +02:00
Jonathan Puckey
bda60f1f90 Merge remote branch 'origin/master' 2011-06-21 14:54:53 +02:00
Jonathan Puckey
531e0bb203 Add Space example. 2011-06-21 14:54:29 +02:00
Jürg Lehni
aa202050d2 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/ui/View.js
2011-06-21 01:01:59 +01:00
Jürg Lehni
fc32a6757a Always use View.focused in handlers without caching view locally, as it can be modified elsewhere. 2011-06-21 01:00:37 +01:00
Jonathan Puckey
2c2d636198 Merge remote branch 'origin/master' 2011-06-21 01:52:59 +02:00
Jonathan Puckey
a17dc4171a Fix bug where cloned items that were selected weren't appearing in the Project#selectedItems array. 2011-06-21 01:52:44 +02:00
Jürg Lehni
9ac63831d7 No need to call DomEvent.stop() in these handlers, as selectstart handles it all. 2011-06-21 00:42:39 +01:00