Commit graph

9 commits

Author SHA1 Message Date
Ulrich Sossou
28dd7ec582 Use rounded values to compare position of object to center of the canvas because object x and y after zoom may not be integers 2014-07-30 08:52:25 +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
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
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/centering_guidelines.js (Browse further)