Commit graph

93 commits

Author SHA1 Message Date
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
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
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
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
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
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
Andrea Bogazzi
d106051554 Remove accessors (#4065) 2017-07-03 17:02:44 +02:00
Andrea Bogazzi
98ed4cc351 Fix a bug in recent caching changes (#4051)
* small fix
* fixed and added tests
* comeon andrea wake up
2017-07-01 14:33:47 +02:00
Andrea Bogazzi
6185b07408 Limit cache size to upper and lower limit (#4035)
* just name change

* help

* test difference

* ok better limiting

* fix lint
2017-06-25 14:50:28 +02:00
Andrea Bogazzi
7a88afb2d3 Fix some caching in group issues related to deep checks (#4032)
* backport
* better fix
2017-06-24 23:10:55 +02:00
Andrea Bogazzi
553669c938 Extend test coverage (#3999)
* extended test coverage
* new file
* fixed lint
2017-06-12 11:13:55 +02:00
Andrea Bogazzi
145bd3b03f Force async (#3996)
* removed forced async
* tests
* fixed lint
2017-06-11 21:36:51 +02:00
Andrea Bogazzi
ff2909ebf8 fixed cache for first draw (#3870)
* fixed cache for first draw

* fixed tests
2017-04-23 13:44:22 +02:00
Andrea Bogazzi
b979bd5861 switch to canvas prebuilt (#3757)
* swithced to canvas prebuilt

* try 2

* remove toolchanin needed to setup canvas
2017-03-14 12:37:07 +01:00
Andrea Bogazzi
7a987faef2 changes (#3717) 2017-02-18 23:47:32 -05:00
Andrea Bogazzi
5cd1111195 fix reload from json (#3691)
* fix reload from json

* fix just on path
2017-02-14 00:40:02 -05:00
Andrea Bogazzi
c378fa5b04 Misc changes (#3614)
* misc changes
2017-01-30 15:24:32 +01:00
Andrea Bogazzi
5ed0b83d45 fix tests (#3602) 2017-01-03 01:08:14 +01:00
Andrea Bogazzi
ab68d3a4ab Reuse come code between object and canvas (#3600)
* try to reuse code
* some fixes
* fixed errors

* Update util.js
2017-01-01 18:07:56 +01:00
Andrea Bogazzi
1cb047bb66 fix space for cache canvas for thin lines (#3596)
* fix space for cache canvas
* add the fixed padding to cache canvas
* update group test
2016-12-30 18:19:18 +01:00
Andrea Bogazzi
3c0fe81b77 be more strict on when not to re render (#3594)
* add more check to first return false

* fix ;

* fix ; in tests

* fix test
2016-12-28 13:22:23 +01:00
Andrea Bogazzi
700ee14ff5 send up to group the change on dirty flag (#3564)
* send up to group the change on dirty flag
* added tests
2016-12-26 18:54:53 +01:00
Andrea Bogazzi
28c2654a23 Ver166 (#3350)
* ver 166
2016-10-16 23:40:02 +02:00
Jeremy Shipman
d0c32acf7f Introduced testem test runner (#3327)
* Introduced testem test runner.
Install testem via 'npm install -g testem'
Run testem via 'testem'

* Fixed fixture image paths in tests
2016-10-05 09:12:26 +02:00
Andrea Bogazzi
437eea118f allow for deep state check and save (#3262) 2016-09-15 12:49:25 +02:00
Andrea Bogazzi
aa53e08a6b isContainedWithinObject on coords instead of bounding rect (#3252)
* update function and test

* fix interset with object and overlap
2016-09-11 16:01:23 +02:00
Andrea Bogazzi
08f60adbea switch to eslint (#3229)
* switch to eslint 2.x
* fix src
* fix tests
2016-09-10 15:14:23 +02:00
Andrea Bogazzi
a2b4ef564b Add enableRetinaScaling to cloneAsImage (#3147)
* Add enableRetinaScaling to cloneAsImage
* added test
2016-08-08 07:17:39 +02:00
Andrea Bogazzi
d93f91febc Start to cleant setSelections (#3119) 2016-07-31 12:21:52 -04:00
Andrea Bogazzi
948019f622 add object scaling function (#3134)
* add object scaling function

* Update object.class.js
2016-07-30 12:04:38 -04:00
Andrea Bogazzi
be8dfae17e Various fixes (#3057)
Fixes hidden textarea positioning, rendering fixes during canvas zoom.
2016-06-19 23:33:54 +02:00
Andrea Bogazzi
77dab21155 Additional method for centering objects (#3044) 2016-06-11 14:10:20 +02:00
Andrea Bogazzi
cb0c71e1fe * Remove rounding for minScaleLimit, added test.
* Remove rounding for minScaleLimit
2016-05-14 18:38:48 +02:00
Andrea Bogazzi
e032cae7d1 Set line dash in external function (#2928)
* move dashed code in function for later reuse in controls
* Added functionTest
2016-05-02 11:33:09 +02:00
Andrea Bogazzi
701a62053d make group transform support general transforms 2015-10-24 15:38:46 +02:00
Andrea Bogazzi
cda0611326 Add support for skew objects. 2015-09-17 14:22:12 +02:00
Andrea Bogazzi
5966b5e319 toObject returns deep cloning if necessary 2015-08-11 11:10:51 +02:00
Andrea Bogazzi
0841c886b0 Update object.js 2015-08-10 01:38:28 +02:00
Andrea Bogazzi
f805e57297 Update rect.js 2015-07-20 12:57:13 +02:00
sapics
79db396d3a fix unit test error in google chrome 2015-05-23 08:47:42 +09:00
Andrea Bogazzi
80c3012646 Update object_origin.mixin.js 2015-05-02 19:13:44 +02:00
kangax
94f7035624 Lint unit tests and fix errors/warnings 2015-04-23 11:47:35 +02:00
Andrea Bogazzi
f4385b2de9 Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines
Check how this version could behave in general rendering.
2014-11-20 22:34:47 +01:00
Andrea Bogazzi
af1138a686 Divided FillRule from globalCompositeOperation 2014-09-23 08:53:56 +02:00
asturur
a95897313f Update object.js
i need bigger spacebar.
or better i need to stick something on comma key that press even space after it.
Something that can bend down in one direction but not in the other, so when i press comma it push spacebar down, and when i press spacebar i don't fire a comma!
2014-06-24 15:34:18 +02:00
asturur
62d281bd3d Update object.js
I'm not sure, i'm sorry i tried to guess.
2014-06-24 14:12:39 +02:00