0.5.0 • Published 5 years ago

pixi-vfui v0.5.0

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

npm version npm bundle size

pixi-vfui

pixi-vfui简称vfui是基于PIXIJS引擎,使用TypeScript语言开发的开源UI库。 为PIXIJS提供提供基础可靠的UI组件。

学习(Learn)

安装(Setup)

使用vfui库之前,我们默认你已经导入pixijs库,如何导入请参考网络教程。

NPM Install

npm install pixi-vfui

ES6 导入方式 (The correct way to import is):

import vfui from "pixi-vfui";

创建方式为:

let button = new  vfui.Button();

CDN Install

Master:

<script src="http://unpkg.com/pixi-vfui/dist/pixi-vfui.js"></script>

<script src="http://unpkg.com/pixi-vfui/dist/pixi-vfui.min.js"></script>

Version:

<script src="http://unpkg.com/pixi-vfui@0.5.0/dist/pixi-vfui.js"></script>

<script src="http://unpkg.com/pixi-vfui@0.5.0/dist/pixi-vfui.min.js"></script>

如何构建(How build)

  1. git clone https://github.com/vipkid-edu/pixi-vfui
  2. setup Visual Studio Code
  3. setup Visual Studio Code Extension (Debugger for Chrome)
  4. setup Visual Studio Code Extension (ESLint)
  5. setup Visual Studio Code Extension (Live Server)
  6. run Live Server
  7. npm run build or npm run watch
  8. view http://127.0.0.1:5501/

如果你是开发人员请提交时进行eslint检测

npm run lint

组件(Component)

使用示例:https://vipkid-edu.github.io/pixi-vfui-docs/play

可使用组件:

导入方式名称
vfui.StageUI舞台
vfui.Container容器
vfui.ScrollingContainer可滑动的容器
vfui.Image图片
vfui.Label文本
vfui.TextInput输入文本
vfui.Graphics绘制矢量
vfui.Rect绘制矢量矩形
vfui.Button按钮
vfui.CheckBox单选与复选
vfui.SpriteAnimated序列图
vfui.Slider滑动/进度条
vfui.Ticker心跳
vfui.Tween缓动
vfui.Timeline缓动
vfui.Sound音频
vfui.Utils工具类

计划中:

Recording/Audio - 麦克风
Spine/DB - 龙骨
Video - 视频
Particle - 粒子
DialogueText - 字幕
Sequence - 动画序列图
Accordion - 手风琴
Http/WebSocket - 网络

Ohter

Chrome debug - windows

Right click the Chrome shortcut, and select properties In the "target" field, append --remote-debugging-port=9222 Or in a command prompt, execute /chrome.exe --remote-debugging-port=9222

Chrome debug - mac

In a terminal, execute /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

License

This content is released under the (http://opensource.org/licenses/MIT) MIT License.

0.5.0

5 years ago

0.1.25

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago

1.0.0

5 years ago