Commit graph

41 commits

Author SHA1 Message Date
Jürg Lehni
b79e32194c Fix issue with SVG tests.
Should really look closer at what's going on there.
2013-03-01 14:17:31 -08:00
Jürg Lehni
c29a7e38a0 Improve SvgImport to support styles that come from CSS style sheet rules. 2013-02-28 19:14:05 -08:00
Jürg Lehni
dc35fdbd02 Move named inner functions out of nested scopes, to prepare for 'use strict;' transition. 2013-02-08 18:23:33 -08:00
Jürg Lehni
6c9c16ad3d Update copyright information comments, and year. 2013-01-28 18:03:27 -08:00
Jürg Lehni
24b5f870bd Change Base.isObject() to also check for instances of plain Base objects, and rename it to Base.isPlainObject(). 2012-12-30 17:30:13 +01:00
Jürg Lehni
81257a28ec Have item actually nested inside table cell. 2012-11-14 21:16:33 -08:00
Jürg Lehni
72d64be5e6 Remove unnecessary window reference. 2012-11-14 12:07:08 -08:00
Jürg Lehni
fbe8095d1b Define missing DomElement.remove(). 2012-11-14 12:06:53 -08:00
Jürg Lehni
926e5d0b3a Clean up code. 2012-11-14 10:02:07 -08:00
Jürg Lehni
9a180b5377 More work on micro DOM library. 2012-11-14 01:31:49 -08:00
Jürg Lehni
a7320cf2e2 Implement new DomElement micro lib, supporting creation of elements, getting and setting of style, content, and events, in an elegant fashion. 2012-11-13 22:58:03 -08:00
Jürg Lehni
b14a294430 Delcare DomElement and DomEvent as private namespaces. 2011-07-31 15:23:26 +01:00
Jürg Lehni
13ae51789f Remove reduntant argument, fixing visibility check. 2011-07-31 14:25:23 +01:00
Jürg Lehni
d84f0d34cf Fix errors in DomElement.getOffset() by using native #getBoundingClientRect() in DomElement.getBounds() and relying on that. Closes #29 2011-07-31 14:13:29 +01:00
bgrins
09e75d9da2 get rid of trailing comma to prevent parser error in IE 2011-07-27 11:09:21 -05:00
Jürg Lehni
d1185c5f8b Implement support for properly validating 'data-paper-NAME' attribute names, along with the current 'NAME'. 2011-07-06 21:19:38 +02:00
Jürg Lehni
79c0ad8cc5 Update copyright notices. 2011-07-01 12:17:45 +02:00
Richard D. Worth
ac39873693 Whitespace. Removed all trailing whitespace from .js files 2011-06-30 06:01:51 -04: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
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
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
07cfaf8662 Rename DomEvent.getElement() -> getTarget(). 2011-06-22 08:27:51 +01:00
Jürg Lehni
8002ede7bd Use DomElement.isVisible() check even if keepalive=true. 2011-06-21 21:48:51 +01:00
Jürg Lehni
8361f513ed Allow the optional overriding of target in DomEvent.getOffset(). 2011-06-21 00:37:26 +01:00
Jürg Lehni
f6fdbd349d Define DomEvent.stop() as a shortcut to stopPropagation() / preventDefault(). 2011-06-21 00:37:03 +01:00
Jürg Lehni
65bfb091e1 Filter out invisible elements in DomElement.isVisible() check. 2011-06-20 22:51:05 +01:00
Jürg Lehni
eec7209a5c Define DomElement.isInvisible(), to check if the given element is not displaying. 2011-06-14 00:20:27 +01:00
Jürg Lehni
1b197741fa Add support for calculation of cumulative positioned offsets and use it to correctly determine visibility and event positions within canvases nested in relative divs. 2011-06-02 20:43:54 +01:00
Jürg Lehni
37e4c654d3 Use Date.now() as all supported browsers have it. 2011-05-14 17:23:17 +01:00
Jürg Lehni
3feb45addc Add keepalive attribute to canvas to tag that controls wether it animates in background in emulated requestAnimationFrame() function, and use it in all example files. 2011-05-14 13:04:02 +03:00
Jürg Lehni
b26caee702 Improve key event handling, work in progress. 2011-05-08 13:43:52 +01:00
Jürg Lehni
926fffee4a Rename Event -> DomEvent and Element -> DomElement, to be more specific and not clash with other classes, e.g. a future base class for ToolEvent and KeyEvent. 2011-05-08 10:16:11 +01:00
Jürg Lehni
4be33a2b3f Update Element bounds, scroll and visibility handling to take nested divs with overflow into account . 2011-05-08 00:54:07 +01:00
Jonathan Puckey
648f0d7db6 Tool & Event: support touch events & call onMouseMove (if present) while dragging when there is no onMouseDrag handler. 2011-05-04 18:49:30 +01:00
Jürg Lehni
4d999d57e2 Replace all type converting string compares with ===, !==. 2011-04-28 13:23:17 +01:00
Jürg Lehni
cf79080682 Move browser related code to browser folder and use conditionals to not include them when producing paper.js for server. 2011-04-28 08:48:28 +01:00