# archviz-is-vue

> This is vue component package. A very simple package that helps you setup a image sequence for architecture visualization purpose.

Latest version **1.0.3** (published 2022-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install archviz-is-vue
pnpm add archviz-is-vue
yarn add archviz-is-vue
bun add archviz-is-vue
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-03-31 |
| First published | 2022-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 153.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yang Developer |
| Maintainers | yangdeveloper |
| Keywords | image sequence, vuejs, archviz, vue, vue preload, preload image, vue ts preload |

## Links

- npm: https://www.npmjs.com/package/archviz-is-vue
- Repository: https://github.com/renkin4/ArchvizImageSequenceVue
- Issues: https://github.com/renkin4/ArchvizImageSequenceVue/issues
- npm.io page: https://npm.io/package/archviz-is-vue

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3.2.25

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-03-31
- 1.0.2 — 2022-03-31

## README

# Vue 3 + Typescript + Vite

This is vue component package. A very simple package that helps you setup a image sequence for architecture visualization purpose.  

I made this package to help myself setup image sequence quickers and cleaner.  

## Installation Guide 

### Node

```bash 
npm i archviz-is-vue
```

### Yarn 

```bash 
yarn add archviz-is-vue
```

--- 

### Setup Plugin in Vue

**main.js**

```typescript
import { YangAISPlugin } from 'archviz-is-vue';

app.use(YangAISPlugin);
```

example:
```typescript
import { createApp } from 'vue'
import App from './App.vue'

import { YangAISPlugin } from 'archviz-is-vue';

let app = createApp(App);
app.use(YangAISPlugin);
app.mount('#app');
```


## Usage

App.vue
```vue
<template>
<div class="wrapper">
  <PreloadAssets :assetsUrl="allImageUrl" @loading-progress="handleLoadingProgress" >
    <ImageSequence bindInputs/>
  </PreloadAssets>
</div>
</template>

<script setup lang="ts">
import { ref } from 'vue';

let allImageUrl = ref<string[]>([]);


const GetImgURL = (index : number) => {
    return new URL(`./assets/sequence/podium_facility${index}.webp`, import.meta.url).href
}

for (let i = 1; i <= 90; i++) {
  // podium_facility1
  let url = GetImgURL(i);
  allImageUrl.value.push(url); 
}

let handleLoadingProgress = (progress : number) => {
  // console.log(`Loading progress: ${progress}%`);
}
</script>

<style>  
*{
  margin: 0;
  padding: 0;
}

.wrapper{
  height: 100vh;
}
</style>
```

---

PS: I have yet explain all the usage of this component. I will be uploading a guide on how to hook all the events and some custom controls that exposed soon.

---
_Source: https://npm.io/package/archviz-is-vue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
