Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李君
/
carrefour
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ccd7ea4a
authored
Oct 23, 2022
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
小数点
1 parent
6e813baf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/views/queueManagement/cameraPositionCalibration/bindDev.vue
src/views/queueManagement/cameraPositionCalibration/bindDev.vue
View file @
ccd7ea4
...
...
@@ -164,7 +164,7 @@
if
(
_width
>=
_xy
)
{
width
=
_xy
height
=
parseInt
(
_xy
*
_height
/
_width
)
this
.
radix
=
(
_width
/
_xy
).
toFixed
(
2
)
this
.
radix
=
(
_width
/
_xy
).
toFixed
(
0
)
}
else
if
(
_width
<
_xy
)
{
width
=
_width
*
this
.
scaleVal
height
=
_height
*
this
.
scaleVal
...
...
@@ -186,8 +186,8 @@
if
(
status
===
'floor'
)
{
coordinate
.
mapPoints
.
forEach
(
item
=>
{
gateVal
.
push
([
(
item
.
x
/
this
.
normalWidth
*
width
).
toFixed
(
2
),
(
item
.
y
/
this
.
normalWidth
*
height
).
toFixed
(
2
)
(
item
.
x
/
this
.
normalWidth
*
width
).
toFixed
(
0
),
(
item
.
y
/
this
.
normalWidth
*
height
).
toFixed
(
0
)
])
})
this
.
editGateXY
.
val
=
gateVal
...
...
@@ -277,13 +277,13 @@
let
height
=
this
.
getStyleFn
(
id
,
'height'
);
let
ev
=
e
||
window
.
event
;
let
eleRect
=
ev
.
target
.
getBoundingClientRect
();
let
_top
=
(
eleRect
.
top
-
ev
.
target
.
clientTop
).
toFixed
(
2
);
let
_left
=
(
eleRect
.
left
-
ev
.
target
.
clientLeft
).
toFixed
(
2
);
let
_top
=
(
eleRect
.
top
-
ev
.
target
.
clientTop
).
toFixed
(
0
);
let
_left
=
(
eleRect
.
left
-
ev
.
target
.
clientLeft
).
toFixed
(
0
);
let
startX
=
ev
.
pageX
-
_left
-
$
(
document
).
scrollLeft
();
let
startY
=
ev
.
pageY
-
_top
-
$
(
document
).
scrollTop
();
let
xVal
=
(
startX
*
this
.
normalWidth
/
width
).
toFixed
(
2
);
let
yVal
=
(
startY
*
this
.
normalHeight
/
height
).
toFixed
(
2
);
let
xVal
=
(
startX
*
this
.
normalWidth
/
width
).
toFixed
(
0
);
let
yVal
=
(
startY
*
this
.
normalHeight
/
height
).
toFixed
(
0
);
let
canvas
=
document
.
getElementById
(
canvasId
);
if
(
!
canvas
.
getContext
)
return
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment