Commit graph

665 commits

Author SHA1 Message Date
Andrea Bogazzi
053e419dbb
Refinements to strokeUniform property (#5527)
* 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>

* trying the other function

* different transformed function

* added a visual test

* fixed title

* test svg

* import value from svg

* add svg import test

* more tests
2019-02-17 23:08:39 +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
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
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
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
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
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
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
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
Blob
3b314d11cc Add strokeDashOffset and svg corresponding attribute (#5398)
* Add strokeDashOffset and svg corresponding attribute
2018-11-23 00:56:00 +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
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
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
0a76ff3111
added test (#5344) 2018-10-27 12:19:26 +02:00
Andrea Bogazzi
40de484881
Test canvas-prebuilt (#5327)
* a test

* error in test

* just a notice it has canvas prebuilt

* try remove cache
2018-10-21 17:28:44 +02:00
Andrea Bogazzi
5a57254df9
fixed interaction with shift click and unselectabled behind (#5324)
* fixed interaction with shift click and unselectabled behind

* added a test
2018-10-21 13:16:05 +02:00
Andrea Bogazzi
61249c85a5
Version 242 (#5309)
* Version 242

* fixed version
2018-10-14 19:07:16 +02:00
Andrea Bogazzi
191099cb59
Add shadow option to toDataURL and cloneAsImage (#5308)
* first test

* less accuracy
2018-10-14 18:15:57 +02:00
codert
839b54aa25 perPixelTargetFind not working in nested group. (#5287)
* fix perPixelTargetFind in nested object

* fix: lint

* add methods doc

* doc: update _serachPossibleTarget doc

* test: add test case

* fix: remove pointer check

* fix: object in nested group should normalize just once

* test: add test case

* restore to previous code style

* fix: update test case descriptions

* fix: test case

* test: add skew and angle test case
2018-10-14 00:07:23 +02:00
Andrea Bogazzi
a7ff2bfb10
Rework SVG code to have clipPath friendly transformations (#5284)
* so far i think i broke everything

* halp super hard

* this is what i wanted

* fixed error

* some fixes

* svg-working

* less code

* fixed shadow for text and groups

* fixed tests

* one file test more

* fixed lint

* works

* ok more tests

* remove a lint issue

* removed unused method
2018-10-07 15:43:37 -04:00
Andrea Bogazzi
de142eecbb
fixed (#5282) 2018-09-30 14:37:00 -04:00
Andrea Bogazzi
dd76fa2b6f
Clip path from json (#5279)
* better-than-nothing

* check that the active object exist

* test

* added a test

* added the code

* added a test for this case
2018-09-29 13:49:29 -04:00
Andrea Bogazzi
68a84a7da7
Avoid enter editing if there is another active object on the canvas (#5261)
* better-than-nothing
* check that the active object exist
* test
* added a test
2018-09-29 10:10:06 -04:00
Andrea Bogazzi
5482ac350a
Try to fix node 10 unit test (#5235)
* fixed
* removed node 9
2018-09-16 22:51:51 +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
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
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
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