-
Notifications
You must be signed in to change notification settings - Fork 89
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
Fix Border not Working with Text Layer #239
Conversation
Hi, sorry for the late reply. Just started a new job. Thanks for letting me know about the commit hooks. Could you please open an issue for that? Reviewing the PR now... |
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.
Two things:
- Make sure
val(this, 'border', this.currentTime)
is not null before drawing the outline (it can be null). - The entire text is white in the example, but it should be blue with a white outline.
The checks passed, but until the commit hook issue gets fixed, you can manually run them on your local machine: npm run fix
npm run test:unit
npm run test:smoke
npm run test:integration |
Looking at this further, I'd say we should add a separate property |
Actually, the "commit hooks problem" doesn't relate to commit hooks. I have created a issue about it #240. |
I will try to fix those problems. |
If I understand you correctly, you meant: Then adding a separate property would be a good idea, since it allows users to assign different styles on "border" and "textBorder". But I'd say the new property name should be |
Makes sense, thanks for opening the issue. Yeah, that is the distinction I was making. Good point, Please also be sure to type
See this article for more info on dynamic properties. Let me know if anything is unclear or doesn't look quite right. |
Correction:
Dynamic<{
color: Color
thickness?: number
}> |
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.
This looks great!! Good idea on how to implement the position.
One thing though, can you make position
an enum? textDirection
should be an enum as well, but that can wait for another issue/PR.
Looks great, merging. Thanks again!! |
Fixes #236
I haven't run the commit hooks (
test:unit
,test:smoke
, etc.), since the syntax of setting scoped environment variable (ENV=XXX command
) doesn't work on windows. See https://stackoverflow.com/questions/25112510/how-to-set-environment-variables-from-within-package-json/27090755#27090755 and its comments for more details. I suggest using https://www.npmjs.com/package/cross-env to deal with this problem.