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

feat(annotations): Emit annotations color #1309

Merged
merged 3 commits into from
Dec 16, 2020
Merged

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Dec 14, 2020

src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/DocBaseViewer.js Outdated Show resolved Hide resolved
@mxiao6 mxiao6 changed the title feat(annotations): Emit stroke color feat(annotations): Emit annotations color Dec 15, 2020
jstoffan
jstoffan previously approved these changes Dec 15, 2020
@@ -994,6 +994,7 @@ class BaseViewer extends EventEmitter {
const annotatorOptions = this.createAnnotatorOptions({
annotator: this.annotatorConf,
features: options && options.features,
initialColor: this.annotationModule.getColor(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the future, we may want to consider supporting something like an initial object that gets merged into the annotator's initial state.

@mergify mergify bot merged commit d1a9e08 into box:master Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants