Commit graph

734 commits

Author SHA1 Message Date
Andrea Bogazzi
ffe01ab9f6
ClipPath to svg (#5234)
* svg plain examples works

* more code reuse in visual tests
2018-09-16 16:39:54 +02:00
Andrea Bogazzi
513233bf78
Making clipPath absolute positionable (#5199)
Added visual tests
Added property absolutePositioned and inverse
2018-09-16 01:59:36 +02:00
Andrea Bogazzi
2a476e4277
Clip path parsing (#4786)
* first pass done

* restarted-clippaths

* some changes to element parser

* shared attribute

* done one piece

* cleaned

* mmm going there

* so far so good

* a very first draft

* removed dist

* sovled conflict

* now solved

* now solved

* some improvements

* toObject and fromObject added

* toObject and fromObject added

* more small changes

* added simple tests

* bumpedup qunit

* a test for svg export

* no ist

* more svg exporpt

* fix lint

* make possible to clip canvas

* improved JSOCS

* no builds

* invalidate cache anyway

* changes

* changes

* changes

* mmm working
2018-08-23 01:06:07 +02:00
Andrea Bogazzi
e8a5ad446b
naturalWidth and naturalHeight (#5178)
* naturalWidth and naturalHeight

* fixed test
2018-08-19 22:03:14 +02:00
Andrea Bogazzi
e5e4387915
fixed interaction between filters (#5165)
* fixed interaction between filters

* added tests
2018-08-13 02:25:47 +02:00
DylanPaulusSEL
87c994d741 Feature/add href parsing (#5156)
* Add href support for parsing use directives (svg)

* Add href support for parsing use directives (svg)

* Add href support for parsing use directives (svg)

* Fix linting errors

* add xlink:href test

* Update parser.js
2018-08-13 01:24:36 +02:00
Andrea Bogazzi
8c3f677cc2
Fix interaction between grouping and enter edit for text (#5153) 2018-08-12 02:33:41 +02:00
Andrea Bogazzi
4c2f91d8ce
improve fabric.Pattern toSvg (#5164)
* fixed pattern toSVG

* better patterns

* fixed pattern and added tests

* better src
2018-08-11 20:43:49 +02:00
Andrea Bogazzi
6994b0419b
Make getObjects return a copy of the object array (#5162)
* ok

* ok

* ok
2018-08-11 17:30:55 +02:00
Andrea Bogazzi
db292dfb2f
Version 2.3.4 (#5144)
* built

* added changelog

* Update CHANGELOG.md
2018-08-06 00:50:56 +02:00
Andrea Bogazzi
133c674697
Group position numeric origins (#5143)
* fixed positioning

* fixed positioning

* ok tests are ok

* ok tests are ok
2018-08-05 23:52:31 +02:00
Andrea Bogazzi
c541a273ff
Better resource cleaning on canvas dispose (#5142)
* test-leak

* better than nothing

* avoid breaking tests

* avoid breaking tests
2018-08-05 17:50:51 +02:00
Andrea Bogazzi
74fa4f1f30
Fix visual tests (#5130)
* fix code in filter to clear less

* test rewrite

* missing parrot-blend
2018-08-05 14:54:25 +02:00
Andrea Bogazzi
5ee89354a6
Better use of filter isNeutral (#5129)
* done so far

* done so far

* added tests for isNeutral

* mini test for apply filter

* test lint
2018-08-05 11:25:53 +02:00
Andrea Bogazzi
464708aafc
To data url and zoom (#5139)
* added a new option

* deleted unused method

* passes

* ok there was an error

* reused util

* ok

* extra console.log

* fixed
2018-08-05 00:56:20 +02:00
brandondong
acb0b14010 Fix multiple applications of blend image filter with transparent images (#5121)
* Fix multiple applications of blend image filter with transparent images

* Add blend image filter visual test
2018-07-29 22:12:13 +02:00
Andrea Bogazzi
6353b09c5f
Resize filter should include canvas zoom and group zoom (#5117)
* change in zoom

* added a test

* fixed

* disable gl

* add percentage

* more group things

* more group things

* added unit test

* display percentage

* lint
2018-07-23 15:30:02 +02:00
Nicolas Morel
efa490fff0 Fix Circle toSVG method adding an incorrect double quote (#5085)
* Fix Circle toSVG method adding an incorrect double quote

* Add tests for Circle.toSVG
2018-07-12 15:31:47 +02:00
Andrea Bogazzi
7c7c227f3c fixed-test-lint 2018-07-12 15:20:42 +02:00
Andrea Bogazzi
750c7c26db
simpler test (#5093) 2018-07-09 12:10:39 +02:00
Durga Madhab
65a219e56c toSVG() excludeFromExport for backgroundImage and overlayImage (#5075) 2018-07-09 05:48:39 +02:00
Andrea Bogazzi
705cf3a5e7
Make test less strict on anti aliasing, disable cache. (#5077)
* ok

* remove canfail
2018-06-28 14:05:36 +02:00
Andrea Bogazzi
d95db41608
Better visual tests, test passing, more SVGs (#5076)
* improving golddens

* more tests

* test passing

* removed dist

* fixed travis

* make visual running in browser too

* more travis

* fixed travis

* fixed travis

* more coffee
2018-06-28 12:31:26 +02:00
Andrea Bogazzi
4bb1ffb9e6
removed old test setup (#5070)
* removed ol dep

* no build
2018-06-26 12:52:25 +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
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
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
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
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
keyurpatel
885545aca8 isEqual fails hard. (#4949)
* fix current value null issue
2018-05-07 20:12:53 +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
4c2e59a3cd
modified shadow tosvg (#4934) 2018-04-28 01:17:45 +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
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
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
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