Moveable 实现↔️ ↕️ 🔄可拖动,可调整大小,可扩展,可旋转
Moveable 实现↔️ ↕️ 🔄可拖动,可调整大小,可扩展,可旋转
0.11.1
0.10.8
0.10.5
0.10.2
daybrush released this
[0.10.2] - 2019-11-12
Fixed
- Fix that scale or resize with
keepRatio
, snap is wrong.
Assets
2
0.10.0
[0.10.0] - 2019-11-09
Added
- Add
scrollable
props. #39- Add
onScroll
,onScrollGroup
event - Add
scrollContainer
props - Add
getScrollPosition
props
- Add
- Add
currentTarget
andinputEvent
on all events #74 #86 - Add
setState
method #82 - Add
getRect
method #71 - Add
renderDirection
props #63 - Add
className
props #53 #63 - Add
onClick
event - Add
onRenderStart
,onRender
,onRenderEnd
events #52 - Add
onRenderGroupStart
,onRenderGroup
,onRenderGroupEnd
events #52 - Add
warp
in top, right, bottom and left directions.
Fixed
- Fix target's boundingRect matrix caculation with scroll position
- Fix problem where the ratio is not maintained with keepRatio #70
- Fix that
el is undefined
#73 - Fix
dragArea
's caculation - Fix that
dragStart
method is not work with group - Fix that
clickGroup
event occurs whendragStart
a mousedown target - Fix that Moveable is deleted when a single target is changed to multiple targets
Assets
2
0.9.8
0.9.7
0.9.6
0.9.5
0.9.1
0.9.0
Added
- Add Snappable (Drag, Resize, Scale, Warp) (#6)
- Add
horizontalGuidelines
&verticalGuidelines
&elementGuidelines
(#6) - Add
bounds
option (boundaries) (#23, #24) - Add
rotationPositoin
option for rotation handle position (#40) - Add
dragArea
option (#38) - Add
dragStart
event onresizeStart
,scaleStart
. (#9) - Add
drag
event onresize
,scale
. (#9) - Add
set
parameter function onwarpStart
.
Fixed
- north and west controls want to behave like photoshop (#9)
- Fix offset caculation for Webkit
Assets
2
0.8.0
daybrush released this
Add New Demo: Block Stack Editor
https://codepen.io/daybrush/full/QWLpOby
Added
- Add
pinchThreshold
option that set minimum distance to pinch easily. - Add
events
parameter for allgroupStart
event. (such asonDragGroupStart
,onScaleGroupStart
, ...etc) - Add
clickGroup
event to find clicked target in the group - Add
set
event method for allstart
event for absolute value. (such asonDragStart
,onScaleStart
, ...etc) #16 - Add
dragStart
method for external mouse, touch event. - Add
isInside
method that the coordinates are inside Moveable
Fixed
- Update @daybrush/drag@0.9.1
- Fix the way dist is used in
onScale
event
Assets
2
0.7.5
0.7.2
0.7.1
0.6.4
0.6.0
Added
- Support SVG Elements #13
- Support SVG Transform Origin in Safari, iOS #13
- Add datas parameter to send data #12
- Add pinchable option and events #11
Fixed
- The default value of
container
option is fixed toparentElement
. - Fix Rotatable for distorted axis.
Assets
2
0.4.1
0.4.1 Release
Fixed
- Fix that the
warpEnd
event didn't call
0.4.0 Release
Added
- Add Warpable and option, events #5
- Support SVG Offset (Only SVG Tag)
- Support 3d transform(matrix) (
perspective
is not yet supported.)
Fixed
- Fix right mouse click issue #7
- Synchronize target's shape. (Previously, it worked independently of target's shape.)
Assets
2
0.3.0
daybrush released this
Features
- Add throttleDrag option(prop)
- Add throttleResize option(prop)
- Add throttleScale option(prop)
- Add throttleRotate option(prop)
- Add keepRatio option(prop)
- Add clientX, clientY on all events.
Bugs
- fix ratio bug that height is zero. #3
Assets
2
热门度与活跃度
10.0
10.0
Watchers:32 |
Star:3249 |
Fork:102 |
创建时间: 2019-07-05 23:04:30 |
最后Commits: 4天前 |
许可协议:MIT |
基本信息
分类:其它杂项 / JavaScript开发 |
收录时间:2019-07-26 09:02:51 |
fa21003
[0.12.0] - 2019-11-28
Added
defaultGroupRotate
props. #102Fixed
clickGroup
does not trigger after rotating #103