Andrea Bogazzi
db068d59c9
enlarge shadow if retina scaling is active
2016-02-24 08:45:15 +01:00
Andrea Bogazzi
701a62053d
make group transform support general transforms
2015-10-24 15:38:46 +02:00
Andrea Bogazzi
cda0611326
Add support for skew objects.
2015-09-17 14:22:12 +02:00
Andrea Bogazzi
8ff217c59a
Update object.class.js
2015-08-13 22:28:06 +02:00
Andrea Bogazzi
5966b5e319
toObject returns deep cloning if necessary
2015-08-11 11:10:51 +02:00
Andrea Bogazzi
ba8e97dd33
Update object.class.js
2015-08-10 15:45:14 +02:00
Andrea Bogazzi
3c132945c2
Update object.class.js
2015-08-10 01:54:17 +02:00
Andrea Bogazzi
66bf218885
Update object.class.js
2015-08-10 01:29:57 +02:00
Juriy Zaytsev
20e97924f4
Make sure image props are output properly
2015-07-20 13:56:20 -04:00
Andrea Bogazzi
215ed8b9b8
Merge pull request #24 from kangax/master
...
asd
2015-07-20 01:23:17 +02:00
Andrea Bogazzi
8573c755b6
Update object.class.js
2015-07-18 00:50:56 +02:00
Juriy Zaytsev
2171dd1379
Output less irrelevant information in fabric.Image#toObject
2015-07-17 17:42:30 -04:00
Juriy Zaytsev
8791741c9f
Merge pull request #2237 from inssein/textbox
...
Textbox Implementation - from Jaffer Haider
2015-07-13 18:34:58 -04:00
sapics
7e9f17186f
just code simpler
2015-06-11 11:16:41 +09:00
Andrea Bogazzi
a745e41849
Added rotation logic to getLocalPointer, removed no more usefull getLocalRotatedPointer
2015-06-08 07:59:07 +02:00
inssein
d08dabc2ab
forgot setOnGroup additions
2015-05-31 22:45:33 -07:00
Andrea Bogazzi
1f84378565
obect stroke restoring was missing
2015-05-09 11:05:05 +02:00
Andrea Bogazzi
9691acdc2c
Update object.class.js
2015-05-08 08:29:03 +02:00
sapics
fe65503e11
fix only coding style
2015-04-21 09:53:19 +09:00
Andrea Bogazzi
6c24ec06f6
Update object.class.js
2015-04-17 01:24:05 +02:00
Andrea Bogazzi
75142bd9c0
Update object.class.js
2015-04-16 21:11:02 +02:00
Andrea Bogazzi
d7f0fea8a2
avoid unnecesary save and restore per object
2015-04-08 09:08:05 +02:00
Juriy Zaytsev
5f988a2600
Merge pull request #2083 from asturur/changes-in-rendering
...
Changes in rendering
2015-04-06 02:52:41 +02:00
Andrea Bogazzi
1550c9d154
Update object.class.js
2015-04-04 14:12:02 +02:00
Andrea Bogazzi
26b91222e9
Update object.class.js
2015-04-04 13:45:50 +02:00
sapics
c90062c78e
Remove overlap definition of setAngle in jsdoc
2015-03-30 10:27:08 +09:00
Andrea Bogazzi
55d6f300f6
Update object.class.js
2015-02-12 20:27:20 +01:00
Andrea Bogazzi
f72b55283d
Update object.class.js
2015-02-04 21:37:32 +01:00
Andrea Bogazzi
a6f240285c
Update object.class.js
...
Fix the shadow and canvas zoom problem.
2015-02-04 17:29:59 +01:00
kangax
df888e47cc
Mention read-only nature of “type”
2015-01-13 12:53:25 +01:00
Shaw
0a52d59239
toDataURL via StaticCanvas
...
Fix for `toDataURL` not working without interaction module (issue #1891 )
2014-12-12 13:10:59 -06:00
kangax
77434e6086
Add docs on originX/originY and setCoords
2014-12-07 12:56:57 +01:00
Juriy Zaytsev
f125941e21
Merge pull request #1825 from asturur/Line-tests
...
Line accuracy issue in pathgroup with high zoom level
2014-11-22 14:26:01 +01:00
Andrea Bogazzi
f4385b2de9
Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines
...
Check how this version could behave in general rendering.
2014-11-20 22:34:47 +01:00
kangax
5a3b5657c5
Check for canvas presence before accessing multiplier
2014-11-07 12:06:24 +01:00
Andrea Bogazzi
ed00d1c5fb
Update text.js
2014-10-29 15:25:08 +01:00
Andrea Bogazzi
f8e6ae9461
Update parser.js
...
Allow first example of stroke svg import to work properly
2014-09-26 09:52:33 +02:00
Andrea Bogazzi
af1138a686
Divided FillRule from globalCompositeOperation
2014-09-23 08:53:56 +02:00
Andrea Bogazzi
673d8584d9
Update object.class.js
2014-09-21 20:54:21 +02:00
Andrea Bogazzi
f6f359e6dd
Update object.class.js
...
Fix opacity for groups.
Before it was working just in simple situation, now it should be ok both in path-group and in normal groups and nested groups.
2014-09-17 10:36:59 +02:00
Andrea Bogazzi
a4610822b5
Update object.class.js
...
Fix code style error.
2014-09-13 18:01:19 +02:00
Andrea Bogazzi
2415eec00d
Update object.class.js
2014-09-13 17:05:17 +02:00
kangax
a3d40878d6
Update JSCS to 1.6, fix errors, hook up travis
2014-08-30 13:18:43 +04:00
Andrea Bogazzi
98b4bdccaf
Update object.class.js
2014-08-16 16:23:02 +02:00
Andrea Bogazzi
f955969e76
Update object.class.js
...
added gradienttransfor rendering
2014-08-16 08:15:47 +02:00
Andrea Bogazzi
6cc42ca43c
Update object.class.js
2014-08-12 23:33:08 +02:00
Andrea Bogazzi
e8013f4964
Update object.class.js
...
Just grammar
2014-08-10 19:40:58 +02:00
Andrea Bogazzi
ebc1cf9604
Update object.class.js
...
added lockScalingFlip, if set to true you cannot flip by accident an objec while scaling it.
2014-08-10 00:38:44 +02:00
Andrea Bogazzi
f84091054f
Object: Moved globalAlpha here, changes in render
2014-08-05 12:50:39 +02:00
kangax
818ab118b3
JSCS changes; Prepare for JSCS ignore support; down to 51 failures
2014-08-03 16:47:27 +02:00
asturur
fbbd763eb0
Update object.class.js
...
Fix border in case of stroke=color but strokewidth=0.
2014-07-18 20:14:51 +02:00
Stefan Kienzle
6b5f049bb0
JSDoc + JSCS tweaks - Part 2
2014-07-18 11:16:23 +02:00
Stefan Kienzle
b34387d10e
JSDoc + JSCS tweaks - Part 1
2014-07-17 16:18:57 +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
asturur
22b0149e49
Update object.class.js
...
as suggested by Kienz.
2014-06-24 15:38:14 +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
Kienz
5ea264ae3d
fabric.Object.setAngle consider different originX/originY values other than "center"
...
Closes issue #1093
2014-05-12 20:36:59 +02:00
kangax
f3b7884827
Add support for "evenodd" fill rule. Closes #1021
2014-04-15 20:09:01 -04:00
kangax
0dbf03835d
Fix typo, build dist
2014-02-19 14:59:50 -05:00
Juriy Zaytsev
8f2d29f5d6
Merge pull request #1172 from kreig/patch-1
...
fabric.Object.fillRule support using globalCompositeOperation
2014-02-19 14:44:05 -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
kreig
e89c9c84bd
fabric.Object.fillRule support using globalCompositeOperation
...
Full support for the fabric.Object.fillRule option for any visual objects.
_setupFillRule(ctx) is used to set CanvasRenderingContext2D.globalCompositeOperation (from fillRule property).
_restorFillRule(ctx) restores previously saved globalCompositeOperation.
Both methods are called form the render() method, so individual blending settings for each object can be specified.
2014-02-16 19:00:53 +02:00
Juriy Zaytsev
213b99eb9f
Merge pull request #1127 from GordoRank/Optimize-searchPossibleTargets-for-IText
...
Optimize searchPossibleTargets for I-text
2014-01-27 12:54:02 -08:00
kangax
3dd2f1572d
Move for in body into a separate method (to allow inlining)
2014-01-23 10:49:23 -05:00
GordoRank
531faae418
revert master
2014-01-23 10:15:30 +00:00
GordoRank
c8da9fbfc3
update cache automatically in _set()
2014-01-23 10:07:33 +00:00
kangax
d7c2076b8a
Do not call shadowColor = ... when there's no shadow
2014-01-04 15:02:51 -05:00
kangax
db041fded5
Add note about clipTo origin. Update changelog
2013-12-11 11:09:59 +01:00
Kienz
fd3ace05bb
[BACK_INCOMPAT] Possibility to remove multiple fabric.Objects from collection (canvas, group) - this (canvas, group or object) is returned instead of delete object
...
Update unit tests - use strictEqual for some cases
Add multiple objects raised `object:added` for last added object first - now 1st added object raises 1st `object:added` event, 2nd object raises 2nd `object:added`…
2013-12-07 11:07:46 +01: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
kangax
336528551b
Move object stacking and SVG export methods to separate files
2013-11-20 21:14:26 +01:00
Kienz
d4b2ea18b7
Fix center methods for object’s with different originX/originY
...
object.center() only re-renders canvas once instead of twice
Update unit tests
2013-11-20 20:41:13 +01:00
Tom French
08d575422c
Fixes to zoom for groups and brushes.
2013-11-19 16:21:29 +00:00
kangax
5fdc1dc2d1
Move getLocalPointer to fabric.Object
2013-11-11 18:34:46 +01:00
Tom French
88b589b3d6
Implement zoom for brushes, various zoom fixes, remove canvasBorder.
2013-11-08 15:54:55 +00:00
kangax
330784ac2c
[BACK_INCOMPAT] Change default objects' originX/originY to left/top
2013-11-04 00:15:49 +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
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
476da71e92
Doc changes
2013-10-25 09:05:39 +02:00
kangax
4b78a2d819
Fix includeDefaultValues to account for stateProperties of specific objects
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
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
41ab3a0064
Doc additions
2013-09-26 14:12:02 +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
Kienz
721ac7a8c2
Doc additions - document object parameter
2013-09-17 22:42:58 +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
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
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
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