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
Andrea Bogazzi
abbeb91763
Changed params for setSuperScript, setSubScript ( #4780 )
...
* changed params
* fixed toSVG export
2018-03-06 12:36:52 +01:00
scriptspry
38f2d5cd99
Fixed incorrect Object.isOnScreen functionality. ( #4763 )
...
* Added missing calculate parameter in Object.isOnScreen.
* Update object_geometry.js
2018-03-01 01:44:43 +01:00
Andrea Bogazzi
aa9b8a6b33
Add BaselineShift property to fabricJS ( #4765 )
...
* 'deltaY', superscript, subscript etc. (#4177 )
2018-03-01 01:07:15 +01:00
Andrea Bogazzi
1c10b8c1e3
events drag ( #4421 )
...
added drag and drop events
2018-02-24 22:19:58 +01:00
Andrea Bogazzi
e70e65fe92
isEmptyStyles for textbox ( #4762 )
...
* isEMptyStyles for textbox
* added tests
* added missing file
2018-02-24 18:45:23 +01:00
Stefan Hayden
71b28012fc
cleanup function to be more readable ( #4756 )
...
* cleanup function to be more readable
* update style variable to be more descriptive and use the styleObject reference in one more place
2018-02-21 18:03:11 +01:00
Stefan Hayden
d1e5337c2d
ensure canBeSwapped can only be true when a style prop has actually been set to a value ( #4751 )
2018-02-20 21:53:54 +01:00
scriptspry
d569407d3a
Fixes StaticCanvas.onBeforeScaleRotate not triggering when canvas is zoomed ( #4748 )
...
* Fixed StaticCanvas.onBeforeScaleRotate not getting triggered when canvas is zoomed.
* Added test for Canvas._beforeTransform.
2018-02-20 20:41:42 +01:00
Andrea Bogazzi
b47815e411
added image crop ToSVG support ( #4738 )
...
* added svg crop support
2018-02-18 23:50:08 +01:00
Andrea Bogazzi
2e532cc362
Limit sin and cosin very small floats on 90/270 degrees ( #4734 )
...
* so far ok
* fix transformations decimal
* remove some changes
* less changes
* test passing
* less calculation
* added shortcut
* modified tests
2018-02-18 15:56:27 +01:00
Andrea Bogazzi
361db0b8a2
added test for dataUrl ( #4705 )
2018-02-10 13:12:00 +01:00
Andrea Bogazzi
d8dab88a46
Fix originX and originY missing in the matrix cacheKey ( #4703 )
...
* added test
* fixed the typo
2018-02-10 12:16:09 +01:00
Stefan Hayden
e13bc33c63
do not mutate passed object to fromObject ( #4699 )
...
* do not mutate passed object to fromObject
* add a test
* this is what you get for editing in github.com
2018-02-10 00:46:28 +01:00
Andrea Bogazzi
dea22aca70
Fixes ( #4674 )
...
* default no retina for dataurl
* make num_fraction_digits variable
* restored aborted changes
* mispelled param
* added test for SVG
* added test for toDataUrl
* how it could even run
* simpler test
* i hope they will pass now
* fed up
* completely cheating
* fallback on dumb test
* test also this
* test also this
* more tests
2018-02-04 22:42:32 +01:00
Andrea Bogazzi
4f446020ba
added a simple test ( #4647 )
2018-01-26 11:12:27 +01:00
Andrea Bogazzi
43ebcd8278
Gradient fix parsing floats ( #4637 )
...
* fixed gradient parsing and circle width/height leak
* added a small test
* fix lint
* test re enabled
* fixed tests
2018-01-20 01:09:47 +01:00
Andrea Bogazzi
6309387665
Add CrossOrigin managment to fabric.Pattern ( #4618 )
...
* added crossOrigin
* adding tests
* added some basic test
2018-01-18 08:39:02 +09:00
Jeremy Shipman
0c936ed6bc
Fix testem runner, and further improvements ( #4593 )
...
* Switched qunit dependency to npm
* Fixed testem not working
* Switched test.js build to use node-qunit.
As stated in the QUnit docs: The qunit package prior to 2.4.1 is an alternative CLI that is now published as node-qunit.
* Introduced qunit 2.4.1, with an npm script for running node tests
* Switched testem page fixture to use qunit package instead of qunitjs
* Configured testem to run in headless mode, and use new npm node test script for "Node" launcher configuration.
This means that individual tests will show up in testem output via the the `tap` test protocol.
* Made canvas_static 'toDataURL cropping' test asynchronous.
* Configured QUnit testTimeout and enabled 'noglobals' config
* Updated .travis.yml config to do cross-browser/env testing via Testem
* Specify qunit binary directly to fix confict with binary from node-qunit
* Avoid test hanging by aborting the animated cursor
* Firefox test fix, and enabled in Testem config
2017-12-31 09:51:07 +01:00
Justin Parker
4846789bf0
Fix color toHexa() ( #4579 )
...
* Failing Color.toHexa() test
* fix color toHexa() to not give decimals
* fix hexa test due to rounding
2017-12-27 10:05:40 +01:00
Andrea Bogazzi
fb13ed0bdf
Insert a method to insert text programmatically ( #4551 )
...
* sofar
* test
2017-12-10 21:13:38 +01:00
Andrea Bogazzi
036e1a71ee
Remove extra code from Circle/Triangle ( #4547 )
...
* removed code
* removed code
* removed code
2017-12-09 11:32:26 +01:00
Andrea Bogazzi
891a8e096e
handle top canvas in resize/renderAll ( #4527 )
...
* handle top canvas in resize/renderAll
* fix brush
2017-12-03 17:15:46 +01:00
Andrea Bogazzi
88a2c7c64a
remove extra tab and newlines ( #4524 )
2017-12-02 11:11:11 +01:00
Jérôme Steunou
7b64898d72
Add an option to selection objects only when 100% intersect ( #4508 )
...
* Add an option to selection objects only when 100% intersect
* Better description
* Cache property negation
* Add unit tests
* Remove boundary tests, not specific to this option
2017-11-29 12:40:17 +01:00
Andrea Bogazzi
71b36f6228
Node canvas ( #4497 )
...
* readded
* paused
* test
* try jsdom
* restore node methods
* restored
* restored
* fix tests
2017-11-24 19:00:47 +01:00
Andrea Bogazzi
a9eacc4d74
Remove chars from to ( #4495 )
...
* trying to fix
* make removeChars
* fixed doc
* added test
2017-11-24 17:26:38 +01:00
Andrea Bogazzi
fd14303dae
Fix drawing of a point ( #4492 )
...
* initialize at 1
* added tests
* added test file
2017-11-24 11:36:36 +01:00
Andrea Bogazzi
a9d2fb1ba5
Fix scaling issues that involves width/height ( #4491 )
...
* fixed
* added a small test
* typo
2017-11-23 18:04:54 +01:00
Asturur
9028ccf909
fix browser element mockup
2017-11-20 09:57:05 +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
57c5d5150c
removed extra padding ( #4467 )
2017-11-18 16:59:10 +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
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
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
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
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
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
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
Andrea Bogazzi
dd6cbe93a2
Fix fast type in itext. ( #4339 )
...
* fix fast type
2017-09-23 00:39:20 +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
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
1b8786c706
Adding some tests on events firing ( #4312 )
...
* some tests on events
* fixed test linting
2017-09-16 20:27:45 +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
69d377b992
Output version ( #4251 )
...
* output version in json
* fixed tests
* fixed lint
2017-08-29 22:23:42 +02:00
Andrea Bogazzi
678099ed21
Fix free drawing, fix minScaleLimit for textbox ( #4250 )
...
* fixed free drawing
* better handling of minscale limit
2017-08-25 10:43:24 +02:00
Andrea Bogazzi
16f5baaf29
Fix group canvas propagation to sub objects ( #4228 )
...
* restore canvas prop
* add tests
* add tests
2017-08-18 20:43:39 +02:00
Andrea Bogazzi
3b10702512
Normalize Api for getSelectionStyles, setSelectionStyles ( #4202 )
...
* reworked the text selection
* reorganized api
* missing file
* fixed lint
* more test
2017-08-15 10:10:01 +02:00
Asturur
10545cec77
fixed lint in tests
2017-08-14 15:14:41 +02:00
Andrea Bogazzi
6b4d215162
Remove active property from objects ( #4200 )
...
* removed active
* removed active property
* removed active property
2017-08-14 15:12:58 +02:00
Andrea Bogazzi
4cccab8f51
Remove fabric.Object.remove ( #4197 )
...
* removed remove method
* removed remove method
2017-08-14 09:44:51 +02:00
Andrea Bogazzi
ffd2d3254c
Fix block style insertion ( #4192 )
...
* fix style nsertion
* fixed tests from older changes
* fixed tests from older changes
2017-08-13 20:49:39 +02:00
Nick Swider
da27ef57c4
Add chaining to iText selection methods ( #4178 )
2017-08-09 09:05:40 +02:00
Andrea Bogazzi
59e615024c
Hue filter ( #4175 )
...
* added hue rotation
* added hue rotation
2017-08-06 17:23:42 +02:00
Andrea Bogazzi
b5323bd83e
make function just create canvas ( #4172 )
...
* make function just create canvas
* added tests
* added tests
2017-08-05 21:32:03 +02:00
Andrea Bogazzi
5a791a8291
fixed origins ( #4170 )
...
* fixed origins
* fixed origins
2017-08-04 11:20:50 +02:00
Andrea Bogazzi
e0546b0105
Fix bugs with new activeSelection ( #4167 )
...
* test
* fixes
2017-08-04 00:11:00 +02:00
Andrea Bogazzi
068c815340
Fix text insert on null, give default style to text ( #4166 )
...
* text style error
* change text init
* fixes
2017-08-03 23:23:42 +02:00
Andrea Bogazzi
351e7dfa47
Multiple fixes ( #4119 )
...
* multiple fixes
* updated tests
2017-07-22 16:34:47 +02:00