Jürg Lehni
0d7fe5e5a0
Clear project before importing new SVG content.
2014-09-27 22:59:45 +02:00
Jürg Lehni
df190b6a47
Rearrange Project code for better doc sequence.
2014-09-27 22:53:37 +02:00
Jürg Lehni
2c9e15b070
Clean up comments.
2014-09-27 22:53:00 +02:00
Jürg Lehni
c87ce4de4c
Implement Item#replaceWith(item)
...
Closes #454
2014-09-27 22:52:37 +02:00
Jürg Lehni
91539e6bc5
Commit changes forgotten in 6450430b68
2014-09-27 22:51:22 +02:00
Jürg Lehni
0eb96898a3
Clean up Item tests.
2014-09-27 22:50:22 +02:00
Jürg Lehni
8414607cee
Define tests for Item#remove()
2014-09-27 22:49:32 +02:00
Jürg Lehni
6450430b68
Implement new strategy regarding Project#activeLayer:
...
- By default, no layer is created for any project.
- Project#activeLayer is a getter for the hidden #_activeLayer property. When it is called and no layer exists, one is created on the fly.
- Creating any other items creates a layer if none exists (was already the case).
2014-09-27 22:31:49 +02:00
Jürg Lehni
ead2e8e49b
Clean up Node.js Raster example.
2014-09-27 22:09:43 +02:00
Jürg Lehni
2dce6c4efa
Some code clean-up in Segment#_changed()
2014-09-27 22:09:25 +02:00
Jürg Lehni
cc8b23894c
Some clean up related to hidden _uncached parameter.
2014-09-27 22:03:54 +02:00
Jürg Lehni
b8530935a7
Streamline CurveLocation#getTangent/Normal/Curvature getter definitions to align with definitions in Curve, Path and PathIterator.
2014-09-27 22:03:20 +02:00
Jürg Lehni
8b4f59962e
Allow better code compression by removing repeated variable access on this.
2014-09-27 22:00:46 +02:00
Jürg Lehni
35a02f3dd8
Switch to different mp3 location due to CORS issues.
2014-09-27 13:10:08 +02:00
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