Andrea Bogazzi
b8b8cadfff
correct docs
2015-12-30 15:36:14 +01:00
Andrea Bogazzi
d96c94dc4f
change default strokewidth to 0
2015-11-13 00:27:39 +01:00
Juriy Zaytsev
7c81f464b8
Merge pull request #2399 from asturur/parse-x-y-svg-atttrs
...
Parse x y svg attributes
2015-08-09 19:29:59 -04:00
Andrea Bogazzi
cf19c6f6cc
Update parser.js
2015-08-10 01:21:56 +02:00
Andrea Bogazzi
0edd147b0e
Update group.class.js
2015-08-08 14:30:24 +02:00
Juriy Zaytsev
20e97924f4
Make sure image props are output properly
2015-07-20 13:56:20 -04:00
Juriy Zaytsev
2171dd1379
Output less irrelevant information in fabric.Image#toObject
2015-07-17 17:42:30 -04:00
inssein
502259a946
Fix bug with image.class.js not properly calling _initConfig when initializing.
2015-05-27 13:47:06 -07:00
Andrea Bogazzi
ed5b1b66b0
Fix image resize filter from object
2015-05-05 08:32:30 +02:00
sapics
563ec42196
fix space and linebreak
2015-04-20 09:51:32 +09:00
kangax
1dff79c2ad
Make fabric.Image#fromUrl callback optional
2015-03-05 14:20:55 +01:00
kangax
8a48598c68
Check for presence of filter. Closes #1967
2015-02-11 01:30:13 +01:00
Andrea Bogazzi
14fdf0c653
Update image.class.js
...
error in final commit.
2014-11-29 11:28:51 +01:00
Juriy Zaytsev
454c332398
Merge pull request #1834 from asturur/image-resize
...
Image resize filters
2014-11-27 16:57:38 +01:00
Andrea Bogazzi
057d8e5bd9
Add resize filter functionality
2014-11-27 14:51:06 +01:00
Ibrahim Muhammad
d3224bd5d3
Fix documentation typo
2014-11-06 16:53:41 -08:00
Stefan Kienzle
362cda0c0d
Fixed spelling
2014-10-21 15:02:41 +02:00
Stefan Kienzle
8216ae19f4
Add fabric.Image.setSrc
2014-10-21 14:48:41 +02:00
Andrea Bogazzi
49f449ee4f
Update image.class.js
2014-10-11 21:56:38 +02:00
Andrea Bogazzi
00a442b028
exit from getSvgTransform just for pathGroups.
...
Fix Svg Export for normal canvas group
2014-09-25 11:05:39 +02:00
Andrea Bogazzi
c4b3d1881d
Update image.class.js
...
Fixed rendering of borders and svg transformation
2014-08-06 13:54:04 +02:00
Andrea Bogazzi
32278413e3
Update image.class.js
...
Removed render method, added support for x and y positioning, fixed toSVG
2014-08-05 12:48:29 +02:00
kangax
818ab118b3
JSCS changes; Prepare for JSCS ignore support; down to 51 failures
2014-08-03 16:47:27 +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
Tom French
8c826a3204
Fixes for controlsAboveOverlay
2014-06-06 17:36:17 +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
Grzegorz Godlewski
ce786cc3ad
Transform matrix and isInPathGroup fix for images
2014-04-28 21:37:52 +02:00
Ross Wilson
14338a9559
Fix for #1237
...
Only set crossorigin on the element if something is specified
2014-04-16 13:03:02 -06:00
Max Kaplan
54f9c0428f
add spaces before {
2014-03-07 17:32:09 -05:00
Max Kaplan
fd38b8f4a4
formatting for fixes
2014-03-07 01:15:56 -05: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
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
Tom French
3cc191bdfb
Fixed control and group selection rendering
2013-12-06 13:40:17 +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
Tom French
08d575422c
Fixes to zoom for groups and brushes.
2013-11-19 16:21:29 +00:00
kangax
e3b0f666fb
More precise path-group check. Closes #964
2013-11-14 19:22:45 +01:00
Stefan Kienzle
4f613f0684
Fix fabric.Image SVG output - Closes issue #977
2013-11-13 11:20:46 +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
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
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
ffe45dc702
Refactor stroke setting into a separate method
2013-10-25 11:34:47 +02:00
kangax
476da71e92
Doc changes
2013-10-25 09:05:39 +02:00
Kienz
be86429b32
Add reviver function to fabric.Canvas.toSVG.
...
Reviver function accepts one parameter (svg string representation of object instance) and should return svg string.
Add qunit test.
2013-09-29 09:22:44 +02:00
Kienz
fa2f18a77a
Add more docs.
...
Examples, tutorial and demo links.
2013-09-28 12:31:32 +02:00
kangax
41ab3a0064
Doc additions
2013-09-26 14:12:02 +02:00
Stefan Kienzle
55d5d99fdc
Fix loadFromJSON for image objects without image filters
2013-08-21 10:08:35 +02:00
Stefan Kienzle
901ee7f942
Update fabric.Image.filters.Mask - based on https://github.com/kangax/fabric.js/pull/667 (@aleph1)
...
[BACK_INCOMPAT] `fabric.Image._initFilters` is now async, add parameter callback
Add `fabric.util.resolveNamespace` - used to get correct klass in `fabric.util.enlivenObjects`
Doc additions
2013-08-14 18:07:56 +02:00