# @movable/studio-ar

> Utilities for creating AR applications

Latest version **2.0.0** (published 2020-07-21) · SEE LICENSE IN README.md license · 0 weekly downloads

## Install

```sh
npm install @movable/studio-ar
pnpm add @movable/studio-ar
yarn add @movable/studio-ar
bun add @movable/studio-ar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-07-21 |
| First published | 2018-10-30 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN README.md |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 75.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Movable, Inc |
| Maintainers | aguevara23, alexlafroscia, cwervo, joxamo18, kruggeri, mansurtsutiev, megoetzke, mi_rtepper, mnutt, nicksteffens_mi, pcarbajal, psalant726, shyshy, spencer516, theron, uyethon |

## Links

- npm: https://www.npmjs.com/package/@movable/studio-ar
- Repository: https://github.com/movableink/studio-ar
- Homepage: https://github.com/movableink/studio-ar#readme
- Issues: https://github.com/movableink/studio-ar/issues
- npm.io page: https://npm.io/package/@movable/studio-ar

## Dependencies (5)

- [dom4](https://npm.io/package/dom4.md) ^2.1.4
- [cropduster](https://npm.io/package/cropduster.md) >= 6.0
- [studio-app](https://npm.io/package/studio-app.md) ^1.7.2
- [clipboard-polyfill](https://npm.io/package/clipboard-polyfill.md) ^2.8.0
- [@movable/html2canvas](https://npm.io/package/@movable/html2canvas.md) ^1.0.0-alpha.12

## Recent versions

- 2.0.0 (latest) — 2020-07-21
- 1.9.0 — 2020-07-21
- 1.8.3 — 2019-12-17
- 1.8.2 — 2019-10-09
- 1.8.1 — 2019-07-24
- 1.8.0 — 2019-07-21
- 1.7.0 — 2019-05-09
- 1.6.2 — 2019-04-29
- 1.6.1 — 2019-04-24
- 1.6.0 — 2019-04-23
- 1.5.3 — 2019-04-01
- 1.5.2 — 2019-03-06
- 1.5.1 — 2019-02-04
- 1.5.0 — 2019-02-04
- 1.4.0 — 2019-01-22
- … 7 more at https://npm.io/package/@movable/studio-ar/versions

## README

# @movable/studio-ar

Copyright Movable, Inc. All rights reserved.

Utilities for building augmented reality applications with Studio.

It includes a Studio AR app base class, which you can customize.

## Installation

```bash
yarn add @movable/studio-ar
```

## Usage

```javascript
import ArApp from '@movable/studio-ar';
import Panel from '@movable/studio-ar/panel';

// Use these built-in panels
import { LoadingPanel, ReviewPanel, SharePanel, LandscapePanel, ErrorPanel, MobileFirstPanel } from '@movable/studio-ar/panels';

class VideoPanel extends Panel {
  render() {
    // runs once when the panel is first loaded
    // recommended to put your event handlers here
  }

  activate() {
    // runs every time you transition to the panel
  }

  deactivate() {
    // runs every time you transition away from the panel
  }
};

// You can override some functionality in a built-in panel. If you
// do this, just change the class name from `share-panel` to
// `my-share-panel`.

// class MySharePanel extends SharePanel {
//   render() {
//     super.render();
//     // extra behavior goes here
//   }
// }

class MyArApp extends ArApp {
  constructor() {
    super();

    // child constructor needs to define this.panels by calling
    // this.collectPanels() with a list of panels, and it needs
    // to define a VideoPanel class to be the main frame.

    this.panels = this.collectPanels([LoadingPanel, VideoPanel, ReviewPanel, MySharePanel, ErrorPanel, LandscapePanel, MobileFirstPanel]);
  }

  render() {
    // sets up analytics, rotation handling, etc.
    super.render();

    // do whatever custom stuff you want here
  }
}

export default MyArApp;
```

---
_Source: https://npm.io/package/@movable/studio-ar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
