Commit graph

1140 commits

Author SHA1 Message Date
kangax
596831b6c1 Fix itext editing exit when clicking on other objects. Closes #1019 2013-11-29 14:43:01 +01:00
kangax
56f0bfb9cc Avoid setting crossOrigin on an image if unspecified. Closes #971 2013-11-27 20:00:33 +01:00
kangax
0f23f14a44 Add fabric.IText#caching 2013-11-27 19:48:35 +01:00
kangax
435f3933ac Fix i-text line-through offset 2013-11-26 14:58:53 +01:00
kangax
ae11740f82 Fix i-text style copy-pasting (doesn't work with multiline yet) 2013-11-25 21:32:00 +01:00
kangax
854d428c38 Add more tests 2013-11-23 17:35:31 +01:00
kangax
82509dc8d8 More IText tests 2013-11-23 13:45:53 +01:00
kangax
673fa39eba Start adding i-text unit tests; add additional util and color tests 2013-11-22 17:30:55 +01:00
kangax
ec8a920081 Reorganize parser.js 2013-11-21 18:00:29 +01:00
kangax
7fa80e82ba Add @private to doc 2013-11-21 12:17:51 +01:00
kangax
9e8b6bc5f6 Exit i-text editing properly when clicking on another text 2013-11-21 12:17:39 +01:00
kangax
336528551b Move object stacking and SVG export methods to separate files 2013-11-20 21:14:26 +01:00
Kienz
d4b2ea18b7 Fix center methods for object’s with different originX/originY
object.center() only re-renders canvas once instead of twice
Update unit tests
2013-11-20 20:41:13 +01:00
kangax
942b5cfd8d Add "editing:entered" and "editing:exited" events 2013-11-20 20:25:18 +01:00
kangax
70549d177c Fix styles when removing multiple lines 2013-11-20 20:18:43 +01:00
Stefan Kienzle
2e834aa81c Fix 1px offset of background image - Closes issue #990 2013-11-20 17:21:58 +01:00
Juriy Zaytsev
5c0d0cadda Merge pull request #1000 from msievers/issue973
Move getScrollLeftTop to dom_misc.js and call it inside getElementOffset
2013-11-20 04:48:59 -08:00
Michael Sievers
13feddfa16 Call fabric.util.getScrollLeftTop inside getElementOffset 2013-11-20 13:06:28 +01:00
kangax
81e9535ef0 Small code cleanup 2013-11-20 12:47:03 +01:00
Michael Sievers
7cb161438c Move getScrollLeftTop from dom_events.js to dom_misc.js 2013-11-20 10:42:34 +01:00
kangax
34901c12e8 More itext.class.js refactoring 2013-11-19 18:25:19 +01:00
kangax
db7036cfb5 Update docs 2013-11-19 17:41:15 +01:00
kangax
30ab19252b Refactor itext.class.js even more 2013-11-19 17:38:58 +01:00
kangax
3509c08dd3 Move IText sag exporting logic to its own file 2013-11-19 17:24:24 +01:00
kangax
fa800d3c45 Refactor itext.class.js 2013-11-19 17:16:20 +01:00
kangax
967d79fba3 Break up IText behavior into click and key 2013-11-19 12:56:23 +01:00
Stefan Kienzle
bbaffd7f8e Call activeGroup.setCoords() in mouse-up event - Fixes issue #995 2013-11-19 11:49:27 +01:00
kangax
e9af66e37b Fix doc 2013-11-18 20:18:39 +01:00
kangax
94e83a715e Add support for line select in IText via triple click 2013-11-18 20:06:20 +01:00
kangax
85e33c042b Add doc info about mouse/touch combinations 2013-11-18 17:41:50 +01:00
kangax
50c5edb425 Add support for shift+click selection 2013-11-18 17:41:50 +01:00
kangax
e88c277675 Refactor canvas handlers in IText 2013-11-18 17:41:50 +01:00
Darby
54180a7665 Clear selection upon exit editing 2013-11-17 18:29:18 -06:00
kangax
17a9ba7712 Fix mouseup handling outside of itext 2013-11-17 13:28:24 +01:00
kangax
5dd4b480be Break down getSelectionStartFromPointer even more 2013-11-17 10:45:31 +01:00
kangax
decfe15aa3 Break down getSelectionStartFromPointer 2013-11-17 10:33:20 +01:00
kangax
74ac19c7f7 More IText refactoring and minor group tweak 2013-11-17 10:16:18 +01:00
kangax
1113e20599 Do not scale cursor in width 2013-11-16 18:57:34 +01:00
kangax
df7b1f6747 Slight IText refactoring 2013-11-16 18:48:57 +01:00
kangax
604e85dcfc Add support for forward delete 2013-11-16 18:06:04 +01:00
kangax
22200db7b3 Refactor itext_behavior 2013-11-16 15:20:41 +01:00
kangax
de7b92bda5 Some refactoring; move arc into a separate file 2013-11-16 15:20:41 +01:00
kangax
6260f55df6 Implement mouse-based selection. Woooot. 2013-11-16 15:20:41 +01:00
Darby
4479af30d0 Update itext_behavior.mixin.js
Ctrl + key fix
2013-11-15 16:23:51 -06:00
Darby
450837474e Update itext_behavior.mixin.js
Changed document to fabric.document for node compatibility.
2013-11-15 16:12:08 -06:00
kangax
e3b0f666fb More precise path-group check. Closes #964 2013-11-14 19:22:45 +01:00
Juriy Zaytsev
963616ec0f Merge pull request #983 from Kienz/patch-2
Fix bug in selection mode, Fix drawControls for activeGroup
2013-11-14 09:49:08 -08:00
kangax
26bdd0de69 Remove setCoords in fabric.Group#render. Build distribution. Version 1.3.11. Closes #979 2013-11-14 18:47:10 +01:00
Stefan Kienzle
17053585fb Clear selection if unselectable object is clicked - Fixes issue #976 2013-11-14 17:46:59 +01:00
Stefan Kienzle
68fbe5fe50 Fix activeGroup controls 2013-11-14 14:35:18 +01:00