Commit graph

2674 commits

Author SHA1 Message Date
Durga Madhab
65a219e56c toSVG() excludeFromExport for backgroundImage and overlayImage (#5075) 2018-07-09 05:48:39 +02:00
Andrea Bogazzi
9a734a36b9
Add visual test suites draft (#5068)
* adding visual tests

* working setup

* test travis setup

* unbuilt

* maybe we do not need this

* maybe this

* maybe we do not need this
2018-06-26 11:41:03 +02:00
Andrea Bogazzi
abe813fe8f
Fix Trailing and zwj (#5048)
* fix-trailing

* fix zwc

* unbuild builds

* fix zwc

* added a small testl

* reenable all tests

* added test
2018-06-17 13:19:38 +02:00
Andrea Bogazzi
4ad9486553
fix group becoming cachrable (#5021)
* fix group becoming cacheable
2018-06-04 11:13:39 +02:00
Andrea Bogazzi
244e46c00f
remove more events (#5020)
* remove more events

* moved code togheter

* do not forgetl int

* fixed tests
2018-06-04 00:17:02 +02:00
Durga Madhab
87d67eb04c reHSLa and reRGBa ignore case (#5017)
* fabric.Color.reRGBa regex ignore case

ignore case for rgba

* fabric.Color.reHSLa ignore case

ignore case for hsla

* test case RGBA / HSLA

added test case for RGB/RGBA and HSL/HSLA (uppercase)

* Update color.js
2018-06-02 20:12:38 +02:00
Andrea Bogazzi
4af1c0d6b5
Fix clear fabric font cache (#5019)
* fix clearFabricFontCache

* added a small test

* fixed
2018-06-02 00:03:06 +02:00
Andrea Bogazzi
86111836e2
added options back for removal (#4958) 2018-06-02 00:00:41 +02:00
Andrea Bogazzi
bd0d0125be improved jsdoc 2018-06-01 23:46:54 +02:00
Andrea Bogazzi
6db1b1d211
Use the new mousedown:before to understand if an object is already selected on mousedown (#5010)
* fix something

* other changes
2018-05-30 11:29:27 +02:00
Nick Zaitsev
b77957f3ec fixed IText's cursor and text selection not ignoring charSpacing at the end of line (#5008) (#5009) 2018-05-30 08:53:17 +02:00
Nick Zaitsev
b1c25a4f56 fixed text underline/overline/linethrough not ignoring charSpacing at the end of line (#5006) (#5007) 2018-05-30 08:52:16 +02:00
Andrea Bogazzi
bafc28d3fc
Svg import improvements (#4984)
* test

* svg-import-fixes

* svg-import-fixes

* ok done

* adapted tests to new values
2018-05-29 10:28:02 +02:00
Andrea Bogazzi
68d2ed7d3c modified jsdoc 2018-05-21 09:32:22 +02:00
Andrea Bogazzi
13e452bc20 added some jsdoc 2018-05-19 23:58:26 +02:00
Andrew Johnson
c3b6e65f82 isTargetTransparent() now samples the cache directly. (#4955)
* isTargetTransparent() now samples the cache directly.

Previously, isTargetTransparent would do a paint from the cache
to the contextCache which has more overhead and is slower.
With this commit, fabricjs will test the cache canvas directly
using x/y coordinates calculated with respect to the target object
center. This is more performant since it avoids an extra render
on every call to isTargetTransparent.

* remove cacheDirty that should not be needed.
2018-05-19 23:52:34 +02:00
Andrea Bogazzi
ac804af486
Add new events for transformations (#4979)
* before:transform event

* added more properties to transform events

* add some more events

* fix lint

* tests
2018-05-19 23:37:09 +02:00
Andrea Bogazzi
0828face97
Brush problems (#4938) 2018-05-08 10:59:42 +02:00
keyurpatel
885545aca8 isEqual fails hard. (#4949)
* fix current value null issue
2018-05-07 20:12:53 +02:00
Andrea Bogazzi
a267b76e8d more-gl-options 2018-04-29 12:09:11 +02:00
keyurpatel
fcef0a3bcf isPartiallyOnScreen method (#4856)
* appears

* new methods

isPartiallyOnScreen
isOffScreen

* UT

* test

* comment improved

* removed isOffScreen

* removed isOffScreen

* Update object_geometry.mixin.js

* Update object_geometry.mixin.js

* lint...

* omg
2018-04-28 14:35:24 +02:00
Andrea Bogazzi
b1b5f89bc5
Writing shader to avoid premultiplied alpha pixel getting dirty (#4936)
* first one
* changed filters
* fixed errors
2018-04-28 13:52:35 +02:00
Andrea Bogazzi
4c2e59a3cd
modified shadow tosvg (#4934) 2018-04-28 01:17:45 +02:00
Andrea Bogazzi
b946e8ae6b Merge branch 'master' of github.com:kangax/fabric.js 2018-04-28 00:50:18 +02:00
Andrea Bogazzi
09a8c751db some jsdocs 2018-04-28 00:50:07 +02:00
Andrea Bogazzi
d84969f68c
Register mousemove as non passive to help touch devices (#4933)
* fix-event-reg

* this was the file

* take care of touch-action too
2018-04-28 00:36:17 +02:00
Andrea Bogazzi
debf1ec069 fixed typo in filter 2018-04-24 11:20:40 +02:00
antucg
18abedd960 Fix blur for node.js (#4905) 2018-04-13 10:52:25 +02:00
Arlen Yu
d73dbabb15 Fixing issues with selectionDashArray bleeding into free drawing (#4894) (#4897)
* Fixing issues with selectionDashArray bleeding into free drawing

* Resetting line dash in _setBrushStyles when there is no strokeDashArray
2018-04-11 11:45:23 +02:00
Nicolas Morel
fe55cf4d4a Fix getPointer on touch devices (#4866)
* Fix getPointer on touch devices

If the pointer is at x=0 or y=0, it returns NaN.

* Update dom_event.js
2018-04-08 21:29:26 +02:00
Andrea Bogazzi
77862ef41c
fix the parsing of the URL part of a property. (#4881)
* fix gradient parse url

* added test

* fix lint
2018-04-01 20:39:49 +02:00
Andrea Bogazzi
24a97a3327 fixed doc for excludeFromExport 2018-04-01 18:49:37 +02:00
Alexey Smirnov
addea82c53 Add letter spacing support for svg (#3718)
* add letter spacing support for svg

* fix letter spacing for Parser

* Update itext.svg_export.js

* Update text.class.js
2018-04-01 18:44:18 +02:00
Andrea Bogazzi
c7895d1956
add whitespace support for multiple spaces (#4880) 2018-04-01 18:28:11 +02:00
Andrea Bogazzi
1e5c64ff2a
Reset width and height for an image when swapping src (#4877)
* ok

* added simple test

* working test
2018-04-01 14:52:37 +02:00
Andrea Bogazzi
ea4b53cf6f
Removed the code for swapping origin for rotation (#4878)
* lots of code deleted

* rotation working

* a change

* added simple test

* resolve conflict
2018-04-01 14:28:07 +02:00
Andrea Bogazzi
d5f3bf4a79
Canvas SVG export (#4852)
* changed export

* mmm

* mmm

* added some tests

* fixed tests

* ....lint

* ....lint
2018-04-01 00:11:53 +02:00
Andrea Bogazzi
e04c19b8e3 updated jsfiddle demo for setBackgroundImage 2018-04-01 00:07:33 +02:00
Andrea Bogazzi
41a9b77cbb
added startAngle to cacheProperties (#4875) 2018-03-31 13:50:51 +02:00
Andrea Bogazzi
375d99380c
done something (#4850) 2018-03-24 23:05:15 +01:00
Andrea Bogazzi
682eac4545
removed references to context when disposing (#4846)
* removed references to context
* improved test
* try fix error
2018-03-22 12:35:12 +01:00
dennisrjohn
17386fc240 Added single quoting to font names in toSVG (#4840)
* Added font quoting to toSVG
* fixed test
2018-03-22 12:02:06 +01:00
Andrea Bogazzi
936df6b6f4
add reserved space to wrapLine functionality (#4841)
* added back reserved space

* added test
2018-03-19 20:05:54 -04:00
Andrea Bogazzi
eb97ed56f2
ApplyFilters updates dirty flag in orde to refresh groups (#4828)
* added dirty to apply filter

* applied to resize filter too

* applied to resize filter too

* fixed test

* fixed tests
2018-03-17 01:12:19 -04:00
dennisrjohn
7698801feb New PR fo 4808 (#4831)
* new commit per asturur

* new commit per asturur
2018-03-17 00:15:54 -04:00
Andrea Bogazzi
2ce99ee0b7
fixed calculate position (#4827)
* fixed calculate position

* Re-enabled tests.
2018-03-15 23:45:56 -04:00
Nate Evans
5155da9fce Use clientWidth and clientHeight of upperCanvas to size hiddenTextarea (#4768)
* Use clientWidth and clientHeight of upperCanvas to size hiddenTextarea to work with dynamic sized canvas.
2018-03-15 22:46:01 -04:00
Andrea Bogazzi
d105638e65
fixed multiple touchend (#4804) 2018-03-12 02:07:47 -04:00
Andrea Bogazzi
808faa6d5f
fix textbox wrapping with charspacing (#4803)
* fix textbox and charspacing

* added test

* enabled all tests
2018-03-12 01:53:43 -04:00
Andrea Bogazzi
c7f6154bb5
fixed empty line (#4802) 2018-03-11 13:14:43 -04:00