Commit graph

41 commits

Author SHA1 Message Date
Jürg Lehni
f3e4c185fa Fix code style 2019-06-11 21:24:50 +02:00
Jürg Lehni
6c5f1dc671 Node.js: Clean up image stream handling 2017-10-04 22:39:19 +02:00
Jürg Lehni
74094d27e2 Update Node.js examples to reference paper-jsdom-canvas module. 2017-04-19 20:32:12 +02:00
Jürg Lehni
44789fad88 Remove unnecessary imports. 2016-12-28 23:55:20 +01:00
Jürg Lehni
7cf844886f Add support for relative (local) URLs on Node.js 2016-04-04 23:26:43 -07:00
Jürg Lehni
f4e4e7ab9c Switch to jsdom v8.3.0, now that it includes our node-canvas PR.
See https://github.com/tmpvar/jsdom/pull/1366
2016-04-04 17:55:43 -07:00
Jürg Lehni
c35814f94f Node.js: Fix bug when using paper-core.js
And improve Node.js examples. Closes #975
2016-02-15 23:59:31 +01:00
Jürg Lehni
2025bd1a77 SvgImport: Implement onError() callback
Closes #969
2016-02-14 14:52:37 +01:00
Jürg Lehni
bc2729683c Core: Renamed Symbol and PlacedSymbol classes and properties.
- Symbol -> SymbolDefinition
- PlacedSymbol -> SymbolItem
- Symbol#definition -> SymbolDefinition#item
- PlacedSymbol#symbol -> SymbolItem#definition
- Deprecate Project#symbols

Closes #770
2016-01-31 16:52:51 +01:00
Jürg Lehni
e232ebc443 Examples: Move away from using a symlink to be able to require('paper') from within examples.
- Node 5 / NPM 3 struggles with it
- It never worked on Windows
2016-01-31 12:43:38 +01:00
Jürg Lehni
85d60e199e Get View#exportFrames() to work again on Node.js 2016-01-27 13:27:11 +01:00
Jürg Lehni
414742459d Make sure PDF support actually works. 2016-01-27 12:51:26 +01:00
Jürg Lehni
e722be5b62 Add support for PDF canvas on Node.js again. 2016-01-27 09:34:37 +01:00
Jürg Lehni
d33fff31b8 Always access "global" constructors on window object now. 2016-01-26 20:33:19 +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
6ec34fbb60 Replace Lenna with Marilyn. 2015-05-31 10:50:04 +02:00
Jürg Lehni
ead2e8e49b Clean up Node.js Raster example. 2014-09-27 22:09:43 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
a26d1ed0fc Instead of creating the actual canvas we can also just provide a size. 2013-12-29 16:41:57 +01:00
Jürg Lehni
f97056e4b7 Change the way PaperScripts are executed in Node.js
Requiring a PaperScript returns an initialize method which receives the Canvas argument.
2013-12-29 16:36:23 +01:00
Jürg Lehni
a59a42376a Clean up coding style a bit. 2013-12-16 21:40:40 +01:00
Jürg Lehni
6e5d8939d5 Rename View#draw() -> View#update() and remove checkRedraw argument.
We always check for changes, since change propagation should work reliably.
2013-12-08 19:15:58 +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
c08fd44101 Add Node JSONtoPDF example. 2013-11-29 12:17:59 +01:00
Jürg Lehni
dfc1b966cb Simplify SVG node example. 2013-11-26 17:33:03 +01:00
Jürg Lehni
4738847f30 Clean up SVGExport node example. 2013-10-10 23:12:53 +02:00
Jürg Lehni
ca790f9339 Add simple BooleanOperations Node example, illustrating how to serve results through a HTTP server. 2013-07-18 19:04:04 -07: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
7f251b78e3 Switch to HTML5 meta charset tags. 2013-06-02 13:41:10 -07:00
Jürg Lehni
cc82bbb24d Use correct canvas size. 2013-05-09 02:39:19 -07:00
Jürg Lehni
728be483d7 Implement SVGImport example for node, currently failing. 2013-05-09 00:23:11 -07:00
Jürg Lehni
e5ed88462c Update package.json for new release on NPM. 2013-05-08 20:51:58 -07:00
Jürg Lehni
c5627d141e Fix PaperScript support in node. 2013-05-08 20:38:23 -07:00
Jürg Lehni
6fd93978f8 Do not use PaperScript in node example. 2013-05-08 20:30:13 -07:00
Jürg Lehni
e2ae03d571 Update exportSVG example. 2013-05-08 20:19:49 -07:00
Jürg Lehni
219ccd2fdd Start making exportSVG() work for node, using jsdom. 2013-05-08 01:30:14 -07:00
Jürg Lehni
fc71db458b More work on node.js version. 2013-05-08 01:13:41 -07:00
Jürg Lehni
28642bd1c8 Rename Path.Oval() to Path.Ellipse(), and deprecate Path.Oval(). 2012-11-06 11:37:00 -08:00
Jonathan Puckey
c67b8acd4e Clean up Node.js tadpoles example. 2011-08-20 15:50:25 +02:00
Jonathan Puckey
88ceffcd87 Add Node.js PaperScript Tadpoles example. 2011-08-13 19:11:21 +02:00
Jonathan Puckey
0f7406f7f4 Add Node.js example. 2011-08-10 21:04:01 +02:00