Skip to content

Commit

Permalink
更新gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
dailc committed Nov 16, 2017
1 parent e9444e6 commit ab7f766
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ gulp.task('default', (callback) => {
gulp.task('watch', () => {
gulp.watch([
resolvePath(`${SOURCE_ROOT_PATH}/**/*.js`),
resolvePath(`${SOURCE_ROOT_PATH}/**/*.css`),
resolvePath(`${SOURCE_ROOT_PATH}/**/*.styl`),
resolvePath('build/**/*.js'),
resolvePath('test/**/*.js'),
], ['default']);
Expand Down
94 changes: 94 additions & 0 deletions dist/image-process.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,97 @@
.hidden {
display: none;
}
.img-clip {
position: relative;
width: 95%;
margin: 0 auto;
padding: 0;
}
.img-clip canvas {
display: block;
}
.img-clip .magnifier {
position: absolute;
top: -90px;
right: 0;
/**
* 显示的值,真实的宽高内部会设置
*/
width: 80px;
height: 80px;
border-radius: 50%;
border: 2px solid #fff;
}
.img-clip .clip-hidden {
display: none;
}
.img-clip .clip-rect {
position: absolute;
border: 1px dashed #de3c50;
top: 10px;
left: 10px;
width: 100px;
height: 100px;
}
.img-clip .clip-rect .clip-tips {
position: absolute;
top: -40px;
left: 0;
padding: 5px;
font-size: 13px;
background-color: #333;
border-radius: 5px;
color: #fff;
}
.img-clip .clip-rect-horn {
position: absolute;
display: block;
background-color: rgba(222,60,80,0.7);
border-radius: 50%;
width: 20px;
height: 20px;
}
.img-clip .horn-n {
top: -10px;
left: 50%;
margin-left: -10px;
cursor: n-resize;
}
.img-clip .horn-s {
bottom: -10px;
left: 50%;
margin-left: -10px;
cursor: s-resize;
}
.img-clip .horn-w {
top: 50%;
left: -10px;
margin-top: -10px;
cursor: w-resize;
}
.img-clip .horn-e {
top: 50%;
right: -10px;
margin-top: -10px;
cursor: e-resize;
}
.img-clip .horn-nw {
top: -10px;
left: -10px;
cursor: nw-resize;
}
.img-clip .horn-ne {
top: -10px;
right: -10px;
cursor: ne-resize;
}
.img-clip .horn-sw {
bottom: -10px;
left: -10px;
cursor: sw-resize;
}
.img-clip .horn-se {
bottom: -10px;
right: -10px;
cursor: se-resize;
}
2 changes: 1 addition & 1 deletion dist/image-process.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "image-process",
"version": "0.0.1",
"description": "图像处理算法,包括缩放算法(最邻近插值,双线性差值,三次卷积插值),图像处理(灰度,模糊,锐化,卡通),应用(边缘识别,水印)等",
"description": "图像裁剪,图像缩放(最邻近插值,双线性差值,三次卷积插值),图像滤镜(灰度,模糊,锐化,卡通),应用(边缘识别,水印)等",
"homepage": "https://github.com/dailc/image-process",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion src/styl/index.styl
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import "./common.styl"
@import "./common.styl"

@import "../clip/styl/index.styl"

0 comments on commit ab7f766

Please sign in to comment.