Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
ruitu-magic-canvas
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
毛线
ruitu-magic-canvas
Commits
7fd69c17
Commit
7fd69c17
authored
Jun 06, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
436e1352
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
README.md
README.md
+10
-0
canvas.vue
packages/canvas/src/canvas.vue
+1
-1
No files found.
README.md
0 → 100644
View file @
7fd69c17
依赖安装
npm i git+http://git.cy-dev.com:8099/maoxian/ruitu-magic-canvas.git
引入依赖
main.js 或 plugins.js
import RuituMagicCanvas from 'ruitu-magic-canvas'
Vue.use(RuituMagicCanvas)
页面使用
packages/canvas/src/canvas.vue
View file @
7fd69c17
...
...
@@ -176,7 +176,7 @@ function Card(params) {
ctx
.
translate
(
centerX
,
centerY
)
ctx
.
rotate
(
Math
.
PI
*
(
-
deg
/
180
))
ctx
.
translate
(
-
centerX
,
-
centerY
)
console
.
log
(
'渲染图片'
)
console
.
log
(
'渲染图片
-
'
)
}
}
}
...
...
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