Commit graph

3997 commits

Author SHA1 Message Date
hkrish
92b4e44dad if dmin or dmax does not intersect w/ c-hull reset to a very small value 2013-05-12 17:00:23 +02:00
hkrish
378dcb8461 Do a Curve-Line intersection if the curves are flat enough 2013-05-12 16:42:31 +02:00
hkrish
262331673a Tests for curve-line intersection 2013-05-12 15:59:24 +02:00
hkrish
fed2a73903 Curve - line intersection 2013-05-12 15:12:53 +02:00
hkrish
6064d73379 Avoid unnecessary recursion
Especially when this curve's extended fatline (infinite) intersects
with another curve ouside this curve's bounds.
2013-05-12 03:12:48 +02:00
hkrish
a26a2dbf0c Added getIntersections for Paths and CompoundPaths 2013-05-11 16:15:45 +02:00
hkrish
158001c154 Merge branch 'master' of https://github.com/paperjs/paper.js
* 'master' of https://github.com/paperjs/paper.js:
  Fix: #initialize() to correctly convert #getValue() array back to Curve object.
  Handle allowNull correctly again in SVGImport.
  Simplify SVGImport attribute parsing and correctly handle failing tests with invalid coordinates.
  Further refine Node.js integration.
  Improve the Node version of Base.isPlainObject()
2013-05-11 14:42:56 +02:00
hkrish
96e7e294ea Deleted files 2013-05-11 14:34:09 +02:00
hkrish
9c852ee3db More comments 2013-05-11 14:25:42 +02:00
hkrish
48ab34a116 Minor cleanup. 2013-05-11 14:15:38 +02:00
Jürg Lehni
45ab6c7676 Merge pull request #222 from hkrish/patch-2
Fix: #initialize() to correctly convert #getValue() array back to Curve ...
2013-05-10 20:19:59 -07:00
hkrish
483a43c887 Added more comments 2013-05-11 01:50:34 +02:00
hkrish
b914c60c6f Tests 2013-05-11 00:52:08 +02:00
hkrish
ac05de7426 Fatline clipping working now. Needs more tests! 2013-05-11 00:47:52 +02:00
Harikrishnan Gopalakrishnan
ce600f4ea4 Fix: #initialize() to correctly convert #getValue() array back to Curve object. 2013-05-11 00:59:30 +03:00
hkrish
3e968eacf8 Intersect rewrite in progress.. 2013-05-10 20:46:07 +02:00
Jürg Lehni
2b4dddbb1f Handle allowNull correctly again in SVGImport. 2013-05-09 16:16:48 -07:00
Jürg Lehni
a4e875cf29 Simplify SVGImport attribute parsing and correctly handle failing tests with invalid coordinates. 2013-05-09 16:08:38 -07:00
Jürg Lehni
dd96d67fe1 Further refine Node.js integration. 2013-05-09 16:06:45 -07:00
Jürg Lehni
82b9cb3dbf Improve the Node version of Base.isPlainObject() 2013-05-09 15:30:18 -07:00
hkrish
910740d82d Subdivition: needs complete rewrite 2013-05-09 14:37:16 +02:00
hkrish
fce29e4b75 merge upstream 2013-05-09 14:30:28 +02:00
Jürg Lehni
1e9b3a630c Bump version number. 2013-05-09 02:39:54 -07:00
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