-
Notifications
You must be signed in to change notification settings - Fork 16
DM-6950: improve overlay labels #145
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,11 +96,14 @@ function drawInnerRecWithHandles(ctx, color, lineWidth, inX1, inY1, inX2, inY2) | |
| * @param size | ||
| * @param fontWeight | ||
| * @param fontStyle | ||
| * @param backGroundColor | ||
| * @param padDing | ||
| */ | ||
| function drawText(drawTextAry,text, x,y,color, | ||
| renderOptions, | ||
| fontFamily='helvetica', size='9px', | ||
| fontWeight='normal', fontStyle='normal') { | ||
| fontWeight='normal', fontStyle='normal', | ||
| backGroundColor, padDing) { | ||
|
|
||
|
|
||
| //todo | ||
|
|
@@ -120,11 +123,14 @@ function drawText(drawTextAry,text, x,y,color, | |
| 'fontSize': size, | ||
| fontWeight, | ||
| fontStyle, | ||
| 'backgroundColor': 'white', | ||
| 'MozBorderRadius': '5px', | ||
| 'borderRadius': '5px', | ||
| 'WebkitBorderRadius': '5px' | ||
| 'MozBorderRadius': '1px', | ||
| 'borderRadius': '1px', | ||
| 'WebkitBorderRadius': '1px' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would still like to support background at the DrawUtil level. I think you should add a extra parameter at the end ( |
||
| }; | ||
|
|
||
| if (backGroundColor) style.backgroundColor = backGroundColor; | ||
| if (padDing) style.padding = padDing; | ||
|
|
||
| drawTextAry.push({text,style}); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should take out the todo comments here since it is done.