2.3.5 • Published 2 years ago

vue-pixi-wrapper v2.3.5

Weekly downloads
21
License
MIT
Repository
github
Last release
2 years ago

Introduction

Npm version License Download License

Vue-pixi-wrapper

About

Vue PIXI Wrapper is a wrapper library to create PIXI application using VueJS with all components are reactive (auto re-render when data change)

Installation

yarn install vue-pixi-wrapper

or

npm install --save vue-pixi-wrapper

Setup

For normal Vue app

In your main.js add this:

const PIXI = require('pixi.js');
window.PIXI = PIXI

For Nuxt

First create folder plugins if you haven't done so, then create a file name pixijs.js under plugins with the following content:

import * as PIXI from 'pixi.js';
global.PIXI = PIXI;

Next add this to plugins section in nuxt.config.js

plugins: [
  { src: '~/plugins/pixijs', mode: 'client', ssr: false}
],

Now every time you write PIXI-related code, you need to wrap it under <client-side> because PIXI works only in client side

<client-only>
  <p-application>
    ...
  </p-application>
</client-only>

Documentation

Check our website: https://maitrungduc.gitbook.io/vue-pixi-wrapper

❤️Support

If this project is helpful, please give me a star on Github

1.1.6

2 years ago

2.0.0-test-4

2 years ago

2.0.0-test-5

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

2.1.2

2 years ago

2.0.3

2 years ago

2.0.0-test-1

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.0.0-test-3

2 years ago

2.3.4

2 years ago

2.3.3

2 years ago

2.3.5

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

2.0.0-test

2 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago