Commit graph

3439 commits

Author SHA1 Message Date
Andrea Bogazzi
5dbbcdb682 Update itext.class.js 2016-09-05 20:01:32 +02:00
Andrea Bogazzi
c5175d66e9 Update text.class.js 2016-09-05 19:52:59 +02:00
Andrea Bogazzi
42d8f3e463 Fix textbox and negative charspacing (#3233)
* do not count charspacing twice
* do not get negative with char width
2016-09-05 18:26:15 +02:00
Asturur
d04d0dd265 Merge branch 'master' of http://github.com/kangax/fabric.js 2016-09-01 22:16:46 +02:00
Asturur
4fc347e73d disable failing test in nodejs 2016-09-01 22:16:30 +02:00
Andrea Bogazzi
6507486e15 Update package.json (#3221) 2016-09-01 14:57:44 +02:00
Asturur
a1e5d518bf fixed tests for browser 2016-09-01 08:31:56 +02:00
Asturur
06a9f5e68a 1.6.4 2016-08-28 23:02:47 +02:00
Asturur
0fd9754c44 build dists 2016-08-28 22:52:27 +02:00
Andrea Bogazzi
bba8b3a705 bring callback toapplyfilters (#3210)
* bring callback toapplyfilters
2016-08-28 22:42:41 +02:00
Andrea Bogazzi
148b5c1434 Make object fire deselect event (#3195) 2016-08-28 22:25:51 +02:00
neopheus
37689f52eb Update Wheel event (#3204)
rename mousewheel -> wheel
2016-08-27 18:13:02 +02:00
neopheus
2570b548a7 Lerp - lock t between 0 and 1 (#3188)
* lock t between 0 and 1
* Add New Unit Test for lerp (min, max t)
2016-08-26 15:41:22 +02:00
neopheus
a6bc04ce8d Add Hex Color RGBa (#3202)
* Add RGBa (8 digits, #FF5544CC, 4 digits #F54C);
2016-08-26 10:46:14 +02:00
Andrea Bogazzi
27f9214d94 Update text.class.js 2016-08-23 11:19:52 +02:00
Andrea Bogazzi
ff56ad583e Make text use default setStrokeDash function 2016-08-23 10:49:14 +02:00
Andrea Bogazzi
17d7f929d5 Update collection.mixin.js (#3174)
* Update collection.mixin.js
2016-08-22 11:51:59 +02:00
neopheus
5db01369e4 Check code 2 (#3186)
* JSDoc update + same name for variables
2016-08-22 11:36:30 +02:00
Andrea Bogazzi
702126eb85 Change getFontDeclaration (#3191)
* Change getFontDeclaration
2016-08-22 11:27:34 +02:00
Kyle Herock
181cdec80c give getSrc a better role in this class. (#3189) 2016-08-22 10:43:17 +02:00
neopheus
3544b727be Update code v2 (#3180)
* update JSDOC - v4
* update JSDOC -v5
2016-08-20 17:58:16 +02:00
neopheus
9b383628e8 JSdoc update (#3179)
* update JSDOC

* update JSDOC - v2

* update JSDOC - v3
2016-08-20 12:05:19 +02:00
Asturur
3938c83080 build dist 2016-08-18 09:34:02 +02:00
Andrea Bogazzi
fd6038d50d no need to render if nothing happened 2016-08-18 07:58:35 +02:00
Andrea Bogazzi
9a595f7037 forgot to export charSpacing value in toObject Method 2016-08-18 07:54:59 +02:00
Andrea Bogazzi
46624d3f50 Textspacing (#3097)
Introduce charspacing.
2016-08-14 23:19:42 +02:00
Andrea Bogazzi
cf5f327f55 Extending test coverage (#3148)
* adding tests
2016-08-14 11:05:44 +02:00
Stefan Dietz
c0f5dc3eb0 Change borderScaleFactor behaviour (#2930) (#3154) 2016-08-12 00:14:12 +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
c36225015a initialized body variable 2016-08-07 22:37:26 +02:00
Andrea Bogazzi
48a6c9c67f fix insert at (#3146) 2016-08-07 22:30:05 +02:00
Juan Basso
201a8c7f65 Added missing object:added on docs (#3145)
`object:added` is also fired by canvas.
2016-08-07 22:01:09 +02:00
Andrea Bogazzi
ad7e56422a Get pointer change (#3144)
* fix normalized pointer
* more tests
2016-08-07 17:00:58 +02:00
Simon Kunz
03d27681c3 Add Color Matrix filter class (#3139) 2016-08-03 07:26:30 -04:00
Scott Seaward
ebb2552357 IE replace text selection with keypress (#3137)
Why:
* After creating a textbox, selecting text, and pressing a key, the first character of the previous text would remain.
* This happened because the hidden textarea would not update its selection in IE when it was in the same parent element as the canvas.
This change addresses the need by:

* Keeping the hidden textarea in the body element.
* IE now correctly updates the text selection as the user interacts with the canvas textbox.
2016-08-01 16:46:40 -04:00
Andrea Bogazzi
9e4ed9565f fix cursor left without shift (#3135)
* fix cursor left and added missing test
2016-07-31 23:32:10 -04: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
9e5f3ab7b9 numeric origin (#3121)
* Numeric object origin add tets
2016-07-25 10:07:50 -04:00
Andrea Bogazzi
9980c83fb9 move the pathCommands out of render
makes easier to override, extend the class.
2016-07-22 11:10:30 +02:00
Andrea Bogazzi
f9782cf788 Update canvas_events.mixin.js 2016-07-22 11:07:29 +02:00
zntus
d4f0b52f18 Fix Rect imported from svg is invisible when display = "none" (#3106) 2016-07-18 10:05:14 +02:00
Andrea Bogazzi
7dad30c156 support style merging from css (#3114)
* supportstylemerging
* added test
2016-07-18 08:56:40 +02:00
Andrea Bogazzi
57439eaded build dist 2016-07-17 12:02:12 +02:00
Andrea Bogazzi
dde9eaa4e3 fix pattern brush (#3112) 2016-07-17 11:55:36 +02:00
Andrea Bogazzi
6601af9340 gradientInfinity (#3082)
* gradientInfinity
* updated tests
2016-07-17 10:31:51 +02:00
Andrea Bogazzi
72a6c273bf remove lastRendered logic (#3111) 2016-07-17 08:35:18 +02:00
Andrea Bogazzi
51995a73d8 fix perPixelTargetFind (#3109) 2016-07-16 17:25:34 +02:00
Andrea Bogazzi
6e1d2e2fd2 fix for lineheight and text selection (#3094) 2016-07-10 23:04:46 +02:00
Andrea Bogazzi
98f2d1b3dd ignore svg namespace (#3081)
* ignore svg namespace
2016-07-03 23:52:25 +02:00