Commit graph

50 commits

Author SHA1 Message Date
sapics
be4199b6eb Update copyright year to 2019 2018-12-27 16:13:01 +09:00
sapics
cfc5a912da Replace url to avoid redirection
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
Jürg Lehni
4c035ada36 Minor fixes in comments and tests. 2018-10-10 23:03:57 +02:00
Jürg Lehni
6a278c040a Minor clean-ups for the past few PRs 2018-10-03 18:21:26 +02:00
sasensi
c034ebf554 Refactor code to fit style rules 2018-10-02 19:20:12 +02:00
sasensi
cb9fbd7789 Fix #1501 document touchstart/touchmove events are passive by default in chrome and event.preventDefault() calls are ignored 2018-10-02 10:29:39 +02:00
Jürg Lehni
da216aa581 Improve handling of view updates and detection of invisible documents.
Switch to the new HTML5 Page Visibility API.
2016-02-09 09:59:19 +01:00
Jürg Lehni
8fb7c41537 Implement support for web-workers.
Relates to #634, closes #582
2016-02-02 17:30:38 +01:00
Jürg Lehni
c479ec9272 Start with transition to unified version.
Relates to #739
2016-01-26 11:41:49 +01:00
Jürg Lehni
cee3959bfa Improve handling of temporary view focus switch in mousemove.
Closes #841
2016-01-14 11:43:17 +01:00
Jürg Lehni
00a7588a3a Allow any mouse handler to return true in order to enforce browser default.
Relates to #686
2016-01-13 19:04:03 +01:00
Jürg Lehni
0780a87429 Remove unnecessary overrides of selectstart dragstart on view.
And simplify DomEvent.add() / remove(), as we don't need support for multiple types in one entry anymore.
2016-01-13 18:04:54 +01:00
Jürg Lehni
8b0340e6df Have View#_handleEvent() also return true if event is handled.
And use it to call preventDefault() if either tool or view handle events.
2016-01-13 17:53:39 +01:00
Jürg Lehni
8639051081 More work and clean-up on JSHint compliance. 2016-01-09 12:05:42 +01:00
sapics
8077f228e9 Fix errors in jshint 2016-01-09 12:03:42 +09:00
Jürg Lehni
6136bd8143 Fix issue with SVG serialization in newer versions of JSDOM.
And define some meaningful ranges for problematic Node.js modules.

Closes #821
2016-01-07 23:08:01 +01:00
Jürg Lehni
a7a07fb6d5 Update JSDoc and do some documentation spring-cleaning.
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
Russell Vea
c0c8079913 Update to use jsdom v4 (document.defaultView vs. document.parentWindow). 2015-02-26 16:56:26 -10:00
Jürg Lehni
f4a36b7cd4 Remove all Palette and Component related code, as it is separated into its own project.
https://github.com/lehni/palette.js
2014-10-08 17:43:03 +02:00
Jürg Lehni
5456f1a595 Clean up DOM code a bit. 2014-10-05 00:19:47 +02:00
Jürg Lehni
9fec267dd4 Implement table captions through Palette#title / Component#title. 2014-10-05 00:11:29 +02:00
Jürg Lehni
73529f0170 Merge Pane functionality into Component.
Work in progress.
2014-10-04 18:58:11 +02:00
Jürg Lehni
f4c4522c18 Remove references to this in DomElement os we can call method references directly, and always check el for null. 2014-10-02 17:00:40 +02:00
Jürg Lehni
54de02149b Implement 'row' type component, for multiple components per row in palettes. 2014-10-02 16:05:56 +02:00
Jürg Lehni
021ba59c54 Implement Component#visible. 2014-09-30 08:16:26 +02:00
Jürg Lehni
797a393c9a Remove various double white-spaces. 2014-08-25 12:49:14 +02:00
Jürg Lehni
6faf61e6ef Fix incompatibility with jsdom 1.0.0-pre.1
Closes #513
2014-08-20 15:06:13 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
ce4e6053ec Try un-prefixed name before various prefixes, to prevent console warnings. 2014-08-15 18:00:32 +02:00
Jürg Lehni
f002c633a7 Remove trailing white spaces and ensure newlines at the end. 2014-04-06 13:48:03 +02:00
Jürg Lehni
9c552b1739 Implement propper support for pointer events and MSPointer events.
Closes #406 and #336.
2014-03-12 13:22:41 +01:00
Jürg Lehni
e22fa3a664 Update copyright notice. 2014-01-04 01:47:16 +01:00
Jürg Lehni
8395541298 Clean up docs and fix spelling mistakes. 2013-12-29 15:44:26 +01:00
Jürg Lehni
663836ae41 Correctly handle mousemove events when switching between canvases or leaving the document.
Closes #250.
2013-12-08 23:57:46 +01:00
Jürg Lehni
2cfa329fa6 Completely rework event handling on view and tools.
Fixes multiple issues on iOS:
- mousedown events were sometimes fired twice.,
- the presence of mousedown handlers broke scrolling.
Closes #266.
2013-12-06 21:49:44 +01:00
Jürg Lehni
6d5e4329c1 Remove legacy browser code since we're not supporting IE8 and below. 2013-12-04 21:04:46 +01:00
Jürg Lehni
fc02c58ddb Implement asynchronously loading Rasters from disk and remote locations for Node.js
Closes #328.
2013-12-03 23:07:54 +01:00
Jürg Lehni
c797f2f0ad Keep the native animation loop running as long as there are unprocessed callbacks. 2013-11-02 20:26:06 +01:00
Jürg Lehni
a6c175c82c Improve DomEvent.requestAnimationFrame() code to only handle canvases that are actually visible. 2013-11-02 20:10:35 +01:00
Jürg Lehni
d158056899 Optimise DomElement.getPrefixValue() 2013-10-10 16:40:46 +02:00
Jürg Lehni
22e13df102 Implement support for Hi-DPI canvas on Retina screens. 2013-10-10 16:31:24 +02:00
Jürg Lehni
cc29cab671 Fix issue with importing SVG document nodes.
Closes #276.
2013-08-26 16:35:15 -07:00
Amit Halberstam
96b0603b9c correct reference to document in importSVG 2013-06-30 13:23:38 +03:00
Jürg Lehni
4f5dac8567 Improved PrePro to be able to dynamically load Node.js code too, and improve load.js to handle both environments.
Also moved PaperScript .pjs extension code to PaperScript, and DOM related Node.js code to dom/node.js
2013-06-27 13:49:04 -07:00
Jürg Lehni
fa3f91a754 Move PaperScript.get/setAttribute() to PaperScope. 2013-06-24 04:23:34 -07:00
Jürg Lehni
d67ce8a103 Fix syntax. 2013-06-13 09:13:42 -07:00
Jürg Lehni
d87937dc03 Fix issue on IE occuring when nodes are removed from DOM. 2013-06-13 09:08:11 -07:00
Jürg Lehni
cd7db56249 Remove all create() constructors for basic types since new constructors are now faster.
Woop!
2013-05-27 23:57:31 -07:00
Jürg Lehni
0174f7e2e5 Remove debug logging. 2013-05-09 00:26:41 -07:00
Jürg Lehni
ecbde1af14 Rename browser subfolder to dom, since we'll be using it on Node too. 2013-05-09 00:21:58 -07:00