Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add image to wheel #8

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
english readme
  • Loading branch information
Reza Rad committed Mar 9, 2021
commit d19c4a16d4f21de0c12123e1349a3fe8c2becc13
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default {
prizes: [
{
id: 1, //* The unique id of each prize, an integer greater than 0
contentType: 'text',
name: 'Blue', // Prize name, display value when type is canvas (this parameter is not needed when type is image)
value: 'Blue\'s value', //* Prize value, return value after spinning
bgColor: '#45ace9', // Background color (no need for this parameter when type is image)
Expand All @@ -81,6 +82,7 @@ export default {
},
{
id: 2,
contentType: 'text',
name: 'Red',
value: 'Red\'s value',
bgColor: '#dd3832',
Expand All @@ -90,7 +92,8 @@ export default {
},
{
id: 3,
name: 'Yellow',
contentType: 'image',
imageUri: 'https://perperook.ir/img/icons/offers.png',
value: 'Yellow\'s value',
bgColor: '#fef151',
color: '#ffffff',
Expand Down Expand Up @@ -153,6 +156,7 @@ export default {
| canvas.textLength | A few characters in one line of the prize, beyond the line break (maximum two lines) | Number | 6 |
| canvas.textDirection | Prize text direction (horizontal, vertical) | String | horizontal |
| canvas.lineHeight | Text line height (type: canvas) | Number | 20 |
| canvas.imageSize | Image size (type: canvas) | Number | 64 |
| canvas.borderWidth | Round outer border (type: canvas) | Number | 0 |
| canvas.borderColor | Color value of the outer border (type: canvas) | String | transparent |
| canvas.btnText | Button text (type: canvas) | String | GO |
Expand Down