Andrea Bogazzi
cfbfaf7042
Update arc.js
2014-09-18 14:52:34 +02:00
Andrea Bogazzi
7cbe8a965e
Update arc.js
...
Fix useless optimization of code that was rendering arcs not correctly
2014-09-09 14:17:44 +02:00
kangax
a3d40878d6
Update JSCS to 1.6, fix errors, hook up travis
2014-08-30 13:18:43 +04:00
Andrea Bogazzi
9fc736c022
Update arc.js
...
Corrected arcs drawing and extended caching logic to have a chache hit more often.
Function is more or less 20 lines of code shorter, but i really cannot figure out if this implementation has more calculation
than the previous. I couldn't manage to find the error in the old one, i had to overwrite it.
in the picture , the multi colored arcs, are all on cache it after calculating the red one.
It will happen rarely, but why miss it?

2014-08-11 12:14:02 +02: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
kangax
e77a810774
Few JSCS fixes
2014-07-26 21:29:09 +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
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
kangax
492253e5ca
JSCS tweaks. Down to 114 failures.
2014-06-24 14:12:17 +02:00
asturur
587d527bb8
Update arc.js
...
while investigating why some arcs fails, reduced the number of calls to math.sin and math.cos, not by that much.
2014-06-21 17: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
Max Kaplan
6f3f1ff7c9
Fix loadFromJSON 404s breaking fabric (Image)
...
Prevent image 404s in Images from loadFromJSON from breaking everything
trying to get attributes of a source which is null, while passing it
upwards to allow dealing with images which failed to load outside of
Fabric.JS Issue #1079
2014-03-07 01:12:50 -05:00
kangax
2acdc7e85b
Fix few bracketless statements. Down to 257 failures on JSCS.
2014-02-27 15:00:42 -05:00
kangax
1d4356008a
Revert scroll detection change.
2014-02-21 15:04:42 -05:00
kangax
52a60769ee
Update docs, specifying ms.
2014-02-20 13:59:27 -05:00
kangax
631226d26b
More JSCS fixes; down to 295 failures
2014-02-17 11:55:54 -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
21f573d381
Speed up getElementStyle
2014-02-16 16:36:13 -05:00
Michael Elsdörfer
1be7b9fee8
Fix mouse handling inside a scrollable div.
...
See also #870 , which was incorrectly merged.
2014-02-15 03:29:22 +01:00
kangax
f928e68386
Few small tweaks
2014-01-26 22:19:12 -05:00
kangax
dbbfb992cb
Add all properties onto prototype (not to invalidate hidden classes)
2014-01-23 10:49:23 -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
Michael Sievers
13feddfa16
Call fabric.util.getScrollLeftTop inside getElementOffset
2013-11-20 13:06:28 +01:00
Michael Sievers
7cb161438c
Move getScrollLeftTop from dom_events.js to dom_misc.js
2013-11-20 10:42:34 +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
2d2bd68325
Add doc on requestAnimFrame
2013-11-06 21:20:07 +01:00
Juriy Zaytsev
b09af384c4
Merge pull request #956 from articulate/master
...
Finer animation
2013-11-06 12:18:25 -08:00
kangax
dcf1e1e980
Add data-url crossOrigin workaround
2013-11-06 21:16:44 +01:00
bbudd
24da312a54
fixed weird spacing stuff2
2013-11-05 17:03:47 -08:00
bbudd
61fdc7d93a
fixed weird spacing stuff
2013-11-05 17:03:01 -08:00
bbudd
afb6db8e1c
change animate to use sub-millisecond where possible
2013-11-05 16:58:39 -08: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
5017bc6626
[BACK_INCOMPAT] fabric.StaticCanvas#backgroundImage and fabric.StaticCanvas#overlayImage are fabric.Image instances. fabric.StaticCanvas#backgroundImageOpacity, fabric.StaticCanvas#backgroundImageStretch, fabric.StaticCanvas#overlayImageLeft and fabric.StaticCanvas#overlayImageTop were removed.
...
`backgroundImage` and `overlayImage` are now `fabric.Image` instances
New property `overlayColor` (analog to `backgroundColor`) - should be set with `canvas.setOverlayColor`
`backgroundImageOpacity` was removed => use `fabric.Image#opacity`
`overlayImageLeft ` was removed => use `fabric.Image#left`
`overlayImageTop ` was removed => use `fabric.Image#top`
`backgroundImageStretch` was removed => use `fabric.Image#width` and `fabric.Image#height`. If you scale your canvas you have to adjust the backgroundImage width/height manually.
Update SVG output.
Add 2nd parameter `firstLetterOnly` to `fabric.util.string.capitalize` => only first letter is transformed to uppercase (other letters stay untouched)
Add `preserveAspectRatio="none"` to `fabric.Image#toSVG` (otherwise streched backgroundImage and overlayImage didn't work as expected)
Update examples - TODO: Update jsfiddles for `setBackgroundImage` and `setOverlayImage`
Add unit test
Closes issue #270
2013-11-03 13:09:49 +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