Commit graph

3782 commits

Author SHA1 Message Date
Jérôme Steunou
91de6d078d Remove push on shared array (#4478)
follow up for #4465
2017-11-20 13:16:18 +01:00
Asturur
9028ccf909 fix browser element mockup 2017-11-20 09:57:05 +01:00
Andrea Bogazzi
9d552db836
Update to 2.0 rc1 (#4472)
* rc1

* removed beta from issue template
2017-11-19 23:55:41 +01:00
Andrea Bogazzi
031531b218
Reduce leaks in NODEJS continue canvas creations (#4471)
* reduce leaks in node

* fix test
2017-11-19 23:41:42 +01:00
Andrea Bogazzi
7eea5228b9
removed specific node code (#4470)
* removed node code

* fixed UTs
2017-11-19 20:00:01 +01:00
Andrea Bogazzi
841e77ebb9
re enable resize filter (#4469) 2017-11-19 16:30:06 +01:00
Andrea Bogazzi
57c5d5150c
removed extra padding (#4467) 2017-11-18 16:59:10 +01:00
Andrea Bogazzi
0df3f55dc3
removed this.ctx (#4466) 2017-11-17 23:54:15 +01:00
Andrea Bogazzi
c975247db8
removed array reference for _dimensionsAffectingProps (#4465)
* removed array reference

* better to concat

* better visibility
2017-11-17 19:45:48 +01:00
Andrea Bogazzi
10a8684192
Proposal for different lineJustify. (#4437)
* not even tested

* Small fixes (#4441)

* fixed selection

* fixed svg export
2017-11-12 23:00:59 +01:00
Andrea Bogazzi
51a9e87854
fixed group restoring internal absolute coords for subtarget check (#4454)
* fixed group restoring internal cords

* added small test
2017-11-12 15:54:33 +01:00
Andrea Bogazzi
d65b5dd5a1
removed with dims (#4453) 2017-11-12 15:18:28 +01:00
Andrea Bogazzi
61c415be26
Partially solve cache fuzzyness (#4452)
* made less funzzy

* solved lint

* cleaned a bit

* fixed tests
2017-11-12 14:59:36 +01:00
Andrea Bogazzi
2dbce1d71a
add Node9 to tests 2017-11-12 01:31:25 +01:00
Andrea Bogazzi
a2f9c9f205
Fix image import from SVG when width/height are larger than element (#4450)
* fixed

* removed extra function;

* fix import of preserver

* added tests

* fixed test names
2017-11-12 01:30:22 +01:00
Andrea Bogazzi
ece82e6b94
stop searching target on mousemove on transform (#4442) 2017-11-08 21:00:56 +01:00
Andrea Bogazzi
ef85ed7eef
Ab webgl filter for resize (#4426)
* test another version

* a working webgl resize

* broke blur"

* broke blur"

* a working webgl resize

* better cache shader

* no dist

* better

* better2

* fixed tests

* linting
2017-11-04 11:57:05 +01:00
Sander Sink
1435e862d5 Downgrading webGL precision if target hardware does not support highest (#4433)
* Downgrading webGL precision if target hardware does not support highest

* moved webGlPrecision to fabric property
2017-10-31 21:48:51 +01:00
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