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

xverse-components-avatar

v1.0.12

Published

xverse components avatar

Downloads

16

Readme

API

| 参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 | | --------------------------- | ------------------------------------------------------- | -------------------------- | ------ | -------- | ------------------------------------------------------------ | | componentId | string | | - | false | 组件 id,由协议透传下来 | | avatarId | string | 角色 ID | - | true | - | | avatarImg | string | 角色头像 | - | false | - | | birthPointId | string | 出生点 | - | true | - | | userId | string | 唯一标识 | - | true | - | | nickName | string | 昵称 | - | false | - | | isNPC | boolean | | true | false | - | | bubbleOptions | IBubbleOptions | 添加头顶气泡 | - | false | 非必填 | | sayWorldsText | string | 头顶显示固定提示文案 | - | false | 固定展示,不消失 | | componentOptions | IComponentOptions | 角色自定义套装 | - | false | 非必填 | | disposeWhenComponentUnmount | boolean | 组件卸载时销毁 Avatar 实例 | - | false | - | | animationPath | string | 用户动画 | - | false | - | | scaling | number | 缩放倍数 | - | false | - | | nickNameOptions | INickNameOption | 昵称设置 | - | false | 还没支持同步 仅对自己生效 | | openTextReader | boolean | 是否开启文字播报能力 | - | false | - | | ttsConfig | string | ttsConfig | - | false | - | | aiName | string | aiName | - | false | ttsConfig 音色的一个 key | | sayText | string | 语音播报文字内容 | - | false | 推荐用一个变量控制 | | isSeparateControlVolume | boolean | 是否单独控制 | - | false | 如果声音开启了单独控制,可以在要控制该音频的组件里选中该组件 | | isRandomClothing | boolean | 是否随机服装 | - | false | 若存在自定义服装则不生效 | | lockedComponents | string | 未解锁的装扮 Id | - | false | 可以将装扮的 Id 用,分割 | | onError | (err: Error) => any | 初始化过程出现错误 | - | false | - | | onClick | (props: { userId: string }) => any | 点击 | - | false | - | | onPress | (props: { userId: string }) => any | 长按 | - | false | - | | onLoaded | (props: { userId: string }) => any | 加载完 | - | false | - | | onBubbleClick | (props: { userId: string }) => any | 头顶气泡点击事件 | - | false | - | | onBubbleDispose | (props: { userId: string }) => any | 头顶气泡消失事件 | - | false | - | | onStartRead | () => void | 开始读一段文字时的事件 | - | false | - | | onFinishRead | () => void | 结束读一段文字时的事件 | - | false | - | | onNickNameChange | (props: { avatarId: string; nickName: string }) => void | nickName 改变 | - | false | - |