npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vf.js/player

v2.0.4

Published

[![npm version](https://badge.fury.io/js/%40vf.js%2Flauncher.svg)](https://badge.fury.io/js/%40vf.js%2Flauncher) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40vf.js%2Flauncher)

Downloads

984

Readme

npm version npm bundle size

介绍

VF 引擎是一套用于快速构建互动教学场景的解决方案中的图形交互引擎。

与其它引擎/框架不同的是,VF 被设计为类似FlashPlayer一样插件应用。VF 的核心只关注将场景数据渲染为可交互的视图层,不仅易于上手,还便于与既有项目整合。

VF 引擎致力于完成一套统一跨平台的高性能互动课程制作系统,它能够支持 Web、iOS、Android、Node、桌面应用 和 小程序 不同环境下的图形绘制和各种互动教学场景。

::: tip 提示 VF默认使用WebGL渲染,初始化时检测到低端设备或不支持的浏览器会自动降级为Canvas渲染。 :::

特性

  • 高性能UI系统—GUI,通过底层设计的优化精简,在呈现丰富UI效果的前提下大幅度减少内存占用和性能消耗。
  • 支持CSS属性,控制UI、字体样式,设定Grid布局就像修改DOM样式一样简单。
  • 灵活的插件扩展,无论是交互动画、滤镜特效、还是UI组件、功能逻辑都可以自由定义并配置使用。
  • 渲染系统采用自动脏刷新技术结合超轻快的PIXI改造,表现出最优运行性能。
  • 支持完善的矢量绘图API,动态创建丰富的教学图形。
  • 完备的资源管理系统,各种类型的资源轻松配置,灵活加载。
  • 完整的屏幕适配策略,内置四种适配策略,让应用在各种设备的屏幕上都可以智能以最佳状态呈现。
  • 高效的物理引擎,绚丽的粒子系统,以及龙骨的支持,开发各种类型的教学互动场景都游刃有余。
  • 提供完善的音频系统,无论是音频播放、录音交互、语音测评都是随配随用。
  • 提供完善的视频系统,随时随处控制视频为教学场景增加丰富的吸引力。
  • 海量的题型模版、互动场景、交互动画、富媒体组件..只需配置JSON即可实现快速复用。

学习(Learn)

安装与使用

NPM

  npm i @vf.js/launcher --save-dev

CDN Script

<script src="http://unpkg.com/@vf.js/launcher/dist/launcher.min.js"></script>

使用过程像数 1, 2, 3 一样容易


// 1. ES6方式引入,CDN Script方式不需要写
import {createVF} from '@vf.js/launcher';

// 2.设置插入页面的div容器
createVF({container:document.getElementById("div")},player=>{
  // 3.启动实例
  player.play('data.json');
});

如何构建(How build)

  1. git clone [email protected]:yunkc/player.git
  2. npm i
  3. setup Visual Studio Code
  4. npm run start
  5. view http://127.0.0.1:8088/

License

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