Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Kristofer Monisit 6b76d014bd Follow coding conventions 2012-04-06 18:42:22 +08:00
Kristofer Monisit 02764fd2f3 Bring brush examples up-to-date 2012-04-06 10:29:02 +08:00
Mike Bostock 380a2f4eb6 Merge branch 'decorative-brush-resizers' into v2.8.0 2012-02-19 13:24:57 -08:00
Mike Bostock 79708d8d2c Show or hide resizers automatically.
The brush component now hides the resizers when empty, rather than requiring you
to do this in CSS. In addition, the brush component also temporarily overrides
the body's cursor style, so that the cursor doesn't flicker when dragging.
2012-02-14 22:07:57 -08:00
Mike Bostock 50bf5d3e38 Allow decorative brush resizers.
The brush component now allows you to add decorative elements to serve as brush
resizers, while keeping the default behavior of a few invisible pixels on the
edge of the extent. Any element you add to ".resize" containers can serve as
visible handles for the brush.

This commit also fixes two small bugs with the brush component. First, we now
track the offset between the extent edge and the mouse, rather than immediately
jumping the extent edge to the mouse position; this was barely noticeable
previously due to the resizers being so thin, but it is very noticeable with
large resizers. Second, the default behavior for the SPACE key is not prevented
whilst dragging.
2012-02-14 20:19:31 -08:00