kangax
04ba89b573
More group refactoring
2013-11-13 21:08:56 +01:00
kangax
483426b275
Fix group z-index. Closes #967
2013-11-13 20:52:25 +01:00
kangax
8768aa7661
Refactor static_canvas.class.js
2013-11-13 16:43:24 +01:00
kangax
7c4025841a
Refactor static_canvas.class.js, canvas_events.mixin.js, canvas.class.js
2013-11-13 16:19:44 +01:00
kangax
b6f725fc22
Combine var declarations
2013-11-13 16:01:35 +01:00
kangax
776b72d624
More canvas.class.js refactoring
2013-11-13 14:33:01 +01:00
kangax
bbd3480d50
canvas.class.js refactoring
2013-11-13 14:26:49 +01:00
kangax
779c2ef527
Move isTransparent logic to utils
2013-11-13 14:10:28 +01:00
kangax
166b16d6c2
IText refactoring
2013-11-13 12:25:50 +01:00
Stefan Kienzle
4f613f0684
Fix fabric.Image SVG output - Closes issue #977
2013-11-13 11:20:46 +01:00
kangax
2d1de62e89
Fix cursor detection in rotated text!!!!!
2013-11-11 18:35:21 +01:00
kangax
6be8697adc
Remove iOS sniff. Tsk tsk tsk
2013-11-11 18:35:04 +01:00
kangax
5fdc1dc2d1
Move getLocalPointer to fabric.Object
2013-11-11 18:34:46 +01:00
kangax
31338df54d
canvas_events refactoring
2013-11-11 16:41:13 +01:00
kangax
4f46626467
Extract method in fabric.Canvas
2013-11-11 16:20:11 +01:00
kangax
014109ced3
Move canvas grouping logic to separate mixin/file
2013-11-11 16:07:51 +01:00
kangax
15889d3677
Fix active group's originX/originY
2013-11-11 00:02:10 +01:00
kangax
d0e60d7c5a
Fix up/down selection boundaries with shift
2013-11-11 00:01:57 +01:00
kangax
f421979e80
More fabric.Group refactoring
2013-11-10 17:43:23 +01:00
kangax
1ecbf379ff
More group refactoring
2013-11-10 17:31:59 +01:00
kangax
ffa794ed54
Refactor fabric.Group
2013-11-10 17:24:32 +01:00
kangax
1183464dde
Refactor arcToSegments
2013-11-10 17:13:01 +01:00
kangax
fc3bb9fe69
Refactor getColorStop
2013-11-10 16:51:08 +01:00
kangax
db7b0b585f
Refactor _drawControls
2013-11-10 16:43:56 +01:00
kangax
a39474d5bc
Refactor __onMouseUp
2013-11-10 15:34:10 +01:00
kangax
987f165790
Remove duplication in log.js
2013-11-10 15:15:31 +01:00
kangax
4556c7bf45
Fix origins of free-drawing paths and shapes
2013-11-10 11:24:45 +01:00
kangax
cbecc7910c
Fix vertical cursor movement in center/right -aligned and styled text
2013-11-09 18:09:25 +01:00
kangax
ffe6091dd7
Move getObjects to fabric.Collection. Add support for getObjects(type). Version 1.3.10.
2013-11-09 14:50:30 +01:00
Kienz
42935be697
Remove activeObject in fabric.Canvas#remove
...
Fire 'before:selection:cleared' and 'selection:cleared' if activeObject is removed from canvas
Add unit test
Fixes issue #962
2013-11-08 19:09:16 +01:00
Tom French
88b589b3d6
Implement zoom for brushes, various zoom fixes, remove canvasBorder.
2013-11-08 15:54:55 +00: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
kangax
5f643daf54
Normalize behavior of setActiveObject, setActiveGroup, discardActiveObject, discardActiveGroup. Closes #579
2013-11-06 20:58:23 +01:00
kangax
aea61aa64e
Update itext docs
2013-11-06 20:35:32 +01:00
kangax
c3fd102cdb
Fix fabric.Object#selectable. Closes #957
2013-11-06 18:41:02 +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
kangax
baf646e7a0
Support mouse and touch events simultaneously. Closes #670
2013-11-05 12:27:15 +01:00
kangax
f91dd30dc7
Better line length in parser
2013-11-05 11:59:48 +01:00
kangax
6cb941c116
Extract elements parsing into a separate object (ElementsParser)
2013-11-04 17:12:05 +01:00
kangax
ce8fe3447d
Break parseStyleAttribute apart
2013-11-04 16:41:26 +01:00
kangax
2753108028
Initial implementation of fabric.IText#toSVG (~75% complete atm)
2013-11-04 15:20:40 +01:00
kangax
59af4b7934
Add ctrl/cmd + x support
2013-11-04 12:05:29 +01:00
kangax
1c07c9600e
Fix cursor appearance in itext
2013-11-04 11:59:10 +01:00
Juriy Zaytsev
fe54615584
Merge pull request #931 from lorenzopolidori/controls-visibility
...
Added object controls visibility. Closes #552 .
2013-11-03 15:28:19 -08:00
kangax
330784ac2c
[BACK_INCOMPAT] Change default objects' originX/originY to left/top
2013-11-04 00:15:49 +01:00
Lorenzo Polidori
d1642c0729
Added object controls visibility (github issue #552 ).
2013-11-03 23:08:05 +00:00
kangax
c6c5090a20
Small tweaks in text.class.js
2013-11-03 17:38:39 +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
kangax
bdf147fbfb
Fix itext styling due to caching
2013-11-02 15:06:15 +01:00
kangax
2da3fa80b5
Slight reorganization
2013-11-02 14:41:28 +01:00
kangax
7eee6ddef0
Add caching to IText which increases performance of large text tremendously
2013-11-02 14:15:20 +01:00
kangax
9bfce93ddf
Only fire dblclick if clicked at the same location
2013-11-02 12:37:50 +01:00
kangax
c5c6474c4d
Ensure one editing text at a time
2013-11-01 22:39:28 +01:00
kangax
7235a97e91
Add basic copy/paste support in IText; fix certain char insertion.
2013-11-01 22:28:23 +01:00
Tom French
328f14f388
Add zoom
2013-10-31 17:36:18 +00:00
kangax
c6ff46269c
Preserve canvas reference in fabric.Object#toDataURL. Closes #938
2013-10-31 16:00:31 +01:00
kangax
6210da1568
Avoid jshint error with "unknown" typeof
2013-10-30 18:15:02 +01:00
kangax
43a8df57b3
Remove duplication in anim_ease
2013-10-30 17:42:49 +01:00
kangax
7ff0ae826f
Refactor _renderViaNative a bit more
2013-10-30 17:35:20 +01:00
kangax
bc5b78f60c
Refactor touch event abstraction
2013-10-30 17:29:55 +01:00
kangax
9433729124
Refactor getPointer
2013-10-30 17:26:26 +01:00
kangax
3b3b478e77
Refactor _setObjectScale
2013-10-30 17:15:53 +01:00
kangax
7022cd4a9b
Even more canvas_events refactoring
2013-10-30 17:05:11 +01:00
kangax
171cfc1a05
More canvas_events refactoring
2013-10-30 16:58:47 +01:00
kangax
cd66612aa3
More canvas_events refactoring
2013-10-30 16:34:57 +01:00
kangax
61a3fb5123
Refactor __onMouseDown
2013-10-30 15:32:04 +01:00
kangax
10a3319ed1
Refactor _restoreObjectState
2013-10-30 15:09:02 +01:00
kangax
8ad5e7e511
IText doc fixes
2013-10-30 14:55:02 +01:00
kangax
f53559773f
Prevent errors in FF when rendering non-ready patterns
2013-10-29 21:14:20 +01:00
Alex Chuchunkov
a6f8e16c81
stopObserving w/o arguments removes all event - handler pairs. Closes issue #936
2013-10-29 22:47:29 +04:00
kangax
167f2fa089
Move shared attributes out of parser since it's needed by many "classes"
2013-10-28 14:01:44 +01:00
kangax
dd11dc7e87
Resize canvas back only after data url is retrieved. Closes #924
2013-10-28 08:02:58 +01:00
kangax
6892783156
Refactor fabric.Text#toSVG
2013-10-27 19:20:46 +01:00
kangax
eee0c9416b
Refactor canvas event handling
2013-10-27 19:05:04 +01:00
kangax
fb05e13c69
Return early
2013-10-27 18:40:53 +01:00
kangax
8d2d6dabad
De-duplicate cursor moving methods even more
2013-10-27 18:39:22 +01:00
kangax
b02c444b3f
Move regex into instance property
2013-10-27 14:35:25 +01:00
kangax
b8b3403b0d
Move line shifting into a separate method
2013-10-27 14:32:33 +01:00
kangax
b6ceb0a87d
Refactor key movement handlers in IText
2013-10-27 14:26:17 +01:00
kangax
733eccb00c
Separate IText behavior into a separate "module"
2013-10-27 14:05:35 +01:00
kangax
803ad572d4
draw -> render, for consistency
2013-10-27 13:27:05 +01:00
kangax
10c8a108d4
Unify image loading in few places
2013-10-27 13:12:48 +01:00
kangax
8f42a40964
Refactor pointerX/pointerY
2013-10-27 13:01:38 +01:00
kangax
f114a566b1
Refactor min/max in lang_array
2013-10-27 12:54:35 +01:00
kangax
64f749f8d1
Remove duplication in Polyline/Polygon classes
2013-10-26 20:20:48 +02:00
kangax
4ecef881fe
Move out event binding
2013-10-26 19:16:44 +02:00
kangax
0aad996dc9
Refactor _scaleObject more
2013-10-26 19:06:48 +02:00
kangax
aa75b47506
Refactor _scaleObject
2013-10-26 18:59:36 +02:00
kangax
d803f9aa64
Refactor _findSelectedObjects
2013-10-26 18:54:29 +02:00
kangax
715f5bd245
Refactor iText a bit more
2013-10-26 18:45:17 +02:00
kangax
bd79c10987
Refactor _getSVGTextAndBg
2013-10-26 11:24:18 +02:00
kangax
9b841f9362
Refactor renderViaNative
2013-10-25 21:50:58 +02:00
kangax
86d8df6c8e
Refactor duplication in gradient class
2013-10-25 20:27:02 +02:00
kangax
ce33c3cd3e
Fix missing argument
2013-10-25 20:20:29 +02:00
kangax
46c5d9073c
Refactor fabric.StaticCanvas#renderAll
2013-10-25 20:13:54 +02:00
kangax
c0effef9e1
Refactor fabric.StaticCanvas#toSVG more
2013-10-25 20:05:18 +02:00
kangax
df1125e0b9
Refactor fabric.StaticCanvas#toSVG
2013-10-25 19:57:31 +02:00
kangax
244d01879f
Refactor long methods in iText
2013-10-25 19:42:17 +02:00
kangax
1cf94af014
Remove duplication in anim_ease.js
2013-10-25 12:15:26 +02:00
kangax
9e6fc35ffe
Refactor fill setting into a separate method
2013-10-25 11:49:47 +02:00
kangax
ffe45dc702
Refactor stroke setting into a separate method
2013-10-25 11:34:47 +02:00
kangax
93d2ab3400
Refactor _getCoordsFromCommand
2013-10-25 11:23:24 +02:00
kangax
f67b78a984
Refactor _parseDimensions
2013-10-25 11:18:44 +02:00
kangax
3e75f63c7b
Refactor iText again
2013-10-25 11:06:58 +02:00
kangax
c9e819ea8e
Refactor IText
2013-10-25 10:56:24 +02:00
kangax
c42d857b14
Refactor _handleGroupLogic even more
2013-10-25 10:43:42 +02:00
kangax
c0c222f672
Refactor _handleGroupLogic
2013-10-25 10:38:32 +02:00
kangax
58f30be963
Add iText
2013-10-25 10:28:30 +02:00
kangax
c2edbf003a
Refactor _setupCurrentTransform
2013-10-25 10:20:55 +02:00
kangax
ae5973676a
Support includeDefaultValues in shadow serialization
2013-10-25 09:05:39 +02:00
kangax
e34fb6a256
More specific documentation
2013-10-25 09:05:39 +02:00
kangax
f6a6ea68b7
Avoid width=0 for text objects
2013-10-25 09:05:39 +02:00
kangax
476da71e92
Doc changes
2013-10-25 09:05:39 +02:00
Stefan Kienzle
9c6565491b
Don't fire 'selection:created' if only one object exists
2013-10-23 09:18:07 +02:00
Kienz
0f9612b69f
Fix object selection with shift key - Closes issue #912
2013-10-22 20:33:20 +02:00
Jason Gauci
6bbc1798f1
Do not name the requirejs module (see http://requirejs.org/docs/api.html#modulename )
2013-10-20 21:10:19 -07:00
Kienz
3b0b9b7d80
Doc additions. Add examples to fabric.Image.filters
2013-10-13 18:46:51 +02:00
Juriy Zaytsev
b92e9575e0
Merge pull request #866 from rykerwilliams/master
...
Update Events / Gestures modules with event.js 1.1.3
2013-10-12 14:13:02 -07:00
Kienz
5adf772a64
Invisible objects are no longer selectable with "selection-mode" (canvas.selection = true) - Closes issue #891
2013-10-09 20:57:41 +02:00
rykerwilliams
5bf42c099f
Add custom object properties to clone function.
2013-10-06 17:02:36 -04:00
rykerwilliams
d40509d688
Remove diff tool change.
2013-10-06 16:41:27 -04:00
rykerwilliams
5445f52db3
Remove canvas_wheel_event.mixin.js. Change wrapping to bind.
2013-10-06 16:35:09 -04:00
rykerwilliams
8fafe15649
Merge branch 'master' of https://github.com/kangax/fabric.js
2013-10-05 21:02:45 -04:00
kangax
5608e17b1a
Add fabric.Polyline example and an inline link to constructor
2013-10-05 12:50:29 +02:00
kangax
eef047a5b3
Add check for skipTextAlign in fabric.Text
2013-10-05 12:50:29 +02:00
kangax
a0c508c1d5
Fix selectable=false objects getting incorrectly selected. Closes #880
2013-10-01 16:52:11 +02:00
kangax
82d9a15fee
Fix left aligning in Node. Version 1.3.7
2013-09-30 18:37:45 +02:00
kangax
f93a0e4313
Fix text rendering offsets on Node by simplifying things
2013-09-30 16:15:00 +02:00
kangax
6cd767c479
Fix offsets of underline/line-through/overline text decoration and line sharpness
2013-09-30 13:38:12 +02:00
kangax
4b65f9f682
Fix removal of default values in fabric.Text#toObject
2013-09-30 13:38:12 +02:00
Juriy Zaytsev
bfcd95b7a4
Merge pull request #878 from Kienz/patch-1
...
Add reviver function to `fabric.Canvas.toSVG` - Closes #690
2013-09-29 04:04:37 -07:00
Kienz
922e7ab159
Include sourcePath in fabric.PathGroup only if its defined
...
Doc additions
2013-09-29 09:56:29 +02:00
Kienz
61835602f9
Remove toGrayscale from fabric.PathGroup and fabric.Collection
2013-09-29 09:49:41 +02:00
Kienz
e94eb59012
Add @example for toSVG with reviver function
2013-09-29 09:28:27 +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
kangax
f5775eb2f4
Add rectangles optimization to Spray brush
2013-09-28 23:47:53 +02:00
kangax
4b78a2d819
Fix includeDefaultValues to account for stateProperties of specific objects
2013-09-28 23:47:53 +02:00
kangax
ec120452c5
Add x/y in fabric.Rect#stateProperties. Make toObject remove them when includeDefaultValues=false.
2013-09-28 23:47:53 +02:00
kangax
f2ad6e5be6
[BACK_INCOMPAT] Move "backgroundColor" from fabric.Text to fabric.Object (only works with text for now). Remove fabric.Object#overlayFill. Remove fabric.Canvas.toGrayscale, fabric.Object#toGrayscale, and fabric.Object#overlayFill. Version 1.3.5
2013-09-28 23:47:53 +02:00
Kienz
fa2f18a77a
Add more docs.
...
Examples, tutorial and demo links.
2013-09-28 12:31:32 +02:00
kangax
bbb73dcde3
Add more docs
2013-09-27 22:22:28 +02:00
kangax
485b3569d3
Add docs
2013-09-27 22:22:28 +02:00
kangax
bd2857e49a
Add link for mask filter
2013-09-27 22:22:28 +02:00
Juriy Zaytsev
3345156793
Merge pull request #873 from Kienz/docAddtions
...
Doc additions
2013-09-26 12:12:28 -07:00
Kienz
7792b1274b
Doc additions
...
Add example and jsfiddle link to `canvas.loadFromJSON`
2013-09-26 21:04:10 +02:00
Kienz
9de6c9a473
Doc additions
...
Add examples and links to jsfiddle to `fabric.Object.setGradient`, `fabric.Object.setPatternFill`, `fabric.Object.setShadow` and `fabric.Canvas.toDataURL
2013-09-26 20:17:53 +02:00
kangax
db8f0515f1
Add docs for object accessors. Build distribution.
2013-09-26 19:55:17 +02:00
Kienz
30ffd894d6
Add missing doc additions of previous commit from kangax
2013-09-26 18:43:13 +02:00
Kienz
5f9edecd18
[BACK_INCOMPAT] Split fabric.Object.centerTransform and fabric.Canvas.centerTransform into the properties centeredScaling and centeredRotation
...
centeredScaling: Define if object scaling should be centered (true). Default = false.
centeredRotation: Define if object rotates around center (true) or around origin (originX/originY) point (false). Default = false.
Pressed altKey negates the behavior.
2013-09-26 18:19:17 +02:00
kangax
365b2dc0a9
Doc additions
2013-09-26 17:50:28 +02:00
Juriy Zaytsev
aeaa5fcb00
Merge pull request #857 from briefbanane/master
...
Allow toggling of flipX/Y to flip the whole group
2013-09-26 06:04:11 -07:00
kangax
41ab3a0064
Doc additions
2013-09-26 14:12:02 +02:00
Fabian Ebner
44756d4a57
Handle addWithUpdate removeWithUpdate and destroy differently
2013-09-25 22:42:13 +02:00
Fabian Ebner
61fff6b8c6
Clean up code and fix rotation issue
2013-09-25 21:50:09 +02:00
kangax
812717b207
Add fabric.Object#evented. fabric.Object#selectable now fires events again, but can not be selected. However, evented=false does not receive events at all.
2013-09-25 19:05:57 +02:00
Fabian Ebner
5576759eb4
Preserve rotation after flipping when group isn't selected anymore
2013-09-25 15:34:30 +02:00
kangax
7e9e27aba5
Fix object loading yet again
2013-09-24 18:34:32 +02:00
kangax
15a6a3c3df
Fix objects enlivening with sparse arrays. Version 1.3.3
2013-09-24 15:58:52 +02:00
kangax
83ca60e885
Fix resolveNamespace and getKlass on node
2013-09-24 13:25:38 +02:00
Fabian Ebner
f02c657f84
If group was flipped and is destroyed always re-flip children
2013-09-24 12:47:39 +02:00
Fabian Ebner
6e96b3f1fb
Allow flipping in fabric.Group to change the object positions permanently
2013-09-24 12:38:11 +02:00
Stefan Kienzle
0a4bbfb4bb
Remove check for fabric.Color because only string values are allowed for color parameter. Otherwise initialization breaks if opacity is not defined.
2013-09-23 17:56:07 +02:00
rykerwilliams
f083a3dabb
Forgot __onShake method.
2013-09-23 10:55:00 -04:00
rykerwilliams
88aa0df407
Added new custom version of event.js. Added event listeners for shake, drag and orientation change.
...
Custom version available: https://github.com/rykerwilliams/Event.js
2013-09-23 10:10:40 -04:00
rykerwilliams
888f324e46
Casing Issue. Remove unneed variables.
2013-09-21 17:51:51 -04:00
rykerwilliams
9283530837
Add wheel event mixin.
2013-09-21 17:41:06 -04:00
Stefan Kienzle
60e9d0f144
[BACK_INCOMPAT] Initialization of fabric.Image.filters.Tint is now different - options.color: color string value, options.opacity: 0..1
...
Now you can define opacity of the tint filter (by rgba/hsla colors or with opacity attribute)
Doc additions
2013-09-20 19:51:55 +02:00
kangax
6de9f65702
Fix animation abort
2013-09-19 19:49:51 +02:00
kangax
24836cbdaf
Call abort earlier in animation loop (makes it possible to abort immediately)
2013-09-19 19:49:51 +02:00
kangax
d29a1d9ccd
Uncomment fabric.Object#getPointByOrigin
2013-09-19 19:49:51 +02:00
Juriy Zaytsev
e627c8804a
Merge pull request #856 from Kienz/patch-2
...
Fix wrong object order in `fabric.Group.toSVG`
2013-09-18 13:34:29 -07:00
Kienz
cb510b9ef3
Fixed fabric.Group.toSVG- object order was wrong
2013-09-18 19:17:50 +02:00
Kienz
815ca4ec70
Fixed fabric.Tectvertical position
2013-09-18 17:28:36 +02:00
Juriy Zaytsev
3c50e72548
Merge pull request #853 from Kienz/patch-1
...
Avoid unnecessary `renderAll` calls in mousedown and mouseup events
2013-09-18 06:17:51 -07:00
Kienz
516fa76b68
Fix jshint error
2013-09-18 08:23:36 +02:00
Kienz
721ac7a8c2
Doc additions - document object parameter
2013-09-17 22:42:58 +02:00
Stefan Kienzle
23a4685d22
Avoid unnecessary renderAll calls in mousedown and mouseup events.
...
Tested it with `canvas.selection = true/false`.
2013-09-17 18:45:54 +02:00
Kienz
ba2a0e6dff
Fixed fabric.PatternBrush- brush style was not applied during the drawing mode
2013-09-16 19:05:23 +02:00
kangax
dbc96349ce
Refactoring
2013-09-15 20:29:20 +02:00
Kienz
e69c19029a
Fixed object.toDataURL if object's originX/originY != 'center'
...
Add documentation to object.toDataURL for options object
Alias "jpg" format to "jpeg". Closes #806
2013-09-15 18:02:15 +02:00
kangax
b077905781
Avoid creation of exports global var as this messes up QUnit (and probably something else)
2013-09-14 20:40:40 +02:00
kangax
408a8b9de6
Alias "jpg" format to "jpeg". Closes #806
2013-09-14 18:44:44 +02:00
Kienz
26e784aede
Move setColorfrom fabric.Text to fabric.Object
...
Fixed "enum" notation
`fabric.Object.setGradient` is now chainable
Doc additions
Add `fabric.Object.setPatternFill`unit test
Add chainable tests to some methods
2013-09-14 17:10:49 +02:00
kangax
f5f29a3925
Create group of circles in CircleBrush for better performance. Closes #530
2013-09-14 13:59:10 +02:00
kangax
44265e3c97
Create group of rectangles in spray brush for better performance
2013-09-14 13:55:21 +02:00
kangax
eeb0f72bd4
Move fabric.Rect's stateProperties to prototype for more efficient memory usage
2013-09-14 13:54:18 +02:00
kangax
c1a818ac33
Add support for cropping in toDataURL. Closes #449 . Version 1.2.14
2013-09-14 12:42:25 +02:00
kangax
40e27b7392
Document text accessors
2013-09-13 19:03:05 +02:00
Stefan Kienzle
539afb8d97
Some small changes in fabric.Observable
2013-09-13 16:18:18 +02:00
Juriy Zaytsev
a7489774fd
Merge pull request #840 from Kienz/patch-2
...
`fabric.Observable.on` and `fabric.Observable.off` can add/remove multiple handlers (object with key/value pairs). Closes #838
2013-09-12 14:49:31 -07:00
Kienz
1e1adc7831
fabric.Observable.on and fabric.Observable.off can add/remove multiple handlers (object with key/value pairs)
...
Update jsdoc
Add unit tests
2013-09-12 20:43:31 +02:00
Kienz
9f6dea5d9e
Add reviver function to fabric.Canvas.loadFromJSON (and loadFromDatalessJSON)
...
Add unit test
2013-09-12 20:10:23 +02:00
kangax
5ebd697978
[BACK_INCOMPAT] Remove selectable, hasControls, hasBorders, hasRotatingPoint, transparentCorners, perPixelTargetFind from default object/json representation of objects. Fix includeDefaultValues. Version 1.2.13. Closes #795
2013-09-11 11:41:00 +02:00
kangax
95c97f5447
[BACK_INCOMPAT] Object rotation now happens around originX/originY point UNLESS centerTransform=true. Version 1.2.12. Closes #439
2013-09-09 16:39:39 +02:00
kangax
bec5787267
Update docs
2013-09-09 02:42:16 +02:00
kangax
36cd31b7a3
Fix object:modified firing incorrectly with groups. Closes #717
2013-09-09 02:27:19 +02:00
kangax
0fc54d4f7f
Fix Point and Intersection docs. Build distribution.
2013-09-06 19:12:57 +02:00
Juriy Zaytsev
62740ff27b
Merge pull request #828 from bernardofd/master
...
Replace the Streams interface with FS.readFile() in asset loading on Node.js
2013-09-06 10:04:55 -07:00
Bernardo F. Domingues
806a44e3c3
Renaming "url" to "path" for clarity reasons
2013-09-06 11:39:28 -03:00
Bernardo Figuerêdo Domingues
67d1a4732c
Replacing Streams interface for FS.readFile to load assets in the Node.js module
2013-09-06 11:36:09 -03:00
Stefan Kienzle
d190c31e8b
Renamed fabric.Shadow.getShadow to fabric.Shadow.toString
2013-09-05 18:09:34 +02:00
Juriy Zaytsev
ed1c116793
Merge pull request #823 from Kienz/patch-1
...
[BACK_INCOMPAT] `fabric.Text.textShadow`was removed and `fabric.BaseBrush` shadow properties removed (new `fabric.BaseBrush.shadow`)
2013-09-03 12:27:13 -07:00
kangax
70213ea92f
Tweak build.js; build distribution
2013-09-03 21:23:35 +02:00
kangax
4559918688
Resolve conflicts
2013-09-03 21:18:29 +02:00
kangax
fc3bc45920
Fix text decoration offset for text with originY=top
2013-09-03 21:17:00 +02:00
Drew Lustro
1f993e92b8
requirejs support added via "requirejs" build.sh option
...
$ node build modules=ALL requirejs
- dist/all* is clean of changes
- fixed bug in build.sh that would prevent dist/all.require.js from compiling properly
- Updated test.js to include test_script.js fixtures
- NOTE: Qunit tests largely incompatible with requirejs version... need more
insight on how Qunit works to get fabric in the namespace since it is
no longer a global when built as an AMD module.
2013-09-03 14:15:12 -04:00
Kienz
b638487686
Performance optimization - removed senseless code
2013-09-03 19:18:16 +02:00
Kienz
8c74f2b335
[BACK_INCOMPAT] fabric.Text#textShadow has been removed - new fabric.Text.shadow property (type of fabric.Shadow)
...
[BACK_INCOMPAT] `fabric.BaseBrush`shadow properties are combined into one property => `fabric.BaseBrush.shadow`(shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY no longer exist)
Removed fabric.Text.getText method => is generated with `fabric.util.createAccessors`
`fabric.Shadow` can now initialized with string or object (e.g. '10px 10px 5px rgb(0,0,255)', 'rgb(0,0,255) 10px 10px 5px', {color: 'gb(0,0,255)', offsetX: 10, offsetY: 10, blur: 5})
`fabric.Shadow.getShadow`to get css3 declaration of shadow (String)
`fabric.Object.set('shadow', value)`is now the same as `fabric.Shadow.setShadow(value)`
Add unit tests
2013-09-03 19:11:21 +02:00
kangax
d7469c6a93
Make selectable=false objects propagate events through
2013-09-03 12:01:26 +02:00
kangax
ec32a3c399
Make on/off/trigger chainable
2013-09-03 11:52:10 +02:00
kangax
c262cd306d
When firing event, call handler in context of object firing event
2013-09-03 11:43:46 +02:00
kangax
28fa7a8b3f
Add fabric.Object#hoverCursor; just like fabric.Canvas#hoverCursor but on object level
2013-09-03 11:43:10 +02:00
kangax
e1df87c64c
Some (non-breaking) text changes to allow for more granular line height
2013-09-01 00:10:12 +02:00
kangax
e620e634b2
Add backwards-incompat doc notes
2013-08-31 12:52:30 +02:00
Stefan Kienzle
89f3ab0668
Fix fabric.Circle.set for radius - update width/height if radius is set
...
Closes issue #811
2013-08-30 11:51:08 +02:00
kangax
507dff705b
Fix tint filter. Thanks @mewdriller
2013-08-30 01:13:29 +02:00
Kienz
345ed3f5e9
Fix fabric.Text#fontFamily in SVG output - Closes issue #813
...
Add unit tests
2013-08-29 22:06:24 +02:00
kangax
434bfb2c6d
Fix fabric.Canvas subclassing; fabric.Canvas, fabric.StaticCanvas now created via createClass.
2013-08-28 15:17:25 +02:00
Kienz
f31a62a25c
Add encoding to canvas.toSVG(options)
...
Add unit tests for canvas.toSVG
2013-08-27 20:32:15 +02:00
kangax
78dc27a029
Call abort in context of an object. Closes #803
2013-08-23 14:30:33 +02:00
Jaak Sarv
2cd96f7933
Fixed bug where object selection borders where misaligned
2013-08-22 18:05:12 +03:00
Juriy Zaytsev
b708fbafa4
Merge pull request #799 from vegasje/feature/allow-touch-scrolling
...
Simple boolean option on canvas to allow scrolling on touchscreen devices
2013-08-21 15:19:22 -07:00
Jeremy Watkins
143203d99d
Adding a default allowTouchScrolling value, along with a description of its purpose
2013-08-21 15:01:00 -07:00
Stefan Kienzle
55d5d99fdc
Fix loadFromJSON for image objects without image filters
2013-08-21 10:08:35 +02:00
Jeremy Watkins
d728951ccf
Simple boolean option on canvas to allow scrolling on touchscreen devices
2013-08-20 10:44:53 -07:00
kangax
d1bcd18de5
Fix resolveNamespace
2013-08-17 20:18:06 +02:00
Stefan Kienzle
bd60887ef2
Remove cursor reset in __onMouseUp (old fix for firefox). Closes issue #793
2013-08-15 16:06:26 +02:00
Juriy Zaytsev
751f39cc58
Merge pull request #792 from Kienz/maskFilter
...
Update `fabric.Image.filters.Mask` - based on https://github.com/kangax/fabric.js/pull/667 (@aleph1)
2013-08-14 13:00:49 -07:00
kangax
a2e4d30a82
Add fabric.Canvas#skipTargetFind
2013-08-14 21:51:00 +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
kangax
a5ab1baf24
Don't call setCoords when rendering text
2013-08-14 13:54:39 +02:00
kangax
4b1d1140eb
Doc additions
2013-08-14 12:55:09 +02:00
kangax
3317010fdf
Add support for fabric.Text#skipFillStrokeCheck
2013-08-14 12:55:08 +02:00
Stefan Kienzle
e151d297fc
Add filter root class fabric.Image.filters.BaseFilter from which all filter classes inherit from
2013-08-13 14:06:33 +02:00
kangax
79cd44650c
Update docs, build distribution
2013-08-12 11:52:13 +02:00
Kienz
a61b384684
Add toJSON back to image filters
...
Add toJSON to unit tests
2013-08-09 20:37:56 +02:00
Kienz
f2035da955
Add image filter tests
...
Doc fixes
2013-08-09 19:59:30 +02:00
Stefan Kienzle
6599d393ac
Fix fabric.Image.setElement - now _element and _originalElement (until now _originalImage) are set. Closes #745
...
Add additional parameter callback (invoked after filters habe been applied).
Fix `fabric.Image.fromObject` - don't overwrite image width/height with object width/height.
`fabric.Image.applyFilters` only resets _originalElement - fixes issue if object's width/height are different to _originaElement's width/height
[BACK_INCOMPAT] Renamed `fabric.Image.filters` method `toJSON` -> `toObject`
Fix serializiation of fabric.Image filter objects
2013-08-09 14:18:27 +02:00
Kienz
92bdebfde7
Doc fixes, Update README (1800+ unit tests)
2013-08-08 18:31:26 +02:00
kangax
2c6f6c27b4
Doc fixes
2013-08-08 16:39:40 +02:00
Juriy Zaytsev
7ce8b35fd8
Merge pull request #784 from Kienz/colorFix
...
Add color "orange" to `fabric.Color.colorNameMap`
2013-08-07 15:17:05 -07:00
Kienz
31f1abac12
Add color "orange" to `fabric.Color.colorNameMap
2013-08-07 21:39:25 +02:00
Kienz
b63a943137
Renamed property renderOnAddition to renderOnAddRemove
...
fabric.Canvas.renderAll can now be disabled on removing objects (renderOnAddRemove = false)
Add tests for renderOnAddRemove (add, insertAt and remove)
jsdoc additions
2013-08-07 21:01:45 +02:00
kangax
ef0ebebf0b
Add _drawChars abstraction in text class
2013-08-07 13:52:35 +02:00
kangax
5717df817b
Fix error when parsing gradient-based fill attribute. Closes #749
2013-08-07 13:51:59 +02:00
kangax
bbe83dad0f
Support reviver in Node's version of loadSVGFromURL and loadSVGFromString
2013-08-06 16:12:00 +02:00
kangax
9edba2c8f6
Add fabric.Image.pngCompression and use it in applyFilters under Node
2013-08-05 11:22:05 +02:00
Stefan Kienzle
473663aea1
Merge pull request #767 from MeLight/master
...
Single click in freedrawing mode now works for pencil brush, circle brush and pattern_brush - fixes #756
2013-08-02 10:25:19 -07:00
Yuri Shmorgun
25b12d3cd7
Renamed putPaint to drawDot
...
Fixed more styling issues
2013-07-30 21:33:45 +03:00
kangax
c827c92aad
Add oCoords in docs
2013-07-30 16:41:18 +02:00
kangax
a64cc65eb6
Pass abort option in fabric.Object#animate
2013-07-29 23:58:15 +02:00
Yuri Shmorgun
b507c0c18d
Fixed tabs
2013-07-29 00:31:12 +03:00
Juriy Zaytsev
f55e25f904
Merge pull request #772 from Kienz/patch-1
...
Set object shadow and context shadow only if shadowColor is set
2013-07-28 10:49:05 -07:00
kangax
e6bc08701c
Update centering methods docs to mention the need for setCoords
2013-07-28 19:43:07 +02:00
Kienz
e6188e55f3
Set object shadow and context shadow only if shadowColor is set
...
Otherwise toSVG() returns for every brush object a shadow filter
2013-07-28 18:36:29 +02:00
kangax
f270ca0259
Move animation methods to an optional module
2013-07-28 15:25:31 +02:00
kangax
0c98f83fa4
Simplify node-based applyFilters
2013-07-27 20:47:45 +02:00
kangax
34b5eee748
Increase dimensions of svg filter region to avoid clipping
2013-07-27 19:52:44 +02:00
melight
f9438fd66d
Gah. Fixed tabs and spaces. Again.
2013-07-27 01:24:47 +03:00
melight
26bf1b78f3
Fixed indentations issues too!
2013-07-27 01:17:08 +03:00
Yuri Shmorgun
de9b077469
Fixed JSHint issues from previous commit
2013-07-25 20:43:42 +03:00
kangax
7a46482328
Add shadow toSVG support. Version 1.2.7
2013-07-25 19:39:21 +02:00
kangax
22ac5d947f
Fix patterns width/height
2013-07-25 16:45:15 +02:00
Yuri Shmorgun
d5de9042cd
Issue #756 fixed - single click in free drawing mode now works for pencil brush, circle brush and pattern_brush (inherits pencil brush fix)
2013-07-24 23:30:48 +03:00
kangax
bc3adcffbc
Clip free drawing
2013-07-24 22:16:28 +02:00
Kienz
0912d1eeeb
Remove activeObject on creating activeGroup with shiftKey - closes issue #764
...
Add @default jsdoc tag etc.
2013-07-24 20:21:51 +02:00
kangax
67b54a44a5
Fix pattern toSVG
2013-07-22 22:00:03 +02:00
kangax
974ed943b8
Fix polyline, polygon tests and JSHint warnings
2013-07-22 14:39:07 +02:00
kangax
6b36e72521
Make SVG output Corel Draw -compatible. Closes #758
2013-07-22 14:22:36 +02:00
kangax
d3e2b03856
Start implementing pattern toSVG support
2013-07-22 14:22:36 +02:00
Kienz
c9d866dcf9
Fixed fabric.PathGroup.fromObject - use fabric.util.enlivenObjects to instatiate fabric.Path objects
...
Corrected jsdoc tags for fabric.PathGroup.fromObject, fabric.Path.fromObject and fabric.Path.fromElement
Fixed quint tests for fabric.Path and fabric.PathGroup
2013-07-18 22:21:19 +02:00
kangax
6f1b6bf243
Avoid canvas re-rendering for each object when loading from JSON
2013-07-17 16:36:29 +02:00
kangax
45017eeed2
Fire 'path:created' event for circle and spray brushes
2013-07-16 23:46:11 +02:00
kangax
8a0e9bd6b4
Fix fabric.Path.fromElement. Version 1.2.5
2013-07-13 20:15:35 +02:00
kangax
8f02189d50
Fix fabric.Path/fabric.PathGroup fromObject
2013-07-13 18:56:41 +02:00
Juriy Zaytsev
d741b647bc
Merge pull request #740 from nathan-muir/kangax-master
...
Fix issue with `fabric.Line` in browsers that don't support 'setLineDash'
2013-07-13 02:09:00 -07:00
kangax
b8ad7fa79e
Clip text background and decoration properly. Closes #743 .
2013-07-13 02:35:04 +02:00
kangax
c8cab03aac
[BACK_INCOMPAT] fabric.Path.fromObject is now async. fabric.Canvas#loadFromDatalessJSON is deprecated.
2013-07-12 22:38:21 +02:00
kangax
72ef6c67fa
Parse lineHeight in style attribute. This fixes IE11's only failing test.
2013-07-11 20:39:45 +02:00
Nathan Muir
f97d593c84
Fixed issue with fabric.Line when browser doesn't support 'setLineDash' (firefox & IE 10). Example at http://jsfiddle.net/taRvU/1/
2013-07-11 12:16:34 +10:00
kangax
4e5f5badc0
Avoid trailing comma in shadow.class.js when toSVG is stripped. Thanks @danielbeardsley
2013-07-08 12:39:19 +02:00
kangax
0bf607be2e
Revert polygon/polyline points change as it breaks shapes in SVG import section
2013-07-08 12:39:13 +02:00
kangax
3eb00518f8
Fix pointer detection in scrollable container. Thanks @kwicher. Closes #730
2013-07-07 22:32:03 +02:00
kangax
21f87bb63a
Fix polygon/polyline tests and minor cleanup
2013-07-07 22:25:01 +02:00
Juriy Zaytsev
3076a7b45f
Merge pull request #736 from timandres/master
...
Fix polygon/polyline bounding box
2013-07-07 13:09:30 -07:00
kangax
33fd6c66b5
Version 1.2.1
2013-07-06 16:04:29 +02:00
Juriy Zaytsev
e4989e3fbe
Merge pull request #709 from woutercommandeur/path
...
Fix path behaviour with top/left offsets. Closes #663
2013-07-06 05:56:43 -07:00
kangax
0b9a9fa9e2
Fix incorrectly created group. Closes #710
2013-07-05 23:10:45 +02:00
kangax
be72f68670
Make sure object angle is always positive
2013-07-04 14:18:30 +02:00
kangax
a33a599417
Remove commented out code
2013-07-04 14:18:30 +02:00
Juriy Zaytsev
aca2a62a22
Merge pull request #734 from sn3p/master
...
Make `sendBackward` / `bringForward` work with non-intersecting objects
2013-07-03 15:38:20 -07:00
Matthijs Kuiper
fe4c0cbb32
Make sendBackward/bringForward work with non-intersecting objects
...
sendBackward/bringForward functions now take an additional parameter
`intersecting` (boolean).
If `true`, send object behind/in front of next intersecting object.
If `false` (default), send object one level down/up without checking for
intersection.
See issue https://github.com/kangax/fabric.js/issues/707
2013-07-03 23:05:05 +02:00
Kienz
520b2258d3
Convert opacity value into float value. If stop-opacity is set as attribute (not as style attribute) el.getAttribute('stop-opacity') returns null. Problem exists since commit a0b7fa4eb9.
...
Add default value rgb(0,0,0) for stop-color and 1 for stop-opacity.
Add more gradient tests.
2013-07-02 21:09:50 +02:00
Tim Andres
1576306ef0
Simplified fabric.util.getBoundingRect code
2013-06-28 17:29:07 -04:00
Tim Andres
09e438b0ee
Fixed bounding box bug with SVG parsed polylines and polygons
2013-06-28 16:39:15 -04:00
kangax
53aaedadb6
Fix docs
2013-06-20 14:24:00 +02:00
Daniel Beardsley
f10bef57af
Resizing: allow centerTransform per-object
...
Instead of ONLY a global setting. Some objects (like circles) make far
more sense with centerTransform so it's nice to be able to do it
per-object.
2013-06-19 17:01:32 -07:00
Juriy Zaytsev
8805547e74
Merge pull request #716 from iFixit/load-image-buffer-support
...
Add support for Buffers in `fabric.utils.loadImage`
2013-06-19 04:19:33 -07:00
Cedric Wienold
5fc960aa56
Add support for Buffers to utils.loadImage
...
If the user has preloaded image data in a Buffer, allow that user to use
that data to load into a Fabric.js image.
This is possible because node-canvas supports setting 'src' to a Buffer.
2013-06-19 04:11:06 -07:00
kangax
6597b8919b
Make sure only existent custom properties included in output. Closes #713
2013-06-19 12:49:45 +02:00
kangax
4d4a129ee6
Fix objects z-index when creating a group via shift click
2013-06-18 12:34:43 +02:00
Michal Knizek
f22c198a1e
Zero opacity in gracient color stop kangax/fabric.js#711
2013-06-18 09:00:55 +02:00
Wouter Commandeur
b2b305e90b
fix path behaviour with top/left offsets, fixes #663
2013-06-16 11:56:35 +02:00
kangax
be8e921e57
Fix nested matrix multiplication. Closes #705
2013-06-13 23:10:33 +02:00
Stefan Kienzle
7e9122945e
Merge pull request #701 from woutercommandeur/flip
...
fix flickering when flipping using the corner scaling controls
2013-06-13 13:36:37 -07:00
Wouter Commandeur
6f4e78d6fc
semicolons again
2013-06-13 17:50:40 +02:00
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
kangax
5bd8ba28d6
Fix loadFromJSON callback when objects array is empty. Closes #703
2013-06-13 13:39:17 +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
Riley Dutton
d79ff8f5e2
Fix bug for not firing selection:created when using Shift to add objects
...
Currently if you use Shift+Click to add objects to a group, selection:created will only fire after you add 3 or more objects to the group. This fix allows selection:created to fire when the group is first created (when the second object is added).
2013-06-12 10:19:00 -05:00
Juriy Zaytsev
6ad7e80f95
Merge pull request #696 from woutercommandeur/scaleflipfix
...
Fix flipping by using the corner controls
2013-06-12 06:31:00 -07: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
86bda44927
adjust point translation for strokeWidth. This fixes #687 (part 2)
2013-06-10 16:59:52 +02:00
kangax
5792521c7a
Remove bottom/right from fabric.Path#_parseDimensions, as it's incorrect and not used anywhere. Build distribution. Closes #666
2013-06-10 15:44:23 +02:00
kangax
816261d863
objects -> getObjects()
2013-06-10 15:30:17 +02:00
kangax
d89dea62ac
Only use quadraticCurveTo when rendering rectangle with rounded corners. Closes #691
2013-06-10 15:30:17 +02:00
Wouter Commandeur
b55bfd5326
fix scaling with large strokeWidth, this fixes #687
2013-06-09 21:28:08 +02:00
Wouter Commandeur
e503c36170
fix objects jumping around when scaling one side of a group and then rotating
2013-06-07 16:42:26 +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
kangax
e1f93a3668
Move dimensionAffectingProps to fabric.Text.prototype. Simplify and speed up Intersection class. Build distribution.
2013-06-06 03:06:17 +02:00
kangax
55eeed181b
Move drawArc to utils. Simplify and speed up fabric.Point
2013-06-06 02:49:42 +02:00
kangax
64317de0d0
Revert text box behavior back to previous (so that characters don't peak out of bounding box). Version 1.1.21
2013-06-05 14:53:35 +02:00
kangax
1b1e0ecc72
Fix node text rendering again
2013-06-05 13:51:26 +02:00
Wouter Commandeur
3c9f7ba5ab
and fix bug.
2013-06-04 21:57:00 +02:00
Wouter Commandeur
54aad583cd
no need for extra local var
2013-06-04 21:55:54 +02:00
Wouter Commandeur
823ea5ecc5
local var for strokeWidth
2013-06-04 21:52:30 +02:00
Wouter Commandeur
b8e3e6d83f
proper fix for strokeWidth causing problems with controls on large scaling
2013-06-04 21:51:23 +02:00
Wouter Commandeur
af31d2abc9
fix object controls being incorrectly rendered at large scaling. Fixes #680 .
2013-06-04 21:20:03 +02:00
Wouter Commandeur
e377e681c3
adjust mouse cursor depending on rotation. fixes #644
2013-06-03 19:10:33 +02:00
kangax
2f1383a713
Fix text rendering again. Version 1.1.19
2013-06-03 18:32:44 +02:00
Wouter Commandeur
2dadf7b06a
fix transparentCorners beheaviour. When transparentCorners is specified we nolonger clearRect. See issue #405 .
2013-06-03 10:51:20 +02:00
kangax
044f5ed483
Fix rect positioning when loading from JSON. Closes #522
2013-06-03 02:24:41 +02:00
kangax
5a28acb032
Fix toJSON/toSVG serialization when there's active group on canvas. Closes #645
2013-06-03 01:55:51 +02:00
kangax
2407dbba49
Implement clipTo serialization, deserialization, and initialization. Closes #583 . Closes #677 . Closes #676
2013-06-02 23:04:54 +02:00
kangax
221146997c
Fix pattern initialization from function string. Closes #442 . Version 1.1.18
2013-06-02 22:07:16 +02:00
kangax
e65a7bfee8
Fix text rendering on Node when originY !== top
2013-06-02 21:17:26 +02:00
kangax
1c1b7e4b95
Fix function body matching regex. Add fabric.util.getFunctionBody
2013-06-01 18:08:36 +02:00
kangax
46183d8a85
Fix function body regex to match in IE. Closes #658
2013-06-01 17:48:46 +02:00
kangax
9b09a957f4
Better docs
2013-06-01 16:27:10 +02:00