1.0.21 • Published 9 months ago

@icraft/player v1.0.21

Weekly downloads
-
License
Commercial
Repository
github
Last release
9 months ago

Introduction

@icraft/player

@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.

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

10 months ago

1.0.0

1 year ago

1.0.16

10 months ago

0.0.6-alpha.1

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.11

12 months ago

1.0.10

1 year ago

1.0.15

11 months ago

0.0.5

1 year ago

1.0.14

11 months ago

1.0.13

12 months ago

1.0.12

12 months ago

0.0.6

1 year ago

0.0.4

2 years ago

0.0.3-alpha.18

2 years ago

0.0.3-alpha.17

2 years ago

0.0.3-alpha.16

2 years ago

0.0.3-alpha.15

2 years ago

0.0.3-alpha.12

2 years ago

0.0.3-alpha.9

2 years ago

0.0.3-alpha.8

2 years ago

0.0.3-alpha.7

2 years ago

0.0.3-alpha.6

2 years ago

0.0.3-alpha.5

2 years ago

0.0.3-alpha.4

2 years ago

0.0.3-alpha.3

2 years ago

0.0.3-alpha.1

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago