Commit graph

5230 commits

Author SHA1 Message Date
Jürg Lehni
dd99db8d2d Allow 'false' as well as 'off' for hidpi attribute, since that's what's in use for other attributes as well. 2014-09-26 18:03:37 +02:00
Jürg Lehni
762113230a Implement Item#parentToLocal() and #localToParent()
As outlined in #530
2014-09-25 17:53:08 +02:00
Jürg Lehni
3389687c42 Do not check typeof module.exports === 'object', since it will be the Base constructor function after straps.js is included.
Closes #461
2014-09-25 16:46:34 +02:00
Jürg Lehni
5046a6a64c Fix naming of PathIterator#get*At functions. 2014-09-24 12:32:07 +02:00
Jürg Lehni
4adab91a18 Remove unused argument. 2014-09-23 17:51:29 +02:00
Jürg Lehni
48e9447c47 Avoid error when SVG path data does not contain any 'm' commands.
Fixes #529
2014-09-22 17:44:15 +02:00
Jürg Lehni
ee27fe820f Check for valid parameter range in Curve#getLocationAt() and delegate to it in #getLocationOf() 2014-09-20 11:09:09 +02:00
Jürg Lehni
c94fb3038f Use valid parameter range [0,1] in calls to Curve.solveCubic(). 2014-09-20 11:08:20 +02:00
Jürg Lehni
c2465b60fa Transform the correct amount of points in Curve.getValues() when a matrix is provided. 2014-09-20 11:06:25 +02:00
Jürg Lehni
e5995527e8 Support Point argument reading for Style#shadowOffset. 2014-09-19 18:43:00 +02:00
Jürg Lehni
52dd24097f Define PathIterator#getPoint(), #getTangent(), #getNormal() and #getCurvature(). 2014-09-11 16:06:00 +02:00
Jürg Lehni
67d30f0042 Actually use maxRecursion and tolerance arguments in PathIterator, and increase precision in #flatten() a bit. 2014-09-11 15:20:04 +02:00
Jürg Lehni
73765e6654 Produce Path#getPointAt(), #getTangentAt(), #getNormalAt() & #getCurvature() in a loop, just like for Curve. 2014-09-10 11:21:06 +02:00
Jürg Lehni
50c5c6736c Rename PathFlattener to PathIterator and include the class in exports. 2014-09-10 02:20:00 +02:00
Jürg Lehni
1db4fb4064 Refactor PathFlattener code and add maxRecursion and tolerance arguments to constructor. 2014-09-09 18:32:41 +02:00
Jürg Lehni
7d69ef1864 Fix documentation of bean properties that are not read-only.
@bean can only be used when the property is read-only or both getters and setters are present in the scope.
2014-08-26 10:01:30 +02:00
Jürg Lehni
213a13884b Fix pushing of release tags. 2014-08-26 10:00:20 +02:00
Jürg Lehni
73751040b7 Bump version to v0.9.20 2014-08-25 14:48:05 +02:00
Jürg Lehni
99b06b061c Correctly match variables to be exposed at the beginning of PaperScripts. 2014-08-25 14:21:13 +02:00
Jürg Lehni
a95778dc6e Update JSDoc. 2014-08-25 13:23:45 +02:00
Jürg Lehni
8574c1ebf6 Return the created scope from PaperScript.load() 2014-08-25 13:21:58 +02:00
Jürg Lehni
02b91d4829 Improve white-space handling in preprocess.sh script 2014-08-25 13:04:35 +02:00
Jürg Lehni
a564480522 Forgotten in previous commit. 2014-08-25 12:53:13 +02:00
Jürg Lehni
797a393c9a Remove various double white-spaces. 2014-08-25 12:49:14 +02:00
Jürg Lehni
bcc8761f8c Improve PaperScript#load() documentation. 2014-08-25 12:42:44 +02:00
Jürg Lehni
086c3212ba Update JSDoc. 2014-08-25 12:40:54 +02:00
Jürg Lehni
72f16eb1c3 Handle data-paper-ignore like any other Paper attribute, allowing the ignore="true" short-form as well. 2014-08-25 12:34:08 +02:00
Jürg Lehni
93dfd2a15a Remove debugger statement. 2014-08-25 12:24:30 +02:00
Jürg Lehni
c03e9961d2 Allow PaperScript.load(script) to only load specific scripts, and define / improve documentation. 2014-08-25 12:21:27 +02:00
Jürg Lehni
992366246d Ignore hash when comparing PaperScript URLs. 2014-08-25 12:20:58 +02:00
Jürg Lehni
4b19f99183 Improve user agent matching code in PaperScript.
Fixes #511.
2014-08-20 18:54:00 +02:00
Jürg Lehni
88c035eb95 Minor comment change. 2014-08-20 16:54:01 +02:00
Jürg Lehni
6b4f728a72 Bring back support for paper.setup('id') again, and document it properly.
Closes #510.
2014-08-20 16:53:31 +02:00
Jürg Lehni
db1ccd1d1e Restructure includes. 2014-08-20 16:44:36 +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
bdc9ef7d27 Convert spaces back to tabs in the end of build.sh 2014-08-16 19:44:44 +02:00
Jürg Lehni
0e8b3accdd Bring back executable flag for shell scripts. 2014-08-16 19:28:20 +02:00
Jürg Lehni
9da6325f49 Fix wrong __options comments. 2014-08-16 19:27:25 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
687199e95d Fix some whitespaces. 2014-08-16 19:18:36 +02:00
Jürg Lehni
a2b7f9fc11 Remove __options.stats and load Stats library automatically only when in dev mode on the browser. 2014-08-16 19:11:16 +02:00
Jürg Lehni
21c9f97450 Update version handling and comments in options.js 2014-08-16 18:49:35 +02:00
Jürg Lehni
bcd3fe2493 Bump version to v0.9.19 2014-08-16 18:31:53 +02:00
Jürg Lehni
7817bc4b4d Remove debug echo in publish script. 2014-08-16 18:31:16 +02:00
Jürg Lehni
2057a359c7 Change canvas size in SVG Gradient example. 2014-08-16 18:29:39 +02:00
Jürg Lehni
5aa4a8300e Move 'data-paper-scope' attribute handling out of PaperScope into browser related code in PaperScript.
Closes #508
2014-08-16 18:24:45 +02:00
Jürg Lehni
288b8553e7 Support PaperScript code with only one line and no breaks. 2014-08-16 18:22:43 +02:00
Jürg Lehni
15d79bbefb Introduce isRoot argument in SVGExport code as well, to make sure that top-most node holds all the style information.
Relates to #509
2014-08-16 17:32:24 +02:00
Jürg Lehni
4e9fc558ac Prevent double-application of styles when importing #document SVG nodes.
Closes #509.
2014-08-16 17:31:42 +02:00
Jürg Lehni
53b00b40e1 Move isRoot parameter last in SVGImport code. 2014-08-16 17:27:14 +02:00