Skip to content

implement watermark config option - #3280

Merged
antoinerg merged 2 commits into
masterfrom
3268-watermark
Nov 23, 2018
Merged

antoinerg merged 2 commits into
masterfrom
3268-watermark

Conversation

@antoinerg

Copy link
Copy Markdown
Contributor

Closes #3268 exactly as described/requested by @nicolaskruchten's in his first comment #3268 (comment)

Comment thread src/css/_modebar.scss
}

.modebar--hover {
.modebar--hover > :not(.watermark) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS child selector should also work in IE9+. The reason we use it is because we cannot override the opacity of a child if the parent has a CSS opacity.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find. But we should test this out in IE9 and IE11 (from browserstack) before merging this thing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works in IE11:
ie11_watermark

IE9/10 doesn't work on master 😐
ie9_fail_master2

I will open an issue for the latter.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works in IE9 🎉

ie9_watermark

About using plotly-basic.js in IE9 versus plotly.js: is this documented somewhere? If not I should open an issue over at the documentation project.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@etpinard etpinard added this to the v1.43.0 milestone Nov 22, 2018
displaylogo: true,

// watermark the images with the company's logo
watermark: false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yesss! false by default 👌

@etpinard

etpinard commented Nov 22, 2018 •

Copy link
Copy Markdown
Contributor

Looking good!

It should be possible to add the a few test cases in

https://github.com/plotly/plotly.js/blob/master/test/jasmine/tests/modebar_test.js

to 🔒 down the new config.watermark logic.

@antoinerg

Copy link
Copy Markdown
Contributor Author

@etpinard I think df10f70 may be sufficient but let me know if it's not 🤔

@etpinard

Copy link
Copy Markdown
Contributor

💃 nicely done.

@antoinerg
antoinerg merged commit 077a1d7 into master Nov 23, 2018
@antoinerg
antoinerg deleted the 3268-watermark branch November 23, 2018 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature something new

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants