Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
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
劳工
zeroing-editor
Commits
7ae4a05f
Commit
7ae4a05f
authored
Nov 20, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复节点偏移的问题
parent
81f17997
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Board.vue
src/views/Editor/behavior-editor/Board.vue
+4
-4
No files found.
src/views/Editor/behavior-editor/Board.vue
View file @
7ae4a05f
...
...
@@ -183,8 +183,8 @@
},
onResize
()
{
const
{
x
,
y
}
=
this
.
$el
.
getBoundingClientRect
();
this
.
drawState
.
boardOffset
.
x
=
x
;
this
.
drawState
.
boardOffset
.
y
=
y
;
this
.
drawState
.
boardOffset
.
x
=
x
+
this
.
boardOffset
.
x
;
this
.
drawState
.
boardOffset
.
y
=
y
+
this
.
boardOffset
.
y
;
},
measure
()
{
this
.
onResize
();
...
...
@@ -243,8 +243,8 @@
},
onMouseMove
(
e
)
{
const
scale
=
this
.
scale
;
let
x
=
e
.
x
-
this
.
drawState
.
boardOffset
.
x
-
this
.
boardOffset
.
x
;
let
y
=
e
.
y
-
this
.
drawState
.
boardOffset
.
y
-
this
.
boardOffset
.
y
;
let
x
=
e
.
x
-
this
.
drawState
.
boardOffset
.
x
;
let
y
=
e
.
y
-
this
.
drawState
.
boardOffset
.
y
;
this
.
lineDrawing
.
path
=
this
.
drawingLineStart
+
`
${
x
/
scale
}
,
${
y
/
scale
}
${
x
/
scale
}
,
${
y
/
scale
}
`
;
},
onMouseUp
(
e
)
{
...
...
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