Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
d5841a28
Commit
d5841a28
authored
Jun 13, 2024
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
画布截图
parent
90422217
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
116 deletions
+128
-116
tk-view2canvas.vue
components/tk-view2canvas.vue
+3
-3
photoJigsaw.vue
pages/album/photoJigsaw/photoJigsaw.vue
+125
-113
backgroundImgTo.png
pages/album/static/album/backgroundImgTo.png
+0
-0
No files found.
components/tk-view2canvas.vue
View file @
d5841a28
...
...
@@ -106,10 +106,10 @@ export default {
arrayInfo
[
i
].
width
*
dpr
,
arrayInfo
[
i
].
height
*
dpr
)
imageIndex
++
}
else
if
(
arrayInfo
[
i
].
type
==
'image1'
)
{
console
.
log
(
arrayInfo
[
i
].
swidth
*
dpr
+
','
+
arrayInfo
[
i
].
sheight
*
dpr
+
','
+
arrayInfo
[
i
].
width
*
dpr
+
','
+
arrayInfo
[
i
].
height
*
dpr
)
console
.
log
(
arrayInfo
[
i
].
swidth
*
dpr
+
','
+
arrayInfo
[
i
].
sheight
*
dpr
+
','
+
arrayInfo
[
i
].
width
*
dpr
+
','
+
arrayInfo
[
i
].
height
*
dpr
+
','
+
arrayInfo
[
i
].
posX
+
','
+
arrayInfo
[
i
].
posY
)
ctx
.
drawImage
(
imageArray
[
imageIndex
],
0
,
0
,
arrayInfo
[
i
].
swidth
*
dpr
,
arrayInfo
[
i
].
s
height
*
dpr
,
arrayInfo
[
i
].
posX
*
dpr
,
arrayInfo
[
i
].
posY
*
dpr
,
arrayInfo
[
i
].
width
*
dpr
,
arrayInfo
[
i
].
height
*
dpr
)
0
,
0
,
arrayInfo
[
i
].
width
*
dpr
,
arrayInfo
[
i
].
height
*
dpr
,
arrayInfo
[
i
].
posX
*
dpr
,
arrayInfo
[
i
].
posY
*
dpr
,
arrayInfo
[
i
].
swidth
*
dpr
,
arrayInfo
[
i
].
s
height
*
dpr
)
imageIndex
++
}
}
...
...
pages/album/photoJigsaw/photoJigsaw.vue
View file @
d5841a28
This diff is collapsed.
Click to expand it.
pages/album/static/album/backgroundImgTo.png
0 → 100644
View file @
d5841a28
64 KB
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