Commit graph

3747 commits

Author SHA1 Message Date
Brian Chitester
d88af28af7 Allow multiple keys to enable multiple click selection (#4184)
* Allow multiple keys to enable multiple click selection

* backwards compatibility: allow string or array

* do isArray properly

* forgot a this.

* formatting...

* more formatting...
2017-09-29 13:40:36 -04:00
Wietse Wind
052631bdcb Fix IE rendering of SVG as overlay image (#4324)
* Fix IE rendering of SVG as overlay image

* Fix IE rendering of SVG as overlay image #2 - Fix coding syntax (CI)

* Fix IE rendering of SVG as overlay image #3 - Fix coding syntax (CI)

* Fix IE rendering of SVG as overlay image #4 - Moved to method 'loadImageInDom'

* Fix IE rendering of SVG as overlay image #5 - Moved some stuff around

* Fix IE rendering of SVG as overlay image #6 - Fixed the setTimeout (removed)

* Update misc.js
2017-09-29 00:36:00 -04:00
Andrea Bogazzi
3884824f46 Do not scale cache for transform target (#4358)
* no scaling cache for the current target

* .
2017-09-29 00:02:43 -04: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
Stefan Hayden
0bb8a131a6 fixes problems with isTargetTransparent trageting. also nulls out cachedCanvas when not being used to make it easier to check if a proper cachedCanvas exists (#4356) 2017-09-28 22:28:08 -04:00
Andrea Bogazzi
cc7c36fa7d Added back target to object:modified (#4348)
* added back target

* Update canvas.class.js
2017-09-25 21:16:50 -04:00
Andrea Bogazzi
2c2111ebe3 Normalize selection events (#4340)
* different object managment
2017-09-25 15:14:15 -04:00
Andrea Bogazzi
dd6cbe93a2 Fix fast type in itext. (#4339)
* fix fast type
2017-09-23 00:39:20 +02:00
amadois
d7131d1cac corrected typo (#4328)
thanks
2017-09-20 19:27:03 +02:00
Andrea Bogazzi
ea93c288e8 fix-div-by0 (#4327) 2017-09-20 00:29:16 +02:00
Andrea Bogazzi
ad6521affb Paint order svg for CIRCLE, IMAGE and TEXT (#4320)
* added were missing
* added for image too
2017-09-18 00:14:08 +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
fa96a59891 upgrade to beta7 (#4316) 2017-09-17 12:13:19 +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
9bd5e90840 Fix scale equally and double flip not happening (#4313)
* fix double flip

* fixed lint
2017-09-16 22:11:50 +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
Jordan Acosta
cdd28b01a2 Check fabric.window for ontouchstart (#4302)
Fixes #2664
2017-09-16 13:06:47 +02:00
Andrea Bogazzi
87f4fc905b Add a new event and fixed the free drawing point displacement (#4311)
* things

* fixed drawing paths

* added jsdocs
2017-09-16 13:06:09 +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
0d36e565a9 improved docs, fixed dirty on group destroy (#4293) 2017-09-07 11:41:03 +02:00
Tristan Fischer
e2f44cc76b fix object.getObjectOpacity() docs (#4277) 2017-09-06 12:38:49 +02:00
Andrea Bogazzi
860b7a74c0 mousemove and svg export (#4283) 2017-09-06 12:38:12 +02:00
Andrea Bogazzi
a72d9630f6 try with mouseout (#4275) 2017-08-31 23:18:59 +02:00
Andrea Bogazzi
5bab9b84b2 fix path exports svgs (#4274) 2017-08-31 22:59:22 +02:00
Tristan Fischer
5f7e61f02f fix typo in shadow docs (#4271) 2017-08-31 22:33:10 +02:00
Andrea Bogazzi
4e438cac7b improved condition (#4258) 2017-08-29 22:35:02 +02:00
Andrea Bogazzi
db6510be67 adds , {backstoreOnly: true} for toDataURL export (#4254)
adds the backstoreOnly to __toDataURLWithMultiplier's setDimensions calls to prevent the canvas from resizing in the browser window when the canvas.toDataURL() method is called per issue #4252
2017-08-29 22:25:59 +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
Asturur
ffe49ccf9c pass activeObject to event 2017-08-19 23:39:24 +02:00
Andrea Bogazzi
a15d480d07 fix dataurl and improve docs for move forward/backward (#4229)
* fix dataurl and docs
* fixed paths
2017-08-18 21:29:06 +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
ncou
b663204002 Better mouse support when lockScalingFlip is true. (#4225) 2017-08-18 15:55:31 +02:00
ncou
e9a5d0000e Fix unicode space char (#4224) 2017-08-18 14:25:52 +02:00
Andrea Bogazzi
9fc678825e fix shader pick (#4207) 2017-08-16 10:16:59 +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
Stefan Hayden
b114d8d0ee Parser RegEx update (#4003)
* better regex and attribute validation as well as public accesss to the regex

* lint
2017-08-14 13:52:52 +02:00
Andrea Bogazzi
b7d9047c9c Put window.fabric under a build flag (#4199)
* moved global in a module

* fix package.json
2017-08-14 13:42:17 +02:00
Andrea Bogazzi
a06b568968 Improved selection flow (#4198)
* improved flow
* improved selection flow
* do not transform not selected objects
2017-08-14 13:29:32 +02:00
Asturur
d7d88fe5c8 updated to beta6 2017-08-14 09:57:47 +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
77632c6e0e fixed svg import again (#4196) 2017-08-14 09:35:19 +02:00