Wouter Commandeur
cb5bb66628
adjust scaling when dealing with padding
2013-06-13 17:41:07 +02:00
Wouter Commandeur
34e00e862c
missing semicolon fixed
2013-06-13 17:00:31 +02:00
Wouter Commandeur
10e878fb62
mouse coordinates had to be adjusted for padding, now scaling works with padding as well
2013-06-13 16:52:21 +02:00
Wouter Commandeur
f4e4715905
remove commented out code
2013-06-12 21:23:15 +02:00
Wouter Commandeur
ecedb34d23
fix behaviour to be the same as the original
2013-06-12 21:21:34 +02:00
Wouter Commandeur
0ad759c428
fix flickering when flipping using the corner scaling controls
2013-06-12 19:24:30 +02:00
Wouter Commandeur
3809d19024
fix indentation
2013-06-11 11:03:05 +02:00
Wouter Commandeur
6dec0d24e0
fix flipping of objects using the corner controls
2013-06-11 10:07:35 +02:00
Wouter Commandeur
b55bfd5326
fix scaling with large strokeWidth, this fixes #687
2013-06-09 21:28:08 +02:00
kangax
51b7c09314
Move Cufon methods to text.cufon. Move drawControls to Canvas (from StaticCanvas). Move dataURL-exporting methods to dataurl_exporter mixin.
2013-06-06 12:31:32 +02:00
Kienz
a6eab8d4e2
Fix wrong canvas offset
...
- Copy inline style attributes from lowerCanvasEl to upperCanvasEl
- Copy classes from lowerCanvasEl to upperCanvasEl
- Add borderTopWidth, borderLeftWidth, paddingTopWidth and paddingLeftWidth (offsetAttributes) to canvas offset (fabric.util.getElementOffset) - these properties are not considered from getBoundingClientRect()
- JSfiddle's for tests - new: http://jsfiddle.net/Kienz/KRcsY/ , old: http://jsfiddle.net/Kienz/xrMDr/
2013-05-25 17:32:42 +02:00
Kienz
6e612facc6
Fix isContainedWithinRect and isContainedWithinObject, Add fabric.Object.containsPoint
2013-05-09 19:41:04 +02:00
kangax
70cf7a6963
Tweak docs
2013-05-09 12:14:30 -04:00
kangax
f5b88b4045
Make fabric.Canvas#isTargetTransparent public. Closes #595
2013-05-01 09:58:39 -04:00
kangax
d755d64c76
Remove unnecessary renderAll calls. Thanks @Kienz. Closes #587
2013-04-26 21:49:13 -04:00
kangax
c16dcf88a4
Change inline docs to conform to jsdoc3
2013-04-24 12:58:04 -04:00
Stefan Kienzle
53c8b074c2
findTarget now retuns unselectable objects
2013-04-18 17:51:53 +03:00
Stefan Kienzle
854d0db56c
Clear selection for unselectable object
...
Now objects are found even they are unselectable - expand _shouldClearSelection for unselectable objects.
Don't call findTarget() - new in parameter target.
2013-04-18 17:50:02 +03:00
kangax
26c2590066
Group fixes. Closes #504 . Closes #505
2013-03-30 01:36:15 +01:00
kangax
d24d6307e5
[BACK_INCOMPAT] fabric.Object.setActive(…) -> fabric.Object.set('active', …). fabric.Object.isActive is gone (use active instead)
2013-03-29 16:26:27 +01:00
Kienz
292178474d
fabric.Object#visible bugfixes and improvements
...
Bugfixes if perPixelTargetFind = false => object are found if they are invisible with mouse hover.
Only consider visible objects in findTarget (improvement).
2013-03-20 19:17:39 +01:00
kangax
b55c35f865
Merge master
2013-02-06 23:28:17 +01:00
Kienz
ddaf8ba796
Fix touch events if canvas is inside a scrolled container (see issue #123 ).
...
Fix bug if mouse moves over absolute scrolled element while object scaling (see issue #385 ). Also if mouse is moved over documentElement (fabric.document) while scaling object is fixed (same issue like #385 ).
Tested with Safari 5.1.7, 6.1, Firefox 18, 3.6.28, Chrome 24/25beta, Opera 12.12 and iPhone iOS 6.1, iPad iOS 6.1 in non-scrolled and scrolled containers.
2013-02-01 18:27:20 +01:00
kangax
6da2ed6d65
More canvas refactoring
2013-01-20 20:40:26 +01:00
kangax
70119f7095
Refactor some logic from canvas and object classes into mixins
2013-01-20 20:40:26 +01:00
kangax
21ee892c28
Merge master
2013-01-15 00:06:54 +01:00
Kienz
2715ef306c
Bugfix for controlsAboveOverlay (issue #380 )
...
Only if pointer is over targetCorner lastRenderedObjectWithControlsAboveOverlay is used as targetObject.
See issue #380 .
2013-01-14 17:09:50 +01:00
kangax
1f206d039e
Move gesture-based logic into a separate module
2013-01-10 18:23:23 +01:00
kangax
84270a47b2
Merge remote-tracking branch 'jaffer/master'
2013-01-10 14:31:59 +01:00
kangax
7be14a6a70
First implementation of brushes
2013-01-10 14:27:13 +01:00
kangax
082bee8279
Add fabric.Canvas.prototype.freeDrawingCursor
2013-01-10 14:22:02 +01:00
Jaffer Haider
20a87c6609
Support for pinch gesture to scale and rotate objects using Event.js.
2013-01-08 16:04:38 +05:00
kangax
e12b6598cd
Merge master
2012-12-18 18:12:08 +01:00
kangax
71dd5a9ec0
Pass original event to all fabric custom events (that are triggered via mouse/touch)
2012-12-18 11:52:18 +01:00
kangax
203ea6b51f
Doc fixes
2012-12-18 11:46:51 +01:00
kangax
c8172be31d
Final doc additions. Every public method is now documented!
2012-12-16 20:44:26 +01:00
kangax
b5b901e99e
Fix isMoving not set to false sometimes. Closes #350 . Version 0.9.31.
2012-12-15 17:29:40 +01:00
kangax
4bcc0bd80f
Add uniScaleTransform and centerTransform parameters to canvas, which control how objects are transformed
2012-12-15 17:13:40 +01:00
kangax
a6a7b72dcd
Padding-related fixes and some canvas.class refactoring.
2012-12-07 19:19:04 +01:00
kangax
913a4970bc
Merge master
2012-12-07 15:43:57 +01:00
kangax
2b33b7f570
Locking properties (lockMovementX, lockMovementY, lockRotation, etc.) are now respected in groups. Closes #152 .
2012-12-07 15:39:47 +01:00
kangax
352dd44b3c
Implement smooth free drawing. Free drawing is now a separate module. Thanks @coulix!
2012-12-06 19:47:34 +01:00
kangax
0c1fd43fc1
First stab at dynamic origin of transformation (based on the excellent work of https://github.com/stormbreakerbg ).
2012-12-06 19:12:54 +01:00
coulix
a0cf70994d
No need for free drawing to extend fabric Objecti + freedrawing module presence check before instantiation
2012-12-01 00:34:33 +01:00
coulix
8f8322fb46
Merge master
2012-11-30 18:57:49 +01:00
coulix
16422bed01
Refactoring
2012-11-30 18:42:02 +01:00
kangax
63c5c02560
Add support for dashed selection. Thanks @coulix! Version 0.9.24.
2012-11-28 13:04:39 +01:00
coulix
61db93d5ec
Smooth live free drawing on contextTop canvas
2012-11-28 11:55:30 +01:00
Greg Tappero
d0952172a3
Dashed selection borders
...
Wip dashed selection nearly there
fix dashed selection merge
2012-11-28 11:44:29 +01:00
kangax
d693130115
Add canvas reference to active group. Version 0.9.23.
2012-11-27 16:25:07 +01:00