8 Star 16 Fork 3

年唐/ALine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
demo_canvas.html 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
风子 提交于 2016-06-05 23:27 . add cline
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CLine 演示</title>
<style>
body{
padding: 0;margin: 0;}
h3{margin: 0;padding: 0;background: #efefef;line-height: 60px;height: 60px;color: #666;font-size: 22px;text-indent: 20px;}
dl{margin:10px 20px;}
dl dt{line-height: 40px;font-family:"微软雅黑";}
dl dd h5{font-weight: 600;font-size:14px;}
dl dd pre{background: #ddd;padding: 5px;border-radius: 10px;}
ul{margin-left: 0;}
ul li{list-style: none;line-height: 3;}
.demo{background-color:#efefef;position:relative;}
</style>
<script src="src/jquery.min.js" type="text/javascript"></script>
<script src="src/CLine.js" type="text/javascript"></script>
</head>
<body>
<h3>CLine画线、标注插件</h3>
<dl>
<dt>
演示1.简单演示
</dt>
<dd>
<canvas id="demo1" width="400" height="300" class="demo"></canvas>
<script type="text/javascript">
var demo1 = new CLine('demo1');
//demo1.init({color:'#666'}).angleLine(50,50,200,200).show();
demo1.drawLine(10,10,100,100).drawLine(300,75,80,170,{width:5,color:'red'}).show();
</script>
</dd>
<dd>
<h5>代码</h5>
<pre>
</pre>
</dd>
</dl>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/niantang/ALine.git
git@gitee.com:niantang/ALine.git
niantang
ALine
ALine
master

搜索帮助