This project handles absolute position calculations in iframes.


005.0.02 months ago4 years agoMinified + gzip package size for @ephox/photon in KB



photon is a project that handles reading and writing to iframes as well as absolute position calculations in iframes.


photon is available as an npm package.
You can install it via the npm package @ephox/photon

Install from npm

yarn install @ephox/photon


  • Frames: A tool to find the path to an element through iframes.
  • Navigation: A tool to find the owner view of a given element.
  • OuterPosition: Get the outer position of an element in an iframe.
  • Reader: Get the iframe of an element.
  • Writer: Write to an iframe.


photon uses bedrock to run tests.

Running Tests

$ yarn test

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.