@icraft/player
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Introduction

@icraft/player

npm version npm downloads

@icraft/player is a native JavaScript component that allows you to easily integrate scenes edited in iCraft Editor into your projects, providing rich interaction events and methods.

Quick Start

Installation

npm

Install the @icraft/player package using npm or pnpm:

# Using npm
npm install @icraft/player --save

# Or using pnpm
pnpm install @icraft/player --save

Note: Some package managers may not automatically install the @icraft/engine package. If it's missing, please install it manually:

CDN

<script src="https://unpkg.com/@icraft/player@latest/dist/umd/icraft-player.min.js"></script>

Basic Usage

Import and use the ICraftPlayer component in your project:

const player = new ICraftPlayer({
  src: 'your-scene.iplayer',
  container: document.getElementById('container'),
});

Here, src is the URL of the .iplayer file exported from iCraft Editor, and container is the DOM element that will host the scene.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.848latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.848
1.0.71
1.0.61
1.0.50
1.0.42
1.0.32
1.0.00
0.0.6-alpha.12
0.0.61
0.0.50
0.0.40
0.0.3-alpha.180
0.0.3-alpha.170
0.0.3-alpha.160
0.0.3-alpha.151
0.0.3-alpha.120
0.0.3-alpha.91
0.0.3-alpha.82
0.0.3-alpha.71
0.0.3-alpha.61
0.0.3-alpha.52
0.0.3-alpha.41
0.0.3-alpha.30
0.0.3-alpha.11
0.0.21
0.0.10

Package Sidebar

Install

npm i @icraft/player

Weekly Downloads

68

Version

1.0.8

License

Commercial

Unpacked Size

1.92 MB

Total Files

10

Last publish

Collaborators

  • favori