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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jx3box/jx3box-facedat

v2.7.6

Published

JX3BOX Facedat viewer

Readme

@jx3box/jx3box-facedat

剑网 3 捏脸/体型数据解析、展示与导出组件,基于 Vue 3 和 Element Plus。

安装

npm install @jx3box/jx3box-facedat

按需使用

import Upload from "@jx3box/jx3box-facedat/src/Upload.vue";
import Facedat from "@jx3box/jx3box-facedat/src/Facedat.vue";
import Bodydat from "@jx3box/jx3box-facedat/src/Bodydat.vue";
<Upload locale="zh-CN" @success="handleSuccess" />
<Facedat v-if="data.type?.startsWith('face')" :data="data" :lock="true" locale="zh-CN" />
<Bodydat v-if="data.type === 'body'" :data="data" :lock="false" locale="zh-CN" />

组件支持 zh-CNzh-TWen-USvi。如果宿主已经安装 vue-i18n,组件会跟随宿主 locale;显式 locale prop 的优先级更高。宿主也可以统一合并本包词条:

import { mergeFacedatLocaleMessages } from "@jx3box/jx3box-facedat/src/locale";

mergeFacedatLocaleMessages(i18n);

全量注册

import FacedatPlugin from "@jx3box/jx3box-facedat";

app.use(FacedatPlugin, { i18n });

插件会注册 FacedatBodydatUploadSlider

主题

主题通过 CSS 变量覆盖,变量作用域限制在组件根节点,不影响宿主其他 Element Plus 组件:

.my-facedat-theme {
    --jx3-facedat-color-primary: #2563eb;
    --jx3-facedat-color-success: #16a34a;
    --jx3-facedat-color-price: #d97706;
}

将该 class 放在组件祖先节点即可。完整变量见 assets/css/tokens.less

事件载荷

Upload 解析成功后触发:

{
    type: "face" | "face_v2" | "face_ini" | "body",
    file: File,
    json: String,
    object: Object,
}

数据构建

  • npm run face:生成写意脸型数据;
  • npm run facev2:生成写实脸型数据;
  • npm run body:生成体型字段数据。

更完整的架构、i18n、主题和响应式规则见 docs/README.md