Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuzhequan
electron-printer
Commits
0d8de4c6
Commit
0d8de4c6
authored
Mar 21, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据调整
parent
54b08c25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/views/design/head/printDialog.vue
+3
-4
No files found.
src/views/design/head/printDialog.vue
View file @
0d8de4c6
...
...
@@ -294,7 +294,6 @@ export default {
// 计算image相对于line的坐标位置
const
relativeX
=
imageRect
.
left
-
lineRect
.
left
;
const
relativeY
=
imageRect
.
top
-
lineRect
.
top
;
// 获取图片的宽高
let
w
=
image
.
clientWidth
;
// 图片宽
let
h
=
image
.
clientHeight
;
// 图片高
...
...
@@ -314,12 +313,12 @@ export default {
});
// 返回计算结果
return
{
x
:
Number
(
x_mm
.
toFixed
(
1
)),
y
:
Number
(
y_mm
.
toFixed
(
1
)),
x
:
Number
(
(
x_mm
-
0.8
)
.
toFixed
(
1
)),
y
:
Number
(
(
y_mm
-
0.9
)
.
toFixed
(
1
)),
w
:
Number
((
w_mm
-
0.3
).
toFixed
(
1
)),
h
:
Number
((
h_mm
-
0.3
).
toFixed
(
1
)),
r
}
;
}
},
async
getPrintCmd
()
{
...
...
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