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
3b8c65f9
Commit
3b8c65f9
authored
Aug 25, 2021
by
米嘉伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指纹处理组件更新
parent
830fef1e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
src/components/ImageEditor.vue
+14
-11
No files found.
src/components/ImageEditor.vue
View file @
3b8c65f9
...
...
@@ -5,11 +5,11 @@
:options=
"options"
ref=
'editor'
></ImageEditor>
<
button
@
click=
"click"
>
点击
</button
>
<button
@
click=
"addText"
>
Add Text
</button>
<button
@
click=
"rotate"
>
Rotate
</button>
<button
@
click=
"flip"
>
Flip Y
</button>
<button
@
click=
"undo"
>
Undo
</button>
<
!--
<button
@
click=
"click"
>
点击
</button>
--
>
<button
@
click=
"addText"
>
特征点提取
</button>
<button
@
click=
"rotate"
>
旋转
</button>
<button
@
click=
"flip"
>
上下反转
</button>
<button
@
click=
"undo"
>
撤销
</button>
</div>
</
template
>
...
...
@@ -214,10 +214,13 @@ export default {
};
},
methods
:
{
click
()
{
console
.
log
(
this
.
$refs
.
editor
.
editorInstance
.
_graphics
.
canvasImage
)
console
.
log
(
this
.
$refs
.
editor
.
loadImageFromURL
,
123
)
},
// click () {
// console.log(this.$refs.editor.editorInstance._graphics.canvasImage)
// console.log(this.$refs.editor.loadImageFromURL, 123)
// },
// 特征点提取
addText
()
{
// 添加文字 Hello Jerry
// 默认在工作区的中间
...
...
@@ -229,7 +232,7 @@ export default {
// },
// });
this
.
$refs
.
editor
.
invoke
(
'startDrawingMode'
,
'LINE_DRAWING'
,
{
width
:
10
,
width
:
5
,
color
:
'rgba(255, 0, 0, 0.5)'
,
arrowType
:
{
tail
:
'chevron'
// triangle
...
...
@@ -238,7 +241,7 @@ export default {
},
// 旋转 20 度
rotate
()
{
this
.
$refs
.
editor
.
invoke
(
"rotate"
,
1
0
);
this
.
$refs
.
editor
.
invoke
(
"rotate"
,
2
0
);
},
// 沿 Y 轴翻转
flip
()
{
...
...
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