Commit graph

3756 commits

Author SHA1 Message Date
Jürg Lehni
cc82bbb24d Use correct canvas size. 2013-05-09 02:39:19 -07:00
Jürg Lehni
093f4cf7ba Fix issue with SVG transformations not being applied to gradient fills. 2013-05-09 02:37:48 -07:00
Jürg Lehni
04f2f19a43 Minor fix in Matrix#shear() 2013-05-09 02:31:26 -07:00
Jürg Lehni
9e5b47c1ac Implement SVG transform attribute parser, to completely remove dependency on baseVal. 2013-05-09 02:31:10 -07:00
Jürg Lehni
8cc74820a8 Handel issue in node-canvas where color stop offsets cannot be strings. 2013-05-09 01:57:07 -07:00
Jürg Lehni
e2f4eb5a56 Improve Node's Base.isPlainObject() to rule out arrays. 2013-05-09 01:56:47 -07:00
Jürg Lehni
e9fb78aa08 Start removing dependencies on SVG baseVal. 2013-05-09 01:46:13 -07:00
Jürg Lehni
8cd57743c8 Switch to handling SVG tagNames case-insensitively across the whole codebase.
Since Node's jsdom doesn't provide case-sensitive tagNames.
2013-05-09 01:45:38 -07:00
Jürg Lehni
0174f7e2e5 Remove debug logging. 2013-05-09 00:26:41 -07:00
Jürg Lehni
728be483d7 Implement SVGImport example for node, currently failing. 2013-05-09 00:23:11 -07:00
Jürg Lehni
aa757e1d7b Use DOMParser to handle SVG strings. 2013-05-09 00:22:42 -07:00
Jürg Lehni
ee3fa3b00f Implement DOMParser emulation based on jsdom. 2013-05-09 00:22:20 -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
Jürg Lehni
7644016d66 Export paper version in node. 2013-05-08 20:59:54 -07:00
Jürg Lehni
4b303c8392 Remove duplicate keyword and add some more. 2013-05-08 20:54:02 -07:00
Jürg Lehni
2f82c6415a Fix typo. 2013-05-08 20:52:54 -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
6f347c98b3 Fix formatting. 2013-05-08 20:29:37 -07:00
Jürg Lehni
e2ae03d571 Update exportSVG example. 2013-05-08 20:19:49 -07:00
Jürg Lehni
731a873884 Check for radial property as well when predicting gradient color type. 2013-05-08 20:19:40 -07:00
Jürg Lehni
67aacb9552 Implement dontLink parameters for View getters. 2013-05-08 20:19:22 -07:00
Jürg Lehni
3bcb1e3188 Update node dependencies. 2013-05-08 20:18:58 -07:00
Jürg Lehni
3fb22f0380 Implement XMLSerializer for node. 2013-05-08 20:18:46 -07:00
Jürg Lehni
892640172b Fix issue with unshared core prototypes along different node scopes. 2013-05-08 20:18:17 -07:00
Jürg Lehni
b3d7f5aff6 Export view size and set svg attributes in project.exportSVG() 2013-05-08 20:16:53 -07:00
Jürg Lehni
041f3a6c4d jsdom uses uppercase values for nodeName with SVG too. 2013-05-08 18:18:47 -07:00
Jürg Lehni
8dbe1f4927 Fix issues with running paper.js in node.
We need to export the Object and Array definition into new context, to make Base.isPlainObject() work. See http://nodejs.org/api/vm.html#vm_globals
2013-05-08 18:17:23 -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
d3f47c0916 Include node_module folder for paper, with a symlink pointing to itself. 2013-05-08 00:15:01 -07:00
Jürg Lehni
bc090dcf66 Switch from bootstrap.js to the renamed straps.js 2013-05-08 00:13:02 -07:00
Jürg Lehni
fcb697264f Make sure alpha channel is included in serialization of Color.
Fixes #215.
2013-05-07 22:51:23 -07:00
Jürg Lehni
618e19cc96 Add failing test for #215. 2013-05-07 22:48:53 -07:00
Jürg Lehni
0fe431adfb Fix issue in Acorn that breaks Node support. 2013-05-07 22:32:43 -07:00
Jürg Lehni
9cca6d8a00 Move the node.js folder into src. 2013-05-07 22:07:12 -07:00
Jürg Lehni
5f56759537 Update package.json for NPM. 2013-05-07 22:01:55 -07:00
Jürg Lehni
e6f5786261 Update acorn to latest version.
Should hopefully solve issues with node.js
2013-05-07 22:01:36 -07:00
Jürg Lehni
7b8e27ddd9 Further simplify getNearestPoint() algorithm. 2013-05-07 00:07:18 -07:00
Jürg Lehni
f34fe102a4 Use new alias notation for deprecated functions, wherever we can. 2013-05-06 21:01:04 -07:00
Jürg Lehni
8e53829e9c Define Callback#once() 2013-05-06 20:57:08 -07:00
Jürg Lehni
b59a98f7ce Add jQuery style aliases to Callback and use #on() in the examples rather than #attach(). 2013-05-06 20:56:58 -07:00
Jürg Lehni
e7376b0478 Add support for aliases in Bootstrap.js 2013-05-06 20:55:58 -07:00
Jürg Lehni
d70c9b0464 Minor syntax fixes. 2013-05-05 23:19:22 -07:00
Jürg Lehni
3a7547a255 Bring back accidentally removed static functions on Curve. 2013-05-05 23:14:49 -07:00
Jürg Lehni
8d2cfc87ed Fix build script. 2013-05-05 23:07:16 -07:00
Jürg Lehni
db42dfdfc1 Implement simpler strategy to iteratively find nearest points on paths.
Idea based on method described on http://pomax.github.io/bezierinfo/
2013-05-05 23:05:57 -07:00
Jürg Lehni
dbc07207f7 Minor changes to bootstrap.js 2013-05-05 22:39:59 -07:00
Jürg Lehni
fa34ea5e5b Update package.json 2013-05-05 19:34:23 -07:00