Commit graph

176 commits

Author SHA1 Message Date
Juriy Zaytsev
3586cb26f7 Merge pull request #2141 from asturur/fixThis.Canvas
Make .canvas property always present
2015-04-22 13:17:38 +02:00
Juriy Zaytsev
54211dd349 Merge pull request #2130 from asturur/ActiveGroupSorter
Fix sortedObjects
2015-04-22 13:05:53 +02:00
Andrea Bogazzi
5ab3b331c7 Update static_canvas.class.js 2015-04-22 05:50:11 +02:00
Andrea Bogazzi
906ee8684e Update static_canvas.class.js 2015-04-21 09:09:16 +02:00
Andrea Bogazzi
344f4c9f41 Update static_canvas.class.js 2015-04-21 08:56:38 +02:00
sapics
fe65503e11 fix only coding style 2015-04-21 09:53:19 +09:00
Andrea Bogazzi
09d13c6e7c Fix sortedObjects 2015-04-20 12:48:37 +02:00
Incuuu
fa5bba0df7 Fix problem with empty options 2015-04-07 15:00:11 +04:00
Incuuu
84adc7b4d3 Fix bug with options of image instance in setBackgroundImage 2015-04-06 18:54:51 +04:00
Jim Rodovich
5d4fa49cd3 Fix hit detection on the active group after zooming. 2015-03-31 11:51:04 -05:00
KJ Tsanaktsidis
7453776856 Call set() when unwinding the group transform
set() is called when the group transform is realized by the group
on the object, so set needs to be called when the inverse operation
is done too so that things watching these properties see both the
action and the undo.
2015-03-25 11:23:25 +11:00
KJ Tsanaktsidis
a18acd43f5 YET MORE code style errors... 2015-02-27 15:21:00 +11:00
KJ Tsanaktsidis
cf92898071 Fix code style errors 2015-02-27 15:12:47 +11:00
KJ Tsanaktsidis
f16bf53763 Don't clone objects while serialising selection groups
Clone can be async for some object types, so we can't use it during
the serialisation process. Instead, apply the group transforms directly
on the object being serialised, and then undo it after serialising.
2015-02-27 15:04:26 +11:00
KJ Tsanaktsidis
00e6e71e4d Fixed code style error 2015-02-26 14:03:44 +11:00
KJ Tsanaktsidis
ea8bc67ce8 Don't destroy the selection group when doing toJSON
Instead, simulate what would happen to the children of the selection
group if the group were to be released. This is non-destructive on
the state of the canvas from the API user's perspective.
2015-02-26 13:57:58 +11:00
KJ Tsanaktsidis
492a7693c5 Don't destroy the selection group when doing toSVG
toSVG now mirrors the behaviour of toJSON and does not destroy
the active selection group when serialising. Instead, the effect
of the group is simulated on a clone of the object and this is
what gets serialised.
2015-02-26 13:57:58 +11:00
Stefan Kienzle
c49690d32d Use crossOrigin property in fabric.util.loadImage for background and overlay images
Closes #1752
2014-10-16 10:49:12 +02:00
Juriy Zaytsev
e524c13521 Merge pull request #1638 from joerozek/stacking
Support for preserving object stacking. Closes #1636.
2014-09-25 13:32:03 +02:00
kangax
32e8463479 Add requirement for space before function’s { 2014-09-22 20:40:39 +02:00
Joe Rozek
d2b146c21c support for preserving object stacking 2014-09-04 12:01:48 -07:00
kangax
da3184aaae Fix style error 2014-08-30 13:22:19 +04:00
Chris Buergi
7db0fe0aa2 Allow to opt out from the viewport transformation of the SVG output. 2014-08-28 13:43:36 +02:00
kangax
818ab118b3 JSCS changes; Prepare for JSCS ignore support; down to 51 failures 2014-08-03 16:47:27 +02:00
Bnaya Peretz
9f70f78411 Option to set css & backstore dimensions separatly
Introduced options param to the dimensions setters, options.backstoreOnly & options.cssOnly

When backstoreOnly set to true, only the value of the canvas element width & height will be changed.
When cssOnly set to true, only the css width & height of the involved DOM elements will be changed,
and you should include the unit of measure (px/%/em) with the passed value (eg '100px' '100%') and not just 100
2014-07-31 18:19:19 +03:00
Stefan Kienzle
43b029e8a4 Just do slice() for cloning 2014-07-17 14:35:28 +02:00
Stefan Kienzle
306a040fef Fix initialization of viewportTransform array
Add unit tests
JSDoc tweaks
2014-07-17 13:28:55 +02:00
kangax
69fdc220e1 Add JSDoc validation in JSCS. Few style/doc fixes. 2014-07-16 11:45:50 +02:00
Tom French
8cf9642fe4 Transform point given to zoomToPoint 2014-07-05 20:18:23 +01:00
Tom French
300de3be0d Correct rendering of active group 2014-07-04 20:07:04 +01:00
Tom French
ec0dcbfeb0 JSHint 2014-07-04 17:33:37 +01:00
Tom French
42ce906e0d Fix group coordinates 2014-07-04 11:29:30 +01:00
Tom French
a4129c31e8 Merge remote-tracking branch 'upstream/master'
Conflicts:
	dist/fabric.min.js
	dist/fabric.min.js.gz
	dist/fabric.require.js
	src/canvas.class.js
2014-07-03 16:02:43 +01:00
Stefan Kienzle
6e97a70469 Reset backgroundColor with null value 2014-07-01 18:29:06 +02:00
kangax
492253e5ca JSCS tweaks. Down to 114 failures. 2014-06-24 14:12:17 +02:00
Tom French
02b0b20343 Zoom overlay and background images 2014-06-12 13:10:42 +01:00
Tom French
6924df7154 Replaced viewport-moving functions. 2014-06-06 20:46:34 +01:00
Tom French
8c826a3204 Fixes for controlsAboveOverlay 2014-06-06 17:36:17 +01:00
Tom French
009c5389bf JSHint, restoring .gitignore 2014-05-31 18:08:33 +01:00
Tom French
0d8db88e71 Merge remote-tracking branch 'upstream/master'
Conflicts:
	.gitignore
	dist/fabric.js
	dist/fabric.require.js
	src/brushes/circle_brush.class.js
	src/canvas.class.js
	src/mixins/canvas_events.mixin.js
	src/mixins/object_geometry.mixin.js
	src/mixins/object_interactivity.mixin.js
	src/shapes/group.class.js
	src/shapes/image.class.js
	src/shapes/object.class.js
	src/shapes/path_group.class.js
	src/shapes/text.class.js
2014-05-31 17:29:55 +01:00
Matt Harrison
bfb33fb1f7 Removed 'return this', not needed for private method 2014-05-15 15:18:37 +01:00
Matt Harrison
b7f03b8a6c Added smoothing option on fabric.StaticCanvas to support setting imageSmoothingEnabled 2014-05-14 09:05:15 +01:00
Anders Lisspers
46100b24bd Moves the resetting of _currentTransform.target inside if (activeGroup)
This solves a problem that occurred if you were transforming (moving, scaling, rotating) a single object
when toJSON()/toObject() was run.
2014-04-03 16:20:05 +02:00
kangax
eb75f4b491 Restore _currentTransform.target after toJSON. Closes #1159 2014-02-27 15:00:42 -05:00
kangax
d2f6a9033e Add JSCS validation & change bunch of things for conformance. Down to 333 failures from ~1000. 2014-02-16 16:36:14 -05:00
kangax
be96d93f6e Fix group origin after toJSON 2014-02-10 21:37:47 -05:00
kangax
16447f9b7a Optimize _renderObjects to take fast path if no activeGroup given 2014-01-17 11:48:17 -05:00
Kienz
50899a79ef Fix fabric.Canvas initialization for width/height attributes. Closes #1086. 2014-01-12 11:33:42 +01:00
Stefan Kienzle
6776e62d00 Fix overlayImage / overlayColor during selection mode. Closes #1068 2013-12-27 10:19:57 +01:00
Tom French
ce4809d1e8 Merge branch 'master' of https://github.com/kangax/fabric.js
Conflicts:
	dist/all.js
	dist/all.require.js
	src/brushes/circle_brush.class.js
	src/brushes/spray_brush.class.js
	src/canvas.class.js
	src/mixins/canvas_events.mixin.js
	src/mixins/object_interactivity.mixin.js
	src/shapes/group.class.js
	src/shapes/image.class.js
	src/shapes/object.class.js
	src/util/misc.js
2013-12-05 19:45:39 +00:00