Skip to content

Announce camera orientation - #325

Merged
cdata merged 1 commit into
announce-controlsfrom
announce-camera-orientation
Feb 1, 2019
Merged

cdata merged 1 commit into
announce-controlsfrom
announce-camera-orientation

Conversation

@cdata

@cdata cdata commented Jan 31, 2019 •

Copy link
Copy Markdown
Contributor

This change is meant to complement a11y / interaction improvements brought by #319 and #322 .

  • When the orientation of the camera changes significantly, the new orientation is announced to screen readers
  • When the model loses focus and then regains focus, the original ARIA label is announced
  • Azimuth is separated into quadrants: front, left, back and right
  • The top third of the sphere is the "upper" pole, the bottom third is the "lower" pole

announceviewdirection

Fixes #315

@cdata
cdata changed the base branch from master to announce-controls January 31, 2019 18:22
@cdata
cdata force-pushed the announce-camera-orientation branch 2 times, most recently from d76cf9c to fe57deb Compare January 31, 2019 22:38
@cdata
cdata requested review from jsantell and smalls January 31, 2019 22:46
@cdata cdata changed the title (WIP) Announce camera orientation Announce camera orientation Jan 31, 2019

@jsantell jsantell left a comment

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.

LGTM!

Comment thread src/features/controls.js

const HALF_PI = Math.PI / 2.0;
const THIRD_PI = Math.PI / 3.0;
const QUARTER_PI = HALF_PI / 2.0;

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.

Now I'm hungry 🍰

Comment thread src/features/controls.js

const {theta: lastTheta, phi: lastPhi} = this[$lastSpherical];
const {theta, phi} =
this[$controls].getCameraSpherical(this[$lastSpherical]);

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.

👍

@cdata
cdata force-pushed the announce-camera-orientation branch from fe57deb to 0de7672 Compare February 1, 2019 00:47
@cdata
cdata merged commit fb2d662 into announce-controls Feb 1, 2019
@cdata
cdata deleted the announce-camera-orientation branch February 1, 2019 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants