Commit graph

3764 commits

Author SHA1 Message Date
Andrea Bogazzi
9bf3fdfd90
Update package.json 2017-10-31 13:05:10 +01:00
Andrea Bogazzi
1db3d93a2d
Update package.json 2017-10-31 13:04:54 +01:00
Thomas Heller
9767e9ce5a Disable http/https requires for browser builds. (#4424)
See https://github.com/kangax/fabric.js/issues/4423

`webpack -p` build just including `fabric` goes from `334kb` to `300kb`.
2017-10-30 13:26:42 +01:00
Andrea Bogazzi
a090a980d0 Fixing text insertion and deletion on edge cases. (#4420)
* fix insertion

* fixed forward delete on line start
2017-10-27 13:28:29 +02:00
Andrea Bogazzi
073a892993 more setCoords (#4419) 2017-10-27 11:14:59 +02:00
Stefan Hayden
863eec4303 object_stacking fix (#4394)
* when calling moveTo on an activeSelection the code should move the objects in the canvas._objects stack instead of moveing the objects in the activeObject._objects stack. This already works correctly for moveForward / moveBack / ect.

* Update activeselection.js

* fix trailing spaces

* Update activeselection.js
2017-10-27 09:40:47 +02:00
Andrea Bogazzi
40f16a9b4e Memoize transform and use transform for rendering (#4418)
* done

* done removed dist

* added some test
2017-10-27 09:01:32 +02:00
Andrea Bogazzi
3244f6c0ae Change the logic for setting dirty flag (#4417)
* test

* add better set support

* no build dist
2017-10-27 06:11:28 +02:00
Andrea Bogazzi
141f60aea7 Make generic _set aware of real change property (#4415)
* first change

* added a small test
2017-10-26 11:03:35 +02:00
Asturur
c6787042a9 fix lint 2017-10-25 23:39:19 +02:00
Melvyn Hills
0ddf90c255 Add browserShadowBlurConstant to adjust shadowBlur value (#4413)
* Expose browserShadowBlurConstant to adjust shadowBlur value (#4402)
* Add test for fabric.browserShadowBlurConstant
* added test description in case of failure
2017-10-25 23:33:58 +02:00
Andrea Bogazzi
2e337613b0 Fix set element not clearing webgl texture cache (#4410)
* fix and test

* fix test
2017-10-25 10:09:10 +02:00
Anton Pawlik
3efd895fe0 Fix comments about setOverlayColor (#4381) 2017-10-13 13:07:51 +02:00
Asturur
d1cff09104 fix mousemove and target 2017-10-09 02:11:15 +02:00
Andrea Bogazzi
b1f0f67669 fix the displacement of last or first point checking direction (#4377)
* fix the displacement of last or first point checking direction

* fixed doc
2017-10-08 20:04:31 -04:00
Andrea Bogazzi
32dea1ef0b Text minor changes (#4367)
* minor changes

* argh

* minor text changes
2017-10-01 00:13:56 -04:00
Stefan Hayden
8f4fb458bf change selectionKey interface to not be a breaking change but still accept an array (#4363) 2017-09-30 23:18:03 -04:00
Brian Chitester
d88af28af7 Allow multiple keys to enable multiple click selection (#4184)
* Allow multiple keys to enable multiple click selection

* backwards compatibility: allow string or array

* do isArray properly

* forgot a this.

* formatting...

* more formatting...
2017-09-29 13:40:36 -04:00
Wietse Wind
052631bdcb Fix IE rendering of SVG as overlay image (#4324)
* Fix IE rendering of SVG as overlay image

* Fix IE rendering of SVG as overlay image #2 - Fix coding syntax (CI)

* Fix IE rendering of SVG as overlay image #3 - Fix coding syntax (CI)

* Fix IE rendering of SVG as overlay image #4 - Moved to method 'loadImageInDom'

* Fix IE rendering of SVG as overlay image #5 - Moved some stuff around

* Fix IE rendering of SVG as overlay image #6 - Fixed the setTimeout (removed)

* Update misc.js
2017-09-29 00:36:00 -04:00
Andrea Bogazzi
3884824f46 Do not scale cache for transform target (#4358)
* no scaling cache for the current target

* .
2017-09-29 00:02:43 -04:00
Andrea Bogazzi
d4b51aec6c added old props to selection:updated and selection:created (#4357)
* added old props

* added a test
2017-09-28 23:53:07 -04:00
Andrea Bogazzi
d11c55e9cd Make scaleToWidth/scaleToHeight use the absolute parameter (#4350)
* added absolute param to scaleToWidth

* added simple tests
2017-09-28 23:25:20 -04:00
Stefan Hayden
0bb8a131a6 fixes problems with isTargetTransparent trageting. also nulls out cachedCanvas when not being used to make it easier to check if a proper cachedCanvas exists (#4356) 2017-09-28 22:28:08 -04:00
Andrea Bogazzi
cc7c36fa7d Added back target to object:modified (#4348)
* added back target

* Update canvas.class.js
2017-09-25 21:16:50 -04:00
Andrea Bogazzi
2c2111ebe3 Normalize selection events (#4340)
* different object managment
2017-09-25 15:14:15 -04:00
Andrea Bogazzi
dd6cbe93a2 Fix fast type in itext. (#4339)
* fix fast type
2017-09-23 00:39:20 +02:00
amadois
d7131d1cac corrected typo (#4328)
thanks
2017-09-20 19:27:03 +02:00
Andrea Bogazzi
ea93c288e8 fix-div-by0 (#4327) 2017-09-20 00:29:16 +02:00
Andrea Bogazzi
ad6521affb Paint order svg for CIRCLE, IMAGE and TEXT (#4320)
* added were missing
* added for image too
2017-09-18 00:14:08 +02:00
Stefan Hayden
0fc71349a6 Paint order (#4303)
* makes fabric aware of the paint-order svg2 spec to swap the paint order of stroke and fill
2017-09-17 22:47:35 +02:00
Andrea Bogazzi
ddb402730d Fix mouse:out on shift click selection (#4317)
* add hovered target when create active selection;

* selection and hovered

* added another assertion
2017-09-17 13:18:13 +02:00
Asturur
10c5d49c62 fixed tests 2017-09-17 12:40:05 +02:00
Andrea Bogazzi
fa96a59891 upgrade to beta7 (#4316) 2017-09-17 12:13:19 +02:00
Andrea Bogazzi
c03111824c Update deps (#4315)
* try replace tests
* modified tests for new qunit
* lint tests
2017-09-17 11:44:57 +02:00
Andrea Bogazzi
741fcbaa9a Fires selected for object included in drag area (#4314)
* added many tests
* linted tests
2017-09-16 23:31:11 +02:00
Andrea Bogazzi
9bd5e90840 Fix scale equally and double flip not happening (#4313)
* fix double flip

* fixed lint
2017-09-16 22:11:50 +02:00
Andrea Bogazzi
1b8786c706 Adding some tests on events firing (#4312)
* some tests on events

* fixed test linting
2017-09-16 20:27:45 +02:00
Jordan Acosta
cdd28b01a2 Check fabric.window for ontouchstart (#4302)
Fixes #2664
2017-09-16 13:06:47 +02:00
Andrea Bogazzi
87f4fc905b Add a new event and fixed the free drawing point displacement (#4311)
* things

* fixed drawing paths

* added jsdocs
2017-09-16 13:06:09 +02:00
Andrea Bogazzi
124da9ca26 backport subtarget fix 2017-09-09 00:29:10 +02:00
Andrea Bogazzi
0f265631b3 Compare distance between cursor with absolute value. (#4295)
* fix with Math.abs

* ok this works

* added test

* added test file

* linting tests

* wrong test
2017-09-07 12:59:02 +02:00
Andrea Bogazzi
545686ed96 Fix Safari svg whitespace (#4294)
* fix-whitespace

* fixed tests

* fixed doc
2017-09-07 12:02:56 +02:00
Andrea Bogazzi
0d36e565a9 improved docs, fixed dirty on group destroy (#4293) 2017-09-07 11:41:03 +02:00
Tristan Fischer
e2f44cc76b fix object.getObjectOpacity() docs (#4277) 2017-09-06 12:38:49 +02:00
Andrea Bogazzi
860b7a74c0 mousemove and svg export (#4283) 2017-09-06 12:38:12 +02:00
Andrea Bogazzi
a72d9630f6 try with mouseout (#4275) 2017-08-31 23:18:59 +02:00
Andrea Bogazzi
5bab9b84b2 fix path exports svgs (#4274) 2017-08-31 22:59:22 +02:00
Tristan Fischer
5f7e61f02f fix typo in shadow docs (#4271) 2017-08-31 22:33:10 +02:00
Andrea Bogazzi
4e438cac7b improved condition (#4258) 2017-08-29 22:35:02 +02:00
Andrea Bogazzi
db6510be67 adds , {backstoreOnly: true} for toDataURL export (#4254)
adds the backstoreOnly to __toDataURLWithMultiplier's setDimensions calls to prevent the canvas from resizing in the browser window when the canvas.toDataURL() method is called per issue #4252
2017-08-29 22:25:59 +02:00