@ezcax/browser-bundles

0.6.1-dev.7 • Public • Published

Theatre.js browser bundles

A custom build of Theatre.js that you can use via a <script> tag rather than using a bundler.

How to use

There are currently two builds:

  • dist/core-and-studio.js
  • dist/core-only.min.js

As the names imply, one includes both @ezcax/studio and @ezcax/core, while the other is a minified version of @ezcax/core.

Example:

<script src="path/to/core-and-studio.js"></script>
<script>
  // here, core is equal to `import * as core from '@ezcax/core`
  const core = Theatre.core
  // here, studio is equal to `import studio from '@ezcax/studio`.
  // Note this would be undefined if you're using `core-only.min.js`
  const studio = Theatre.studio

  // only call this if you're using the core-and-studio.js bundle
  studio.initialize()

  const project = core.getProject("My project")
  const sheet = project.sheet("...")
  // and so on...
</script>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.1-dev.100dev
0.6.1-dev.71latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.1-dev.100
0.6.1-dev.90
0.6.1-dev.81
0.6.1-dev.71

Package Sidebar

Install

npm i @ezcax/browser-bundles

Weekly Downloads

1

Version

0.6.1-dev.7

License

SEE LICENSE IN LICENSE

Unpacked Size

25.9 MB

Total Files

7

Last publish

Collaborators

  • ezcax