Commit graph

17 commits

Author SHA1 Message Date
jrking4
f5ee274052 Update use of getBoundingRect in Guides Example (#4631)
* Update use of getBoundingRect in Guides Example

Aligning Guidelines Example broken. Update to use getBoundingRect() function

* Ensure getBoundingRect is called only once
2018-01-18 15:40:00 +01: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
Taqi Mustafa
3bf8f46562 Fixing guides in zoom
We were not calculating the guides updated position for pan and zoom. It's fixed now.
2016-02-15 17:42:36 +05:00
Ulrich Sossou
7701763001 Fix aligning guidelines on zoom 2015-02-20 12:52:06 +01:00
Juriy Zaytsev
86fd0febca Merge pull request #1809 from Colmea/master
Aligning guidelines: remove line after render
2015-01-02 19:14:46 +01:00
Arthur Schwaiger
2535b4805e Aligning guidelines: remove line after render
avoid superimposition of multiple lines
2014-11-04 14:28:13 +01:00
Ulrich Sossou
f45cff11c5 Fix guidelines drawing when canvas zoomed 2014-07-30 08:50:18 +01:00
Ulrich Sossou
5fc0b07577 Fix object position when aligned to guidelines 2014-07-30 08:46:11 +01:00
Paul Verest
88b127714c typo be 2013-12-11 17:40:47 +08:00
Kienz
870322ee24 Fixes for aligning_guidelines and centering_guidelines
aligning_guidelines:
- Bugfix for rotated objects - rotated objects should be aligned correctly

centering_guidelines:
- Fix for objects with different origin (originX or originY != 'center')
- Fix for clear lines
2013-01-22 23:35:22 +01:00
Kienz
33bacb0cd6 Bugfix for canvas.toDataURL() - canvas.clearContext(canvas.contextTop) in after:render clears context if canvas.toDataURL() is called.
Observe before:render and clear contextTop.
2013-01-21 22:15:28 +01:00
Kienz
b555e56241 Fix for dynamic_origin + Remove lines correctly on object moving
Fix if objects have different origins (originX != 'center' and/or originY != 'center')
Lines now removed correctly on object:moving (bug since commit c4bec7045532886a338ef7ae91c80bfd8fb28851)

[BACK_INCOMPAT] for fabric.js versions < 1.0.0
2013-01-21 14:22:10 +01:00
kangax
9590fe597c In fabric.Observable, observe is now on, stopObservingoff. observe and stopObserving are deprecated. 2012-07-18 18:25:51 +02:00
kangax
5a2eb2e3df [BACK_INCOMPAT] fabric.Canvas#getContext now returns context of canvas element on which all objects are drawn. fabric.Canvas#getSelectionContext returns context of canvas element on which object selection is drawn. 2012-05-13 18:30:12 +04:00
kangax
8a84affd6c [BACK_INCOMPAT] Remove "memo" from event objects. e.memo.xxx is now e.xxx. 2012-05-12 13:44:26 +04:00
kangax
85a256a8e7 Make events more consistent.
"object:moved" --> "object:moving" (since it's a continuously fired event).
"object:scaled" is gone (since this case can be solved with "object:modified").
"group:modified" is gone (since this case can be solved with "object:modified").
"group:selected" --> "selection:created".
"before:group:destroyed" --> "before:selection:cleared" (only fires when there is active object or group).
"after:group:destroyed" --> "selection:cleared" (only fires when there is active object or group).
2011-07-06 15:12:44 -04:00
kangax
a7155ccbfb Reorganize project structure. Add "customization" demo (work in progress). 2011-06-29 11:10:08 -04:00
Renamed from test/demo/aligning_guidelines.js (Browse further)