# vue-model-viewer
**Repository Path**: coding-365/vue-model-viewer
## Basic Information
- **Project Name**: vue-model-viewer
- **Description**: Easily display interactive 3D models on the web & in AR
- **Primary Language**: JavaScript
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2022-03-10
- **Last Updated**: 2023-01-09
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
model-viewer Vue Component
[![npm][npm]][npm-url]
[![node][node]][node-url]

## Preview

## example
- https://daudxu.github.io/vue-model-viewer/
## Installation
```
npm install vue-model-viewer
```
## Usage
```
1. /src/main.js
// Only supports vue3
import VueModelViewer from 'vue-model-viewer'
app.use(VueModelViewer);
2. page use
```
## demo
```
{{ msg }}
Easily display interactive 3D models on the web & in AR
```
Click to view [example](../../examples/vuemodelviewer.vue)。
## Options
| configuration item | value type | description |
| ------------------ | ---------- | ----------------------------------------------------------- |
| modelAddress | String | model url Address |
| poster | String | model poster loading image |
| viewWidth | String | model width (unit: px,em,rem,vw ...) |
| viewHeight | String | model high (unit: px,em,rem,vh ...) |
| isAutoPlay | Boolean | isAutoPlay true or flase |
| isDisableZoom | Boolean | isDisableZoom true or flase |
| modelId | String | default 'viewer-display'|
| modelClass | String | default 'viewer-display'|
## Features
- [x] Built for Ethereum using [Web3](https://github.com/ethereum/web3.js/).
- [x] Implements [Graph Protocol](https://github.com/graphprotocol) to read blockchain.
## Changelog
### 2022.02.25
> v1.0.0 \* init model-viewer Vue Component
[npm]: https://img.shields.io/npm/v/postcss-load-config.svg
[npm-url]: https://npmjs.com/package/postcss-load-config
[node]: https://img.shields.io/node/v/postcss-load-plugins.svg
[node-url]: https://nodejs.org/