Jürg Lehni
|
846c806034
|
Implement non-scaling strokes through Style#strokeScaling.
Closes #418.
|
2014-05-13 13:38:51 +02:00 |
|
Jürg Lehni
|
4464950301
|
Correctly take Item#matrix into account in #getPathData().
|
2014-05-13 13:21:59 +02:00 |
|
Jürg Lehni
|
e1ed7f3294
|
Prevent drawing selected compound path children twice.
|
2014-05-12 18:57:09 +02:00 |
|
Jürg Lehni
|
397c81e060
|
Switch from options.type to options.class in Item#hitTest(), to reflect recent change in Item#getItems().
|
2014-04-13 16:43:20 +02:00 |
|
Jürg Lehni
|
eea4e533a4
|
Support type: Class filters in hit-testing code too.
|
2014-04-10 22:27:03 +02:00 |
|
Jürg Lehni
|
f953331edb
|
Implement correct selection drawing for CompoundPath.
Closes #402.
|
2014-04-07 11:22:25 +02:00 |
|
Jürg Lehni
|
f002c633a7
|
Remove trailing white spaces and ensure newlines at the end.
|
2014-04-06 13:48:03 +02:00 |
|
Jürg Lehni
|
59da291d54
|
Remove tabs in examples in favor of 4 spaces.
To remove all these annoying JSHint complaints.
|
2014-04-02 21:03:35 +02:00 |
|
Jürg Lehni
|
fa9786b344
|
Switch to new simpler convention for control of beans creation in straps.js
|
2014-04-02 20:53:18 +02:00 |
|
Jürg Lehni
|
4108e9487b
|
Add optional joining behavior to PathItem#closePath() again and use it in #setPathData().
|
2014-03-31 19:33:38 +02:00 |
|
Jürg Lehni
|
833d71f7ea
|
Remove Item#type and replace it with Item#className, the non-hyphenated version of #type.
|
2014-03-18 11:42:38 +01:00 |
|
Jürg Lehni
|
438de7013a
|
Correctly handle groups as clipping masks.
Closes #370.
|
2014-03-17 14:51:47 +01:00 |
|
Jürg Lehni
|
b08cc68ffe
|
Fix newly introduced issue in CompoundPath#moveTo() / #lineTo()
|
2014-03-04 09:48:41 +01:00 |
|
Jürg Lehni
|
30b11e5968
|
Better handle Path#moveTo() / #closePath() edge cases in SVG data.
Relates to issue #413
|
2014-03-03 17:27:47 +01:00 |
|
Jürg Lehni
|
3d2b53789c
|
Move _getMonoCurves() definitions to PathItem.Boolean.js
|
2014-02-20 20:00:46 +01:00 |
|
Jürg Lehni
|
56bf87ce84
|
Rename _getMonotoneCurves() to _getMonoCurves()
Shorter is better...
|
2014-02-20 00:24:09 +01:00 |
|
Jürg Lehni
|
e6b7e9b2eb
|
Remove unused Curve#_getWinding() and commented out CompoundPath#_getWinding() code.
|
2014-02-19 23:51:21 +01:00 |
|
Jürg Lehni
|
1a0eead28c
|
Various code and comment clean-ups in new bool-op code.
|
2014-02-19 23:18:14 +01:00 |
|
hkrish
|
87ded4dcff
|
Merge master
|
2014-02-15 00:02:02 +01:00 |
|
Jürg Lehni
|
6cb25fafe3
|
Use changes in latest Straps.js to remove as many hidden parameters as possible.
Hidden parameters through arguments[] are bad news for JS optimizer engines.
|
2014-01-05 17:40:54 +01:00 |
|
Jürg Lehni
|
ea63d4c288
|
Merge branch 'refs/heads/master' into v8-optimizations
Conflicts:
src/core/Base.js
src/style/Color.js
|
2014-01-05 05:01:13 +01:00 |
|
Jürg Lehni
|
e22fa3a664
|
Update copyright notice.
|
2014-01-04 01:47:16 +01:00 |
|
hkrish
|
0134596f66
|
_getMonotoneCurves method which returns and caches curves that are monotonic in Y direction
|
2013-12-25 20:38:48 +01:00 |
|
hkrish
|
70070c14d2
|
Avoid creating proxy array objects
|
2013-12-24 19:00:33 +01:00 |
|
Jürg Lehni
|
3dbad9c477
|
Replace delete in favor of setting to undefined to prevent V8 deoptimization.
|
2013-12-17 23:27:48 +01:00 |
|
Jürg Lehni
|
afe00add32
|
Implement option.type filtering in #hitTest() functions.
|
2013-12-08 16:32:42 +01:00 |
|
Jürg Lehni
|
a50adb1020
|
Implement constructors for Path and CompoundPath that can handle SVG-style path-data.
|
2013-12-06 18:09:44 +01:00 |
|
Jürg Lehni
|
92590b160c
|
Implement Canvas Path caching again using Context#currentPath.
|
2013-12-06 12:49:46 +01:00 |
|
Jürg Lehni
|
593e0d8d7f
|
Remove Base.merge() and use a new Straps.js feature instead.
A more clever Base() constructor that allows merging.
|
2013-11-28 22:20:00 +01:00 |
|
Jürg Lehni
|
1049214126
|
Remove ctx.currentPath caching again, since it has the current affine transformation factored in and is thus useless to us.
|
2013-11-06 12:53:10 +01:00 |
|
Jürg Lehni
|
5630b7e415
|
Implement caching of drawn Canvas Path objects for better performance.
Already supported on recent Chrome and Safari.
|
2013-11-04 11:46:20 +01:00 |
|
Jürg Lehni
|
0ded3ae0ba
|
Implement PathItem#cubicCurveBy() and #quadraticCurveBy()
Closes #284.
|
2013-10-30 01:43:55 +01:00 |
|
Jürg Lehni
|
eecf68b7c3
|
Clear ctx.shadowColor after ctx.fill() to avoid application to both fill and stroke.
Closes #314.
|
2013-10-30 00:00:04 +01:00 |
|
Jürg Lehni
|
c43752dc3e
|
Use #hasFill() and #hasStroke() more broadly and avoid drawing strokes when strokeWidth is set to 0.
|
2013-10-29 20:05:39 +01:00 |
|
Jürg Lehni
|
fc9cad009f
|
Implement CompoundPath#_getWindings() and move #_contains() code for both Path and CompoundPath to PathItem.
|
2013-10-29 17:57:25 +01:00 |
|
Jürg Lehni
|
cc201655af
|
Fix comment.
|
2013-10-20 01:54:53 +02:00 |
|
Jürg Lehni
|
e6ef5e7e17
|
Fix hit-test for compound paths again.
|
2013-10-20 01:54:20 +02:00 |
|
Jürg Lehni
|
1fc9f882ca
|
Fix a minor bug in CompoundPath#contains(), improve comments and clean up code.
|
2013-10-18 19:49:05 +02:00 |
|
Jürg Lehni
|
304ecbc3be
|
Define compoundChildren hitTest option to get matching children instead of parent.
|
2013-10-18 15:40:41 +02:00 |
|
Jürg Lehni
|
5d0fd8f970
|
Implement Style#windingRule and use it in Path#contains().
|
2013-10-18 14:54:13 +02:00 |
|
Jürg Lehni
|
4f27be8f12
|
Include new, improved point in path algorithm based on winding number.
It's also possible to switch to using the canvas's native isPointInPath() through options.nativeContains
|
2013-10-18 14:22:59 +02:00 |
|
Jürg Lehni
|
b581c84d8b
|
Move CompoundPath#reduce() to Item#reduce().
|
2013-10-16 16:10:28 +02:00 |
|
Jürg Lehni
|
6b19f25f4b
|
Fix typos in comments.
|
2013-08-08 15:21:35 -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
|
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
|
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
|
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
|
20f7c567aa
|
Use Base objects for drawing params, so we can use param.extend() on them for easier overriding.
|
2013-06-11 20:40:44 -07:00 |
|
Jürg Lehni
|
375156059d
|
Do not use pathData in JSON for CompoundPaths.
|
2013-06-11 15:27:04 -07:00 |
|
Jürg Lehni
|
9b0d32651f
|
Move main Item insertion code from #insertChild() to #insertChildren().
Handles insertion and change notification much more efficiently.
|
2013-05-27 20:06:30 -07:00 |
|