hkrish
|
4f54ac1f4c
|
Boolean -fix: Correctly perform boolean operations regardless of the input paths' winding direction
|
2013-09-17 19:50:13 +02:00 |
|
hkrish
|
669fb1638a
|
Boolean -fix: Preserve the order of intersections found (Curve-Line) according to the PathItem they belong to.
|
2013-09-13 02:44:51 +02:00 |
|
Jürg Lehni
|
5a45260740
|
Docs: Fix shadow example.
|
2013-09-12 15:30:07 -07:00 |
|
hkrish
|
abe0e5e059
|
Boolean -fix: CurveLocation now keeps track of the correct segment at intersections
|
2013-09-13 00:08:43 +02:00 |
|
Jürg Lehni
|
cc29cab671
|
Fix issue with importing SVG document nodes.
Closes #276.
|
2013-08-26 16:35:15 -07:00 |
|
Jürg Lehni
|
19c7788617
|
Fix documentation irregularities.
|
2013-08-23 19:45:28 -07:00 |
|
Jürg Lehni
|
cd74aaf5a3
|
Remove caching of inverse transform.
View#matrix can be directly modified, and we don't have change tracking on matrices yet.
|
2013-08-23 19:29:28 -07:00 |
|
Jürg Lehni
|
19f50be897
|
No need to pass false for allowNull as it's the default.
|
2013-08-16 19:20:35 -07:00 |
|
Jürg Lehni
|
40f2547e5f
|
Correctly detect image size on all browsers.
Closes #268.
|
2013-08-15 11:32:47 -07:00 |
|
Jürg Lehni
|
cb6833176c
|
Use named module AMD syntax for defining paper.
Closes #261.
|
2013-08-14 14:26:23 -07:00 |
|
Jürg Lehni
|
590c89840c
|
Merge Raster#setImage() and #setCanvas().
|
2013-08-14 12:29:56 -07:00 |
|
Jürg Lehni
|
cc565b3fe2
|
Rename Raster#getSubImage() to #getSubCanvas(), and use insert: false combined with #insertAbove() to correctly insert newly created rasters.
|
2013-08-14 12:21:47 -07:00 |
|
Jürg Lehni
|
5981ddf89f
|
Implement Raster#getSubRaster() and document both #getSubImage() and #getSubRaster().
|
2013-08-14 12:14:28 -07:00 |
|
Jürg Lehni
|
1a1c2674fd
|
Take Item#matrix into account when drawing gradients.
Closes #267.
|
2013-08-14 11:27:04 -07:00 |
|
Jürg Lehni
|
720dd1b35d
|
Do not apply operator overloading in situations where UpdateExpressions happen inside other contexts that would cause a change of behavior, e.g. array[i++], or if (i++ < 1).
Closes #260.
|
2013-08-09 10:58:29 -07:00 |
|
Jürg Lehni
|
1120b6012c
|
Merge pull request #262 from huochunpeng/fix_typo_in_matrix
fix typo "Concatentates".
|
2013-08-08 17:24:40 -07:00 |
|
Jürg Lehni
|
46f6261d38
|
Merge pull request #265 from duckmaestro/master
Fix to #263: _children undefined inside call to myShape.isEmpty().
|
2013-08-08 17:24:10 -07:00 |
|
Jürg Lehni
|
6b19f25f4b
|
Fix typos in comments.
|
2013-08-08 15:21:35 -07:00 |
|
Clifford Champion
|
2d3200c8d7
|
Fix to #263: _children undefined inside call to myShape.isEmpty().
|
2013-07-27 23:47:49 -07:00 |
|
Chunpeng Huo
|
4904a1df1f
|
fix typo "Concatentates".
|
2013-07-26 15:22:37 +10:00 |
|
Jürg Lehni
|
5e8ec2066b
|
Clean up comment.
|
2013-07-21 16:52:18 -07:00 |
|
Jürg Lehni
|
16735e23af
|
Simplify code for #insertAbove/Below(), by introducing a private helper.
Making overriding in Layer simpler.
|
2013-07-21 16:41:45 -07:00 |
|
Jürg Lehni
|
5e210c583a
|
Switch to returning items instead of booleans in #insertAbove/Below() and adjust documentation accordingly.
|
2013-07-21 16:29:13 -07:00 |
|
Jürg Lehni
|
edfb3a51ab
|
Improve documentation of insertion methods.
|
2013-07-21 16:26:16 -07:00 |
|
Jürg Lehni
|
e68563af53
|
Have #insertAbove/Below() return a boolean.
|
2013-07-21 16:26:03 -07:00 |
|
Jürg Lehni
|
e0809d26f2
|
Merge code for Item#insertAbove() / #insertBelow() and fix issue with wrong indices.
The previous code was faulty when item was not already in the children list.
|
2013-07-21 16:22:16 -07:00 |
|
Jürg Lehni
|
949752556b
|
Fix avoiding of name clashes in cloning.
|
2013-07-21 15:54:03 -07:00 |
|
Jürg Lehni
|
aa4d990c90
|
Move and unify handling of Item#_set(props) to new Item#_initialize(), and add support for props.insert = false.
|
2013-07-21 15:45:22 -07:00 |
|
Jürg Lehni
|
5e2654b490
|
Allow Item#_changed() to function before #_project is set.
|
2013-07-21 15:44:18 -07:00 |
|
Jürg Lehni
|
86a8f85874
|
Allow Base#_set() to exclude properties.
|
2013-07-21 15:43:20 -07:00 |
|
Jürg Lehni
|
93c90d0cd8
|
Do not insert boolean operation clones into DOM.
|
2013-07-19 18:46:28 -07:00 |
|
Jürg Lehni
|
6af59f7adf
|
Filter out the insert parameter in _set for now, to prevent issues with cloning().
Work in progress.
|
2013-07-19 18:45:59 -07:00 |
|
Jürg Lehni
|
b7aea1e527
|
Use insert: false option in creation of all clones.
Still needs implementing in Item constructor.
|
2013-07-19 18:42:13 -07:00 |
|
Jürg Lehni
|
20a17f2939
|
Implement insert parameter in Item#clone() to control DOM insertion.
Defaults to true. Also insert in the right place now, above the original.
|
2013-07-19 18:27:00 -07:00 |
|
Jürg Lehni
|
588abe7189
|
Only test for fill in Item#_hitTest() if options.fill is set.
|
2013-07-19 17:55:31 -07:00 |
|
Jürg Lehni
|
f466473bfb
|
Add support for shadows.
Closes #36.
|
2013-07-19 17:48:29 -07:00 |
|
Jürg Lehni
|
ec121ca04c
|
Separate requesting and handling of animation frames.
Closes #176.
|
2013-07-19 17:33:32 -07:00 |
|
Jürg Lehni
|
cd40bd2c9d
|
Fix faulty comment about _handleFrameItems.
|
2013-07-19 15:49:51 -07:00 |
|
Jürg Lehni
|
3224876e6f
|
Use fire('frame') instead of onFrame(), to correctly handle frame events on Node.
|
2013-07-19 15:49:16 -07:00 |
|
Jürg Lehni
|
ec4f194b84
|
Avoid use of 'window' for Node, and pass on reference to root scope instead.
|
2013-07-19 15:48:50 -07:00 |
|
Jürg Lehni
|
94c192495a
|
Add support for canvas compositing modes to Item#blendMode.
Closes #159.
|
2013-07-19 15:23:16 -07:00 |
|
Jürg Lehni
|
175091a69f
|
Allow combinations of blendMode and opacity.
Closes #259.
|
2013-07-19 11:46:13 -07:00 |
|
Jürg Lehni
|
47768779b7
|
Fix blurriness in Item#rasterize().
Closes #258.
|
2013-07-18 20:06:22 -07:00 |
|
Jürg Lehni
|
6e1c89234d
|
Define PaperScope#activate()
Closes #256.
|
2013-07-18 19:21:57 -07:00 |
|
Jürg Lehni
|
098f3e84cc
|
Include Acorn / Esprima only into local PaperScript scope, and locally deactivate AMD.
Closes #255.
|
2013-07-18 09:49:30 -07:00 |
|
Jürg Lehni
|
85d7237c0f
|
Avoid endless recursion in ToolEvent#middlePoint.
Closes #257.
|
2013-07-17 16:01:36 -07:00 |
|
Jürg Lehni
|
ef4eee1064
|
Pass true for isParameter in Curve#divide() calls.
Closes #252.
|
2013-07-04 19:39:55 -07:00 |
|
Jürg Lehni
|
b874a642ab
|
Merge pull request #251 from amithalb/master
Fix importSVG
|
2013-07-04 11:23:06 -07:00 |
|
Jürg Lehni
|
affb44e0dd
|
Prevent double execution of onLoad event on Raster.
|
2013-07-03 19:02:29 -07:00 |
|
Jürg Lehni
|
e87307af41
|
Fix issue with Image.onLoad() events.
naturalWidth/Height seems unreliable.
|
2013-07-03 18:49:05 -07:00 |
|
Jürg Lehni
|
f68f1ad518
|
Docs: Fix some faulty object parameters.
|
2013-07-02 12:22:45 -07:00 |
|
Jürg Lehni
|
8ee52d2983
|
Export legacy Color constructors.
|
2013-07-01 06:50:20 -07:00 |
|
Amit Halberstam
|
96b0603b9c
|
correct reference to document in importSVG
|
2013-06-30 13:23:38 +03:00 |
|
Jürg Lehni
|
d369984196
|
Allow math operands larger than 1 when multiplying and dividing colors.
|
2013-06-28 07:59:33 -07:00 |
|
Jürg Lehni
|
e8765d18d5
|
Make argument reading more flexible by introducing options object for readNull and clone, and passing it on to the constructor through this.__options for additional values.
|
2013-06-28 07:37:03 -07:00 |
|
Jürg Lehni
|
2c578d0558
|
Start implementing math operators for Color.
|
2013-06-28 07:19:53 -07:00 |
|
Jürg Lehni
|
22df17c192
|
Docs: Minor cleanups.
|
2013-06-28 06:41:36 -07:00 |
|
Jürg Lehni
|
b588f3234c
|
Docs: Improve documentation for Color constructors.
|
2013-06-28 06:41:21 -07:00 |
|
Jürg Lehni
|
16ff78a8ba
|
Import Base into PaperScript scope.
|
2013-06-28 06:39:00 -07:00 |
|
Jürg Lehni
|
8f254202e8
|
Use new @operator tag to mark math operator methods.
|
2013-06-28 05:59:07 -07:00 |
|
Jürg Lehni
|
5b574877e9
|
Make PaperScript math operator methods 'hidden' and use aliases to visible methods.
Avoids Path#add() being misinterpreted as an operator, and console.log(path + ' hi'); causing weird issues.
|
2013-06-28 05:15:49 -07:00 |
|
Jürg Lehni
|
5e7209a7bb
|
Clean up math function injection in Point and Size.
|
2013-06-28 04:58:57 -07:00 |
|
Jürg Lehni
|
6833e9d8e0
|
Fix {@default 0.5} values in documentation.
|
2013-06-27 18:15:10 -07:00 |
|
Jürg Lehni
|
fdfb7abe58
|
Update exportSVG() documentation.
|
2013-06-27 18:14:51 -07:00 |
|
Jürg Lehni
|
8e153beb36
|
Implement exportSVG() options parameter.
Supporting asString and precision so far.
|
2013-06-27 18:14:35 -07:00 |
|
Jürg Lehni
|
09f04a597f
|
Write documentation for Shape constructors.
|
2013-06-27 18:04:02 -07:00 |
|
Jürg Lehni
|
41746d2d25
|
Docs: Write documentation for #import/export JSON/SVG, for both Item and Project.
|
2013-06-27 18:03:49 -07:00 |
|
Jürg Lehni
|
e63edba0b5
|
Clean up various documentations a bit.
|
2013-06-27 18:03:03 -07:00 |
|
Jürg Lehni
|
7ade053dea
|
Move Path.Circle constructor above Path.Rectangle.
|
2013-06-27 17:54:00 -07:00 |
|
Jürg Lehni
|
0bf19d02bd
|
Add asString parameter to exportSVG() methods.
|
2013-06-27 17:43:24 -07:00 |
|
Jürg Lehni
|
f9925a71ea
|
Improve documentation for Path#split(), Curve#divide() and Curve#split().
Closes #189.
|
2013-06-27 17:18:57 -07:00 |
|
Jürg Lehni
|
9f5b543ab5
|
Fix getCurveAt() signature.
|
2013-06-27 17:13:00 -07:00 |
|
Jürg Lehni
|
38db18c2e1
|
Remove isParameter from Curve.evaluate()
|
2013-06-27 17:12:35 -07:00 |
|
Jürg Lehni
|
c123468d7a
|
Clean up Path#join() code.
|
2013-06-27 16:06:24 -07:00 |
|
Jürg Lehni
|
0c9914285f
|
Return Raster#size as a LinkedSize.
|
2013-06-27 16:06:11 -07:00 |
|
Jürg Lehni
|
9311b38894
|
Define Shape#size and #radius.
|
2013-06-27 16:05:44 -07:00 |
|
Jürg Lehni
|
2b236a3da8
|
In Path#join, add first segment of second path again at the end after joining, if it was closed.
Closes #249.
|
2013-06-27 15:43:26 -07:00 |
|
Jürg Lehni
|
fdfdf96357
|
Make load.sh work for Node.js too
|
2013-06-27 14:41:25 -07:00 |
|
Jürg Lehni
|
899ec1d360
|
Make built version of paper.js for node work and work towards using that in NPM.
|
2013-06-27 14:31:03 -07:00 |
|
Jürg Lehni
|
5245a30930
|
Improve PaperScript extension code for Node.js
|
2013-06-27 13:52:30 -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
|
94ce1f1312
|
Fix include statements.
They're not to be indented.
|
2013-06-27 04:46:20 -07:00 |
|
Jürg Lehni
|
77c27f8a36
|
Switch to using dependencies as bower components.
|
2013-06-27 04:21:06 -07:00 |
|
Jürg Lehni
|
f572ad9c0a
|
Improve handling of Stats.
Don't bail out if the library is not loaded.
|
2013-06-27 04:11:50 -07:00 |
|
Jürg Lehni
|
37f0c7dcd6
|
Add missing Key class to exports.
|
2013-06-27 03:58:14 -07:00 |
|
Jürg Lehni
|
214db84b84
|
Improve src/load.js to directly load the library through PrePro's load.js
|
2013-06-26 19:14:54 -07:00 |
|
Jürg Lehni
|
4e173a7d35
|
Switch to the NPM version of PrePro's load.js
|
2013-06-26 18:57:46 -07:00 |
|
Jürg Lehni
|
a908556956
|
Fix blend mode detection syntax.
|
2013-06-26 15:05:43 -07:00 |
|
Jürg Lehni
|
1126c699d2
|
Improve tests for native blend modes.
Each mode needs to be tested separately, since some browsers implement only a subset (WebKit).
|
2013-06-26 14:59:07 -07:00 |
|
Jürg Lehni
|
b8d773e129
|
Rename blendMode parameter to mode.
|
2013-06-26 14:37:41 -07:00 |
|
Jürg Lehni
|
6d38401f0c
|
Use faster direct Curve constructor instead of Base.create().
|
2013-06-25 09:58:18 -07:00 |
|
Jürg Lehni
|
9c5416360c
|
Use direct constructor instead of #initialize().
|
2013-06-25 09:56:34 -07:00 |
|
Jürg Lehni
|
52c889428b
|
Remove Curve.create() in favor of direct constructor.
|
2013-06-25 09:54:13 -07:00 |
|
Jürg Lehni
|
772c83596f
|
Replace Base.create() calls in favor of faster direct constructors.
|
2013-06-25 09:50:14 -07:00 |
|
Jürg Lehni
|
7e24de7c74
|
Replace SegmentPoint.create() in favor of normal constructor.
|
2013-06-25 09:48:51 -07:00 |
|
Jürg Lehni
|
3d5ae373a8
|
Remove static create() methods from LinkedPoint/Size/Rectangle, and give them initialize() methods instead that also name the classes in debugging.
|
2013-06-25 09:41:55 -07:00 |
|
Jürg Lehni
|
c6e50375df
|
Expose nativeBlendModes and amend BlendModes example with information about the use of native modes.
|
2013-06-24 15:55:15 -07:00 |
|
Jürg Lehni
|
1866e4ff15
|
Remove need for all special arguments in minification, and restructure code to avoid warnings.
|
2013-06-24 10:15:54 -07:00 |
|
Jürg Lehni
|
7975232ee7
|
Remove workaround for obscure WebKit bug.
It wasn't fully working either. Solution:
https://bugs.webkit.org/show_bug.cgi?id=109961
|
2013-06-24 09:37:25 -07:00 |
|
Jürg Lehni
|
b989892c24
|
Update copyright note about straps.js
|
2013-06-24 09:12:45 -07:00 |
|
Jürg Lehni
|
78a3e87ca1
|
Prevent separate View file in docs.
|
2013-06-24 09:10:26 -07:00 |
|
Jürg Lehni
|
f56794bad4
|
Remove global variable leakage.
|
2013-06-24 04:52:13 -07:00 |
|
Jürg Lehni
|
e6bed426d7
|
Make inclusion of PaperScript optional and build a core version of the library without it.
|
2013-06-24 04:49:45 -07:00 |
|
Jürg Lehni
|
eef736f3d8
|
Move define() statement to export.js and remove define hack in PaperScript.
|
2013-06-24 04:40:35 -07:00 |
|
Jürg Lehni
|
4b53d558f1
|
Refactor PaperScript code so it can be moved outside of main paper scope.
Allowing for better minifaction and the potential use of strict mode due to absence of with() statements inside the main paper scope.
|
2013-06-24 04:40:07 -07:00 |
|
Jürg Lehni
|
fa3f91a754
|
Move PaperScript.get/setAttribute() to PaperScope.
|
2013-06-24 04:23:34 -07:00 |
|
Jürg Lehni
|
75c1225d4f
|
Prevent overriding exported classes by inheriting classes with same _class value.
|
2013-06-24 04:22:43 -07:00 |
|
Jürg Lehni
|
a4535edbb9
|
Bring back _class names, since code minification breaks reliance on constructor.name.
Closes #248.
|
2013-06-23 20:18:32 -07:00 |
|
Jürg Lehni
|
dff39dff78
|
Use local bounds for hit-testing.
Fixes issue #247.
|
2013-06-23 19:49:36 -07:00 |
|
Jürg Lehni
|
9f7167a47f
|
Clean up Item#hitTest() code.
|
2013-06-23 19:01:48 -07:00 |
|
Jürg Lehni
|
58f697abfc
|
Fix hit-testing for guides.
|
2013-06-23 19:01:36 -07:00 |
|
Jürg Lehni
|
76426c4cb3
|
Take #visible state into account when hit-testing.
Closes #243.
|
2013-06-23 17:55:14 -07:00 |
|
Jürg Lehni
|
1e81176cf1
|
Merge branch 'master' of github.com:paperjs/paper.js
|
2013-06-23 17:22:30 -07:00 |
|
Jürg Lehni
|
4b62949318
|
Fix tests for #246.
This is actually the right behavior: Setting length to negative values should flip around defined vectors.
|
2013-06-23 17:22:13 -07:00 |
|
Chris Barmonde
|
68626ca62b
|
Fix project.clear() so it removes all layers properly.
|
2013-06-20 20:14:47 -06:00 |
|
Jürg Lehni
|
ca0513b1b2
|
Fix namespace for images in SVGExport.
|
2013-06-19 08:22:20 -07:00 |
|
Jürg Lehni
|
719b9d5e24
|
Move logic that determines if item can be directly composited into separate per-item #_canComposite() method.
|
2013-06-19 08:22:08 -07:00 |
|
Jürg Lehni
|
258c404b98
|
Move curvature calculations into Curve.evaluate(), and define unit tests for it.
|
2013-06-18 19:00:05 -07:00 |
|
Jürg Lehni
|
619a8f88f8
|
Clean up code a bit in Curve#getCurvatureAt().
|
2013-06-18 18:29:44 -07:00 |
|
Jürg Lehni
|
3d78e3729d
|
Fix issue with PaperScript and array[i++] expressions.
|
2013-06-18 18:18:39 -07:00 |
|
Jürg Lehni
|
4bda878f5f
|
Fix accidental code removal.
|
2013-06-18 17:35:49 -07:00 |
|
Jürg Lehni
|
2241329321
|
Fix id clash in SVGExport.
|
2013-06-18 17:29:00 -07:00 |
|
Jürg Lehni
|
742ae16de1
|
Add support for SVG mix-blend-mode attribute.
Browsers have yet to support it though.
|
2013-06-18 17:19:31 -07:00 |
|
Jürg Lehni
|
278a9771ba
|
Minor clean-ups.
|
2013-06-18 17:02:02 -07:00 |
|
Jürg Lehni
|
785381b148
|
No need to set default color anymore due to detection of CSS style changes on any level.
|
2013-06-18 16:59:47 -07:00 |
|
Jürg Lehni
|
30c96dc9c1
|
Remove access to _style since we're using getters / setters on items directly now for SVGStyles.
|
2013-06-18 16:58:28 -07:00 |
|
Jürg Lehni
|
6e91d2ac9b
|
Rearrange exporter sequence.
|
2013-06-18 16:57:09 -07:00 |
|
Jürg Lehni
|
7c1e10e35e
|
Move Item#opacity support to SVGStyles.
|
2013-06-18 16:54:48 -07:00 |
|
Jürg Lehni
|
938433c51f
|
Move Style#font support to SVGStyles.
|
2013-06-18 16:49:58 -07:00 |
|
Jürg Lehni
|
ad034fbb56
|
Allow for better minification.
|
2013-06-18 16:18:13 -07:00 |
|
Jürg Lehni
|
f48ef4d1a0
|
Move more styles to SVGStyles and make them work on export too.
SVGExport now supports text justification.
|
2013-06-18 16:14:47 -07:00 |
|
Jürg Lehni
|
b532390d9c
|
Remove Clip class again.
Group can handle that.
|
2013-06-18 15:58:58 -07:00 |
|
Jürg Lehni
|
177229f99f
|
Define Group#transformContent as a boolean to control #applyMatrix() behavior.
And use it for SVG Import.
|
2013-06-18 15:57:30 -07:00 |
|
Jürg Lehni
|
f758fb306b
|
Rename #_applyMatrix to #_transformContent.
And swap names with private function...
|
2013-06-18 15:50:11 -07:00 |
|
Jürg Lehni
|
d7d6da0af8
|
Pass right value for dontNotify.
|
2013-06-18 15:47:14 -07:00 |
|
Jürg Lehni
|
691b2f8094
|
Fix issues with SVG Import and matrices on groups.
|
2013-06-18 15:46:49 -07:00 |
|
Jürg Lehni
|
f433423789
|
Respect _applyMatrix setting when calling #applyMatrix() in Group#_changed.
Required for Clip to work correctly.
|
2013-06-18 15:39:46 -07:00 |
|
Jürg Lehni
|
9633384122
|
Fix issue with colliding id ranges in SVG Export.
|
2013-06-18 15:01:18 -07:00 |
|
Jürg Lehni
|
db49718015
|
No need for white-space in CSS color format.
|
2013-06-18 14:33:50 -07:00 |
|
Jürg Lehni
|
75acdf1025
|
Add support for direct drawing of native blendModes for items that allow it.
Bypassing compositing into separate canvases completely.
|
2013-06-18 14:18:57 -07:00 |
|
Jürg Lehni
|
ad6124cf98
|
Take strokeWidth into account in Item#hasStroke()
|
2013-06-18 14:08:48 -07:00 |
|
Jürg Lehni
|
f4f97cda88
|
Fix a bug with wrong offsets when rendering nested clips and blend-modes.
And streamline blend-mode and opacity rendering code.
|
2013-06-18 12:35:57 -07:00 |
|
Jürg Lehni
|
414ac1d092
|
Fix offset in direct blitting of nested Clip items.
|
2013-06-18 12:20:21 -07:00 |
|
Jürg Lehni
|
a2cc7e11b3
|
Clean up blend-mode code a bit.
|
2013-06-18 11:26:58 -07:00 |
|
Jürg Lehni
|
deebd15f05
|
Improve comments.
|
2013-06-18 11:19:56 -07:00 |
|
Jürg Lehni
|
c48ab03050
|
Add support for native blend-modes.
Already works on Firefox 21.0 and will soon land on other major browsers!
|
2013-06-18 11:17:15 -07:00 |
|
Jürg Lehni
|
8cf09c08d9
|
Merge branch 'master' of github.com:paperjs/paper.js
|
2013-06-18 08:02:22 -07:00 |
|
Jürg Lehni
|
b133d8fe2e
|
Restructure BlendMode code, fix issues with color-dodge and color-burn, and create BlendModes.html example.
All modes should be implemented according to specs now.
|
2013-06-18 08:02:04 -07:00 |
|
Jürg Lehni
|
1b42822c2d
|
Remove trailing comma.
|
2013-06-17 16:35:28 -07:00 |
|
Jürg Lehni
|
f350f34eb4
|
Apply clipping fix not only to blend modes but any operation that draws into a separate canvas.
|
2013-06-17 16:22:23 -07:00 |
|
Jürg Lehni
|
ab2bfe2d40
|
Rename nativeDash to dash.
|
2013-06-17 15:52:16 -07:00 |
|
Jürg Lehni
|
a51745447b
|
Restructure CanvasProvider code and call save() and restore() upon retrieval / release.
|
2013-06-17 15:24:57 -07:00 |
|
Jürg Lehni
|
d98a9f40cb
|
Correctly fix Line#length documentation.
|
2013-06-17 15:16:48 -07:00 |
|
hkrish
|
d4d2075040
|
Fix: Use absolute coordinates from #Curve.getValues() directly while calculating the curvature
|
2013-06-17 22:27:20 +05:30 |
|
Jürg Lehni
|
8a726f22b2
|
Clean up comments.
|
2013-06-17 08:57:30 -07:00 |
|
Jürg Lehni
|
b072df0486
|
Put isEnd value directly into conditional.
|
2013-06-17 08:56:42 -07:00 |
|
Jürg Lehni
|
ccd0bf8f6b
|
Simply delegate to Point#getLength() as we already have it.
|
2013-06-17 08:28:37 -07:00 |
|
Jürg Lehni
|
9463f0078a
|
Fix documentation since Line#vector will be documented as a simple accessor.
|
2013-06-17 08:28:02 -07:00 |
|
Jürg Lehni
|
18ad8a235d
|
Clean up code to follow Paper.js coding conventions.
|
2013-06-17 08:26:51 -07:00 |
|
Jürg Lehni
|
be6bbb802d
|
Move calculations of values to where they are needed.
|
2013-06-17 08:22:28 -07:00 |
|
Jürg Lehni
|
5ff990a84a
|
Fix global variable leakage, and join sequential variable definitions.
|
2013-06-17 08:10:57 -07:00 |
|
hkrish
|
2693516844
|
Implement correct method for calculating curvature on a Path
|
2013-06-17 15:16:11 +05:30 |
|
Jürg Lehni
|
f8367bb0dd
|
More clean-ups.
|
2013-06-15 05:24:34 -07:00 |
|
Jürg Lehni
|
79785afa2a
|
Minor clean-ups and optimizations of stroke hit-test code.
|
2013-06-15 05:21:17 -07:00 |
|
Jürg Lehni
|
8c09d19f7c
|
Fix wrong calculation of rough bounds for square caps.
And add some comments to stroke hit-testing code.
|
2013-06-15 05:15:48 -07:00 |
|
Jürg Lehni
|
26971672b2
|
Only check segments for miters that are within the limit.
|
2013-06-15 05:08:12 -07:00 |
|
Jürg Lehni
|
be1098e006
|
Further improve stroke hit-testing.
Properly detect all miter joins.
|
2013-06-15 05:06:09 -07:00 |
|
Jürg Lehni
|
d318057897
|
Implement Segment#getLocation()
|
2013-06-15 05:05:10 -07:00 |
|
Jürg Lehni
|
1cab9aad90
|
Improve stroke hit-testing.
|
2013-06-15 03:12:57 -07:00 |
|
Jürg Lehni
|
eb32bad57e
|
Fix imprecision in #getNearestLocation()
|
2013-06-15 03:12:29 -07:00 |
|
Jürg Lehni
|
38f832a888
|
Remove console.log()
|
2013-06-15 02:25:44 -07:00 |
|
Jürg Lehni
|
8b9fb3741d
|
Implement proper stroke hit-testing for all variations of joins and caps.
|
2013-06-15 02:24:59 -07:00 |
|
Jürg Lehni
|
e4ba0d80b6
|
Simple code improvement in #isClockwise().
|
2013-06-14 23:18:29 -07:00 |
|
Jürg Lehni
|
4ffcdc3971
|
Clean up code.
|
2013-06-14 23:13:54 -07:00 |
|
Jürg Lehni
|
1ae7832ab3
|
Move calculation of square joins and caps to static methods.
These will be of use when correctly implementing hit-testing of strokes.
|
2013-06-14 23:11:50 -07:00 |
|
Jürg Lehni
|
ca0e931498
|
Clean up and simplify getStrokeBounds() code.
Handling of bevel and miter joins can be merged nicely.
|
2013-06-14 22:57:14 -07:00 |
|
Jürg Lehni
|
1dee05900f
|
Move getArea code to other statics block.
|
2013-06-13 23:16:44 -07:00 |
|
Jürg Lehni
|
610e396d94
|
Make Curve#_getCrossings() a static method and have it work on curve values directly.
|
2013-06-13 23:16:00 -07:00 |
|
Jürg Lehni
|
d6db007765
|
Fix documentation warning.
|
2013-06-13 15:57:12 -07:00 |
|
Jürg Lehni
|
01e48b3322
|
Improve and clean up fat-line bug fix.
|
2013-06-13 15:53:28 -07:00 |
|
Jürg Lehni
|
38f31be6b2
|
Clean up and simplify Path#_hitTest() code.
|
2013-06-13 14:30:52 -07:00 |
|
Jürg Lehni
|
ae474131cc
|
Implement stroke hittesting for Shape.Rectangle.
|
2013-06-13 10:40:54 -07:00 |
|
Jürg Lehni
|
48fa889e0d
|
Start implementing proper hit-testing for Shapes with strokes.
Support for Shape.Rectangle is still missing.
|
2013-06-13 10:31:21 -07:00 |
|
Jürg Lehni
|
40dbe7ec74
|
Fix drawing of Shape.Ellipse items.
|
2013-06-13 10:30:54 -07:00 |
|
Jürg Lehni
|
d67ce8a103
|
Fix syntax.
|
2013-06-13 09:13:42 -07:00 |
|
Jürg Lehni
|
d87937dc03
|
Fix issue on IE occuring when nodes are removed from DOM.
|
2013-06-13 09:08:11 -07:00 |
|
Jürg Lehni
|
7f6ac3d8af
|
Changing HIERARCHY also changes GEOMETRY.
Fixes #237.
|
2013-06-13 08:47:45 -07:00 |
|
Jürg Lehni
|
5250281ab1
|
Fully support object literal arguments in Shape constructors.
|
2013-06-12 20:13:39 -07:00 |
|
Jürg Lehni
|
95ecab8a6f
|
Improve handling of merged CompoundPath style through #getStyle().
Only access _style directly in core code if you really know what you're doing!
|
2013-06-12 20:12:08 -07:00 |
|
Jürg Lehni
|
33eb750586
|
Simplify Path#hasFill() and implement #hasStroke() as well.
|
2013-06-12 19:57:05 -07:00 |
|
Jürg Lehni
|
fe10c99d1b
|
Implement standard behavior of #_hitTest() for items without children, based on #_contains().
This should cover the minimum of what's needed for PointText.
|
2013-06-12 19:30:23 -07:00 |
|
Jürg Lehni
|
463a00bd1e
|
Fix negative bounds height on PointText.
|
2013-06-12 19:21:46 -07:00 |
|
Jürg Lehni
|
2196ef2a74
|
Streamline various #equals() methods.
|
2013-06-12 18:57:12 -07:00 |
|
Jürg Lehni
|
4a8469b740
|
Define Base.isPlainValue() and use it to implement more flexible #equals() for Color and Rectangle.
|
2013-06-12 18:55:14 -07:00 |
|
Jürg Lehni
|
294bfc9c9a
|
Improve IE Function#name fix and move it to straps.js, since constructor.name is used there too.
Cache result and improve RegExp.
|
2013-06-12 18:36:18 -07:00 |
|
Jürg Lehni
|
6fe60cff9d
|
Fix trailing comas.
|
2013-06-12 17:42:38 -07:00 |
|
Jürg Lehni
|
34ad9045cc
|
Fix wrong default fillColor on TextItems.
|
2013-06-12 17:30:35 -07:00 |
|
Jürg Lehni
|
cb0dcf1719
|
Fix accidental global leakage.
|
2013-06-12 17:27:20 -07:00 |
|
Jürg Lehni
|
d1932124d7
|
Implement #equals() in Point, Size and Rectangle without argument reading.
Closes #235
|
2013-06-12 15:28:29 -07:00 |
|
Jürg Lehni
|
1394c36907
|
Find an elegant way to implement all variations of Rectangle(object) constructors.
|
2013-06-12 15:08:22 -07:00 |
|