Commit graph

113 commits

Author SHA1 Message Date
Andrea Bogazzi
1843581488 Move charWidthCache from iText to fabric, allow single cache for font. (#2995)
divided cache in a single font cache objects, added method for clearing one font cache.
2016-05-23 08:16:59 +02:00
Juriy Zaytsev
5d0524a6bd Build dist, fix lint errors 2015-12-24 10:57:55 -05:00
Juriy Zaytsev
ae0aa7f981 Merge pull request #2689 from asturur/qrDecompone
use atan2 instead of atan and manual checks
2015-12-24 10:26:20 -05:00
Andrea Bogazzi
7b3da5008f use atan2 instead of atan and manual checks 2015-12-16 15:48:23 +01:00
Gábor Tóth
dfa5b4a103 fix for #2622 2015-12-15 15:50:00 +01:00
Andrea Bogazzi
f7f64d9ea2 Update misc.js 2015-12-07 22:55:18 +01:00
Andrea Bogazzi
b037095d6b Update misc.js 2015-12-07 22:42:23 +01:00
Andrea Bogazzi
d9b7becb67 Update misc.js 2015-12-07 22:33:43 +01:00
Andrea Bogazzi
b93a46b353 Update misc.js 2015-12-07 22:19:37 +01:00
Andrea Bogazzi
701a62053d make group transform support general transforms 2015-10-24 15:38:46 +02:00
asturur
ff79ab1aca first changes to group transform handling 2015-10-14 08:48:03 +02:00
Andrea Bogazzi
960a763d75 fix wrong english 2015-09-17 18:41:28 +02:00
Andrea Bogazzi
cda0611326 Add support for skew objects. 2015-09-17 14:22:12 +02:00
Andrea Bogazzi
cf19c6f6cc Update parser.js 2015-08-10 01:21:56 +02:00
sapics
7e9f17186f just code simpler 2015-06-11 11:16:41 +09:00
sapics
563ec42196 fix space and linebreak 2015-04-20 09:51:32 +09:00
Juriy Zaytsev
8dfaaab514 Merge pull request #2091 from asturur/multiplyMatrice
Shorter version of multiply transform matrix
2015-04-07 18:55:17 +02:00
Andrea Bogazzi
320a08faa1 bunch of spaces for jscs 2015-04-06 23:29:29 +02:00
Andrea Bogazzi
364bc29a5e Shorter version of multiply transform matrix 2015-04-06 23:18:15 +02:00
Andrea Bogazzi
8747ed1bd6 Update misc.js 2015-04-05 21:34:58 +02:00
Andrea Bogazzi
552c6a833c Update text.js 2014-10-28 17:12:10 +01:00
Andrea Bogazzi
c02315f36b remove normalize func not more used 2014-08-05 13:03:04 +02:00
kangax
818ab118b3 JSCS changes; Prepare for JSCS ignore support; down to 51 failures 2014-08-03 16:47:27 +02:00
asturur
7d3aa1cbef Update misc.js
Always return a pathgroup if we parse a svg.
2014-07-18 16:10:11 +02:00
kangax
3df3c396a2 Fix unit tests 2014-07-18 13:11:18 +02:00
Stefan Kienzle
6b5f049bb0 JSDoc + JSCS tweaks - Part 2 2014-07-18 11:16:23 +02:00
asturur
795d8a7aa5 Update misc.js
some more polishing, for me and for toFixed.
2014-07-17 16:38:09 +02:00
asturur
dfbd1887bf Update misc.js
some more polishing
2014-07-17 16:24:46 +02:00
asturur
0bb156f308 Update misc.js
it had some problem with len of string 0 and slicing from 0 to -0 , or calculating len of ''.
now is ok, rects went crazy and i didn't notice.
2014-07-17 07:44:03 +02:00
asturur
d34f970ffb Update misc.js 2014-07-17 00:42:31 +02:00
asturur
81092715c1 Update misc.js
added missing space.
2014-07-17 00:38:55 +02:00
asturur
d78996194b Update misc.js 2014-07-17 00:37:27 +02:00
asturur
bf4fa0091f Update misc.js
add parseUnit function to normalize mm,cm,in,pt,pc to pixels.
res is setted to 96dpi is not real screen resolution dependant.
2014-07-16 15:29:41 +02:00
kangax
69fdc220e1 Add JSDoc validation in JSCS. Few style/doc fixes. 2014-07-16 11:45:50 +02: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
kangax
2acdc7e85b Fix few bracketless statements. Down to 257 failures on JSCS. 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
Tom French
b0e944c251 Merge branch 'master' of https://github.com/kangax/fabric.js
Conflicts:
	dist/all.require.js
2013-12-05 19:46:47 +00: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
kangax
56f0bfb9cc Avoid setting crossOrigin on an image if unspecified. Closes #971 2013-11-27 20:00:33 +01:00
kangax
de7b92bda5 Some refactoring; move arc into a separate file 2013-11-16 15:20:41 +01:00
kangax
779c2ef527 Move isTransparent logic to utils 2013-11-13 14:10:28 +01:00
kangax
1183464dde Refactor arcToSegments 2013-11-10 17:13:01 +01:00
kangax
dcf1e1e980 Add data-url crossOrigin workaround 2013-11-06 21:16:44 +01:00
kangax
d0abb90f1c Add fabric.Image#crossOrigin which allows crossOrigin image loading and canvas rendering without tainting. fabric.util.loadImage now accepts 4th argument (crossOrigin) and sets crossOrigin="" on image element by default. fabric.Image.fromURL can be passed crossOrigin via 3rd argument (options). Closes #263 2013-11-05 15:13:15 +01:00
Kienz
6f115bbf1e Fix fabric.util.enlivenObjects for empty fabric.Group objects
Add unit test
Fixes issue #943
2013-11-02 16:02:38 +01:00
Tom French
328f14f388 Add zoom 2013-10-31 17:36:18 +00:00
kangax
10c8a108d4 Unify image loading in few places 2013-10-27 13:12:48 +01:00
kangax
64f749f8d1 Remove duplication in Polyline/Polygon classes 2013-10-26 20:20:48 +02:00