Commit graph

4029 commits

Author SHA1 Message Date
Andrea Bogazzi
97e4e57a73 add svg import test 2019-02-17 22:46:54 +01:00
Andrea Bogazzi
ad33bf38d0 import value from svg 2019-02-17 22:26:16 +01:00
Andrea Bogazzi
1eb8067741 test svg 2019-02-17 22:15:57 +01:00
Andrea Bogazzi
ce671ac43f fixed title 2019-02-17 21:53:06 +01:00
Andrea Bogazzi
fe4f988da0 added a visual test 2019-02-17 21:38:44 +01:00
Andrea Bogazzi
0a83d45b70 a test 2019-02-17 00:21:56 +01:00
Stefan Hayden
850c617bd9 strokeUniform property (#5473)
* new Object property strokeUniform allows the stroke width to always stay the same width as object scales

* fix for height

* Update src/shapes/object.class.js

Co-Authored-By: stefanhayden <alt255@gmail.com>
2019-02-17 00:20:12 +01:00
Andrea Bogazzi
aac8bd94f9 different transformed function 2019-01-19 23:05:15 +01:00
Andrea Bogazzi
d6259c9028 trying the other function 2019-01-19 22:38:26 +01:00
Nate Evans
a85dc37499 Support Relative URL for Image src (#5487)
* Use clientWidth and clientHeight of upperCanvas to size hiddenTextarea to work with dynamic sized canvas.

* Fallback to using upperCanvas.width and upperCanvas.height if client dims are not available. Add test.

* Some test cleanup.

* Add srcFromAttribute flag to fabric.Image to support relative url src for image in broswer.

* rollback dist

* Update 'since' and address PR feedback

* Update comment
2019-01-16 09:46:43 +01:00
Andrea Bogazzi
92aa599bce
Version 2.6.0 (#5482)
* built 2.6.0

* built minified
2019-01-13 16:40:03 +01:00
Andrea Bogazzi
68a6af40a1
Add toCanvasElement for object, fixes a bug, speedUp cloneAsImage (#5481)
* a couple of changes

* removed unnecessary branching
2019-01-13 16:04:07 +01:00
Andrea Bogazzi
9c35ed263b
Add grapheme wrapping to textbox (#5479)
* add grapheme wrapping

* added to Object
2019-01-13 13:46:27 +01:00
Andrea Bogazzi
402fe954f1
removed debug code (#5478) 2019-01-13 12:29:20 +01:00
Andrea Bogazzi
03b98a0678
fixes a particular case of clipPath problem (#5477) 2019-01-13 12:13:03 +01:00
John Dean
1cf38e1886 Fix for IE11 IndexSizeError for negative source crops (#5428)
* Fix for IE11 IndexSizeError for negative source crops
2019-01-13 01:27:59 +01:00
Andrea Bogazzi
4554821e42
Update src/shapes/object.class.js
Co-Authored-By: stefanhayden <alt255@gmail.com>
2019-01-10 16:44:32 -05:00
Stefan Hayden
2a09e8f116 fix for height 2019-01-10 16:33:23 -05:00
Stefan Hayden
3a2f070b6d new Object property strokeUniform allows the stroke width to always stay the same width as object scales 2019-01-10 16:22:07 -05:00
Andrea Bogazzi
210854f572 bumped package.json 2019-01-07 02:27:37 +01:00
Andrea Bogazzi
5d25f69e29
v250 (#5465) 2019-01-07 02:25:34 +01:00
Andrea Bogazzi
77321ca648
newScaleX undefined fixed (#5464)
* newScaleX undefined fixed
2019-01-07 02:10:28 +01:00
Andrea Bogazzi
38af9f0e02
added a test (#5462) 2019-01-06 01:30:35 +01:00
Andrea Bogazzi
1bb1f8eb85
fix svg export of gradients (#5456)
* fix svg export of gradients

* fixed UTs

* visual tests too

* and the pictures

* fixed test lint
2019-01-06 01:15:16 +01:00
Andrea Bogazzi
2aad1fde72
fixed control detection (#5455) 2018-12-31 00:24:02 +01:00
Andrea Bogazzi
576f34ab68
small-changes (#5454) 2018-12-30 18:12:41 +01:00
Andrea Bogazzi
a8bdd40612
Create a different dataUrl (#5452)
* changed toDataUrl

* ok not broken

* ok not broken

* fix

* missed the offscreen
2018-12-30 15:49:50 +01:00
Andrea Bogazzi
3f41626c87
Add some More data url tests (#5453)
* added some tests

* added flipped text example

* no navigator break down
2018-12-30 13:22:32 +01:00
Andrea Bogazzi
3327bde447
build 246 (#5442) 2018-12-25 22:21:27 +01:00
Andrea Bogazzi
0e261137ca
fixing path exports to SVG (#5438)
* fixing path exports to SVG

* extend svg import tests

* added a failing test for the SVG export

* more tests for polygons
2018-12-25 21:58:13 +01:00
Andrea Bogazzi
d551e4c750 force npmrc config 2018-12-13 01:03:12 +01:00
Andrea Bogazzi
8a15902309
buil 245 (#5426) 2018-12-11 00:53:26 +01:00
Andrea Bogazzi
aadfea00fa
various small svg fixes (#5424)
* various small svg fixes

* no debugger

* fontsize parsing fix - again

* added a visual test

* use min 9px

* added comment
2018-12-09 23:13:27 +01:00
Andrew Johnson
c2ca903ffb Save/restore the ctx during renderTopLayer(). (#5392)
Previously, the line dash setting could be left enabled within
_drawSelection() [which is called by renderTopLayer()], which could
cause subsequent user-side line stroke calls on the top canvas to be
dashed when they weren't explicitly specified to be by the user.

See http://jsfiddle.net/qtb4prok/ for a repro.
2018-12-09 12:32:47 +01:00
Andrea Bogazzi
f56886eab7
full build (#5408) 2018-11-25 17:38:19 +01:00
Andrea Bogazzi
f3317569ff
add-clipPath-to-cache-checks (#5384)
* add-clipPath-to-cache-checks

* added comment to skip canvas

* added a test

* more test

* avoid infinite recursion

* avoid using objects if some render will fire

* avoid rendering at all
2018-11-25 17:24:38 +01:00
Andrea Bogazzi
0927a70a64
wider detection of touch events (#5406)
* wider detection
* node...
2018-11-23 09:10:30 +01:00
Blob
3b314d11cc Add strokeDashOffset and svg corresponding attribute (#5398)
* Add strokeDashOffset and svg corresponding attribute
2018-11-23 00:56:00 +01:00
geekduck
f7dc333f37 Fix jsdoc (#5399)
* fix JSDoc.

* fix typo.
2018-11-23 00:46:36 +01:00
Andrea Bogazzi
d60ba22726
Fix the draggability of small objects (#5379)
* change to action logic

* fixed test

* added some tests
2018-11-17 15:48:18 +01:00
Andrea Bogazzi
cdb6b51385
Fix invisibility of objects with no widht/height but strokewidth (#5382)
* added test

* fixed ellipse test

* fixed ellipse lint
2018-11-12 01:20:28 +01:00
Andrea Bogazzi
3af833930f
more compliant gradient parsing (#5375)
* more compliant gradient parsing

* fixed back the getElementById
2018-11-08 09:04:00 +01:00
Andrea Bogazzi
3fab6012ba forgot to bumpup 2018-11-02 17:56:37 +01:00
Andrea Bogazzi
96f31d4f34
built 243 (#5353) 2018-10-28 22:38:35 +01:00
Andrea Bogazzi
8115d6969f
On shift select and multiselection, check for onSelect callback (#5348)
* add onSelect on the grouping logic

* added test for group selector

* another test
2018-10-28 22:06:39 +01:00
Andrea Bogazzi
847fe90c4b
added some tests for fabric.util (#5349)
* added some tests

* test
2018-10-28 21:46:32 +01:00
Andrea Bogazzi
5ebdfdf839
removing docker since we are not using it (#5350) 2018-10-28 21:45:41 +01:00
Andrea Bogazzi
8d14ec81bc
Add more test for subTargetCheck and zoom + pan (#5347)
* cleanedup and added test

* adding wider test
2018-10-28 00:29:43 +02:00
Andrea Bogazzi
37fbeb9eec
Fix interaction between filters on restore (#5346) 2018-10-27 17:18:31 +02:00
Andrea Bogazzi
09e8af10b8
remove special case (#5345) 2018-10-27 13:35:49 +02:00