-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
add customizeable colors to link portal and title (fixes #2930) #3106
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
Conversation
docs/components/link.md
Outdated
| |---------------------|----------------------------------------------------------------------------------------------------------------------------------------------|---------------| | ||
| | color | Background color of the portal. | white | | ||
| | borderColor | Border color of the portal. | white | | ||
| | innerColor | Inner (background) color of the portal. | red | |
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.
Perhaps backgroundColor
src/components/link.js
Outdated
| if (!data.image || oldData.image === data.image) { return; } | ||
| el.setAttribute('material', 'pano', | ||
| typeof data.image === 'string' ? data.image : data.image.src); | ||
| typeof data.image === 'string' ? data.image : data.image.src); |
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.
don't need to change this
src/components/link.js
Outdated
|
|
||
| // Set Portal | ||
| el.setAttribute('geometry', {primitive: 'circle', radius: 1.0, segments: 64}); | ||
| el.setAttribute('geometry', { primitive: 'circle', radius: 1.0, segments: 64 }); |
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.
don't need to change this
src/components/link.js
Outdated
| pano: {type: 'map', is: 'uniform'}, | ||
| borderEnabled: {default: 1.0, type: 'int', is: 'uniform'}, | ||
| strokeColor: {default: 'white', type: 'color', is: 'uniform'} | ||
| pano: { type: 'map', is: 'uniform' }, |
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.
don't need to add spaces to objects
ba997df to
e38b749
Compare
|
thanks! |
|
@ngokevin thanks and sorry about the weird spaces - working through some linting issues in my local dev env. Won't happen next time;) |
|
Nah don't care, just fixed it up to merge it quick |
Description:
Fixes #2930 + adds customisable title color prop
Changes proposed: