Skip to content

Migration 0.X to 1.0

Daybrush (Younkue Choi) edited this page Aug 4, 2020 · 20 revisions

Deprecated

Removed

  • Resizable's set property on resizeStart event.

Changed

  • Scalable's scale property becomes beforeScale on scale event

Added

  • Scalable
<Moveable
    target={target}
    draggable={true}
    scalable={true}
    origin={true}
    onScaleStart={e => {
        e.setTransform("rotate(30deg) scale(2, 2) translate(10px, 10px)", 1); // scale(2, 2)
        e.dragStart && e.dragStart.setTransformIndex(2); // translate(10px, 10px)
    }}
    onScale={e => {
        e.target.style.transform = e.drag.transform;
    }}
></Moveable>
Clone this wiki locally