meshkraft-viewer

1.9.9 • Public • Published

Meshkraft Viewer by ART Labs

Meshkraft is a no-coding platform for generating, optimizing and serving 3D models of your e-commerce products.

Meshkraft Viewer is the JS SDK for presenting models in web-AR.

Install

The <meshkraft-viewer> web component can be used directly from various free CDNs such as unpkg.com

You'll need to paste script code to the end of <head> section of your web page

<script type="module" src="https://unpkg.com/meshkraft-viewer/dist/meshkraft-viewer.min.js"></script>

It can also be installed from NPM:

npm install meshkraft-viewer

Usage

  • First you will need to set your API Key with init command, once.

    MeshkraftViewer.init('API_KEY')
  • After initialized, in specific product page, call SDK with product identifier (SKU)

    <meshskraft-viewer sku="SKU-123" />

SDK will do the rest.

Options

sku (string) *required

SKU of your product. Identifier for 3D assets.

enable-ar (boolean)

Should enable AR button. Defaults to true

auto-rotate (boolean)

Should the models rotate automatically. Defaults to true

width (number)

Width of parent component. Defaults to %100

height (number)

Width of parent component. Defaults to 300px

config (object)

Scene and AR config. TBA.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.9.9264latest

Version History

VersionDownloads (Last 7 Days)Published
1.9.9264
1.9.70
1.9.60
1.9.50
1.9.40
1.9.31
1.9.20
1.9.10
1.9.00
1.8.40
1.8.30
1.8.20
1.8.10
1.8.00
1.7.20
1.7.10
1.7.00
1.6.80
1.6.70
1.6.60
1.6.50
1.6.40
1.6.30
1.6.20
1.6.10
1.6.00
1.5.00
1.4.10
1.4.00
1.3.130
1.3.120
1.3.110
1.3.100
1.3.90
1.3.80
1.3.70
1.3.60
1.3.50
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.130
1.2.120
1.2.110
1.2.100
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.20

Package Sidebar

Install

npm i meshkraft-viewer

Weekly Downloads

265

Version

1.9.9

License

BSD-3-Clause

Unpacked Size

1.15 MB

Total Files

11

Last publish

Collaborators

  • artlabs