Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
e0ba6b58
Commit
e0ba6b58
authored
Nov 09, 2021
by
张超军
Browse files
Options
Browse Files
Download
Plain Diff
合并
parents
b3769734
79c5fd75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
20 deletions
+55
-20
src/views/Editor/modules/imageEd.vue
+54
-19
src/views/Editor/modules/imageEdAJ.vue
+1
-1
No files found.
src/views/Editor/modules/imageEd.vue
View file @
e0ba6b58
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-11-09 10:
09:16
* @LastEditTime: 2021-11-09 10:
56:08
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...
...
@@ -988,11 +988,18 @@ export default {
self
.
isReset
=
true
// 旋转角度同样恢复到0
self
.
inputRotationRange
=
0
console
.
log
(
self
.
startPlace
,
222
);
// 事件不能连续重复执行,需要缓存时间
self
.
startPlace
=
0
;
setTimeout
(()
=>
{
imageEditor
.
setAngle
(
0
)[
'catch'
](
function
()
{
});
console
.
log
(
11111
,
-
self
.
startPlace
)
imageEditor
.
rotate
(
-
parseInt
(
self
.
startPlace
))
imageEditor
.
resetZoom
();
self
.
startPlace
=
0
;
},
200
);
//重置位置变量
self
.
move_left
=
0
;
self
.
move_top
=
0
;
self
.
zoomLevel
=
1
;
imageEditor
.
resetFlip
().
then
(
function
(
status
)
{
console
.
log
(
'flipX: '
,
status
.
flipX
);
console
.
log
(
'flipY: '
,
status
.
flipY
);
...
...
@@ -1903,12 +1910,38 @@ export default {
* @return {*}
*/
OriginalChange
()
{
let
self
=
this
;
self
.
isX
=
false
self
.
isY
=
false
self
.
isReset
=
true
// 旋转角度同样恢复到0
self
.
inputRotationRange
=
0
// 事件不能连续重复执行,需要缓存时间
setTimeout
(()
=>
{
self
.
imageEditor
.
rotate
(
-
parseInt
(
self
.
startPlace
))
self
.
imageEditor
.
resetZoom
();
self
.
startPlace
=
0
;
},
200
);
//重置位置变量
self
.
move_left
=
0
;
self
.
move_top
=
0
;
self
.
zoomLevel
=
1
;
self
.
imageEditor
.
resetFlip
().
then
(
function
(
status
)
{
console
.
log
(
'flipX: '
,
status
.
flipX
);
console
.
log
(
'flipY: '
,
status
.
flipY
);
console
.
log
(
'angle: '
,
status
.
angle
);
});
$
(
'.tzdDrawing'
).
css
(
'transform'
,
'rotateX(0)'
)
$
(
'.tzdDrawing'
).
css
(
'transform'
,
'rotateY(0)'
)
this
.
issize
=
true
this
.
ismoderate
=
false
this
.
imageEditor
.
resetZoom
()
self
.
zoomLevel
=
1
// 特征点图层缩放设置为1
$
(
'.tzdDrawing'
).
css
(
'transform'
,
'scale(1)'
);
// this.imageEditor.resetZoom()
// self.zoomLevel = 1;
// this.imageEditor.rotate(-parseInt(-self.startPlace));
// self.startPlace = 0;
// // 特征点图层缩放设置为1
// $('.tzdDrawing').css('transform', 'scale(1)');
},
/**
* @description: 取消删除按钮
...
...
@@ -2821,25 +2854,27 @@ export default {
this
.
isOptions
=
!
this
.
isOptions
this
.
isActive
=
!
this
.
isActive
if
(
this
.
isActive
)
{
//重置图像大小,旋转方向的方法
this
.
OriginalChange
();
$
(
'.icon_size'
).
css
(
'background'
,
'#055FE7'
)
// 是否原尺寸同步
this
.
isSizeSynchro
=
false
// 是否展示原尺寸同步下拉框
this
.
isShowSizeSynchro
=
true
this
.
imageEditor
.
resetZoom
()
this
.
imageEditor
.
changeCursor
(
'auto'
);
this
.
isShowsizeOptions
=
true
this
.
issize
=
true
this
.
ismoderate
=
false
// 特征点图层缩放设置为1
$
(
'.tzdDrawing'
).
css
(
'transform'
,
'scale(1)'
);
// 移动图片
this
.
imageEditor
.
_graphics
.
setImageProperties
({
left
:
0
,
top
:
0
,
originX
:
'left'
,
originY
:
'top'
},
true
)
// // 是否原尺寸同步
// this.isSizeSynchro = false
// 是否展示原尺寸同步下拉框
// this.imageEditor.resetZoom()
// this.imageEditor.changeCursor('auto');
// // 移动图片
// this.imageEditor._graphics.setImageProperties({
// left: 0,
// top: 0,
// originX: 'left',
// originY: 'top'
// }, true)
}
else
{
$
(
'.icon_size'
).
css
(
'background'
,
'rgba(5, 95, 231, 0.05)'
)
// 是否原尺寸同步
...
...
src/views/Editor/modules/imageEdAJ.vue
View file @
e0ba6b58
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-11-09 10:5
7:45
* @LastEditTime: 2021-11-09 10:5
9:08
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment