gesto+guides实现标尺拖动标注效果代码
代码语言:html
所属分类:拖放
代码描述:gesto+guides实现标尺拖动标注效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/guides.css"> </head> <body> <div class="box"></div> <div class="ruler horizontal"> </div> <div class="ruler vertical"> </div> <div class="container"> <img src="//repo.bfw.wiki/bfwrepo/icon/60ecf359eb0c5.png" width="200" alt="guides" /> <p class="dragit">Drag Screen & Rulers!</p> <p class="description">A Guides component that can draw ruler and manage guidelines.</p> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/gesto.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/guides.min.js"></script> <script> const guides1 = new Guides(document.querySelector(".ruler.horizontal"), { type: "horizontal", displayDragPos: true, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0