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): scroll to annotation on load #1224

Merged
merged 6 commits into from
Jun 16, 2020

Conversation

mickr
Copy link
Contributor

@mickr mickr commented Jun 11, 2020

  • Add handler that will look for a set annotations activeId in the file options and if present, scroll to annotation.

* Add handler that will look for a set annotations activeId in the file options and if present, scroll to annotation.
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
* PR Feedback to listen for event from annotations.
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
ConradJChan
ConradJChan previously approved these changes Jun 12, 2020
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Show resolved Hide resolved
src/lib/viewers/__tests__/BaseViewer-test.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Show resolved Hide resolved
file: { id },
} = this.options;

const activeAnnotationId = getProp(this.options, `fileOptions.${id}.annotations.activeId`, null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the null value meaningful here or does undefined serve the same purpose?

src/lib/viewers/BaseViewer.js Show resolved Hide resolved
@mergify mergify bot merged commit dd4195f into box:master Jun 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